/* ════════════════════════════════════════════════════════════════
   Ledger Trace — marketing site
   ════════════════════════════════════════════════════════════════ */

:root {
  --ink:        #14172a;   /* near-black indigo */
  --ink-2:      #2b2f48;
  --muted:      #5b6178;
  --subtle:     #8b91a8;
  --line:       #e6e8f2;
  --paper:      #ffffff;
  --paper-2:    #f6f7fc;   /* light section bg */
  --paper-3:    #eef0fa;

  --night:      #0d0f1a;   /* dark hero/sandbox bg */
  --night-2:    #141728;
  --night-3:    #1c2036;
  --night-line: #2a2f4a;
  --night-fg:   #eaecf6;
  --night-mut:  #9aa0bd;

  --accent:     #6366f1;   /* indigo */
  --accent-2:   #818cf8;   /* periwinkle */
  --accent-3:   #a5b4fc;   /* soft periwinkle */

  --teal:       #5ec2c8;
  --rose:       #f17a96;
  --gold:       #e6bd5a;
  --mint:       #54c79a;

  --radius:     16px;
  --radius-lg:  22px;
  --maxw:       1180px;
  --shadow-sm:  0 1px 2px rgba(20,23,42,.06);
  --shadow-md:  0 16px 40px -18px rgba(40,44,90,.28);
  --shadow-lg:  0 40px 90px -30px rgba(40,44,90,.40);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02","cv03","cv11";
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.01em; }
p  { margin: 0; }

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn {
  --b: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: .95rem;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px -10px rgba(99,102,241,.7); }
.btn-primary:hover { background: #5458e6; box-shadow: 0 14px 30px -10px rgba(99,102,241,.75); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper-2); border-color: #d6d9ea; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-block { width: 100%; }

/* On dark backgrounds */
.hero .btn-ghost, .demo-section .btn-ghost, .contact-section .btn-ghost {
  color: var(--night-fg); border-color: rgba(255,255,255,.18);
}
.hero .btn-ghost:hover, .demo-section .btn-ghost:hover, .contact-section .btn-ghost:hover {
  background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.3);
}

