/* -------------------------------------------------------------
   Jeballto - Design System
   Typography: Fraunces (display serif, optical size) + Inter Tight (text)
   Colour: Near-black, warm ember orange accent, pure white-cream text
   Motto: restraint, materiality, generosity of space
   ------------------------------------------------------------- */

:root {
  /* Palette - warm black inspired by night photography on matte surfaces */
  --ink: #0A0A0B;
  --ink-raised: #111113;
  --ink-sunken: #070708;
  --ink-line: #1F1F22;
  --ink-line-soft: #17171A;

  /* Text */
  --paper: #F4F1EA;         /* warm off-white, like aged paper */
  --paper-soft: #B8B3A8;
  --paper-faint: #6E6A62;
  --paper-dim: #3D3A35;

  /* Ember - the single accent, pulled from the mark */
  --ember: #FF5B1F;
  --ember-warm: #FF7A3D;
  --ember-deep: #C93610;
  --ember-glow: rgba(255, 91, 31, 0.18);

  /* Type */
  --display: "Fraunces", "New York", "Times New Roman", serif;
  --text: "Inter Tight", -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Menlo", "Consolas", monospace;

  /* Scale */
  --gutter: clamp(20px, 4vw, 40px);
  --page-max: 1180px;
  --measure: 62ch;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --hero-mark-shift: 0px;
  --hero-mark-scale: 1;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--ember); color: var(--ink); }

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  font-family: var(--text);
  font-feature-settings: "ss01", "cv11", "calt";
  background: var(--ink);
  color: var(--paper);
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
main { display: block; }
main:focus { outline: none; }
section[id] { scroll-margin-top: 112px; }

.skip-link {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 200;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 4px;
}

/* -------------------------------------------------------------
   Navigation - a thin, near-invisible membrane
   ------------------------------------------------------------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--gutter);
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
nav.scrolled { border-bottom-color: var(--ink-line-soft); }

.nav-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  box-shadow: 0 4px 12px rgba(255, 91, 31, 0.15);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 28px);
  list-style: none;
}
.nav-links a {
  position: relative;
  display: inline-block;
  font-size: 0.86rem;
  color: var(--paper-soft);
  transition: color 0.2s var(--ease);
  letter-spacing: -0.003em;
}
.nav-links a:hover { color: var(--paper); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.is-current::after {
  transform: scaleX(1);
  opacity: 1;
}
.nav-links a.is-current { color: var(--paper); }
.nav-cta {
  padding: 8px 16px;
  border: 1px solid var(--ink-line);
  border-radius: 100px;
  color: var(--paper) !important;
  font-size: 0.85rem !important;
  transition: all 0.2s var(--ease);
}
.nav-cta:hover {
  background: var(--paper);
  color: var(--ink) !important;
  border-color: var(--paper);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--paper);
  cursor: pointer;
  padding: 6px;
}

/* -------------------------------------------------------------
   Hero - the icon is the protagonist. Type is the whisper.
   ------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 88px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  overflow: hidden;
}

/* Ambient glow - soft spotlight on the icon */
.hero::before {
  content: "";
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle at center,
    rgba(255, 91, 31, 0.22) 0%,
    rgba(255, 91, 31, 0.08) 25%,
    transparent 60%
  );
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}

