/* =========================================================================
   LogHydra — Landing Page
   Brand: deep-violet hydra + cyan hex-node core ("the pattern, never the person")
   ========================================================================= */

:root {
  /* surfaces */
  --bg:        #070611;
  --bg-2:      #0a0918;
  --surface:   #110f26;
  --surface-2: #15132f;
  --surface-3: #1b1840;
  --border:    rgba(168, 139, 255, 0.14);
  --border-2:  rgba(168, 139, 255, 0.28);

  /* brand */
  --violet:        #863bff;
  --violet-deep:   #7e14ff;
  --violet-bright: #a855f7;
  --indigo:        #6366f1;
  --cyan:          #3ad6ff;
  --cyan-deep:     #22b8e6;
  --lavender:      #ede6ff;

  /* text */
  --text:    #ecebff;
  --muted:   #a39fce;
  --muted-2: #8e89ba;

  /* semantic */
  --danger:  #ff5d73;
  --ok:      #34d399;

  /* gradients */
  --grad-brand: linear-gradient(120deg, var(--violet) 0%, var(--cyan) 100%);
  --grad-text:  linear-gradient(120deg, #c9b6ff 0%, #6ee7ff 100%);
  --grad-soft:  linear-gradient(135deg, rgba(134,59,255,0.16), rgba(58,214,255,0.10));

  /* shape + motion */
  --radius:   18px;
  --radius-lg: 26px;
  --maxw:     1180px;
  --ease:     cubic-bezier(0.22, 1, 0.36, 1);

  --shadow-glow: 0 0 0 1px rgba(168,139,255,0.10), 0 30px 80px -30px rgba(126,20,255,0.45);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

/* page-wide grid + glow backdrop (matches the app's grid motif) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(134,59,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(134,59,255,0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 35%, transparent 80%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(60% 50% at 18% -5%, rgba(126,20,255,0.30), transparent 60%),
    radial-gradient(55% 45% at 95% 8%, rgba(58,214,255,0.16), transparent 60%),
    radial-gradient(70% 60% at 50% 110%, rgba(126,20,255,0.18), transparent 60%);
}

::selection { background: rgba(58,214,255,0.30); color: #fff; }

/* ---------- a11y utilities ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--violet); color: #fff; padding: 10px 18px;
  border-radius: 0 0 10px 0; font-weight: 600; font-size: 14px;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

/* ---------- type ---------- */
h1, h2, h3, .display {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

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

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* eyebrow / chips */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 7px 13px;
  border: 1px solid var(--border-2);
  border-radius: 100px;
  background: rgba(58,214,255,0.06);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse { 0%,100%{opacity:1; transform:scale(1)} 50%{opacity:.45; transform:scale(.7)} }

/* ---------- buttons ---------- */
.btn {
  --bg-btn: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 13px;
  border: 1px solid var(--border-2);
  background: var(--bg-btn);
  color: var(--text);
  cursor: pointer;
  position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--grad-brand);
  color: #0a0712;
  border: none;
  font-weight: 700;
  box-shadow: 0 10px 30px -8px rgba(126,20,255,0.6);
}
.btn-primary:hover { box-shadow: 0 16px 44px -10px rgba(58,214,255,0.6); }
.btn-ghost { background: rgba(255,255,255,0.03); }
.btn-ghost:hover { border-color: var(--violet-bright); background: rgba(168,139,255,0.08); }
.btn-lg { padding: 16px 30px; font-size: 16px; }

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .4s var(--ease), border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8,7,18,0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand .word {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 20px; letter-spacing: 0.02em;
}
.brand .word b { font-weight: 700; }
.brand .word .h { color: var(--cyan); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 14.5px; color: var(--muted); font-weight: 500;
  position: relative; transition: color .25s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad-brand); border-radius: 2px; transition: width .3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .login { font-size: 14.5px; color: var(--muted); font-weight: 600; }
.nav-cta .login:hover { color: var(--text); }

.burger {
  display: none; width: 42px; height: 42px; border-radius: 11px;
  border: 1px solid var(--border-2); background: var(--surface);
  cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.burger span { display:block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s var(--ease); }
.burger.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2){ opacity: 0; }
.burger.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 70px 0 auto 0; z-index: 99;
  background: rgba(8,7,18,0.97); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 18px 24px 28px;
  display: none; flex-direction: column; gap: 4px;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: transform .35s var(--ease), opacity .35s;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a { padding: 14px 6px; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--border); color: var(--muted); }
.mobile-menu a:last-of-type { border: none; }
.mobile-menu .btn { margin-top: 14px; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
#hero-canvas {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  display: block;
}
.hero::after { /* vignette + bottom fade so content reads */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 70% 50%, transparent 30%, rgba(7,6,17,0.55) 100%),
    linear-gradient(180deg, transparent 55%, var(--bg) 98%);
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
}

