/* ============================================================
   NoGate AI – styles.css
   Blau-Schema, Glassmorphism, Agentur-Motion (Vanilla CSS)
   Alle Timings über die Custom Properties unten zentral tunen.
   ============================================================ */

:root {
  --bg-0: #050914;
  --bg-1: #0A1128;
  --primary: #2563EB;
  --accent: #38BDF8;
  --highlight: #60A5FA;
  --text: #E2E8F0;
  --muted: #94A3B8;
  --glow: rgba(56, 189, 248, 0.4);
  --glass-bg: rgba(10, 17, 40, 0.55);
  --glass-border: rgba(56, 189, 248, 0.15);
  --radius: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;

  /* ---------- Motion (zentrale Tuning-Werte) ---------- */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-1: 250ms;        /* Tabs, FAQ */
  --dur-2: 450ms;        /* Card-Hover */
  --dur-hero: 700ms;     /* Hero-Einstieg + Scroll-Reveals */
  --stagger-hero: 80ms;  /* Hero: Eyebrow -> H1 -> Sub -> Buttons -> Note */
  --stagger-word: 55ms;  /* H1: Wort-fuer-Wort-Reveal */
  --stagger-grid: 70ms;  /* Grids: --i-Reveal-Stagger */
  --hero-y: 24px;        /* Hero-Stagger-Offset */
  --reveal-y: 32px;      /* Scroll-Reveal-Offset */
  --shimmer-dur: 1800ms; /* Gradient-Sweep (H1 + Section-Titel) */
  --border-spin-dur: 8s; /* Featured-Card: rotierender Conic-Border */
}

/* Rotierender Winkel fuer den animierten Conic-Gradient-Border */
@property --spin {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  background: radial-gradient(ellipse 120% 80% at 50% -10%, var(--bg-1) 0%, var(--bg-0) 55%) fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Scroll-Progress-Bar (2px, Gradient, transform-only) ---------- */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: 0 50%;
  z-index: 1001;
  pointer-events: none;
}

