/* =========================================================
   Fiscal Task Force SRL — Design System
   Palette derived from the brand logo:
   teal/cyan → blue gradient on deep navy.
   ========================================================= */

:root {
  /* Brand */
  --teal:        #2dd4bf;
  --cyan:        #22d3ee;
  --blue:        #3b82f6;
  --blue-deep:   #2563eb;

  /* Surfaces (dark) */
  --bg:          #070b14;
  --bg-2:        #0b1120;
  --surface:     #0f172a;
  --surface-2:   #131c30;
  --surface-3:   #18233d;

  /* Text */
  --text:        #e8eef9;
  --text-muted:  #9fb0c9;
  --text-dim:    #6b7c98;

  /* Lines / borders */
  --border:      rgba(148, 178, 230, 0.14);
  --border-soft: rgba(148, 178, 230, 0.08);

  /* Gradients */
  --grad: linear-gradient(120deg, var(--teal) 0%, var(--cyan) 38%, var(--blue) 100%);
  --grad-soft: linear-gradient(135deg, rgba(45,212,191,0.16), rgba(59,130,246,0.16));

  /* Effects */
  --radius:      18px;
  --radius-sm:   12px;
  --shadow:      0 24px 60px -20px rgba(2, 8, 23, 0.85);
  --shadow-glow: 0 0 0 1px rgba(45,212,191,0.18), 0 30px 80px -28px rgba(34,211,238,0.35);
  --ring:        0 0 0 3px rgba(45, 212, 191, 0.45);

  /* Type */
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --nav-h: 76px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0; font-weight: 600; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--surface-2); color: var(--text);
  padding: 10px 16px; border-radius: 10px; border: 1px solid var(--border);
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

/* =========================================================
   Animated background
   ========================================================= */
.bg-aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 90% at 50% -10%, #0c1428 0%, var(--bg) 55%); }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; will-change: transform; }
.orb--teal { width: 46vw; height: 46vw; background: radial-gradient(circle, rgba(45,212,191,.55), transparent 70%); top: -12vw; left: -8vw; animation: drift1 22s ease-in-out infinite; }
.orb--blue { width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(59,130,246,.5), transparent 70%); bottom: -18vw; right: -10vw; animation: drift2 26s ease-in-out infinite; }
.orb--cyan { width: 30vw; height: 30vw; background: radial-gradient(circle, rgba(34,211,238,.4), transparent 70%); top: 40%; left: 55%; animation: drift3 30s ease-in-out infinite; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border-soft) 1px, transparent 1px), linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
  opacity: .6;
}
@keyframes drift1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(6vw,4vw) scale(1.1)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-5vw,-3vw) scale(1.08)} }
@keyframes drift3 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-4vw,5vw) scale(1.15)} }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 11, 20, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 40px -28px #000;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(34,211,238,.35)); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-family: var(--font-head); font-size: 1.02rem; letter-spacing: .2px; }
.brand__text small { color: var(--text-dim); font-size: .68rem; letter-spacing: 3px; text-transform: uppercase; }