.hero-copy { max-width: 640px; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin: 22px 0 0;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; }
.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  color: var(--muted);
  margin-top: 24px; max-width: 540px;
}
.hero-sub b { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero-trust {
  margin-top: 40px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  color: var(--muted-2); font-size: 13px; font-weight: 500;
}
.hero-trust .sep { width: 1px; height: 16px; background: var(--border-2); }
.hero-trust .item { display: flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 15px; height: 15px; color: var(--cyan); }

/* live scrubber demo card in hero */
.scrub-demo {
  width: 100%;
  background: linear-gradient(180deg, rgba(21,19,47,0.92), rgba(13,11,33,0.92));
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.scrub-head {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.scrub-head .dots { display: flex; gap: 6px; }
.scrub-head .dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.scrub-head .dots i:nth-child(1){ background:#ff5f56 } .scrub-head .dots i:nth-child(2){ background:#ffbd2e } .scrub-head .dots i:nth-child(3){ background:#27c93f }
.scrub-head .title { margin-left: 6px; font-size: 12.5px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.scrub-head .live { margin-left: auto; font-size: 11px; color: var(--ok); display: flex; align-items: center; gap: 6px; font-weight: 600; }
.scrub-head .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }

.scrub-body { padding: 18px; font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.scrub-stage-label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2);
  margin-bottom: 10px;
}
.scrub-stage-label .badge {
  font-size: 10.5px; padding: 3px 9px; border-radius: 100px; font-weight: 600; letter-spacing: .04em;
  border: 1px solid var(--border-2); color: var(--muted);
}
.scrub-stage-label .badge.local { color: var(--ok); border-color: rgba(52,211,153,.4); background: rgba(52,211,153,.08); }
.scrub-stage-label .badge.cloud { color: var(--cyan); border-color: rgba(58,214,255,.4); background: rgba(58,214,255,.08); }

.log-line { line-height: 2.1; word-break: break-word; color: #cfd2ee; min-height: 84px; }
.log-line .pii { color: var(--danger); background: rgba(255,93,115,0.12); padding: 1px 5px; border-radius: 5px; border: 1px solid rgba(255,93,115,0.25); transition: all .4s var(--ease); }
.log-line .hash { color: var(--cyan); background: rgba(58,214,255,0.10); padding: 1px 5px; border-radius: 5px; border: 1px solid rgba(58,214,255,0.30); }
.log-line .dim { color: var(--muted-2); }

.scrub-foot {
  border-top: 1px solid var(--border);
  padding: 13px 18px; display: flex; align-items: center; gap: 10px;
  font-family: 'Inter', sans-serif; font-size: 12.5px; color: var(--muted);
}
.scrub-foot svg { width: 16px; height: 16px; color: var(--cyan); flex: none; }
.cursor { display:inline-block; width:8px; height:1.05em; background: var(--cyan); margin-left:2px; vertical-align:-2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 7px;
  color: var(--muted-2); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
}
.scroll-cue .mouse { width: 22px; height: 34px; border: 1.5px solid var(--border-2); border-radius: 12px; position: relative; }
.scroll-cue .mouse::after { content:""; position:absolute; left:50%; top:7px; width:3px; height:6px; border-radius:3px; background: var(--cyan); transform:translateX(-50%); animation: wheel 1.6s var(--ease) infinite; }
@keyframes wheel { 0%{opacity:0; transform:translate(-50%,0)} 30%{opacity:1} 70%{opacity:1} 100%{opacity:0; transform:translate(-50%,10px)} }

/* =========================================================================
   SECTION SCAFFOLD
   ========================================================================= */
section { position: relative; }
.section { padding: 110px 0; }
.section-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-top: 16px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-top: 18px; }

/* reveal helper (driven by GSAP, but degrades to visible) */
.reveal { opacity: 0; transform: translateY(28px); }
.no-anim .reveal { opacity: 1; transform: none; }

/* =========================================================================
   LOGOS / MARQUEE
   ========================================================================= */
.proof {
  padding: 40px 0; border-block: 1px solid var(--border);
  background: rgba(255,255,255,0.012);
}
.proof p { text-align: center; color: var(--muted-2); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 22px; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px; }
.badge-chip {
  display: flex; align-items: center; gap: 9px; color: var(--muted); font-weight: 600; font-size: 14px;
}
.badge-chip svg { width: 19px; height: 19px; color: var(--violet-bright); }

/* =========================================================================
   PIPELINE / SCROLLYTELLING ("Wie es funktioniert")
   ========================================================================= */
.pipeline { padding-top: 120px; }
.pipe-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 54px; align-items: center; }
.pipe-steps { display: flex; flex-direction: column; gap: 14px; }
.pipe-step {
  display: flex; gap: 16px; padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  opacity: 0.45; transition: opacity .4s var(--ease), border-color .4s, transform .4s var(--ease), background .4s;
}
.pipe-step.active { opacity: 1; border-color: var(--border-2); background: var(--surface-2); transform: translateX(6px); box-shadow: var(--shadow-glow); }
.pipe-step .num {
  flex: none; width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; font-family: 'Space Grotesk'; font-weight: 700;
  background: var(--surface-3); color: var(--muted); border: 1px solid var(--border-2); transition: .4s var(--ease);
}
.pipe-step.active .num { background: var(--grad-brand); color: #0a0712; border-color: transparent; }
.pipe-step h3 { font-size: 1.15rem; }
.pipe-step p { color: var(--muted); font-size: 0.95rem; margin-top: 5px; }

/* visual stage on the right */
.pipe-stage {
  position: relative;
  min-height: 440px;
  border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(21,19,47,0.7), rgba(11,10,26,0.7));
  box-shadow: var(--shadow-glow); overflow: hidden;
  display: flex; flex-direction: column;
}
.pipe-stage .bar {
  display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted);
}
.pipe-stage .bar .where { margin-left: auto; display: flex; align-items: center; gap: 7px; font-weight: 600; }
.pipe-stage .bar .where i { width: 7px; height: 7px; border-radius: 50%; }
.pipe-stage .bar .where.local i { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.pipe-stage .bar .where.cloud i { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.pipe-canvas { position: relative; flex: 1; padding: 26px; display: grid; place-items: center; }

.stage-card {
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  position: absolute; inset: 26px; display: flex; flex-direction: column; justify-content: center; gap: 14px;
  opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none;
}
.stage-card.show { opacity: 1; transform: none; pointer-events: auto; }
.stage-card .raw, .stage-card .scrubbed {
  padding: 16px; border-radius: 14px; border: 1px solid var(--border); background: rgba(0,0,0,0.25); line-height: 1.9;
}
.stage-card .pii { color: var(--danger); background: rgba(255,93,115,0.12); padding: 1px 5px; border-radius: 5px; }
.stage-card .hash { color: var(--cyan); background: rgba(58,214,255,0.10); padding: 1px 5px; border-radius: 5px; }
.stage-card .dim { color: var(--muted-2); }
.stage-note { display: flex; align-items: center; gap: 9px; font-family: 'Inter'; font-size: 13px; color: var(--muted); }
.stage-note svg { width: 17px; height: 17px; flex: none; }
.stage-note.ok svg { color: var(--ok); } .stage-note.cyan svg { color: var(--cyan); }
.finding {
  border: 1px solid rgba(255,93,115,0.35); background: rgba(255,93,115,0.07);
  border-radius: 14px; padding: 16px; font-family: 'Inter'; font-size: 13.5px; color: #ffd9df;
}
.finding .tag { font-family: 'JetBrains Mono'; font-size: 11px; color: var(--danger); font-weight: 700; letter-spacing: .08em; }
.finding b { color: #fff; }

.pipe-progress { position: absolute; left: 0; top: 0; height: 3px; background: var(--grad-brand); width: 0%; box-shadow: 0 0 14px var(--cyan); transition: width .2s linear; }

/* ---- setup flow ("so einfach ist das Setup") ---- */
.setup-flow { margin-top: 132px; }
.setup-flow-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.setup-flow-head h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-top: 14px; }
.setup-flow-head p { color: var(--muted); font-size: 1.04rem; margin-top: 14px; }

.flow { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.flow-step {
  position: relative; display: flex; flex-direction: column; padding: 28px 22px 24px;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
  transition: border-color .4s var(--ease), transform .4s var(--ease), background .4s;
}
.flow-step:hover { border-color: var(--border-2); transform: translateY(-4px); background: var(--surface-2); }
.flow-num {
  position: absolute; top: 20px; right: 20px;
  width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13px;
  background: var(--surface-3); color: var(--muted); border: 1px solid var(--border-2);
}
.flow-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--grad-soft); border: 1px solid var(--border-2); color: var(--cyan);
}
.flow-icon svg { width: 24px; height: 24px; }
.flow-step h4 { font-size: 1.12rem; }
.flow-step p { color: var(--muted); font-size: 0.93rem; margin-top: 8px; margin-bottom: 14px; }
.flow-chip {
  align-self: flex-start; margin-top: auto;
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .03em;
  color: var(--violet-bright); border: 1px solid var(--border-2); border-radius: 999px;
  padding: 5px 11px; background: var(--grad-soft);
}
/* connector arrows live entirely in the gap — never overlap a card */
.flow-step:not(:last-child)::after {
  content: "→"; position: absolute; top: 50%; right: -26px; width: 26px;
  transform: translateY(-50%); text-align: center; line-height: 1;
  color: var(--violet-bright); font-size: 22px; opacity: .75;
}
@media (max-width: 1024px) {
  .flow { grid-template-columns: 1fr 1fr; gap: 18px; }
  .flow-step:not(:last-child)::after { display: none; }
}
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }

/* =========================================================================
   ZERO-KNOWLEDGE BOUNDARY DIAGRAM
   ========================================================================= */
.zk { padding: 110px 0; }
.zk-diagram {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch;
  border: 1px solid var(--border-2); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); position: relative;
}
.zk-col { padding: 38px 34px; position: relative; z-index: 2; }
.zk-col h3 { font-size: 1.35rem; display: flex; align-items: center; gap: 10px; }
.zk-col h3 svg { width: 22px; height: 22px; }
.zk-col .where-tag { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; }
.zk-col.local { background: linear-gradient(180deg, rgba(52,211,153,0.05), transparent); }
.zk-col.local .where-tag { color: var(--ok); }
.zk-col.cloud { background: linear-gradient(180deg, rgba(58,214,255,0.05), transparent); }
.zk-col.cloud .where-tag { color: var(--cyan); }
.zk-col ul { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 13px; }
.zk-col li { display: flex; gap: 11px; font-size: 14.5px; color: var(--muted); align-items: flex-start; }
.zk-col li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.zk-col.local li svg { color: var(--ok); } .zk-col.cloud li svg { color: var(--cyan); }
.zk-col li b { color: var(--text); font-weight: 600; }

