@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-var-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/GeistMono-var-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #0A0B0D;
  --bg-2: #111317;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --fg: #F4F5F7;
  --fg-2: #B4BAC4;   /* ~10:1 on bg */
  --fg-3: #858C98;   /* ~5.6:1 on bg */
  --accent: #C6F36B;
  --accent-ink: #0B0F05;
  --radius: 16px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 1rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; position: relative;
}
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.bg {
  position: absolute; inset: 0 0 auto 0; height: 1100px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(48rem 28rem at 78% 8%, rgba(198,243,107,.10), transparent 65%),
    radial-gradient(40rem 26rem at 8% 0%, rgba(120,150,255,.07), transparent 65%);
}
.bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 20%, transparent 75%);
          mask-image: radial-gradient(70% 60% at 50% 20%, #000 20%, transparent 75%);
  opacity: .55;
}

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); background: rgba(10,11,13,.72); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.brand { text-decoration: none; display: inline-flex; align-items: center; }
.mark {
  font-family: var(--sans); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.06em; line-height: 1;
  display: inline-flex; align-items: baseline;
}
.mark::after { content: ""; width: .32em; height: .32em; background: var(--accent); border-radius: 2px; margin-left: .1em; }
.mark-sm { font-size: 1.15rem; }
.links { display: none; list-style: none; margin: 0; padding: 0; gap: 2rem; }
.links a { color: var(--fg-2); text-decoration: none; font-size: .925rem; transition: color .15s; }
.links a:hover { color: var(--fg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600;
  font-size: .975rem; padding: .85rem 1.3rem; border-radius: 999px; border: 1px solid transparent;
  transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap;
}
.btn:hover { background: #D4F88A; box-shadow: 0 6px 24px -8px rgba(198,243,107,.55); }
.btn span { transition: transform .15s; }
.btn:hover span { transform: translateX(2px); }
.btn-sm { padding: .5rem .95rem; font-size: .875rem; }
.btn-lg { padding: 1.05rem 1.6rem; font-size: 1.1rem; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,.05); box-shadow: none; }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; gap: 48px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem; font-family: var(--mono); font-size: .75rem;
  text-transform: uppercase; letter-spacing: .08em; color: var(--fg-2);
  border: 1px solid var(--line-2); border-radius: 999px; padding: .4rem .8rem; background: rgba(255,255,255,.02);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(198,243,107,.18); }