.nav__list { display: flex; align-items: center; gap: 6px; }
.nav__list a {
  display: inline-block; padding: 10px 16px; border-radius: 10px;
  color: var(--text-muted); font-size: .94rem; font-weight: 600;
  transition: color .2s ease, background .2s ease;
}
.nav__list a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav__cta {
  background: var(--grad); color: #04121f !important;
  font-weight: 700; box-shadow: 0 10px 30px -12px rgba(34,211,238,.6);
}
.nav__cta:hover { filter: brightness(1.08); transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  transition: transform .2s ease, box-shadow .25s ease, filter .2s ease, background .2s ease;
}
.btn--primary { background: var(--grad); color: #04121f; box-shadow: 0 14px 36px -12px rgba(34,211,238,.55); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -12px rgba(34,211,238,.7); filter: brightness(1.05); }
.btn--ghost { background: rgba(255,255,255,0.03); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: rgba(255,255,255,0.07); border-color: rgba(148,178,230,.3); transform: translateY(-2px); }
.btn--full { width: 100%; }

/* =========================================================
   Hero — "Cod. Cifre. Control."
   ========================================================= */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: center; padding-top: var(--nav-h); overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding-block: 60px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 999px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(45,212,191,.18); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* Staggered line reveal */
.hero__title { display: flex; flex-direction: column; font-size: clamp(2.5rem, 5.6vw, 4.3rem); font-weight: 700; letter-spacing: -2px; margin-top: 24px; }
.hero__line { display: block; overflow: hidden; }
.hero__line > span {
  display: inline-block;
  transform: translateY(110%);
  filter: blur(6px);
  animation: lineUp .85s cubic-bezier(.2,.75,.2,1) forwards;
  animation-delay: calc(var(--d) * 160ms + 120ms);
}
.hero__line .punct { font-style: normal; color: var(--teal); }
@keyframes lineUp { to { transform: translateY(0); filter: blur(0); } }

/* Typewriter line */
.hero__type {
  display: inline-flex; align-items: baseline; gap: 8px;
  margin-top: 22px; padding: 10px 18px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: clamp(.92rem, 1.8vw, 1.05rem);
  color: var(--text-muted);
  background: rgba(7,11,20,.55); border: 1px solid var(--border); border-radius: 10px;
}
.type-prompt { color: var(--teal); font-weight: 700; }
.type-word { color: var(--cyan); min-height: 1.3em; }
.type-caret { width: 9px; height: 1.15em; background: var(--teal); border-radius: 2px; align-self: center; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.hero__lead { color: var(--text-muted); font-size: clamp(1rem, 2.2vw, 1.14rem); max-width: 54ch; margin-top: 22px; }
.hero__lead strong { color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
[data-magnetic] { will-change: transform; }

.hero__stats { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; }
.stat__num { font-family: var(--font-head); font-weight: 700; font-size: 2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat__label { color: var(--text-dim); font-size: .85rem; }

/* ---------- Hero scene: logo + terminal + chips ---------- */
.hero__visual { display: flex; justify-content: center; }
.hero-scene {
  position: relative; width: min(520px, 100%); aspect-ratio: 10/11; perspective: 1100px;
  animation: sceneIn 1s cubic-bezier(.2,.75,.2,1) .35s both;
}
@keyframes sceneIn { from { opacity: 0; transform: translateY(34px) scale(.96); } }

.hero-scene__logo {
  position: absolute; top: -2%; left: 50%; transform: translateX(-50%);
  width: 62%;
  filter: drop-shadow(0 0 34px rgba(34,211,238,.38)) drop-shadow(0 18px 60px rgba(59,130,246,.3));
  animation: logoFloat 7s ease-in-out infinite;
  z-index: 1;
}
@keyframes logoFloat {
  0%,100% { transform: translateX(-50%) translateY(0) rotate(-1.2deg); }
  50%     { transform: translateX(-50%) translateY(-16px) rotate(1.2deg); }
}

.terminal {
  position: absolute; left: 0; right: 0; bottom: 4%;
  text-align: left;
  border-radius: 16px; overflow: hidden;
  background: rgba(10, 16, 30, .78);
  border: 1px solid rgba(148,178,230,.2);
  box-shadow: 0 40px 90px -30px rgba(2,8,23,.9), 0 0 0 1px rgba(45,212,191,.08), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: rotateX(4deg) rotateY(-6deg);
  transform-style: preserve-3d;
  transition: transform .25s ease-out;
  z-index: 2;
}
.terminal__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  background: rgba(255,255,255,.035);
  border-bottom: 1px solid rgba(148,178,230,.12);
}
.t-dot { width: 11px; height: 11px; border-radius: 50%; }
.t-dot--r { background: #ff5f57; } .t-dot--y { background: #febc2e; } .t-dot--g { background: #28c840; }
.terminal__title { margin-left: 10px; font-family: ui-monospace, Consolas, monospace; font-size: .74rem; color: var(--text-dim); letter-spacing: .4px; }
.terminal__body {
  margin: 0; padding: 16px 18px; min-height: 215px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: .8rem; line-height: 1.75; color: var(--text-muted);
  white-space: pre-wrap; word-break: break-word;
}
/* syntax colors */
.tk-k { color: #c084fc; }            /* keyword  */
.tk-v { color: #7dd3fc; }            /* variable */
.tk-f { color: var(--teal); }        /* function */
.tk-s { color: #fbbf24; }            /* string   */
.tk-n { color: #f0abfc; }            /* number   */
.tk-c { color: var(--text-dim); }    /* comment  */
.tk-o { color: var(--text-muted); }  /* operator */
.tk-ok { color: #34d399; font-weight: 600; }
.term-caret { display: inline-block; width: 8px; height: 1.05em; background: var(--teal); vertical-align: text-bottom; border-radius: 2px; animation: caret 1s steps(1) infinite; }

/* floating chips */
.chip {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px;
  font-family: var(--font-head); font-size: .78rem; font-weight: 600; color: var(--text);
  background: rgba(15,23,42,.66); border: 1px solid rgba(148,178,230,.22);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px -14px rgba(2,8,23,.8);
  will-change: transform;
  animation: chipFloat 5.5s ease-in-out infinite;
}
.chip svg { width: 14px; height: 14px; color: var(--teal); }
.chip--1 { top: 9%;  left: -4%;  animation-delay: 0s;   }
.chip--2 { top: 30%; right: -6%; animation-delay: 1.3s; }
.chip--2 svg { color: var(--cyan); }
.chip--3 { top: 56%; left: -7%;  animation-delay: 2.1s; }
.chip--3 svg { color: var(--blue); }
.chip--4 { top: 2%;  right: 2%;  animation-delay: 3s;   }
@keyframes chipFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--border); border-radius: 14px; display: grid; justify-items: center; padding-top: 7px; }
.scroll-cue span { width: 4px; height: 8px; border-radius: 4px; background: var(--teal); animation: scrolly 1.7s ease-in-out infinite; }
@keyframes scrolly { 0%{opacity:0; transform:translateY(-3px)} 40%{opacity:1} 100%{opacity:0; transform:translateY(12px)} }

/* =========================================================
   Marquee
   ========================================================= */
.marquee { overflow: hidden; border-block: 1px solid var(--border); background: rgba(255,255,255,0.015); padding: 18px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 28s linear infinite; }
.marquee__track span { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--text-muted); white-space: nowrap; }
.marquee__track .sep { color: var(--teal); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   Sections
   ========================================================= */
.section { padding-block: clamp(72px, 11vw, 130px); position: relative; }
.section--muted { background: linear-gradient(180deg, transparent, rgba(15,23,42,.55) 12%, rgba(15,23,42,.55) 88%, transparent); }

.section__head { max-width: 720px; margin: 0 auto clamp(44px, 6vw, 72px); text-align: center; }
.section__title { font-size: clamp(1.9rem, 4.4vw, 2.9rem); letter-spacing: -1px; margin-top: 18px; }
.section__sub { color: var(--text-muted); margin-top: 16px; font-size: 1.06rem; }

/* ---------- Pillars (Servicii) ---------- */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pillar {
  position: relative; padding: 38px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border); overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.pillar::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); opacity: .9; }
.pillar:hover { transform: translateY(-6px); border-color: rgba(45,212,191,.3); box-shadow: var(--shadow); }
.pillar--alt::before { background: linear-gradient(120deg, var(--blue), var(--cyan)); }

.pillar__icon, .card__icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border); color: var(--teal); margin-bottom: 22px;
}
.pillar__icon svg, .card__icon svg { width: 28px; height: 28px; }
.pillar--alt .pillar__icon { color: var(--blue); }
.pillar__title { font-size: 1.5rem; }
.pillar__desc { color: var(--text-muted); margin-top: 10px; }

.feature-list { margin-top: 24px; display: grid; gap: 14px; }
.feature-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--text); font-size: .98rem; }
.feature-list .ic { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; color: var(--teal); }
.pillar--alt .feature-list .ic { color: var(--cyan); }

/* ---------- Cards (Avantaje) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  padding: 30px; border-radius: var(--radius);
  background: rgba(15,23,42,.5); border: 1px solid var(--border);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.card:hover { transform: translateY(-5px); border-color: rgba(45,212,191,.3); background: rgba(19,28,48,.7); }
.card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: .96rem; }
.card__icon { margin-bottom: 18px; }

/* ---------- Timeline (Proces) ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; position: relative; }
.timeline__item {
  position: relative; padding: 30px 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  transition: transform .3s ease, border-color .3s ease;
}
.timeline__item:hover { transform: translateY(-5px); border-color: rgba(59,130,246,.32); }
.timeline__num {
  font-family: var(--font-head); font-weight: 700; font-size: 2.4rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 12px;
}
.timeline__item h3 { font-size: 1.2rem; margin-bottom: 8px; }
.timeline__item p { color: var(--text-muted); font-size: .94rem; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.about .section__title { text-align: left; }
.about__text p { color: var(--text-muted); margin-top: 18px; }
.about__text .btn { margin-top: 28px; }
.about__values { display: grid; gap: 16px; }
.about__values li {
  padding: 24px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: rgba(15,23,42,.5);
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .3s ease, border-color .3s ease;
}
.about__values li:hover { transform: translateX(6px); border-color: rgba(45,212,191,.3); }
.about__values strong { font-family: var(--font-head); font-size: 1.25rem; }
.about__values span { color: var(--text-muted); font-size: .95rem; }

/* =========================================================
   Contact / CTA
   ========================================================= */
.cta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  padding: clamp(32px, 5vw, 56px); border-radius: 26px;
  background: linear-gradient(135deg, rgba(45,212,191,.1), rgba(59,130,246,.1)), var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  align-items: center;
}
.cta .section__title { text-align: left; }
.cta__text p { color: var(--text-muted); margin-top: 16px; }
.contact-meta { margin-top: 26px; display: grid; gap: 14px; }
.contact-meta li { display: flex; align-items: center; gap: 12px; color: var(--text); }
.contact-meta .ic { width: 22px; height: 22px; color: var(--teal); flex-shrink: 0; }
.contact-meta a:hover { color: var(--teal); }

