/* ==========================================================================
   CLOSIA – zentrales Stylesheet
   Design-Tokens aus dem Marken-Briefing (Single Source of Truth)
   ========================================================================== */

@import url("../fonts/fonts.css");

:root {
  /* Signatur-Verlauf der Marke */
  --brand-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --brand-indigo: #667eea;
  --brand-violet: #764ba2;
  --brand-lavender: #a78bfa;

  /* Flächen & Text */
  --bg-light: #f5f7fa;
  --surface: #ffffff;
  --text-strong: #1a1a1a;
  --text-body: #333333;
  --text-muted: #5b6070;
  --border: #e0e0e0;

  /* Dunkle Premium-Sektionen */
  --night-1: #0e1030;
  --night-2: #1a1145;
  --night-text: #c9cce8;
  --night-border: rgba(255, 255, 255, 0.1);

  /* Statusfarben */
  --success: #28a745;
  --danger: #dc3545;
  --info: #17a2b8;
  --warning-bg: #fff3cd;
  --warning-fg: #856404;

  /* Typografie */
  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

  /* Geometrie & Effekte */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 8px 30px rgba(102, 126, 234, 0.10);
  --shadow-lift: 0 20px 60px rgba(102, 126, 234, 0.18);
  --shadow-glow: 0 0 0 1px rgba(102, 126, 234, .25), 0 10px 40px rgba(102, 126, 234, .45);

  --nav-height: 72px;
}

/* --------------------------------------------------------------------------
   Reset & Basis
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--bg-light);
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-strong);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--brand-indigo); }
a:hover { color: var(--brand-violet); }

:focus-visible {
  outline: 3px solid var(--brand-indigo);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; border: 0; clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--surface); color: var(--text-strong);
  padding: .6rem 1rem; border-radius: var(--radius-sm); box-shadow: var(--shadow-lift);
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   Layout-Helfer
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-tight { padding-block: clamp(2.5rem, 6vw, 4rem); }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.is-centered { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grid-2 { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-3 { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  padding: .95rem 1.8rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}

.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 10px 30px rgba(102, 126, 234, .35);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-strong);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--brand-indigo); color: var(--brand-indigo); transform: translateY(-2px); }

/* Ghost-Variante auf dunklem Grund */
.on-dark .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.on-dark .btn-ghost:hover { border-color: #fff; color: #fff; }

.btn-sm { padding: .55rem 1.2rem; font-size: .9rem; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(14, 16, 48, .55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease;
}
.navbar.is-scrolled {
  background: rgba(14, 16, 48, .92);
  border-bottom-color: var(--night-border);
}

.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-logo { height: 28px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links > a, .nav-item > a {
  font-size: .95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  padding: .4rem 0;
}
.nav-links > a:hover, .nav-item > a:hover,
.nav-links > a.is-active, .nav-item.is-active > a { color: #fff; }
.nav-links > a.is-active, .nav-item.is-active > a {
  text-decoration: underline;
  text-decoration-color: var(--brand-lavender);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.nav-item { position: relative; }
.nav-sub {
  position: absolute;
  top: calc(100% + 10px);
  left: -1rem;
  min-width: 320px;
  display: grid;
  gap: .15rem;
  padding: .6rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav-item:hover .nav-sub,
.nav-item:focus-within .nav-sub { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-sub a {
  display: block;
  padding: .6rem .8rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-strong);
}
.nav-sub a:hover { background: var(--bg-light); }
.nav-sub strong { display: block; font-size: .92rem; }
.nav-sub span { display: block; font-size: .8rem; color: var(--text-muted); }

.nav-cta { margin-left: .4rem; }
.nav-cta:hover { color: #fff; }
/* .nav-links > a (0,1,1) schlägt .btn-sm (0,1,0) – Padding hier gezielt wiederherstellen */
.navbar .nav-links .nav-cta {
  display: inline-flex;
  padding: .55rem 1.3rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero (dunkel, Mesh-Glow)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--night-1) 0%, var(--night-2) 100%);
  color: var(--night-text);
  padding-top: calc(var(--nav-height) + clamp(3.5rem, 8vw, 6.5rem));
  padding-bottom: clamp(4rem, 9vw, 7rem);
}

.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  pointer-events: none;
}
.hero::before {
  width: 560px; height: 560px;
  background: radial-gradient(circle, var(--brand-indigo), transparent 65%);
  top: -180px; right: -120px;
  animation: drift 16s ease-in-out infinite alternate;
}
.hero::after {
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--brand-violet), transparent 65%);
  bottom: -200px; left: -140px;
  animation: drift 20s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.12); }
}

