/* ===== Design tokens ===== */
:root {
  --green: #97FE98;
  --green-dim: #6fd87a;
  --ink: #030503;
  --cream: #EFFFDF;
  --bg: #030503;
  --bg-soft: #070a07;
  --panel: rgba(151, 254, 152, 0.04);
  --panel-border: rgba(151, 254, 152, 0.14);
  --text: #eaf3ea;
  --muted: #93a394;
  --radius: 18px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--green); color: var(--ink); }

/* ===== Background layers ===== */
.bg-grid {
  position: fixed; inset: 0; z-index: -3;
  background-image:
    linear-gradient(rgba(151,254,152,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151,254,152,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-glow {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(600px 400px at 75% -5%, rgba(151,254,152,0.16), transparent 70%),
    radial-gradient(700px 500px at 10% 10%, rgba(151,254,152,0.07), transparent 70%);
}
.noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(3,5,3,0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--panel-border);
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { color: var(--green); display: flex; }
.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700; letter-spacing: 0.22em; font-size: 1.05rem;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 0.9rem; color: var(--muted); font-weight: 500;
  position: relative; transition: color .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--green); transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { font-size: 0.85rem; padding: 9px 18px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); transition: .3s var(--ease); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.95rem; padding: 13px 26px;
  border-radius: 999px; cursor: pointer; transition: all .3s var(--ease);
  border: 1px solid transparent; white-space: nowrap;
}
.btn-primary {
  background: var(--green); color: var(--ink);
  box-shadow: 0 0 0 0 rgba(151,254,152,0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -8px rgba(151,254,152,0.55); }
.btn-ghost { border-color: var(--panel-border); color: var(--text); background: var(--panel); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  max-width: var(--maxw); margin: 0 auto;
  padding: 140px clamp(20px, 5vw, 40px) 80px;
}
.hero-inner { max-width: 760px; position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: "JetBrains Mono", monospace; font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--green);
  padding: 7px 15px; border: 1px solid var(--panel-border);
  border-radius: 999px; background: var(--panel); margin-bottom: 28px;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(151,254,152,.6);} 70%{ box-shadow: 0 0 0 10px rgba(151,254,152,0);} 100%{box-shadow:0 0 0 0 rgba(151,254,152,0);} }

.hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 26px;
}
.grad {
  background: linear-gradient(100deg, var(--green), var(--cream) 60%, var(--green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(1rem, 2vw, 1.22rem); color: var(--muted); max-width: 580px; margin-bottom: 38px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 64px; }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 620px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: "Space Grotesk", sans-serif; font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; color: var(--green); }
.stat-label { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em; }

/* Hero orbit */
.hero-orbit {
  position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: 460px; height: 460px; z-index: 1; opacity: 0.9;
}
.orbit-ring { position: absolute; inset: 0; border: 1px solid var(--panel-border); border-radius: 50%; }
.orbit-ring.r1 { inset: 0; animation: spin 28s linear infinite; border-top-color: var(--green); }
.orbit-ring.r2 { inset: 60px; animation: spin 20s linear infinite reverse; border-left-color: rgba(151,254,152,0.4); }
.orbit-ring.r3 { inset: 130px; animation: spin 14s linear infinite; border-bottom-color: rgba(239,255,223,0.4); }
.orbit-core {
  position: absolute; inset: 0; margin: auto; width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, var(--green), transparent 70%); filter: blur(4px); opacity: 0.7;
  animation: breathe 4s ease-in-out infinite;
}
.orbit-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); }
.orbit-dot.d1 { top: -5px; left: 50%; animation: spin 28s linear infinite; transform-origin: 5px 235px; }
.orbit-dot.d2 { top: 60px; left: 50%; background: var(--cream); box-shadow: 0 0 14px var(--cream); animation: spin 20s linear infinite reverse; transform-origin: 5px 175px; }
.orbit-dot.d3 { top: 130px; left: 50%; animation: spin 14s linear infinite; transform-origin: 5px 105px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.18); opacity: 1; } }

/* ===== Marquee ===== */
.marquee { border-top: 1px solid var(--panel-border); border-bottom: 1px solid var(--panel-border); overflow: hidden; padding: 18px 0; background: var(--bg-soft); }
.marquee-track { display: flex; align-items: center; gap: 34px; white-space: nowrap; width: max-content; animation: scroll 28s linear infinite; }
.marquee-track span { font-family: "Space Grotesk", sans-serif; font-weight: 600; letter-spacing: 0.12em; font-size: 1rem; color: var(--muted); }
.marquee-track i { color: var(--green); font-style: normal; font-size: 0.7rem; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 12vw, 140px) clamp(20px, 5vw, 40px); }
.section-head { max-width: 720px; margin-bottom: 64px; }
.kicker { font-family: "JetBrains Mono", monospace; font-size: 0.8rem; color: var(--green); letter-spacing: 0.08em; }
.section-title { font-family: "Space Grotesk", sans-serif; font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin: 14px 0 18px; }
.section-lead { color: var(--muted); font-size: clamp(1rem, 2vw, 1.15rem); }