/* Fine grain over the whole hero - breathes life into the black */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' seed='2'/><feColorMatrix values='0 0 0 0 0.96  0 0 0 0 0.94  0 0 0 0 0.91  0 0 0 0.08 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.hero-mark {
  width: clamp(92px, 12vh, 122px);
  height: clamp(92px, 12vh, 122px);
  border-radius: clamp(22px, 3vh, 30px);
  margin: 0 auto clamp(20px, 3.6vh, 34px);
  transform: translate3d(0, var(--hero-mark-shift), 0) scale(var(--hero-mark-scale));
  box-shadow:
    0 20px 60px -20px rgba(255, 91, 31, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 40px 80px -20px rgba(0, 0, 0, 0.6);
  opacity: 0;
  animation: mark-appear 1.2s var(--ease) 0.1s forwards;
  transition: transform 0.2s linear;
}

@keyframes mark-appear {
  from {
    opacity: 0;
    transform: translate3d(0, calc(var(--hero-mark-shift) + 8px), 0) scale(calc(var(--hero-mark-scale) * 0.98));
  }
  to {
    opacity: 1;
    transform: translate3d(0, var(--hero-mark-shift), 0) scale(var(--hero-mark-scale));
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: clamp(14px, 2.4vh, 24px);
  opacity: 0;
  animation: rise 1s var(--ease) 0.3s forwards;
}

.hero-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.45rem, 6vw, 4.55rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--paper);
  margin-bottom: clamp(16px, 2.8vh, 26px);
  opacity: 0;
  animation: rise 1s var(--ease) 0.45s forwards;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--paper);
  /* Subtle ember bloom on the italic word */
  background: linear-gradient(100deg, var(--ember-warm) 0%, var(--ember-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lede {
  font-family: var(--text);
  font-weight: 400;
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  line-height: 1.48;
  letter-spacing: -0.008em;
  color: var(--paper-soft);
  max-width: 580px;
  margin: 0 auto clamp(20px, 3vh, 32px);
  opacity: 0;
  animation: rise 1s var(--ease) 0.6s forwards;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 1s var(--ease) 0.75s forwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-family: var(--text);
  font-size: 0.93rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
}
.button svg {
  width: 14px; height: 14px;
  transition: transform 0.3s var(--ease);
}
.button--primary {
  background: var(--paper);
  color: var(--ink);
}
.button--primary:hover {
  background: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -10px rgba(244, 241, 234, 0.25);
}
.button--primary:hover svg { transform: translateX(3px); }
.button--ghost {
  background: rgba(17, 17, 19, 0.82);
  color: var(--paper);
  border-color: rgba(255, 91, 31, 0.58);
  box-shadow:
    0 0 0 1px rgba(244, 241, 234, 0.04) inset,
    0 12px 28px -20px rgba(255, 91, 31, 0.55);
}
.button--ghost:hover {
  border-color: var(--ember-warm);
  background: rgba(255, 91, 31, 0.14);
  transform: translateY(-1px);
}

body.motion-enabled .section-head,
body.motion-enabled .core-layout,
body.motion-enabled .capabilities,
body.motion-enabled .install-layout,
body.motion-enabled .api-frame,
body.motion-enabled .integration-grid,
body.motion-enabled .entry-note,
body.motion-enabled .resource-directory,
body.motion-enabled .support-stack,
body.motion-enabled .contact-inner,
body.motion-enabled .footer-inner {
  opacity: 0.001;
  transform: translate3d(0, 8px, 0) scale(0.998);
  filter: blur(3px);
  transition:
    opacity 0.56s var(--ease-soft),
    transform 0.82s var(--ease-soft),
    filter 0.22s ease-out;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

body.motion-enabled .is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.hero-proof {
  margin: clamp(24px, 3.8vh, 38px) auto 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  opacity: 0;
  animation: rise 1s var(--ease) 0.9s forwards;
}
.hero-proof li {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--ink-line);
  background: rgba(17, 17, 19, 0.82);
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--paper-soft);
  letter-spacing: 0.03em;
}

/* -------------------------------------------------------------
   Section rhythm
   ------------------------------------------------------------- */
section {
  padding: 112px var(--gutter);
  position: relative;
}
.container {
  max-width: var(--page-max);
  margin: 0 auto;
}

.section-head {
  max-width: 760px;
  margin-bottom: 64px;
}
.section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 24px;
  display: block;
}
.section-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--paper);
  margin-bottom: 20px;
}
.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--paper-soft);
}
.section-lede {
  font-size: 1.08rem;
  color: var(--paper-soft);
  max-width: var(--measure);
  line-height: 1.6;
  letter-spacing: -0.008em;
}