.hero .container { position: relative; z-index: 1; }

.hero h1, .hero h2 { color: #fff; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 560px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--night-border);
  border-radius: 999px;
  padding: .35rem 1rem;
  margin-bottom: 1.5rem;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-lavender);
  box-shadow: 0 0 10px var(--brand-lavender);
}

.hero-display {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
}
/* Im zweispaltigen Hero etwas kompakter, damit lange deutsche
   Komposita nicht in zu viele Zeilen brechen */
.hero-grid .hero-display { font-size: clamp(2.3rem, 3.4vw, 3.2rem); }
.hero-display .grad {
  background: linear-gradient(135deg, #a5b4fc 0%, var(--brand-lavender) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2.2rem; font-size: .88rem; }
.hero-meta li { display: flex; align-items: center; gap: .5rem; list-style: none; }
.hero-meta { padding: 0; }
.hero-meta svg { color: var(--brand-lavender); flex: none; }

/* Mini-Hero für Unterseiten */
.mini-hero {
  padding-top: calc(var(--nav-height) + clamp(2.5rem, 6vw, 4.5rem));
  padding-bottom: clamp(2.8rem, 6vw, 4.5rem);
}
.mini-hero .lead { font-size: 1.15rem; max-width: 640px; }
.mini-hero .breadcrumb {
  font-size: .85rem;
  margin-bottom: 1.2rem;
}
.mini-hero .breadcrumb a { color: var(--brand-lavender); text-decoration: none; }
.mini-hero .breadcrumb a:hover { text-decoration: underline; }
.mini-hero .breadcrumb span { color: var(--night-text); opacity: .7; }

/* --------------------------------------------------------------------------
   Sektionen hell/dunkel
   -------------------------------------------------------------------------- */
.section-light { background: var(--bg-light); }
.section-white { background: var(--surface); }
.section-dark {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--night-1), var(--night-2));
  color: var(--night-text);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-head p { color: var(--night-text); }

/* --------------------------------------------------------------------------
   Karten
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
a.card { display: block; text-decoration: none; color: var(--text-body); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: rgba(102, 126, 234, .4); }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--brand-gradient);
  color: #fff;
  margin-bottom: 1.2rem;
  box-shadow: 0 8px 24px rgba(102, 126, 234, .35);
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--text-muted); font-size: .98rem; margin-bottom: 0; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 600;
  color: var(--brand-indigo);
}
.card:hover .card-link { gap: .6rem; }
.card-link { transition: gap .2s ease; }

/* Glas-Karten auf dunklem Grund */
.glass-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--night-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform .25s ease, border-color .25s ease, background-color .25s ease;
}
.glass-card:hover { transform: translateY(-6px); border-color: rgba(167, 139, 250, .5); background: rgba(255, 255, 255, .09); }
.glass-card h3 { color: #fff; }
.glass-card p { color: var(--night-text); }

/* Stat-Cards (Outcome-Angle) */
.stat-card { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #a5b4fc, var(--brand-lavender));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: .4rem;
}
.stat-label { font-size: .95rem; color: var(--night-text); }

/* --------------------------------------------------------------------------
   Rollen-Tabs
   -------------------------------------------------------------------------- */
.role-tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.role-tab {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  padding: .65rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-body);
  cursor: pointer;
  transition: all .2s ease;
}
.role-tab[aria-selected="true"] {
  background: var(--brand-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 24px rgba(102, 126, 234, .35);
}
.role-panel[hidden] { display: none; }

.role-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

/* --------------------------------------------------------------------------
   Checkliste
   -------------------------------------------------------------------------- */
.checklist { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .85rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; }
.checklist .check {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-gradient);
  color: #fff;
  margin-top: 2px;
}
.checklist .check svg { width: 13px; height: 13px; }
.section-dark .checklist li { color: var(--night-text); }
.checklist strong { color: inherit; }