/* ===== Service cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); padding: 34px 28px; overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, background .4s;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(400px 200px at var(--mx,50%) var(--my,0%), rgba(151,254,152,0.12), transparent 60%);
  transition: opacity .4s; pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: rgba(151,254,152,0.4); background: rgba(151,254,152,0.06); }
.card:hover::before { opacity: 1; }
.card.feature { border-color: rgba(151,254,152,0.35); background: rgba(151,254,152,0.07); }
.card-index { font-family: "JetBrains Mono", monospace; font-size: 0.8rem; color: var(--muted); position: absolute; top: 24px; right: 26px; }
.card-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(151,254,152,0.1); border: 1px solid var(--panel-border); color: var(--green); margin-bottom: 22px; }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-family: "Space Grotesk", sans-serif; font-size: 1.35rem; font-weight: 600; margin-bottom: 12px; }
.card > p { color: var(--muted); font-size: 0.96rem; margin-bottom: 20px; }
.card-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.card-list li { font-size: 0.9rem; color: var(--text); padding-left: 22px; position: relative; }
.card-list li::before { content: "›"; position: absolute; left: 4px; color: var(--green); font-weight: 700; }

/* ===== Capabilities ===== */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--panel-border); border: 1px solid var(--panel-border); border-radius: var(--radius); overflow: hidden; }
.cap { background: var(--bg); padding: 36px 30px; transition: background .35s; }
.cap:hover { background: rgba(151,254,152,0.05); }
.cap-no { font-family: "JetBrains Mono", monospace; color: var(--green); font-size: 0.85rem; }
.cap h4 { font-family: "Space Grotesk", sans-serif; font-size: 1.2rem; font-weight: 600; margin: 14px 0 10px; }
.cap p { color: var(--muted); font-size: 0.92rem; }

/* ===== Process ===== */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; padding: 30px 24px; border: 1px solid var(--panel-border); border-radius: var(--radius); background: var(--panel); transition: transform .35s var(--ease), border-color .35s; }
.step:hover { transform: translateY(-5px); border-color: rgba(151,254,152,0.4); }
.step-no { font-family: "Space Grotesk", sans-serif; font-size: 2.4rem; font-weight: 700; color: rgba(151,254,152,0.18); }
.step h4 { font-family: "Space Grotesk", sans-serif; font-size: 1.2rem; margin: 6px 0 10px; }
.step p { color: var(--muted); font-size: 0.9rem; }

/* ===== Careers ===== */
.job { display: grid; grid-template-columns: 0.85fr 1.4fr; gap: 28px; align-items: start; }
.job-side { position: sticky; top: 110px; background: linear-gradient(160deg, rgba(151,254,152,0.08), rgba(151,254,152,0.02)); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 34px 30px; }
.job-tag { font-family: "JetBrains Mono", monospace; font-size: 0.75rem; color: var(--ink); background: var(--green); padding: 5px 12px; border-radius: 999px; font-weight: 600; }
.job-title { font-family: "Space Grotesk", sans-serif; font-size: 1.6rem; font-weight: 700; margin: 18px 0 22px; }
.job-meta { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.job-meta li { display: flex; justify-content: space-between; font-size: 0.92rem; padding-bottom: 12px; border-bottom: 1px solid var(--panel-border); }
.job-meta li span { color: var(--muted); }
.job-note { font-size: 0.82rem; color: var(--muted); margin-top: 16px; }
.job-note a { color: var(--green); }

.job-main { background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 38px 34px; }
.req-head { font-family: "Space Grotesk", sans-serif; font-size: 1.3rem; margin-bottom: 24px; }
.req-list { list-style: none; display: flex; flex-direction: column; gap: 4px; counter-reset: r; }
.req-list li { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--panel-border); }
.req-list li:last-child { border-bottom: 0; }
.req-num { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(151,254,152,0.12); border: 1px solid var(--panel-border); color: var(--green); font-family: "JetBrains Mono", monospace; font-weight: 600; font-size: 0.9rem; }
.req-list strong { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.04rem; display: block; margin-bottom: 4px; }
.req-list p { color: var(--muted); font-size: 0.9rem; }

/* ===== CTA ===== */
.cta { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px) 100px; }
.cta-inner {
  text-align: center; padding: clamp(50px, 8vw, 90px) 30px;
  border: 1px solid var(--panel-border); border-radius: 28px;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(151,254,152,0.14), transparent 70%),
    var(--bg-soft);
  position: relative; overflow: hidden;
}
.cta-inner h2 { font-family: "Space Grotesk", sans-serif; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; }
.cta-inner p { color: var(--muted); font-size: 1.1rem; margin-bottom: 34px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--panel-border); background: var(--bg-soft); }
.footer-top { max-width: var(--maxw); margin: 0 auto; padding: 60px clamp(20px, 5vw, 40px) 40px; display: grid; grid-template-columns: 1.3fr 2fr; gap: 40px; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; max-width: 320px; margin-top: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h5 { font-family: "Space Grotesk", sans-serif; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
.footer-cols a { display: block; color: var(--muted); font-size: 0.9rem; padding: 5px 0; transition: color .25s; }
.footer-cols a:hover { color: var(--green); }
.footer-bottom { max-width: var(--maxw); margin: 0 auto; padding: 22px clamp(20px, 5vw, 40px); border-top: 1px solid var(--panel-border); display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--muted); }
.footer-domain { font-family: "JetBrains Mono", monospace; color: var(--green); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-orbit { display: none; }
  .cards, .cap-grid, .timeline { grid-template-columns: 1fr 1fr; }
  .job { grid-template-columns: 1fr; }
  .job-side { position: static; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 18px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(3,5,3,0.96); backdrop-filter: blur(14px);
    padding: 24px clamp(20px, 5vw, 56px); border-bottom: 1px solid var(--panel-border);
  }
  .cards, .cap-grid, .timeline, .hero-stats, .footer-cols { grid-template-columns: 1fr; }
  .hero-stats { gap: 18px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