h1 { font-size: clamp(2.6rem, 9.5vw, 4.9rem); margin-top: 22px; letter-spacing: -0.045em; line-height: 1.0; text-wrap: balance; }
.lede { color: var(--fg-2); font-size: 1.1rem; line-height: 1.6; margin-top: 22px; max-width: 36rem; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Console illustration */
.console {
  margin: 0; background: linear-gradient(180deg, #14161B, #0F1115); border: 1px solid var(--line-2);
  border-radius: var(--radius); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.4);
  overflow: hidden; font-family: var(--mono); font-size: .8rem;
}
.console-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--fg-3); }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2A2E35; }
.console-bar span { margin-left: 8px; font-size: .75rem; }
.steps { list-style: none; margin: 0; padding: 10px; }
.steps li {
  display: grid; grid-template-columns: 5.2rem 1fr auto; align-items: center; gap: 10px;
  padding: 11px 10px; border-radius: 10px; color: var(--fg-2);
}
.steps li + li { border-top: 1px dashed var(--line); border-radius: 0; }
.role { color: var(--fg); }
.role::before { content: "▸ "; color: var(--fg-3); }
.msg { color: var(--fg-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ok { color: var(--accent); }
.live { background: rgba(198,243,107,.06); border-radius: 10px !important; border-top-color: transparent !important; }
.live .msg { color: var(--fg-2); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(198,243,107,.5); } 50% { box-shadow: 0 0 0 6px rgba(198,243,107,0); } }
.console figcaption { padding: 12px 20px 16px; color: var(--fg-3); font-size: .72rem; border-top: 1px solid var(--line); font-family: var(--sans); }

/* Sections */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.sec-head { max-width: 44rem; margin-bottom: 40px; }
.kicker { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 14px; }
h2 { font-size: clamp(1.9rem, 6vw, 3rem); letter-spacing: -0.035em; line-height: 1.08; text-wrap: balance; }

.cards { display: grid; gap: 14px; }
.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--line-2); }
.card h3 { font-size: 1.2rem; letter-spacing: -0.02em; margin-top: 22px; }
.card p { color: var(--fg-2); margin-top: 10px; font-size: .975rem; }
.ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.04); border: 1px solid var(--line-2); }
.ic svg { width: 22px; height: 22px; fill: none; stroke: var(--fg); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature { background: radial-gradient(30rem 16rem at 100% 0%, rgba(198,243,107,.10), transparent 70%), var(--bg-2); border-color: rgba(198,243,107,.22); }
.feature .ic { background: var(--accent); border-color: transparent; }
.feature .ic svg { stroke: var(--accent-ink); }

.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.process li { padding: 26px; background: var(--bg-2); }
.process li + li { border-top: 1px solid var(--line); }
.num { font-family: var(--mono); font-size: .8rem; color: var(--fg-3); }
.process h3 { font-size: 1.2rem; margin-top: 16px; letter-spacing: -0.02em; }
.process p { color: var(--fg-2); margin-top: 8px; font-size: .975rem; }

.principles { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.principles li {
  font-size: .9rem; color: var(--fg-2); border: 1px solid var(--line-2); border-radius: 999px; padding: .5rem .9rem;
  display: inline-flex; align-items: center; gap: .5rem;
}
.principles li::before { content: "✓"; color: var(--accent); font-size: .85rem; }

/* Contact */
.contact { padding-bottom: 88px; }
.contact-card {
  display: grid; gap: 32px; padding: 36px 26px; border-radius: 22px; border: 1px solid var(--line-2);
  background:
    radial-gradient(40rem 20rem at 0% 100%, rgba(198,243,107,.12), transparent 65%),
    linear-gradient(180deg, #15171C, #0F1115);
}
.contact-card .lede { margin-top: 16px; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.phone { color: var(--fg-3); text-decoration: none; font-family: var(--mono); font-size: .9rem; }
.phone:hover { color: var(--fg); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--fg-3); font-size: .875rem; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
@media (min-width: 720px) { .foot-in p:last-child { margin-left: auto; } }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--fg); }

@media (min-width: 720px) {
  .wrap { padding: 0 32px; }
  .links { display: flex; }
  .cards { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process li + li { border-top: 0; }
  .process li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .process li:nth-child(even) { border-left: 1px solid var(--line); }
}
@media (min-width: 1024px) {
  .hero { padding: 104px 0 120px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 64px; }
  .section { padding: 112px 0; }
  .sec-head { margin-bottom: 56px; }
  .cards { grid-template-columns: repeat(6, 1fr); }
  .cards .card { grid-column: span 2; }
  .cards .feature { grid-column: span 4; grid-row: span 1; }
  .cards .card:nth-child(2) { grid-column: span 2; }
  .cards .card:nth-child(3) { grid-column: span 3; }
  .cards .card:nth-child(4) { grid-column: span 3; }
  .process { grid-template-columns: repeat(4, 1fr); }
  .process li:nth-child(n+3) { border-top: 0; }
  .process li + li { border-left: 1px solid var(--line); }
  .process li { padding: 32px 28px 36px; }
  .contact-card { grid-template-columns: 1.4fr 1fr; align-items: end; padding: 56px; }
  .contact-actions { align-items: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Refinements */
@media (max-width: 519px) {
  .cta-row .btn { flex: 1 1 100%; }
  .steps li { grid-template-columns: 1fr auto; row-gap: 2px; }
  .steps .role { grid-column: 1; grid-row: 1; }
  .steps .msg { grid-column: 1; grid-row: 2; white-space: normal; overflow: visible; padding-left: 1.05rem; }
  .steps .ok, .steps .pulse { grid-column: 2; grid-row: 1 / span 2; }
  .nav .btn-sm { padding: .45rem .85rem; }
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.25fr .75fr; gap: 56px; }
  h1 { font-size: clamp(3.6rem, 5.2vw, 4.5rem); }
}