/* -------------------------------------------------------------
   Runtime - the agent as the control surface
   ------------------------------------------------------------- */
.core {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-sunken) 50%, var(--ink) 100%);
  border-top: 1px solid var(--ink-line-soft);
  border-bottom: 1px solid var(--ink-line-soft);
}

.core-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.core-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}
.core-visual::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  padding-bottom: 60%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--ember-glow) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.core-visual svg {
  position: relative;
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
}

.core-copy h3 {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ember);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.core-copy .big {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--paper);
  margin-bottom: 24px;
}
.core-copy p {
  color: var(--paper-soft);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 44ch;
  margin-bottom: 20px;
}

.fact-list {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  padding-top: 22px;
  border-top: 1px solid var(--ink-line-soft);
  list-style: none;
}
.fact-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--ink-line-soft);
  color: var(--paper);
  font-size: 0.98rem;
  line-height: 1.55;
}
.fact-list strong {
  display: block;
  color: #A9A397;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* -------------------------------------------------------------
   Features - a quiet, precise grid of what it does
   ------------------------------------------------------------- */
.capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-line-soft);
  border: 1px solid var(--ink-line-soft);
  border-radius: 20px;
  overflow: hidden;
}
.capability {
  padding: 40px 36px;
  background: var(--ink);
  transition: background 0.3s var(--ease);
}
.capability:hover { background: var(--ink-raised); }
.capability-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  color: var(--ember);
}
.capability h4 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  color: var(--paper);
  margin-bottom: 10px;
}
.capability p {
  font-size: 0.92rem;
  color: var(--paper-soft);
  line-height: 1.55;
  letter-spacing: -0.003em;
}

/* -------------------------------------------------------------
   API - let the code speak
   ------------------------------------------------------------- */
.api {
  background: var(--ink-sunken);
}

.api-frame {
  background: var(--ink);
  border: 1px solid var(--ink-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.api-titlebar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--ink-line);
  background: var(--ink-raised);
}
.traffic {
  display: flex;
  gap: 7px;
}
.traffic span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--ink-line);
}
.api-filename {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--paper-faint);
  margin-left: 4px;
}

.api-body {
  display: grid;
  grid-template-columns: 1fr;
}
.api-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 10px;
  background: #0C0C0E;
  border-bottom: 1px solid var(--ink-line);
}
.api-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  background: var(--ink);
  border: 1px solid var(--ink-line-soft);
  border-radius: 10px;
  font-family: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--paper-faint);
  letter-spacing: -0.003em;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
  text-align: center;
  appearance: none;
}
.api-step.active,
.api-step[aria-selected="true"] {
  color: var(--paper);
  border-color: rgba(255, 91, 31, 0.48);
  background:
    linear-gradient(135deg, rgba(255, 91, 31, 0.14), rgba(255, 91, 31, 0.04)),
    var(--ink-raised);
}
.api-step:hover {
  color: var(--paper-soft);
  border-color: rgba(244, 241, 234, 0.18);
}
.api-step-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--paper-dim);
}
.api-step.active .api-step-num,
.api-step[aria-selected="true"] .api-step-num { color: var(--ember); }