.zk-wall {
  position: relative; z-index: 2; width: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(180deg, rgba(168,139,255,0.16) 0 10px, transparent 10px 22px);
  border-inline: 1px solid var(--border-2);
}
.zk-wall .lock {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-brand); color: #0a0712; box-shadow: 0 0 30px rgba(126,20,255,.6);
}
.zk-wall .lock svg { width: 26px; height: 26px; }
.zk-wall .label { writing-mode: vertical-rl; transform: rotate(180deg); margin-top: 16px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; }

/* data packets flowing left (local) -> right (cloud), behind the column text */
.zk-flow { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.packet { position: absolute; font-family: 'JetBrains Mono'; font-size: 11px; padding: 2px 7px; border-radius: 6px; white-space: nowrap; will-change: left, opacity; }

/* =========================================================================
   BENTO FEATURES
   ========================================================================= */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(180px, auto); gap: 18px; }
.card {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); padding: 28px;
  transition: border-color .4s var(--ease), transform .4s var(--ease), background .4s;
}
.card::before { /* hover spotlight */
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(134,59,255,0.18), transparent 65%);
  left: var(--mx, 50%); top: var(--my, 50%); transform: translate(-50%, -50%);
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
.card:hover { border-color: var(--border-2); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card .icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--grad-soft); border: 1px solid var(--border-2); color: var(--cyan);
}
.card .icon svg { width: 23px; height: 23px; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); font-size: 0.95rem; margin-top: 9px; }
.card .kicker { font-family: 'JetBrains Mono'; font-size: 11px; color: var(--violet-bright); letter-spacing: .08em; text-transform: uppercase; }