/* Noise-Textur Overlay (SVG feTurbulence, inline) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 8px;
  border: 2px solid var(--bg-0);
}
html { scrollbar-width: thin; scrollbar-color: var(--primary) var(--bg-0); }

::selection { background: rgba(37, 99, 235, 0.5); color: #fff; }

img, svg { display: inline-block; vertical-align: middle; }

a { color: var(--highlight); text-decoration: none; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}
.container-narrow { width: min(760px, 92%); }

/* ---------- Aurora-Hintergrund (Parallax via --px/--py, Lerp in JS) ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.blob-1 {
  width: 55vw; height: 55vw;
  left: -12vw; top: -18vw;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.5), transparent 65%);
  animation: drift-1 26s ease-in-out infinite alternate;
}
.blob-2 {
  width: 48vw; height: 48vw;
  right: -14vw; top: 4vw;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35), transparent 65%);
  animation: drift-2 32s ease-in-out infinite alternate;
}
.blob-3 {
  width: 42vw; height: 42vw;
  left: 28vw; bottom: -24vw;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.3), transparent 65%);
  animation: drift-3 38s ease-in-out infinite alternate;
}
/* Drift-Keyframes inkl. Maus-Parallax-Offset (von JS per Frame gesetzt) */
@keyframes drift-1 {
  from { transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(1); }
  to   { transform: translate3d(calc(var(--px, 0) + 9vw), calc(var(--py, 0) + 7vh), 0) scale(1.15); }
}
@keyframes drift-2 {
  from { transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(1); }
  to   { transform: translate3d(calc(var(--px, 0) - 8vw), calc(var(--py, 0) + 9vh), 0) scale(0.92); }
}
@keyframes drift-3 {
  from { transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(1); }
  to   { transform: translate3d(calc(var(--px, 0) + 6vw), calc(var(--py, 0) - 8vh), 0) scale(1.1); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  padding: 15px 30px;
  border-radius: 12px;
  font: 600 16px var(--font);
  color: #fff;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    box-shadow var(--dur-2) var(--ease-out-expo),
    border-color var(--dur-2) var(--ease-out-expo),
    background-color var(--dur-2) var(--ease-out-expo);
  will-change: transform;
}
/* Sheen: Lichtstreif, der beim Hover ueber den Button laeuft */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 40%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}
.btn:hover::after {
  animation: btn-sheen 900ms var(--ease-out-expo);
}
@keyframes btn-sheen {
  from { transform: skewX(-18deg) translateX(0); }
  to   { transform: skewX(-18deg) translateX(380%); }
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #1D4ED8 55%, var(--accent) 130%);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-primary:hover {
  box-shadow: 0 14px 44px rgba(56, 189, 248, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
/* Magnet-Modus (JS setzt inline transform): Hover-Lift uebernimmt JS */
.btn.js-magnetic:hover { transform: none; }

.btn-ghost {
  background: rgba(56, 189, 248, 0.06);
  border-color: var(--glass-border);
  color: var(--text);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.12);
}
.btn-ghost.js-magnetic:hover { transform: none; }

/* Ripple (JS erzeugt .ripple-Span, transform-only) */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple 600ms ease-out forwards;
  pointer-events: none;
}
@keyframes ripple {
  to { transform: scale(3); opacity: 0; }
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background-color var(--dur-2) var(--ease-out-expo), box-shadow var(--dur-2) var(--ease-out-expo);
}
.nav.scrolled {
  background: rgba(5, 9, 20, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--glass-border), 0 12px 32px rgba(0, 0, 0, 0.35);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 20px var(--font);
  letter-spacing: -0.02em;
  color: #fff;
}
.logo:hover { color: #fff; }
.logo-mark {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 4px 16px var(--glow);
}
.logo-mark svg { width: 18px; height: 18px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a:not(.btn) {
  position: relative;
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  transition: color var(--dur-1) var(--ease-out-expo);
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--dur-1) var(--ease-out-expo);
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-sm { padding: 11px 20px; font-size: 14.5px; }

.nav-burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: var(--glass-bg);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-burger span {
  display: block;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform var(--dur-1) var(--ease-out-expo), opacity var(--dur-1) var(--ease-out-expo);
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 170px 0 110px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

/* Hero-Stagger: [data-hero] tauchen nacheinander auf (Index --hero-i via JS) */
.hero-copy [data-hero] {
  opacity: 0;
  transform: translateY(var(--hero-y));
  transition:
    opacity var(--dur-hero) var(--ease-out-expo) calc(var(--hero-i, 0) * var(--stagger-hero)),
    transform var(--dur-hero) var(--ease-out-expo) calc(var(--hero-i, 0) * var(--stagger-hero));
}
.hero-copy.is-in [data-hero] {
  opacity: 1;
  transform: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 7px 16px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--highlight);
  font: 600 13px var(--mono);
  letter-spacing: 0.08em;
}
.hero-eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.hero-h1 {
  font-size: clamp(42px, 6.2vw, 76px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 26px;
}

/* Wort-fuer-Wort-Maske: .h1-word = overflow:hidden-Rahmen, .h1-word-in = Slide */
.h1-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.h1-word-in {
  display: inline-block;
  transform: translateY(115%);
  will-change: transform;
  transition: transform var(--dur-hero) var(--ease-out-expo) calc(var(--stagger-hero) + var(--word-i, 0) * var(--stagger-word));
}
.hero-copy.is-in .h1-word-in { transform: none; }

/* Gradient-Text + Shimmer-Sweep (H1 und Section-Titel) */
.grad {
  background: linear-gradient(92deg,
    var(--highlight) 0%, var(--accent) 25%, #7DD3FC 40%,
    #EAF7FF 50%,
    #7DD3FC 60%, var(--accent) 75%, var(--highlight) 100%);
  background-size: 250% 100%;
  background-position: 0% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Shimmer: nach dem H1-Reveal bzw. beim Scroll-in des Titels genau EINMAL */
@keyframes grad-sweep {
  from { background-position: 0% 0; }
  to   { background-position: 100% 0; }
}
.grad.shimmer,
.section-title.visible .grad {
  animation: grad-sweep var(--shimmer-dur) var(--ease-smooth) both;
}

.hero-sub {
  max-width: 520px;
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}
.hero-note {
  font-size: 13.5px;
  color: var(--muted);
  opacity: 0.75;
}

/* ---------- Terminal (Rechts im Hero) ---------- */
.hero-terminal {
  position: relative;
}
.terminal {
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: rgba(4, 8, 18, 0.75);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(56, 189, 248, 0.06);
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
  background: rgba(10, 17, 40, 0.6);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #F87171; }
.dot-y { background: #FBBF24; }
.dot-g { background: #34D399; }
.terminal-title {
  margin-left: 10px;
  font: 500 12.5px var(--mono);
  color: var(--muted);
}
.terminal-body {
  padding: 22px 20px 26px;
  font: 500 14px/1.85 var(--mono);
  transition: opacity 600ms var(--ease-smooth);
}
/* Weicher Fade fuer den Tipp-Loop-Reset */
.terminal-body.t-fade,
.terminal-body.t-fade .t-line,
.terminal-body.t-fade .t-out {
  opacity: 0;
}
.t-line { color: var(--text); }
.t-prefix { color: var(--accent); }
.t-caret {
  display: inline-block;
  width: 8px;
  height: 15px;
  margin-left: 2px;
  background: var(--accent);
  vertical-align: -2px;
  animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0; }
}
.t-out { margin-top: 10px; color: var(--muted); }
.t-out-line { animation: t-line-in 300ms var(--ease-out-expo) both; }
@keyframes t-line-in {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: none; }
}
.t-accent { color: var(--accent); }
.t-ok { color: #34D399; }
.terminal-glow {
  position: absolute;
  inset: 12% -8% -18% -8%;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.28), transparent 70%);
  filter: blur(40px);
}

/* ---------- Scroll-Reveal (IntersectionObserver, transform + opacity) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-y));
  transition:
    opacity var(--dur-hero) var(--ease-out-expo),
    transform var(--dur-hero) var(--ease-out-expo);
  transition-delay: calc(var(--i, 0) * var(--stagger-grid));
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Section-Header ---------- */
.section { padding: 108px 0; position: relative; }
.section-head { text-align: center; margin-bottom: 64px; }
.section-title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 16px;
}
.section-sub {
  max-width: 560px;
  margin-inline: auto;
  color: var(--muted);
  font-size: 17px;
}

/* ---------- Vergleich (Alt vs. NoGate) ---------- */
.vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.vs-card {
  border-radius: var(--radius);
  padding: 34px 32px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.vs-card.vs-old { opacity: 0.78; }
.vs-card.vs-new {
  background: linear-gradient(165deg, rgba(37, 99, 235, 0.14), rgba(5, 9, 20, 0.5) 60%);
  border-color: rgba(56, 189, 248, 0.3);
}
.vs-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 18px;
}
.vs-head svg { flex: none; }
.vs-head-old { color: var(--muted); }
.vs-head-new { color: var(--text); }
.vs-list-new li { color: var(--text); }
.vs-list-new li strong { color: var(--accent); font-weight: 700; }
.vs-list { list-style: none; display: grid; gap: 13px; }
.vs-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 15.5px;
}
.vs-list li::before {
  content: "–";
  flex: none;
  color: #F87171;
  font-weight: 700;
}
.vs-list-new li::before {
  content: "✓";
  color: #34D399;
}

/* ---------- Features-Grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  position: relative;
  border-radius: var(--radius);
  padding: 30px 28px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition:
    opacity var(--dur-hero) var(--ease-out-expo),
    transform var(--dur-hero) var(--ease-out-expo),
    border-color var(--dur-2) var(--ease-out-expo),
    box-shadow var(--dur-2) var(--ease-out-expo);
  transition-delay: calc(var(--i, 0) * var(--stagger-grid));
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.22);
}
.feature-icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 20px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.12);
  animation: icon-pulse 3.2s ease-in-out infinite;
}
@keyframes icon-pulse {
  0%, 100% { box-shadow: 0 0 18px rgba(56, 189, 248, 0.1); }
  50%      { box-shadow: 0 0 30px rgba(56, 189, 248, 0.28); }
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 15px; }

/* ---------- Cursor-Spotlight (Maus-Pos via --mx/--my, nur transform/opacity) ---------- */
.spotlight { position: relative; }
.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(56, 189, 248, 0.14),
    transparent 65%
  );
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out-expo);
  pointer-events: none;
}
.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 50%),
    rgba(56, 189, 248, 0.55),
    transparent 70%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out-expo);
  pointer-events: none;
}
.spotlight:hover::before,
.spotlight:hover::after { opacity: 1; }