.api-code {
  padding: 24px 28px;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--paper-soft);
  overflow-x: auto;
  display: none;
  min-height: 280px;
}
.api-code.active { display: block; }
.api-code[hidden] { display: none; }
.api-code .k  { color: var(--ember); }           /* keyword */
.api-code .m  { color: #8CC4FF; }                /* method */
.api-code .u  { color: #9AE09C; }                /* url/string */
.api-code .s  { color: #E8D070; }                /* string literal */
.api-code .c  { color: var(--paper-dim); font-style: italic; }  /* comment */
.api-code .v  { color: #D8AAFF; }                /* variable */

/* -------------------------------------------------------------
   Integrations - CI workers backed by the agent
   ------------------------------------------------------------- */
.ecosystem {
  background: var(--ink);
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--ink-line-soft);
  border: 1px solid var(--ink-line-soft);
  border-radius: 18px;
  overflow: hidden;
}
.integration-card {
  min-height: 250px;
  padding: 34px;
  background: var(--ink-raised);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.entry-kind {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
}
.integration-card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.48rem;
  letter-spacing: -0.02em;
  color: var(--paper);
  line-height: 1.15;
}
.integration-card p {
  color: var(--paper-soft);
  font-size: 0.95rem;
  line-height: 1.58;
  letter-spacing: -0.005em;
}
.entry-note {
  margin-top: 24px;
  padding: 22px 26px;
  border: 1px solid var(--ink-line);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: baseline;
  background: #0C0C0E;
}
.entry-note span {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
}
.entry-note p {
  color: var(--paper-soft);
  font-size: 0.95rem;
  line-height: 1.58;
}

/* -------------------------------------------------------------
   Pulled-quote style installation section
   ------------------------------------------------------------- */
.install {
  background: var(--ink);
  border-top: 1px solid var(--ink-line-soft);
}
.install-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: stretch;
}
.install-terminal-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.install-terminal {
  background: #0C0C0E;
  border: 1px solid var(--ink-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
.term-head {
  padding: 12px 16px;
  background: #141416;
  border-bottom: 1px solid var(--ink-line);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--paper-faint);
  display: flex;
  align-items: center;
  gap: 10px;
}
.term-head .traffic span { width: 9px; height: 9px; }
.term-body {
  padding: 22px 24px;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.85;
  color: #D8D2C6;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.term-body .p { color: var(--ember); }
.term-body .c { color: #8B8479; }
.term-body .o { color: #C3BDB2; }

.install-steps {
  list-style: none;
  counter-reset: step;
}
.install-step {
  counter-increment: step;
  padding: 28px 0;
  border-bottom: 1px solid var(--ink-line-soft);
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 28px;
  align-items: start;
}
.install-step:first-child { padding-top: 0; }
.install-step:last-child { border-bottom: none; }
.install-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--ember);
  letter-spacing: -0.02em;
}
.install-step h4 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--paper);
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}
.install-step p {
  font-size: 0.95rem;
  color: var(--paper-soft);
  line-height: 1.6;
}

.install-beta {
  padding: 22px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  border: 1px solid rgba(255, 91, 31, 0.32);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 91, 31, 0.12), rgba(255, 91, 31, 0.035)),
    #0C0C0E;
}
.install-beta svg {
  width: 28px;
  height: 28px;
  margin-top: 2px;
  color: var(--ember);
}
.install-beta h4 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.18rem;
  color: var(--paper);
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}
.install-beta p {
  color: var(--paper-soft);
  font-size: 0.93rem;
  line-height: 1.58;
  letter-spacing: -0.003em;
}

/* -------------------------------------------------------------
   Final - a specifications panel + call to action
   ------------------------------------------------------------- */
.final {
  background: var(--ink);
  text-align: center;
  border-top: 1px solid var(--ink-line-soft);
  padding: 132px var(--gutter);
  position: relative;
}
.final::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 91, 31, 0.1) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.final-inner { position: relative; }

.final-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 820px;
  margin: 0 auto 28px;
  color: var(--paper);
}
.final-title em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(100deg, var(--ember-warm), var(--ember-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.final-lede {
  color: var(--paper-soft);
  font-size: 1.08rem;
  max-width: 520px;
  margin: 0 auto 44px;
}
.final-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.download-note {
  max-width: 480px;
  margin: 0 auto 58px;
  color: var(--paper-faint);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
}

/* -------------------------------------------------------------
   Footer - quiet, informational
   ------------------------------------------------------------- */
footer {
  padding: 60px var(--gutter) 40px;
  border-top: 1px solid var(--ink-line-soft);
  background: var(--ink);
}
.footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-style: italic;
  color: var(--paper);
  font-size: 1rem;
}
.footer-brand img {
  width: 22px; height: 22px;
  border-radius: 5px;
}
.footer-links {
  list-style: none;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--paper-faint);
  font-size: 0.85rem;
  letter-spacing: -0.003em;
  transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--paper); }