.card.col-3 { grid-column: span 3; } .card.col-2 { grid-column: span 2; } .card.col-4 { grid-column: span 4; } .card.col-6 { grid-column: span 6; }
.card.row-2 { grid-row: span 2; }

.card.feature-agent { display: flex; flex-direction: column; }
.code-snippet {
  margin-top: auto; background: #0a0816; border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; font-family: 'JetBrains Mono'; font-size: 12.5px; color: #cfd2ee; overflow-x: auto;
}
.code-snippet .c { color: var(--muted-2); } .code-snippet .g { color: var(--ok); } .code-snippet .v { color: var(--cyan); } .code-snippet .k { color: var(--violet-bright); }

.stat-num { font-family: 'Space Grotesk'; font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; }
.stat-num .gradient-text { display: inline-block; }

/* =========================================================================
   COMPARISON TABLE
   ========================================================================= */
.compare-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-2); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
table.compare th, table.compare td { padding: 18px 22px; text-align: center; border-bottom: 1px solid var(--border); }
table.compare th:first-child, table.compare td:first-child { text-align: left; color: var(--text); font-weight: 500; }
table.compare thead th { font-family: 'Space Grotesk'; font-size: 1.05rem; color: var(--muted); font-weight: 600; background: var(--surface); }
table.compare thead th.us { color: var(--text); position: relative; }
table.compare thead th.us::after { content: ""; position: absolute; inset: 0; background: var(--grad-soft); z-index: -1; }
table.compare .us-col { background: linear-gradient(180deg, rgba(134,59,255,0.07), rgba(58,214,255,0.04)); }
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare .yes { color: var(--ok); } table.compare .no { color: var(--danger); } table.compare .meh { color: #f5b14c; }
table.compare td svg { width: 20px; height: 20px; }
.us-badge { display:inline-block; margin-top:6px; font-size:11px; font-weight:700; color: var(--cyan); }

/* =========================================================================
   PRICING
   ========================================================================= */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: stretch; max-width: 720px; margin-inline: auto; }