/* ---------- Showcase-Tabs (Crossfade + Slide, Hoehen-Animation in JS) ---------- */
.tabs {
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 26px;
  overflow: hidden;
}
.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.tab-btn {
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(56, 189, 248, 0.05);
  color: var(--muted);
  font: 600 14.5px var(--font);
  cursor: pointer;
  transition:
    color var(--dur-1) var(--ease-out-expo),
    border-color var(--dur-1) var(--ease-out-expo),
    background-color var(--dur-1) var(--ease-out-expo),
    box-shadow var(--dur-1) var(--ease-out-expo);
}
.tab-btn:hover { color: var(--text); border-color: rgba(56, 189, 248, 0.4); }
.tab-btn.is-active {
  color: #fff;
  border-color: rgba(56, 189, 248, 0.55);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), rgba(56, 189, 248, 0.18));
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}
.tab-panels {
  position: relative;
  overflow: hidden;
  transition: height var(--dur-1) var(--ease-out-expo);
}
.tab-panel[hidden] { display: none; }
.tab-panel.tab-out {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  animation: tab-out var(--dur-1) var(--ease-out-expo) both;
}
.tab-panel.tab-in { animation: tab-in var(--dur-1) var(--ease-out-expo) both; }
@keyframes tab-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes tab-out {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(10px); }
}
.tab-prompt {
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(4, 8, 18, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.14);
  font: 500 15px/1.7 var(--mono);
  color: var(--text);
  margin-bottom: 20px;
}
.tab-steps { list-style: none; display: grid; gap: 12px; }
.tab-steps li {
  padding-left: 24px;
  position: relative;
  color: var(--muted);
  font-size: 15.5px;
}
.tab-steps li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.tab-steps li strong { color: var(--text); font-weight: 700; }