/* --------------------------------------------------------------------------
   Abwechselnde Text/Mockup-Blöcke
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split + .split { margin-top: clamp(4rem, 8vw, 6.5rem); }
.split.is-reversed .split-media { order: -1; }
.split h2, .split h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.split .lead { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Workflow / Timeline
   -------------------------------------------------------------------------- */
.timeline { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2rem, 4vw, 3rem); }
.timeline::before {
  content: "";
  position: absolute;
  left: 27px; top: 10px; bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-indigo), var(--brand-violet));
  opacity: .4;
}
.timeline li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 1.4rem; }
.timeline .step-num {
  position: relative;
  z-index: 1;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  background: var(--brand-gradient);
  box-shadow: 0 8px 24px rgba(102, 126, 234, .4);
}
.timeline h3 { margin-bottom: .3rem; }
.timeline p { color: var(--text-muted); margin: 0; max-width: 60ch; }
.timeline .step-role {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand-indigo);
  background: rgba(102, 126, 234, .1);
  border-radius: 999px;
  padding: .2rem .7rem;
  margin-bottom: .5rem;
}
.section-dark .timeline p { color: var(--night-text); }
.section-dark .timeline .step-role { color: var(--brand-lavender); background: rgba(167, 139, 250, .12); }

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 2.5rem;
  font-weight: 500;
}
.billing-toggle .switch {
  position: relative;
  width: 56px; height: 30px;
  border-radius: 999px;
  border: 0;
  background: var(--brand-gradient);
  cursor: pointer;
}
.billing-toggle .switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  transition: transform .25s ease;
}
.billing-toggle .switch[aria-checked="true"]::after { transform: translateX(26px); }
.billing-toggle .save-badge {
  font-size: .78rem;
  font-weight: 600;
  color: var(--success);
  background: rgba(40, 167, 69, .12);
  padding: .2rem .6rem;
  border-radius: 999px;
}

.pricing-grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: stretch; }
.pricing-card { position: relative; display: flex; flex-direction: column; }
.pricing-card.is-featured {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--brand-gradient) border-box;
  box-shadow: var(--shadow-lift);
}
.pricing-card .plan-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--brand-gradient);
  padding: .3rem 1rem;
  border-radius: 999px;
}
.pricing-card .plan-price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  margin: .6rem 0 .4rem;
}
.pricing-card .plan-price .per { font-size: 1rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.pricing-card .checklist { flex: 1; }
.pricing-note {
  margin-top: 2rem;
  font-size: .9rem;
  color: var(--warning-fg);
  background: var(--warning-bg);
  border-radius: var(--radius-sm);
  padding: .8rem 1.2rem;
  display: inline-block;
}

/* --------------------------------------------------------------------------
   FAQ (Accordion via <details>)
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: .9rem; max-width: 780px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq details[open] { border-color: rgba(102, 126, 234, .45); box-shadow: var(--shadow-soft); }
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text-strong);
  padding: 1.1rem 1.4rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brand-indigo);
  transition: transform .2s ease;
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 1.4rem 1.2rem; color: var(--text-muted); font-size: .98rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Logo- / Integrations-Leiste
   -------------------------------------------------------------------------- */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.logo-strip .strip-label { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.integration-pill {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-strong);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .7rem 1.5rem;
  box-shadow: var(--shadow-soft);
}
.integration-pill .soon {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--brand-violet);
  background: rgba(118, 75, 162, .1);
  border-radius: 999px;
  padding: .15rem .55rem;
}

/* --------------------------------------------------------------------------
   CTA-Sektion
   -------------------------------------------------------------------------- */
.cta-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--night-1) 0%, var(--night-2) 55%, #2a1a5e 100%);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  color: var(--night-text);
}
.cta-section::before {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 126, 234, .55), transparent 65%);
  top: -250px; left: 50%;
  transform: translateX(-50%);
  filter: blur(70px);
  pointer-events: none;
}
.cta-section > * { position: relative; }
.cta-section h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-section p { max-width: 560px; margin-inline: auto; }
.cta-section .hero-actions { justify-content: center; }

/* --------------------------------------------------------------------------
   Mockups (CSS-gebaute Produkt-Darstellungen)
   -------------------------------------------------------------------------- */