.price-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
  padding: 32px; display: flex; flex-direction: column; position: relative; transition: transform .4s var(--ease), border-color .4s;
}
.price-card:hover { transform: translateY(-4px); border-color: var(--border-2); }
.price-card.featured { border-color: transparent; background: linear-gradient(180deg, rgba(134,59,255,0.12), var(--surface)); box-shadow: var(--shadow-glow); }
.price-card.featured::before { content:""; position:absolute; inset:0; border-radius: var(--radius-lg); padding:1px; background: var(--grad-brand); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events:none; }
.price-card .tier { font-family: 'Space Grotesk'; font-weight: 600; font-size: 1.3rem; }
.price-card .pop { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad-brand); color: #0a0712; font-size: 11.5px; font-weight: 700; padding: 5px 14px; border-radius: 100px; letter-spacing: .04em; }
.price-card .amount { margin: 18px 0 4px; font-family: 'Space Grotesk'; font-weight: 700; font-size: 2.8rem; line-height: 1; }
.price-card .amount span { font-size: 1rem; color: var(--muted); font-family: 'Inter'; font-weight: 500; }
.price-card .per { color: var(--muted-2); font-size: 13px; }
.price-card .desc { color: var(--muted); font-size: 14px; margin: 16px 0 22px; min-height: 42px; }
.price-card ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.price-card li { display: flex; gap: 10px; font-size: 14px; color: var(--muted); align-items: flex-start; }
.price-card li svg { width: 17px; height: 17px; color: var(--cyan); flex: none; margin-top: 3px; }
.price-card li b { color: var(--text); font-weight: 600; }
.price-card .btn { margin-top: auto; width: 100%; }
.price-foot { text-align: center; color: var(--muted-2); font-size: 13px; margin-top: 48px; }

