/* Goldoak XDR — design tokens (from Goldoak Design System) */
:root {
  /* Ink */
  --ink-950: #07070C;
  --ink-900: #0B0A12;
  --ink-850: #100E1A;
  --ink-800: #16131F;

  /* Slate / lavender-gray */
  --slate-400: #8B83A6;
  --slate-300: #A9A2C2;
  --slate-50:  #F5F3FA;
  --white:     #FFFFFF;

  /* Violet */
  --violet-500: #8B5CF6;
  --violet-400: #A78BFA;
  --violet-300: #C4B5FD;

  /* Gold */
  --gold-500: #DCA639;
  --gold-400: #E7BE63;

  /* Red (emergency) */
  --red-500: #E23C3C;
  --red-400: #F06565;

  /* Semantic aliases */
  --bg-canvas:      var(--ink-950);
  --surface-card:   var(--ink-850);
  --surface-inset:  var(--ink-900);

  --text-primary:   var(--slate-50);
  --text-secondary: var(--slate-300);
  --text-muted:     var(--slate-400);

  --border-default: rgba(200, 195, 219, 0.14);
  --border-strong:  rgba(200, 195, 219, 0.26);
  --border-violet:  rgba(167, 139, 250, 0.55);
  --border-gold:    rgba(220, 166, 57, 0.45);

  --focus-ring:     rgba(167, 139, 250, 0.65);

  /* Fonts */
  --font-display: 'Zalando Sans Expanded', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Syne', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', ui-monospace, monospace;

  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --lh-normal: 1.5;
  --lh-relaxed: 1.65;

  /* Spacing / radius / control sizes */
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --control-sm: 34px;
  --control-md: 42px;
  --control-lg: 52px;

  /* Shadows & glows */
  --shadow-md: 0 8px 24px rgba(0,0,0,0.45);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.6);
  --glow-violet: 0 0 0 1px rgba(167,139,250,0.4), 0 8px 40px rgba(139,92,246,0.38);
  --glow-violet-sm: 0 6px 22px rgba(139,92,246,0.32);
  --glow-gold: 0 6px 28px rgba(220,166,57,0.30);

  --accent-soft: rgba(139, 92, 246, 0.16);

  --ease-standard: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 120ms;
  --dur-base: 220ms;
  --dur-slow: 400ms;

  --gradient-duotone: radial-gradient(120% 120% at 30% 20%, rgba(139,92,246,0.38), transparent 55%), radial-gradient(120% 120% at 75% 70%, rgba(220,166,57,0.30), transparent 55%);
  --veil-ink: linear-gradient(180deg, rgba(7,7,12,0.15) 0%, rgba(7,7,12,0.92) 100%);

  --hud-notch: 14px;
  --clip-hud: polygon(var(--hud-notch) 0, 100% 0, 100% calc(100% - var(--hud-notch)), calc(100% - var(--hud-notch)) 100%, 0 100%, 0 var(--hud-notch));
  --dotgrid: radial-gradient(rgba(200,195,219,0.22) 1px, transparent 1.4px);
}

@import url('https://fonts.googleapis.com/css2?family=Zalando+Sans+Expanded:wght@400;500;600;700&family=Syne:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: var(--fw-bold); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

a { color: var(--violet-400); text-decoration: none; transition: color var(--dur-fast) var(--ease-standard); }
a:hover { color: var(--violet-300); }

::selection { background: rgba(139,92,246,0.35); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-400);
}
.eyebrow--gold { color: var(--gold-500); }

.mono-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section { padding: 92px 24px; }
.section--tinted { background: var(--ink-900); }
.section--bordered { border-top: 1px solid var(--border-default); }
.section-inner { max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: var(--control-md);
  padding: 0 22px;
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: 15px;
  letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-standard),
              background var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard),
              color var(--dur-base) var(--ease-standard);
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: var(--control-sm); padding: 0 16px; font-size: 13px; gap: 7px; }
.btn-lg { height: var(--control-lg); padding: 0 30px; font-size: 16px; gap: 10px; }
.btn-full { width: 100%; }
.btn-mono {
  font-family: var(--font-mono);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.btn-mono.btn-sm { font-size: 11px; }
.btn-mono.btn-lg { font-size: 13px; }
.btn-mono:not(.btn-sm):not(.btn-lg) { font-size: 12px; }

.btn-primary { background: var(--violet-500); color: var(--white); box-shadow: var(--glow-violet-sm); }
.btn-primary:hover { background: var(--violet-400); color: var(--white); box-shadow: var(--glow-violet); }

.btn-gold { background: var(--gold-500); color: var(--ink-900); box-shadow: var(--glow-gold); }
.btn-gold:hover { background: var(--gold-400); color: var(--ink-900); }

.btn-secondary { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--border-violet); color: var(--white); }