.mock-browser {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  font-size: 12px;
}
.on-dark .mock-browser, .section-dark .mock-browser, .hero .mock-browser {
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 30px 80px rgba(5, 6, 30, .6);
}
.mock-titlebar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .9rem;
  background: #f0f1f7;
  border-bottom: 1px solid var(--border);
}
.mock-titlebar .dots { display: flex; gap: 5px; }
.mock-titlebar .dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.mock-titlebar .dots i:nth-child(1) { background: #ff5f57; }
.mock-titlebar .dots i:nth-child(2) { background: #febc2e; }
.mock-titlebar .dots i:nth-child(3) { background: #28c840; }
.mock-urlbar {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .2rem .8rem;
  color: var(--text-muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-app { display: grid; grid-template-columns: 132px 1fr; min-height: 280px; }
.mock-sidebar {
  background: linear-gradient(180deg, var(--night-1), var(--night-2));
  padding: .9rem .7rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.mock-sidebar .side-item {
  color: rgba(255, 255, 255, .75);
  border-radius: 8px;
  padding: .42rem .6rem;
  font-weight: 500;
  white-space: nowrap;
}
.mock-sidebar .side-item.is-active { background: var(--brand-gradient); color: #fff; }

.mock-main { padding: 1rem; background: var(--bg-light); display: grid; gap: .8rem; align-content: start; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.mock-stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .6rem .7rem;
}
.mock-stat b { display: block; font-size: 15px; color: var(--text-strong); font-family: var(--font-display); }
.mock-stat span { color: var(--text-muted); font-size: 10px; }
.mock-stat .trend-up { color: var(--success); font-weight: 600; }

.mock-table { background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.mock-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr .8fr .8fr;
  gap: .5rem;
  padding: .5rem .7rem;
  border-bottom: 1px solid #eef0f6;
  align-items: center;
  color: var(--text-muted);
}
.mock-row:last-child { border-bottom: 0; }
.mock-row.is-head { background: #f8f9fc; font-weight: 600; color: var(--text-strong); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.mock-badge {
  justify-self: start;
  font-size: 9px;
  font-weight: 600;
  border-radius: 999px;
  padding: .15rem .5rem;
  white-space: nowrap;
}
.mock-badge.ok { background: rgba(40, 167, 69, .12); color: var(--success); }
.mock-badge.wait { background: var(--warning-bg); color: var(--warning-fg); }
.mock-badge.info { background: rgba(23, 162, 184, .12); color: var(--info); }

/* Shop-Mockup (gebrandeter Kunden-Shop) */
.mock-shop { background: #fff; }
.mock-shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem 1rem;
  background: var(--night-1);
  color: #fff;
  font-weight: 600;
}
.mock-shop-header .shop-logo { display: flex; align-items: center; gap: .45rem; }
.mock-shop-header .logo-swatch { width: 16px; height: 16px; border-radius: 5px; background: var(--brand-gradient); }
.mock-shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; padding: 1rem; background: var(--bg-light); }
.mock-product { background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.mock-product .ph {
  height: 64px;
  background: linear-gradient(135deg, #e6e9f8, #efe8f6);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-indigo);
}
.mock-product .info { padding: .5rem .6rem; }
.mock-product .info b { display: block; color: var(--text-strong); font-size: 11px; }
.mock-product .info span { color: var(--text-muted); font-size: 10px; }

/* Konfigurator-Mockup */
.mock-config { padding: 1rem; background: #fff; display: grid; gap: .7rem; }
.mock-config .cfg-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.mock-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.mock-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .25rem .7rem;
  color: var(--text-body);
  font-weight: 500;
}
.mock-chip.is-active { background: var(--brand-gradient); color: #fff; border-color: transparent; }
.mock-swatches { display: flex; gap: .45rem; }
.mock-swatches i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); }
.mock-swatches i.is-active { box-shadow: 0 0 0 2px var(--brand-indigo); }

/* Rechnung-Mockup */
.mock-invoice { padding: 1.1rem; background: #fff; display: grid; gap: .7rem; }
.mock-invoice .inv-head { display: flex; justify-content: space-between; align-items: center; }
.mock-invoice .inv-head b { font-family: var(--font-display); color: var(--text-strong); font-size: 14px; }
.mock-line { display: flex; justify-content: space-between; color: var(--text-muted); border-bottom: 1px dashed var(--border); padding-bottom: .4rem; }
.mock-line.total { border-bottom: 0; color: var(--text-strong); font-weight: 700; }

/* Schwebende Notify-Karte über Mockups */
.mock-wrap { position: relative; }
.mock-float {
  position: absolute;
  right: -14px; bottom: -18px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--border);
  padding: .7rem .95rem;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: .6rem;
  animation: floaty 5s ease-in-out infinite;
}
.mock-float .ok-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(40, 167, 69, .14);
  color: var(--success);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.mock-float b { display: block; color: var(--text-strong); }
.mock-float span { color: var(--text-muted); }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --------------------------------------------------------------------------
   Formulare
   -------------------------------------------------------------------------- */
.form-grid { display: grid; gap: 1.2rem; }
.form-row { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.field label {
  display: block;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: .4rem;
}
.field .req { color: var(--danger); }

.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-body);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-indigo);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, .18);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { display: none; font-size: .82rem; color: var(--danger); margin-top: .35rem; }
.field.has-error .field-error { display: block; }

.field-consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--text-muted); }
.field-consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand-indigo); flex: none; }
.field-consent a { color: var(--brand-indigo); }

.form-feedback { display: none; font-size: .95rem; border-radius: var(--radius-sm); padding: .9rem 1.2rem; margin: .5rem 0 0; }
.form-feedback.is-success { display: block; background: rgba(40, 167, 69, .12); color: #1c7430; }
.form-feedback.is-error { display: block; background: rgba(220, 53, 69, .1); color: #a52834; }

/* Honeypot – für Menschen unsichtbar */
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; margin: 0; overflow: hidden; }

.form-hint { font-size: .8rem; color: var(--text-muted); margin-top: .6rem; }

/* Demo-Seite: zweispaltig */
.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
.demo-form-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lift);
  padding: clamp(1.8rem, 4vw, 2.8rem);
}
/* Karte liegt im dunklen Hero – Überschriften wieder dunkel */
.hero .demo-form-card h2, .hero .demo-form-card h3 { color: var(--text-strong); }