.cta__form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .86rem; font-weight: 600; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  background: rgba(7,11,20,.6); border: 1px solid var(--border); color: var(--text);
  font-family: var(--font-body); font-size: .98rem; transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(45,212,191,.18); outline: none; }
.field--invalid input, .field--invalid textarea { border-color: #f87171; }
.field__error { color: #f87171; font-size: .8rem; min-height: 0; }
.form-status { font-size: .92rem; min-height: 1.2em; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: #f87171; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-top: 56px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-bottom: 36px; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__logo { width: 48px; height: 48px; object-fit: contain; }
.footer__brand strong { font-family: var(--font-head); }
.footer__brand p { color: var(--text-dim); font-size: .9rem; }
.footer__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__nav a { color: var(--text-muted); font-size: .94rem; transition: color .2s ease; }
.footer__nav a:hover { color: var(--teal); }
.footer__bottom {
  border-top: 1px solid var(--border-soft); padding-block: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--text-dim); font-size: .85rem;
}

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero { min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; gap: 52px; text-align: center; }
  .hero__content { display: flex; flex-direction: column; align-items: center; }
  .hero__actions, .hero__stats { justify-content: center; }
  .hero-scene { width: min(440px, 100%); }
  .terminal { transform: none; }
  .chip--1 { left: 0; } .chip--3 { left: 0; }
  .chip--2 { right: 0; } .chip--4 { right: 0; }
  .scroll-cue { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .about .section__title { text-align: center; }
  .cta { grid-template-columns: 1fr; }
  .cta .section__title { text-align: center; }
}

@media (max-width: 720px) {
  .nav { position: fixed; inset: var(--nav-h) 0 auto 0; }
  .nav__list {
    flex-direction: column; align-items: stretch; gap: 8px;
    background: rgba(11,17,32,.96); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border); padding: 18px clamp(20px,5vw,48px) 26px;
    transform: translateY(-120%); transition: transform .35s cubic-bezier(.2,.7,.2,1);
  }
  .nav__list.open { transform: translateY(0); }
  .nav__list a { padding: 14px 16px; font-size: 1rem; }
  .nav__cta { text-align: center; }
  .nav-toggle { display: flex; }

  .pillars { grid-template-columns: 1fr; }
  .pillar { padding: 30px 26px; }
}

@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .hero__stats { gap: 24px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .hero-scene { aspect-ratio: auto; }
  .hero-scene__logo { position: relative; top: 0; width: 54%; margin-bottom: 4%; }
  .terminal { position: relative; bottom: 0; }
  .terminal__body { min-height: 190px; font-size: .72rem; }
  .chip--3, .chip--4 { display: none; }
  .chip--1 { top: 4%; } .chip--2 { top: 22%; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