/* ---------- Card ---------- */
.card {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.card-hud { border-radius: 0; clip-path: var(--clip-hud); }
.card-dots::before {
  content: '';
  position: absolute;
  top: 14px; right: 14px;
  width: 72px; height: 44px;
  background-image: var(--dotgrid);
  background-size: 12px 12px;
  opacity: 0.7;
  pointer-events: none;
}
.card-interactive {
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard);
}
.card-interactive:hover { transform: translateY(-3px); border-color: var(--border-violet); box-shadow: var(--shadow-lg); }
.card-glow-violet { border-color: var(--border-violet); box-shadow: var(--glow-violet); }
.card-glow-gold { border-color: var(--border-gold); box-shadow: var(--glow-gold); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7,7,12,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-default);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { height: 38px; width: auto; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--gold-500);
  white-space: nowrap;
}
.brand-name span { color: var(--text-primary); }
.nav-links { display: flex; align-items: center; gap: 28px; flex-shrink: 0; }
.nav-link { font-size: 14px; color: var(--text-secondary); }
.nav-link:hover { color: var(--white); }

@media (max-width: 600px) {
  .nav-inner { padding: 0 16px; gap: 10px; }
  .brand img { height: 30px; }
  .brand-name { font-size: 14px; }
  .nav-links { gap: 12px; }
  .nav-links .nav-link { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border-default); }
.hero-bg {
  position: absolute; inset: 0;
  background: var(--gradient-duotone);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--dotgrid);
  background-size: 22px 22px;
  opacity: 0.15;
}
.hero-veil { position: absolute; inset: 0; background: var(--veil-ink); }
.hero-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 110px 24px 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.hero h1 {
  font-size: clamp(44px, 6.5vw, 84px);
  line-height: 1.02;
  max-width: 820px;
}
.hero h1 .gold { color: var(--gold-500); }
.hero-lede { max-width: 560px; font-size: 18px; line-height: 1.6; color: var(--text-secondary); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- Benefit cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.benefit-card { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.benefit-card .eyebrow { font-size: 11px; letter-spacing: 0.12em; }
.benefit-card h3 { font-size: 20px; }
.benefit-card p { font-size: 14.5px; line-height: 1.6; color: var(--text-secondary); }

/* ---------- Process flow (Funktion) ---------- */
.process-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  position: relative;
}
.process-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.process-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface-card);
  border: 1px solid var(--border-violet);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: var(--fw-semibold);
  color: var(--gold-500);
  position: relative;
  z-index: 1;
}
.process-step h3 { font-size: 20px; }
.process-step p { font-size: 14.5px; line-height: 1.6; color: var(--text-secondary); }

@media (min-width: 760px) {
  .process-flow::before {
    content: '';
    position: absolute;
    top: 26px;
    left: 26px;
    right: calc(100% / 3 - 50px);
    height: 1px;
    background: var(--border-strong);
    z-index: 0;
  }
}
@media (max-width: 759px) {
  .process-flow { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Bento grid (Schutz) ---------- */
.bento-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: stretch; }
.bento-primary {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  position: relative;
}
.bento-primary-content { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.bento-primary h3 { font-size: 26px; }
.bento-primary p { font-size: 15px; line-height: 1.6; color: var(--text-secondary); max-width: 380px; }

.radar { position: absolute; top: -70px; right: -70px; width: 260px; height: 260px; pointer-events: none; }
.radar span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--border-violet);
  opacity: 0;
  animation: radar-ping 3.6s var(--ease-out) infinite;
}
.radar span:nth-child(2) { animation-delay: 1.2s; }
.radar span:nth-child(3) { animation-delay: 2.4s; }
@keyframes radar-ping {
  0% { transform: scale(0.3); opacity: 0.9; }
  80%, 100% { transform: scale(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .radar span { animation: none; opacity: 0.25; }
}

.bento-secondary-group { display: flex; flex-direction: column; gap: 20px; }
.bento-row { padding: 26px; display: flex; align-items: flex-start; gap: 18px; flex: 1; }
.bento-row-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold-500);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-pill);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bento-row h3 { font-size: 18px; margin-bottom: 6px; }
.bento-row p { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }

@media (max-width: 760px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-primary { min-height: 260px; }
}

/* ---------- Pricing ---------- */
.pricing-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.pricing-header h2 { font-size: 40px; }
.pricing-header p { color: var(--text-secondary); font-size: 16px; line-height: 1.6; }
.pricing-header > div:first-child { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }

.billing-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 4px;
}
.billing-toggle button {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-standard), color var(--dur-base) var(--ease-standard);
}
.billing-toggle button.active { background: var(--violet-500); color: #fff; }

.pricing-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: stretch; }
.pricing-card { padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.pricing-card-label-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pricing-card .eyebrow { font-size: 11px; letter-spacing: 0.12em; }
.pricing-card h3 { font-size: 24px; }
.badge-popular {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-900);
  background: var(--gold-500);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
}
.price-row { display: flex; align-items: baseline; gap: 8px; }
.price-value { font-family: var(--font-display); font-weight: 700; font-size: 38px; letter-spacing: -0.02em; color: var(--gold-500); }
.price-suffix { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.feature-list { display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: var(--text-secondary); flex: 1; }

.fine-print { font-size: 12.5px; line-height: 1.6; color: var(--text-muted); }

.pricing-note { text-align: center; font-size: 14.5px; color: var(--text-secondary); }
.pricing-note a { color: var(--gold-500); font-weight: var(--fw-semibold); }
.pricing-note a:hover { color: var(--gold-400); }

[hidden] { display: none !important; }

/* ---------- Confirmation page ---------- */
.confirm-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 69px);
  display: flex;
  align-items: center;
  padding: 80px 24px;
}
.confirm-hero-bg {
  position: absolute; inset: 0;
  background: var(--gradient-duotone);
}
.confirm-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--dotgrid);
  background-size: 22px 22px;
  opacity: 0.15;
}
.confirm-inner { position: relative; max-width: 600px; width: 100%; margin: 0 auto; }
.confirm-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--gold-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-gold);
  margin-bottom: 8px;
}
.confirmation-card {
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.confirmation-card h1 { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 34px; letter-spacing: -0.02em; }
.confirmation-card p { color: var(--text-secondary); font-size: 16px; line-height: 1.6; }
.confirmation-card p.fine-print { color: var(--text-muted); font-size: 13.5px; margin-top: -6px; }

/* ---------- Legal pages ---------- */
.legal-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-default);
  padding: 72px 24px 56px;
}
.legal-hero-bg { position: absolute; inset: 0; background: var(--gradient-duotone); }
.legal-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--dotgrid);
  background-size: 22px 22px;
  opacity: 0.15;
}
.legal-hero-veil { position: absolute; inset: 0; background: var(--veil-ink); }
.legal-hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.legal-hero h1 { font-size: clamp(30px, 4.2vw, 42px); line-height: 1.15; }
.legal-hero-lede { font-size: 16px; line-height: 1.6; color: var(--text-secondary); max-width: 620px; }

.legal-content { padding: 72px 24px 96px; }
.legal-content-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
  counter-reset: legal-section;
}
.legal-section { display: flex; flex-direction: column; gap: 14px; }
.legal-section h2 {
  counter-increment: legal-section;
  font-size: 22px;
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.legal-section h2::before {
  content: counter(legal-section) '.';
  font-family: var(--font-mono);
  color: var(--gold-500);
  font-size: 15px;
  flex-shrink: 0;
}
.legal-section p { font-size: 15px; line-height: 1.7; color: var(--text-secondary); }
.legal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 22px;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.legal-list li::marker { color: var(--gold-500); }
.legal-list--alpha { list-style-type: lower-alpha; }
.legal-content a { text-decoration: underline; text-decoration-color: var(--border-violet); text-underline-offset: 2px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border-default); padding: 48px 24px; }
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 30px; width: auto; }
.footer-copy { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; }
.footer-nav a { color: var(--text-muted); }
.footer-nav a:hover { color: var(--white); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 100;
  display: flex;
  justify-content: center;
}
.cookie-banner-inner {
  max-width: 860px;
  width: 100%;
  background: var(--ink-850);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-text { flex: 1 1 320px; font-size: 13.5px; line-height: 1.55; color: var(--text-secondary); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