.trust-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.6rem; }
.trust-list li { display: flex; gap: 1rem; }
.trust-list .card-icon { width: 46px; height: 46px; flex: none; margin: 0; }
.trust-list b { display: block; font-family: var(--font-display); color: inherit; }
.trust-list span { font-size: .95rem; opacity: .85; }

.newsletter-row { display: flex; gap: .6rem; }
.newsletter-row input {
  flex: 1;
  min-width: 0;
  font-size: .95rem;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--night-border);
  border-radius: 999px;
  color: #fff;
  padding: .7rem 1.1rem;
}
.newsletter-row input::placeholder { color: rgba(255, 255, 255, .45); }
.newsletter-row input:focus { outline: none; border-color: var(--brand-lavender); }
.newsletter-row .btn { padding: .7rem 1.4rem; font-size: .9rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: linear-gradient(180deg, var(--night-1), #0a0b24);
  color: var(--night-text);
  padding: clamp(3rem, 7vw, 5rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.5fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--night-border);
}
.footer-brand p { font-size: .92rem; margin-top: 1.2rem; max-width: 36ch; }
.footer-col h3 { color: #fff; font-size: .95rem; margin-bottom: 1.1rem; }
.footer-col a {
  display: block;
  color: var(--night-text);
  text-decoration: none;
  font-size: .92rem;
  padding: .25rem 0;
}
.footer-col a:hover { color: #fff; }
.footer-newsletter p { font-size: .9rem; }
.footer-newsletter .form-hint { color: rgba(201, 204, 232, .65); }
.footer-newsletter .form-hint a { color: var(--brand-lavender); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.6rem;
  font-size: .85rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--night-text); text-decoration: none; margin-left: 1.4rem; }
.footer-bottom a:first-child { margin-left: 0; }
.footer-bottom a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Modal (Exit-Intent)
   -------------------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 11, 36, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal-card {
  position: relative;
  max-width: 480px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: 2.5rem;
  animation: modal-in .3s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.modal-card h2 { font-size: 1.6rem; }
.modal-card p { color: var(--text-muted); }
.modal-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.modal-close {
  position: absolute;
  top: .9rem; right: .9rem;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: var(--border); color: var(--text-strong); }

/* ==========================================================================
   Designsprache „Faden & Naht" – markenspezifische Details
   Das Stich-Motiv (gestrichelte Nahtlinien) zieht sich durch alle Seiten:
   Eyebrows, Unterstreichungen, Timeline, Trennlinien.
   ========================================================================== */

/* Textauswahl & Grundtextur ------------------------------------------------ */
::selection { background: var(--brand-indigo); color: #fff; }

/* Punktraster-Textur auf allen dunklen Flächen */
.hero, .section-dark {
  background-image:
    radial-gradient(rgba(167, 139, 250, .14) 1px, transparent 1.4px),
    linear-gradient(160deg, var(--night-1) 0%, var(--night-2) 100%);
  background-size: 26px 26px, auto;
}
.cta-section {
  background-image:
    radial-gradient(rgba(167, 139, 250, .15) 1px, transparent 1.4px),
    linear-gradient(135deg, var(--night-1) 0%, var(--night-2) 55%, #2a1a5e 100%);
  background-size: 26px 26px, auto;
}

/* Eyebrow: Nahtlinie statt nackter Großbuchstaben ------------------------- */
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; }
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  flex: none;
  background: repeating-linear-gradient(90deg, var(--brand-indigo) 0 6px, transparent 6px 11px);
}
.hero .eyebrow::before,
.section-dark .eyebrow::before,
.cta-section .eyebrow::before {
  background: repeating-linear-gradient(90deg, var(--brand-lavender) 0 6px, transparent 6px 11px);
}
.section-head.is-centered .eyebrow::after {
  content: "";
  width: 34px;
  height: 2px;
  flex: none;
  background: repeating-linear-gradient(90deg, var(--brand-indigo) 0 6px, transparent 6px 11px);
}
.section-dark .section-head.is-centered .eyebrow::after {
  background: repeating-linear-gradient(90deg, var(--brand-lavender) 0 6px, transparent 6px 11px);
}

/* Gestickte Unterstreichung für Schlüsselwörter ---------------------------- */
.stitch-word { position: relative; display: inline-block; }
.stitch-word::after {
  content: "";
  position: absolute;
  left: .02em; right: .08em; bottom: -.1em;
  height: .16em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 10 Q 50 3 100 8 T 197 6' fill='none' stroke='%23a78bfa' stroke-width='4' stroke-linecap='round' stroke-dasharray='11 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* Ghost-Nummern hinter Sektions-Überschriften ------------------------------ */
body { counter-reset: section; }
.section-head { position: relative; }
.section-head > * { position: relative; }
.section-head::before {
  counter-increment: section;
  content: counter(section, decimal-leading-zero);
  position: absolute;
  top: -.52em;
  left: -.06em;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 9vw, 7.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(102, 126, 234, .18);
  pointer-events: none;
}
.section-head.is-centered::before { left: 50%; transform: translateX(-50%); }
.section-dark .section-head::before { -webkit-text-stroke-color: rgba(167, 139, 250, .25); }

/* Marquee-Band (Startseite) ------------------------------------------------ */
.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: var(--brand-gradient);
  transform: rotate(-1.2deg) scale(1.03);
  margin-top: -1.5rem;
  padding: .85rem 0;
  box-shadow: var(--shadow-lift);
}
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-group {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  padding-right: 2.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
.marquee-group i { font-style: normal; opacity: .65; font-size: .75em; }
.marquee-group .is-outline { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .8); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Karten mit Charakter ----------------------------------------------------- */
.card { background: linear-gradient(180deg, #ffffff 0%, #fbfbfe 100%); }
.card-icon {
  border-radius: 16px;
  transform: rotate(-6deg);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.card:hover .card-icon, .trust-list li:hover .card-icon { transform: rotate(0) scale(1.07); }
.card:hover {
  box-shadow: 0 0 0 1.5px rgba(102, 126, 234, .45), var(--shadow-lift);
  border-color: transparent;
}
.glass-card .card-icon { transform: rotate(-6deg); }
.glass-card:hover .card-icon { transform: rotate(0) scale(1.07); }

/* Rollen-Tabs als segmentierte Pille --------------------------------------- */
.role-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .3rem;
  padding: .4rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.role-tab { border: 0; background: transparent; padding: .6rem 1.5rem; }
.role-tab:hover { color: var(--brand-indigo); }
.role-tab[aria-selected="true"]:hover { color: #fff; }

/* Timeline: Nahtlinie + gedrehte Stich-Badges ------------------------------ */
.timeline::before {
  background: repeating-linear-gradient(180deg, rgba(102, 126, 234, .65) 0 9px, transparent 9px 17px);
  opacity: 1;
}
.timeline .step-num {
  border-radius: 18px;
  transform: rotate(-7deg);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.timeline li:nth-child(even) .step-num { transform: rotate(6deg); }
.timeline li:hover .step-num { transform: rotate(0); }

/* Hero-Mockup: leicht gekippt, mit Aura ------------------------------------ */
.hero .mock-wrap .mock-browser {
  transform: rotate(-2deg);
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1);
}
.hero .mock-wrap:hover .mock-browser { transform: rotate(0); }
.hero .mock-wrap::before {
  content: "";
  position: absolute;
  inset: -10% -8%;
  background: radial-gradient(closest-side, rgba(102, 126, 234, .4), transparent 70%);
  filter: blur(36px);
  z-index: -1;
  pointer-events: none;
}
.mock-float-tl {
  right: auto; bottom: auto;
  left: -14px; top: -18px;
  animation-delay: -2.5s;
}

/* Buttons: feiner Lichtkante oben ------------------------------------------ */
.btn-primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 30px rgba(102, 126, 234, .35); }
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), var(--shadow-glow); }

/* Integrations-Pillen: Faden-Optik ----------------------------------------- */
.integration-pill { border: 1.5px dashed rgba(102, 126, 234, .45); box-shadow: none; }
.integration-pill svg { color: var(--brand-indigo); }

/* Footer: Nahtlinie oben ---------------------------------------------------- */
.footer { position: relative; }
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 3rem));
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(167, 139, 250, .45) 0 8px, transparent 8px 16px);
}

/* Größere Sektions-Überschriften ------------------------------------------- */
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); }