.footer-note {
  font-size: 0.78rem;
  color: var(--paper-dim);
  letter-spacing: -0.003em;
}

/* -------------------------------------------------------------
   Resources - releases, documentation and source links
   ------------------------------------------------------------- */
.docs {
  background: var(--ink-sunken);
  border-top: 1px solid var(--ink-line-soft);
}

.resource-directory {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--ink-line-soft);
  border: 1px solid var(--ink-line-soft);
  border-radius: 18px;
  overflow: hidden;
}
.resource-card {
  min-height: 250px;
  padding: 30px;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}
.resource-card--agent {
  grid-column: span 4;
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  background:
    linear-gradient(135deg, rgba(255, 91, 31, 0.12), rgba(255, 91, 31, 0.025)),
    var(--ink);
}
.resource-card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.34rem;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--paper);
  margin: 0 0 10px;
}
.resource-card--agent h3 {
  font-size: clamp(1.75rem, 3vw, 2.3rem);
}
.resource-card p {
  max-width: 42ch;
  color: var(--paper-soft);
  font-size: 0.94rem;
  line-height: 1.55;
  letter-spacing: -0.003em;
}

.doc-kind {
  font-family: var(--text);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 10px;
  display: block;
}

.resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.resource-action {
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  color: var(--paper);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.resource-action:hover {
  border-color: var(--paper-faint);
  background: rgba(255, 255, 255, 0.025);
}
.resource-action--primary {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.resource-action--primary:hover {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: var(--ink);
}

/* -------------------------------------------------------------
   Versions and license - version and licensing tables
   ------------------------------------------------------------- */
.support,
.license {
  background: var(--ink);
  border-top: 1px solid var(--ink-line-soft);
}
.support-stack {
  display: grid;
  gap: 24px;
}
.support-panel {
  background: var(--ink-raised);
  border: 1px solid var(--ink-line);
  border-radius: 18px;
  overflow: hidden;
}
.support-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  padding: 28px 30px;
  border-bottom: 1px solid var(--ink-line);
}
.support-panel-head .section-eyebrow {
  margin-bottom: 0;
}
.support-panel-head p {
  max-width: 42ch;
  color: var(--paper-soft);
  font-size: 0.94rem;
  line-height: 1.55;
  text-align: right;
}
.table-wrap {
  overflow-x: auto;
}
.support-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
.support-table th,
.support-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--ink-line-soft);
  text-align: left;
  vertical-align: top;
}
.support-table th {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ember);
  background: #0C0C0E;
}
.support-table td {
  color: var(--paper-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}
.support-table td:first-child {
  color: var(--paper);
}
.support-table code {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--paper);
  white-space: nowrap;
}
.support-table tr:last-child td {
  border-bottom: none;
}
.license-summary {
  max-width: 100%;
  padding: 32px 34px;
  border: 1px solid var(--ink-line);
  border-radius: 18px;
  background: var(--ink-raised);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.78fr);
  gap: 48px;
  align-items: start;
}
.license .section-head {
  margin-bottom: 44px;
}
.license-label {
  display: block;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
}
.license-summary p {
  max-width: 62ch;
  color: var(--paper-soft);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: -0.005em;
}
.license-links {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--ink-line-soft);
  border-radius: 14px;
  background: var(--ink-line-soft);
}
.license-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 13px 16px;
  background: #0C0C0E;
  color: var(--paper);
  font-size: 0.9rem;
  line-height: 1.25;
  text-decoration: none;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.license-links a::after {
  content: "Open";
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.license-links a:hover {
  background: var(--ink);
  color: var(--ember);
}
.license-links a:hover::after {
  color: var(--ember);
}

/* -------------------------------------------------------------
   Contact - a quiet invitation
   ------------------------------------------------------------- */
.contact {
  background: var(--ink);
  border-top: 1px solid var(--ink-line-soft);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(255, 91, 31, 0.06) 0%, transparent 55%);
  filter: blur(60px);
  pointer-events: none;
}
.contact-inner {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.contact-copy h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--paper);
  margin-bottom: 24px;
}
.contact-copy h2 em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(100deg, var(--ember-warm), var(--ember-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.contact-copy p {
  color: var(--paper-soft);
  font-size: 1.04rem;
  line-height: 1.6;
  letter-spacing: -0.005em;
  max-width: 42ch;
}

.contact-methods {
  display: grid;
  gap: 2px;
  background: var(--ink-line-soft);
  border: 1px solid var(--ink-line-soft);
  border-radius: 16px;
  overflow: hidden;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: var(--ink-raised);
  text-decoration: none;
  color: inherit;
  transition: background 0.3s var(--ease);
}
.contact-row:hover { background: #17171A; }
.contact-row svg {
  width: 22px;
  height: 22px;
  color: var(--ember);
  flex-shrink: 0;
}
.contact-row-text {
  flex: 1;
  min-width: 0;
}
.contact-row-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-faint);
  margin-bottom: 4px;
}
.contact-row-value {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  color: var(--paper);
  overflow-wrap: anywhere;
}
.contact-row-arrow {
  color: var(--paper-dim);
  transition: all 0.3s var(--ease);
}
.contact-row:hover .contact-row-arrow {
  color: var(--ember);
  transform: translateX(3px);
}


@media (max-width: 960px) {
  section { padding: 88px var(--gutter); }
  .core-layout { grid-template-columns: 1fr; gap: 60px; }
  .install-layout { grid-template-columns: 1fr; gap: 48px; }
  .capabilities { grid-template-columns: 1fr; }
  .integration-grid { grid-template-columns: 1fr; }
  .integration-card { min-height: auto; }
  .entry-note { grid-template-columns: 1fr; }
  .resource-directory { grid-template-columns: repeat(2, 1fr); }
  .resource-card--agent { grid-column: span 2; grid-template-columns: 1fr; }
  .support-panel-head { align-items: start; flex-direction: column; }
  .support-panel-head p { text-align: left; }
  .license-summary { grid-template-columns: 1fr; gap: 28px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .fact-list { grid-template-columns: 1fr; }
  .api-body { grid-template-columns: 1fr; }
  .api-steps { overflow-x: auto; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 11, 0.96);
    backdrop-filter: blur(20px);
    padding: 24px var(--gutter);
    gap: 20px;
    border-bottom: 1px solid var(--ink-line-soft);
    align-items: flex-start;
  }
  .nav-toggle { display: block; }
}

@media (max-width: 640px) {
  section { padding: 76px var(--gutter); }
  .hero { padding-top: 120px; }
  .hero-mark { width: 112px; height: 112px; border-radius: 26px; margin-bottom: 36px; }
  .core-visual { min-height: 320px; }
  .core-visual svg { max-width: 300px; }
  .api-steps { grid-template-columns: repeat(4, minmax(124px, 1fr)); }
  .api-step { justify-content: flex-start; white-space: nowrap; }
  .footer-inner { flex-direction: column; text-align: center; gap: 20px; }
  .install-step { grid-template-columns: 1fr; gap: 8px; }
  .resource-directory { grid-template-columns: 1fr; }
  .resource-card,
  .resource-card--agent { grid-column: auto; padding: 26px 24px; }
  .resource-card { min-height: 220px; }
  .support-panel-head { padding: 24px; }
  .support-table th,
  .support-table td { padding: 16px; }
  .license .section-head { margin-bottom: 40px; }
  .license-summary { padding: 24px; }
  .contact-row { padding: 20px 22px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-mark {
    transform: none;
  }
}