/* ─── Nav ─────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,15,26,.72); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background .3s ease;
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--night-fg); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 18px -6px rgba(99,102,241,.8); flex: none;
}
.brand-mark.sm { width: 30px; height: 30px; border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.02rem; letter-spacing: -.01em; }
.brand-text em { font-style: normal; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--night-mut); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--night-mut); font-size: .92rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--night-fg); }
.nav-cta { margin-left: 4px; }
.nav-toggle { display: none; background: none; border: none; color: var(--night-fg); cursor: pointer; padding: 6px; }

/* ─── Hero ────────────────────────────────────────────────────── */
.hero { position: relative; background: var(--night); color: var(--night-fg); overflow: hidden; padding: 96px 0 104px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 40%, transparent 100%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.hero-glow-1 { width: 560px; height: 560px; left: -120px; top: -160px; background: radial-gradient(circle, rgba(99,102,241,.55), transparent 60%); }
.hero-glow-2 { width: 620px; height: 620px; right: -160px; top: -80px; background: radial-gradient(circle, rgba(129,140,248,.4), transparent 62%); }
.hero-inner { position: relative; text-align: center; max-width: 880px; margin-inline: auto; }
.eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-3); padding: 7px 14px; border: 1px solid rgba(165,180,252,.3);
  border-radius: 999px; background: rgba(99,102,241,.1); margin-bottom: 26px;
}
.hero-title { font-size: clamp(2.3rem, 5.6vw, 3.8rem); font-weight: 900; letter-spacing: -.03em; }
.grad { background: linear-gradient(100deg, var(--accent-2), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin: 26px auto 0; max-width: 588px; font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--night-mut); text-align: center; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hero-trust { display: inline-flex; align-items: center; gap: 8px; margin-top: 34px; font-size: .86rem; color: var(--night-mut); }
.hero-trust svg { color: var(--mint); }

/* ─── Hero now hosts the live sandbox ─────────────────────────── */
.hero { padding-top: 44px; padding-bottom: 56px; }
.hero-inner { margin-bottom: 22px; }
.stage-wrap { position: relative; }
.stage-label { display: inline-flex; align-items: center; gap: 9px; font-size: .82rem; color: var(--night-mut); margin-bottom: 13px; font-weight: 500; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(84,199,154,.55); animation: pulse 1.8s infinite; flex: none; }
.stage-wrap .demo-note { text-align: center; color: var(--night-mut); font-size: .82rem; margin-top: 18px; }

/* ─── Platform screenshots (dark app shots on light bg) ───────── */
.platform { background: linear-gradient(180deg, #ffffff, var(--paper-2)); }
.frame { background: #0d0f1a; border: 1px solid #20243a; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); }
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 9px 14px; background: #14172a; border-bottom: 1px solid #20243a; }
.frame-bar .dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.dot.r { background: #f17a96; } .dot.y { background: #e6bd5a; } .dot.g { background: #54c79a; }
.frame-bar b { margin-left: 8px; font-size: .76rem; color: #9aa0bd; font-weight: 600; letter-spacing: .02em; }
.frame img { width: 100%; display: block; cursor: zoom-in; transition: transform .4s cubic-bezier(.22,.61,.36,1); }
.frame:hover img { transform: scale(1.045); }

/* ─── Floating back-to-top ────────────────────────────────────── */
.to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: var(--accent); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(99,102,241,.7);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .15s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: #5458e6; }

/* ─── Lightbox ────────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 4vh 4vw; background: rgba(7,9,18,.88); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}
.lightbox.open { opacity: 1; visibility: visible; pointer-events: auto; }
.lightbox img {
  max-width: 100%; max-height: 92vh; width: auto; border-radius: 12px;
  border: 1px solid #2a2f4a; box-shadow: 0 50px 130px -24px rgba(0,0,0,.85);
  cursor: zoom-out; transform: scale(.98); transition: transform .25s ease;
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 18px; right: 28px; background: none; border: none;
  color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; opacity: .75; transition: opacity .15s;
}
.lightbox-close:hover { opacity: 1; }
.feature-shot { display: grid; grid-template-columns: 1.45fr 1fr; gap: 48px; align-items: center; margin-bottom: 60px; }
.feature-shot .frame { transition: transform .3s ease; }
.feature-shot:hover .frame { transform: translateY(-3px); }
.feature-shot-copy .kicker { margin-bottom: 10px; }
.feature-shot-copy h3 { font-size: 1.55rem; margin-bottom: 14px; }
.feature-shot-copy p { color: var(--muted); font-size: 1.04rem; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 27px; color: var(--ink-2); font-weight: 500; font-size: .97rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: -1px; color: var(--mint); font-weight: 800; font-size: 1.05rem; }
.shot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.shot { margin: 0; }
.shot .frame { transition: transform .25s ease, box-shadow .25s ease; }
.shot:hover .frame { transform: translateY(-4px); box-shadow: 0 50px 100px -36px rgba(40,44,90,.5); }
.shot figcaption { margin-top: 16px; color: var(--muted); font-size: .93rem; line-height: 1.55; }
.shot figcaption strong { color: var(--ink); }

/* ─── Trust bar ───────────────────────────────────────────────── */
.trustbar { background: var(--night-2); border-bottom: 1px solid var(--night-line); }
.trust-inner { display: flex; align-items: stretch; justify-content: space-between; gap: 10px; padding: 26px 24px; flex-wrap: wrap; }
.trust-item { display: flex; flex-direction: column; gap: 3px; min-width: 180px; flex: 1; }
.trust-item strong { color: var(--night-fg); font-size: .98rem; }
.trust-item span { color: var(--night-mut); font-size: .82rem; }
.trust-divider { width: 1px; background: var(--night-line); }

/* ─── Sections ────────────────────────────────────────────────── */
.section { padding: 46px 0; }
.section.light { background: var(--paper-2); }
.section-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.kicker { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }

/* Tighter vertical rhythm between specific sections (gap = prev bottom + this top) */
.platform { padding-bottom: 40px; }
#features, #who, #about, #platform { padding-top: 30px; }
#who { padding-bottom: 28px; }
#who .section-head p { text-align: left; }
#how .section-head { max-width: 900px; }   /* keep the heading on one line */
#who .section-head, #platform .section-head { max-width: 1000px; }
#who .section-head h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
@media (min-width: 680px) { #who .section-head h2, #platform .section-head h2 { white-space: nowrap; } }
.about-section { padding-bottom: 34px; }
.contact-section { padding-top: 38px; }

/* ─── Demo / sandbox ──────────────────────────────────────────── */
.demo-section { background: var(--night); color: var(--night-fg); position: relative; overflow: hidden; }
.demo-section .kicker { color: var(--accent-3); }
.demo-section .section-head p { color: var(--night-mut); }
.sandbox {
  background: linear-gradient(180deg, var(--night-2), #10121f);
  border: 1px solid var(--night-line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.sandbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--night-line); background: rgba(255,255,255,.02); flex-wrap: wrap; }
.sandbox-legend { display: flex; gap: 16px; flex-wrap: wrap; }
.legend-item { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--night-mut); }
.legend-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.legend-dot.sq { border-radius: 3px; }
.sandbox-actions { display: flex; gap: 10px; }
.sandbox-stage { position: relative; height: 540px; background:
  radial-gradient(ellipse 70% 70% at 50% 45%, rgba(99,102,241,.07), transparent 70%); }
#graph { width: 100%; height: 100%; cursor: grab; touch-action: none; }
#graph:active { cursor: grabbing; }
.sandbox-hint { position: absolute; left: 16px; bottom: 14px; font-size: .76rem; color: var(--night-mut); background: rgba(13,15,26,.6); padding: 5px 10px; border-radius: 8px; border: 1px solid var(--night-line); pointer-events: none; }
.node-card {
  position: absolute; top: 16px; right: 16px; width: 256px; max-height: calc(100% - 32px); overflow-y: auto;
  background: rgba(20,23,40,.95); backdrop-filter: blur(8px);
  border: 1px solid var(--night-line); border-radius: 14px; padding: 14px 16px;
  box-shadow: var(--shadow-md); font-size: .85rem;
}
.node-card .nc-type { font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-3); }
.node-card .nc-name { font-weight: 700; color: var(--night-fg); margin: 3px 0 8px; font-size: 1.02rem; }
.node-card .nc-row { display: flex; justify-content: space-between; gap: 10px; color: var(--night-mut); padding: 4px 0; border-top: 1px solid var(--night-line); font-size: .8rem; }
.node-card .nc-row span:last-child { color: var(--night-fg); font-weight: 500; text-align: right; }
.node-card .nc-linked { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--night-line); }
.node-card .nc-linked-h { font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-3); margin-bottom: 7px; }
.node-card .nc-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.node-card .nc-chip { display: inline-flex; align-items: center; gap: 5px; font-size: .68rem; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--night-line); color: var(--night-fg); max-width: 100%; }
.node-card .nc-chip i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.node-card .nc-chip.more { color: var(--accent-3); }

.findings { border-top: 1px solid var(--night-line); padding: 18px; background: rgba(99,102,241,.05); }
.findings-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.findings-head strong { color: var(--night-fg); font-size: .98rem; }
.findings-sub { color: var(--night-mut); font-size: .82rem; }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 0 rgba(241,122,150,.6); animation: pulse 1.6s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(241,122,150,.55);} 70% { box-shadow: 0 0 0 9px rgba(241,122,150,0);} 100% { box-shadow: 0 0 0 0 rgba(241,122,150,0);} }
.findings-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.finding {
  display: flex; gap: 11px; padding: 13px 15px; border-radius: 12px;
  background: rgba(20,23,40,.7); border: 1px solid var(--night-line);
  opacity: 0; transform: translateY(8px); animation: rise .5s forwards;
}
@keyframes rise { to { opacity: 1; transform: none; } }
.finding-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.finding-ico.sev-high { background: rgba(241,122,150,.16); color: var(--rose); }
.finding-ico.sev-med { background: rgba(230,189,90,.16); color: var(--gold); }
.finding b { display: block; color: var(--night-fg); font-size: .9rem; }
.finding p { color: var(--night-mut); font-size: .8rem; margin-top: 2px; }
.demo-note { text-align: center; color: var(--night-mut); font-size: .82rem; margin-top: 22px; }

/* ─── Features ────────────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.feature {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d8dbef; }
.feature-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; }
.feature-ico svg { width: 23px; height: 23px; }
.ico-ai { background: rgba(99,102,241,.12); color: var(--accent); }
.ico-net { background: rgba(94,194,200,.14); color: #2f9aa0; }
.ico-id { background: rgba(129,140,248,.14); color: #5b63d6; }
.ico-risk { background: rgba(241,122,150,.14); color: #d4486a; }
.ico-data { background: rgba(230,189,90,.16); color: #b58a23; }
.ico-alert { background: rgba(245,158,11,.14); color: #c2780c; }
.ico-lock { background: rgba(84,199,154,.15); color: #2f9b6e; }
.ico-time { background: rgba(99,102,241,.12); color: var(--accent); }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .95rem; }

/* ─── How it works ────────────────────────────────────────────── */
.how-section { background: var(--paper); }
.steps { display: flex; align-items: stretch; gap: 8px; justify-content: center; flex-wrap: wrap; }
.step { flex: 1; min-width: 250px; max-width: 340px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step-num { font-size: 2rem; font-weight: 900; letter-spacing: -.03em;
  background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .94rem; }
.step-arrow { align-self: center; font-size: 1.6rem; color: var(--accent-3); font-weight: 700; }
.how-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 36px; align-items: center; margin-top: 40px; }
.how-col { display: flex; flex-direction: column; gap: 30px; }
.how-figure { margin: 0 auto; max-width: 575px; text-align: center; }
.how-figure .frame { transition: transform .25s ease, box-shadow .25s ease; }
.how-figure:hover .frame { transform: translateY(-4px); box-shadow: 0 50px 100px -36px rgba(40,44,90,.5); }
.how-figure figcaption { margin-top: 16px; color: var(--muted); font-size: .93rem; line-height: 1.55; max-width: 680px; margin-left: auto; margin-right: auto; }

/* ─── Who it's for ────────────────────────────────────────────── */
.who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.who-card {
  display: flex; align-items: center; gap: 12px; padding: 20px 22px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm);
  font-weight: 600; color: var(--ink-2); transition: transform .2s, box-shadow .2s;
}
.who-card::before { content: ""; width: 9px; height: 26px; border-radius: 5px; background: linear-gradient(var(--accent), var(--accent-2)); flex: none; }
.who-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ─── About ───────────────────────────────────────────────────── */
.about-section { background: var(--paper-2); }
.about-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-copy h2 { margin-bottom: 18px; }
.about-copy p { color: var(--muted); margin-bottom: 14px; font-size: 1.02rem; }
.about-copy strong { color: var(--ink); }
.about-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.about-points li { display: flex; align-items: flex-start; gap: 11px; color: var(--ink-2); font-weight: 500; font-size: .98rem; }
.about-points svg { color: var(--mint); margin-top: 2px; flex: none; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.stat-card strong { display: block; font-size: 1.05rem; color: var(--accent); margin-bottom: 6px; }
.stat-card span { color: var(--muted); font-size: .9rem; }

/* ─── Contact ─────────────────────────────────────────────────── */
.contact-section { background: var(--night); color: var(--night-fg); }
.contact-section .kicker { color: var(--accent-3); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contact-copy h2 { margin-bottom: 16px; }
.contact-copy p { color: var(--night-mut); font-size: 1.05rem; }
.contact-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.contact-points li { position: relative; padding-left: 24px; color: var(--night-fg); font-size: .96rem; }
.contact-points li::before { content: "→"; position: absolute; left: 0; color: var(--accent-2); font-weight: 700; }
.contact-form { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-lg); }
.form-head { margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--night-line); }
.form-head h3 { color: var(--night-fg); font-size: 1.2rem; margin-bottom: 5px; letter-spacing: -.01em; }
.form-head p { color: var(--night-mut); font-size: .88rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-grid .field { margin-bottom: 0; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .78rem; font-weight: 600; color: var(--night-mut); margin-bottom: 6px; }
.field label .opt { color: var(--subtle); font-weight: 400; text-transform: none; letter-spacing: 0; }
.field input, .field textarea, .contact-form select {
  width: 100%; font: inherit; font-size: .94rem; color: var(--night-fg);
  background: #0f1120; border: 1px solid var(--night-line); border-radius: 10px; padding: 11px 13px; resize: vertical;
  transition: border-color .15s, box-shadow .15s;
}
.contact-form select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa0bd' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
.field input:focus, .field textarea:focus, .contact-form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,.22); }
.field input::placeholder, .field textarea::placeholder { color: #5a6080; }
.form-fine { margin-top: 13px; color: var(--night-mut); font-size: .76rem; text-align: center; }
.form-note { margin-top: 12px; color: var(--mint); font-size: .9rem; text-align: center; }
.form-error { margin-top: 12px; color: var(--flag, #f17a96); font-size: .9rem; text-align: center; }
.form-error a { color: inherit; text-decoration: underline; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ─── Footer ──────────────────────────────────────────────────── */
.footer { background: #090b14; color: var(--night-mut); padding: 44px 0 36px; border-top: 1px solid var(--night-line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--night-fg); }
.footer-brand .brand-text { text-align: left; gap: 3px; line-height: 1.15; }
.footer-brand .brand-text strong { font-size: 1rem; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: .9rem; transition: color .15s; }
.footer-links a:hover { color: var(--night-fg); }
.footer-legal { text-align: right; font-size: .82rem; max-width: 540px; padding-right: 60px; }
.footer-legal > span { display: block; }
.footer-fine { color: var(--subtle); margin-top: 3px; }
@media (max-width: 600px) { .footer-inner { flex-direction: column; align-items: flex-start; } .footer-legal { text-align: left; padding-right: 0; } }

/* ─── Reveal animation ────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 36px; }
  .feature-shot { grid-template-columns: 1fr; gap: 28px; }
  .feature-shot-copy { order: 2; }
  .shot-grid { grid-template-columns: 1fr; gap: 28px; }
  .how-figures { grid-template-columns: 1fr; gap: 28px; }
  .trust-divider { display: none; }
  .step-arrow { transform: rotate(90deg); }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 4px; position: absolute; top: 66px; left: 0; right: 0;
    background: var(--night-2); border-bottom: 1px solid var(--night-line); padding: 12px 24px 18px;
  }
  .nav.open .nav-links a { padding: 8px 0; }
  .section { padding: 64px 0; }
  .hero { padding: 70px 0 78px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .sandbox-stage { height: 460px; }
  .footer-legal { text-align: left; }
}
@media (max-width: 460px) {
  .about-stats { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}