/* =========================================================================
   DIGEST SHOWCASE
   ========================================================================= */
.digest-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.digest-mail {
  border: 1px solid var(--border-2); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-glow);
}
.digest-mail .mhead { padding: 18px 22px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.02); }
.digest-mail .mhead .from { display: flex; align-items: center; gap: 11px; }
.digest-mail .mhead .av { width: 34px; height: 34px; border-radius: 9px; background: var(--grad-brand); display: grid; place-items: center; }
.digest-mail .mhead .av svg { width:19px;height:19px;color:#0a0712 }
.digest-mail .mhead .meta b { font-size: 14px; } .digest-mail .mhead .meta span { display:block; font-size:12px; color: var(--muted-2); }
.digest-mail .msubject { padding: 18px 22px 4px; font-family: 'Space Grotesk'; font-weight: 600; font-size: 1.15rem; }
.digest-mail .mbody { padding: 8px 22px 24px; }
.digest-row { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.digest-row:last-child { border: none; }
.digest-row .sev { width: 8px; border-radius: 4px; flex: none; }
.digest-row .sev.hi { background: var(--danger); } .digest-row .sev.mid { background: #f5b14c; } .digest-row .sev.lo { background: var(--ok); }
.digest-row .txt b { color: var(--text); } .digest-row .txt { color: var(--muted); }
.digest-row .txt .mono { color: var(--cyan); font-size: 12.5px; }
.digest-stats { display: flex; gap: 22px; padding: 16px 22px; background: rgba(0,0,0,0.2); border-top:1px solid var(--border); }
.digest-stats .s b { font-family: 'Space Grotesk'; font-size: 1.4rem; display:block; } .digest-stats .s span { font-size:11.5px; color: var(--muted-2); }

/* =========================================================================
   FINAL CTA
   ========================================================================= */
.final {
  margin: 40px auto 0; max-width: calc(var(--maxw) - 0px);
  position: relative; overflow: hidden;
  border: 1px solid var(--border-2); border-radius: 32px;
  background: radial-gradient(120% 130% at 50% -20%, rgba(126,20,255,0.35), transparent 60%), var(--surface);
  padding: 80px 32px; text-align: center;
}
.final h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.final p { color: var(--muted); max-width: 520px; margin: 20px auto 0; font-size: 1.1rem; }
.final .hero-actions { justify-content: center; }
#final-canvas { position: absolute; inset: 0; z-index: 0; opacity: .6; }
.final .container { position: relative; z-index: 2; }

/* =========================================================================
   NEWSLETTER
   ========================================================================= */
.nl-card {
  border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(134,59,255,0.10), var(--surface));
  box-shadow: var(--shadow-glow);
  padding: 48px 40px; max-width: 760px; margin: 0 auto; text-align: center;
}
.nl-intro h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 14px; }
.nl-intro p { color: var(--muted); margin: 14px auto 0; max-width: 520px; }
.nl-form { margin-top: 28px; }
.nl-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.nl-input {
  flex: 1; min-width: 240px; max-width: 360px;
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 13px;
  color: var(--text); font: inherit; font-size: 15px; padding: 13px 16px;
}
.nl-input::placeholder { color: var(--muted-2); }
.nl-input:focus { border-color: var(--cyan); outline: none; }
.nl-consent {
  display: flex; gap: 10px; align-items: flex-start; justify-content: center;
  margin: 18px auto 0; max-width: 480px; text-align: left;
  color: var(--muted); font-size: 13px; line-height: 1.5;
}
.nl-consent input { margin-top: 3px; flex: none; accent-color: var(--violet); }
.nl-consent a { color: var(--cyan); }
.nl-consent a:hover { text-decoration: underline; }
.nl-hint { color: var(--muted-2); font-size: 12.5px; margin-top: 16px; }
@media (max-width: 480px) {
  .nl-card { padding: 36px 22px; }
  .nl-row .btn { width: 100%; }
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { padding: 70px 0 40px; border-top: 1px solid var(--border); margin-top: 90px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand { margin-bottom: 16px; }
.footer .blurb { color: var(--muted); font-size: 14px; max-width: 280px; }
.footer .made { margin-top: 18px; font-size: 13px; color: var(--muted-2); display: flex; align-items: center; gap: 8px; }
.footer .made .flag { width: 18px; height: 12px; border-radius: 2px; overflow: hidden; display:inline-flex; flex-direction: column; }
.footer .made .flag i { flex:1 } .footer .made .flag i:nth-child(1){background:#000}.footer .made .flag i:nth-child(2){background:#dd0000}.footer .made .flag i:nth-child(3){background:#ffce00}
.footer h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer ul a { color: var(--muted); font-size: 14px; transition: color .25s; }
.footer ul a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: 13px; flex-wrap: wrap; gap: 12px; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-demo { max-width: 560px; }
  .pipe-wrap { grid-template-columns: 1fr; gap: 28px; }
  .pipe-stage { min-height: 380px; }
  .digest-wrap { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta .login, .nav-cta .btn { display: none; }
  .burger { display: flex; }
  .mobile-menu { display: flex; }
  .section { padding: 80px 0; }
  .bento { grid-template-columns: 1fr; }
  .card.col-2, .card.col-3, .card.col-4, .card.col-6 { grid-column: span 1; }
  .card.row-2 { grid-row: span 1; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { order: -1; }
  .zk-diagram { grid-template-columns: 1fr; }
  .zk-wall { width: auto; height: 76px; flex-direction: row; border-inline: none; border-block: 1px solid var(--border-2);
    background: repeating-linear-gradient(90deg, rgba(168,139,255,0.16) 0 10px, transparent 10px 22px); }
  .zk-wall .label { writing-mode: horizontal-tb; transform: none; margin: 0 0 0 14px; }
  .zk-flow { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-trust { gap: 14px; }
  .hero-trust .sep { display: none; }
  .pipe-canvas { padding: 18px; }
  .stage-card { inset: 18px; }
  .stage-card .raw, .stage-card .scrubbed { font-size: 12px; word-break: break-word; }
}

@media (max-width: 480px) {
  .container { padding-inline: 18px; }
  .hero { padding-top: 100px; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .scrub-body { font-size: 12px; }
}

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