@media (max-width: 560px) {
  .section-head::before { font-size: 3.8rem; top: -.4em; }
  .marquee { margin-top: -1rem; }
}

/* --------------------------------------------------------------------------
   Scroll-Reveal-Animationen
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

@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;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1020px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    background: var(--night-1);
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--night-border);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
  }
  .nav-links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-links > a, .nav-item > a { display: block; padding: .7rem 0; font-size: 1.05rem; }
  .nav-sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, .05);
    border-radius: var(--radius-sm);
    min-width: 0;
    margin: .2rem 0 .6rem;
  }
  .nav-sub a { color: #fff; }
  .nav-sub a:hover { background: rgba(255, 255, 255, .08); }
  .nav-sub strong { color: #fff; }
  .nav-sub span { color: var(--night-text); }
  .nav-cta { margin: .8rem 0 0; justify-content: center; }
  .navbar .nav-links .nav-cta { display: flex; padding: .8rem 1.3rem; }

  .hero-grid, .split, .role-panel, .demo-layout { grid-template-columns: 1fr; }
  .split.is-reversed .split-media { order: 0; }
  .hero-grid .hero-media { margin-top: 1rem; }
}

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .footer-grid { grid-template-columns: 1fr; }
  .mock-cards, .mock-shop-grid { grid-template-columns: repeat(2, 1fr); }
  .mock-app { grid-template-columns: 96px 1fr; }
  .mock-browser { font-size: 10px; }
  .mock-row { grid-template-columns: 1.3fr 1fr .9fr .7fr; gap: .35rem; padding: .45rem .5rem; }
  .mock-float { right: 4px; bottom: -14px; }
  .mock-float-tl { right: auto; bottom: auto; left: 4px; top: -14px; }
  .hero-actions .btn { width: 100%; }
  .modal-card { padding: 1.8rem; }
  .newsletter-row { flex-direction: column; }
  .timeline li { grid-template-columns: 44px 1fr; gap: 1rem; }
  .timeline .step-num { width: 44px; height: 44px; font-size: 1rem; }
  .timeline::before { left: 21px; }
}