/* ---------- Live-Video / Proof ---------- */
.video-section { padding-top: 40px; }
.video-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: rgba(4, 8, 18, 0.6);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}
.video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #030612;
}
.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(37, 99, 235, 0.22), transparent 70%),
    linear-gradient(160deg, rgba(10, 17, 40, 0.85), rgba(5, 9, 20, 0.92));
  text-align: center;
  padding: 24px;
  cursor: pointer;
  transition: opacity 0.5s var(--ease-smooth), visibility 0.5s var(--ease-smooth);
}
.video-frame.is-playing .video-placeholder {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.video-play {
  width: 84px; height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: play-pulse 2.6s ease-in-out infinite;
}
@keyframes play-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.35); }
  50%      { transform: scale(1.06); box-shadow: 0 0 0 18px rgba(56, 189, 248, 0); }
}
.video-badge {
  font: 700 12px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 7px 14px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
}
.video-hint { color: var(--muted); font-size: 14.5px; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  padding: 34px 30px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition:
    opacity var(--dur-hero) var(--ease-out-expo),
    transform var(--dur-hero) var(--ease-out-expo),
    border-color var(--dur-2) var(--ease-out-expo),
    box-shadow var(--dur-2) var(--ease-out-expo);
  transition-delay: calc(var(--i, 0) * var(--stagger-grid));
}
.price-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 22px 54px rgba(37, 99, 235, 0.26);
}
.price-card h3 { font-size: 17px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.price {
  font-size: clamp(34px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
}
.price-per { color: var(--muted); font-size: 14px; margin: 8px 0 22px; }
.price-list { list-style: none; display: grid; gap: 12px; margin-bottom: 28px; }
.price-list li {
  padding-left: 26px;
  position: relative;
  color: var(--muted);
  font-size: 15px;
}
.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.btn-block { width: 100%; }

/* Featured: rotierender Conic-Gradient-Border (@property --spin) */
.price-card.price-featured {
  border: 1.5px solid transparent;
  background:
    linear-gradient(165deg, rgba(37, 99, 235, 0.2), rgba(5, 9, 20, 0.65) 55%) padding-box,
    conic-gradient(from var(--spin), var(--primary), var(--accent), #7DD3FC, var(--primary)) border-box;
  box-shadow: 0 0 48px rgba(56, 189, 248, 0.16);
  animation: border-spin var(--border-spin-dur) linear infinite;
}
@keyframes border-spin {
  to { --spin: 360deg; }
}
.price-card.price-featured:hover {
  box-shadow: 0 22px 54px rgba(37, 99, 235, 0.34);
}
.price-badge {
  position: absolute;
  top: 16px; right: 16px;
  font: 700 11px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #04101F;
  background: linear-gradient(135deg, var(--accent), #7DD3FC);
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 16px var(--glow);
}
.pricing-note {
  text-align: center;
  margin-top: 30px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Proof ---------- */
.proof { padding-top: 40px; }
.proof-card {
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: linear-gradient(165deg, rgba(37, 99, 235, 0.1), rgba(5, 9, 20, 0.5) 60%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 54px 40px;
  overflow: hidden;
}
.proof-quote {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  max-width: 640px;
  margin: 0 auto 16px;
  color: #fff;
}
.proof-sub { color: var(--muted); font-size: 15.5px; max-width: 520px; margin-inline: auto; }

/* ---------- FAQ (grid-template-rows 0fr -> 1fr, kein max-height-Hack) ---------- */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: border-color var(--dur-1) var(--ease-out-expo);
}
.faq-item.open { border-color: rgba(56, 189, 248, 0.4); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 22px;
  background: none;
  border: none;
  color: var(--text);
  font: 600 16.5px var(--font);
  text-align: left;
  cursor: pointer;
}
.faq-q:hover { color: #fff; }
.faq-chevron {
  flex: none;
  transition: transform var(--dur-1) var(--ease-out-expo);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-1) var(--ease-out-expo);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-inner p {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 15.5px;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 56px 0 34px;
  margin-top: 40px;
  background: rgba(5, 9, 20, 0.5);
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand { display: grid; gap: 12px; justify-items: start; }
.footer-tagline { color: var(--muted); font-size: 14.5px; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--muted); font-size: 15px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(56, 189, 248, 0.08);
}
.footer-bottom p { color: var(--muted); font-size: 13.5px; }

/* Fallback: ohne JS oder ohne Feature-Unterstuetzung sofort sichtbar.
   JS haengt .js an <html> und bei fehlenden Features die Klasse .no-anim. */
html:not(.js) [data-hero],
html:not(.js) .reveal,
html:not(.js) .h1-word-in,
html.no-anim [data-hero],
html.no-anim .reveal,
html.no-anim .h1-word-in {
  opacity: 1 !important;
  transform: none !important;
}
/* Kill-Switch: mit html.no-anim laufen gar keine Animationen/Transitions */
html.no-anim *,
html.no-anim *::before,
html.no-anim *::after {
  animation: none !important;
  transition: none !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: 140px; }
  .hero-sub { max-width: 640px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .price-card.price-featured { order: -1; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh; /* Fallback: dvh wird erst ab Safari 15.4 / Chrome 108 verstanden */
    height: 100dvh;
    width: min(320px, 84vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    background: rgba(5, 9, 20, 0.92);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-left: 1px solid var(--glass-border);
    transform: translateX(100%);
    transition: transform var(--dur-1) var(--ease-out-expo);
    z-index: 998;
  }
  .nav-links.open { transform: none; }
  .nav-links a:not(.btn) { font-size: 20px; }
  .nav-burger { display: flex; z-index: 999; }
  .vs-grid { grid-template-columns: 1fr; }
  .section { padding: 84px 0; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .hero-actions .btn { width: 100%; }
  .tabs { padding: 18px; }
  .tab-btn { flex: 1 1 calc(50% - 5px); text-align: center; }
  .proof-card { padding: 40px 24px; }
  .footer-inner { flex-direction: column; }
}

/* ---------- Reduced Motion: alles sofort sichtbar, keine Animation ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .reveal,
  .hero-copy [data-hero],
  .h1-word-in {
    opacity: 1 !important;
    transform: none !important;
  }
  .aurora-blob,
  .t-caret,
  .video-play,
  .feature-icon,
  .price-card.price-featured,
  .grad.shimmer,
  .section-title.visible .grad,
  .tab-panel.tab-in,
  .tab-panel.tab-out {
    animation: none !important;
  }
  .tab-panel.tab-out { position: static; opacity: 1; }
  body::before { display: none; }
}
