/* ═══ glowwee — Marketing Landing ═════════════════════════════════════
   Reuses the app's design tokens but with a scrolling layout (the app CSS
   sets overflow:hidden and a fixed sidebar, so the landing is standalone). */

:root {
  --primary: #7c3aed;
  --primary-light: #9d5cf0;
  --primary-dark: #5b21b6;
  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --danger: #ef4444;
  --success: #10b981;

  --bg: #05070f;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.16);

  --text: #e2e8f0;
  --text-muted: rgba(226,232,240,0.6);
  --text-dim: rgba(226,232,240,0.35);

  --font: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --maxw: 1140px;
  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient gradient background */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 20% 0%, rgba(124,58,237,0.18), transparent 70%),
    radial-gradient(50% 40% at 90% 10%, rgba(6,182,212,0.12), transparent 70%),
    radial-gradient(40% 40% at 50% 100%, rgba(124,58,237,0.10), transparent 70%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ─── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  padding: 12px 22px; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: all var(--transition); white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; box-shadow: 0 0 24px rgba(124,58,237,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 32px rgba(124,58,237,0.5); }
.btn-ghost { background: var(--bg-card); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--bg-card-hover); border-color: var(--border-hover); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }

/* ─── Top nav ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(5,7,15,0.7);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand-logo { width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center; color: #fff; font-size: 16px; font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--text-muted); font-size: 14px; font-weight: 500; transition: color var(--transition); }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-select {
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted);
  border-radius: var(--radius-sm); padding: 7px 10px; font-family: var(--font); font-size: 13px; cursor: pointer;
}
.nav-toggle { display: none; }

/* ─── Hero ────────────────────────────────────────────────────────────── */
.hero { text-align: center; padding: 96px 0 72px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--accent-light);
  background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.25);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 66px); line-height: 1.05; font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.grad {
  background: linear-gradient(120deg, var(--primary-light), var(--accent-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub { font-size: clamp(16px, 2.4vw, 21px); color: var(--text-muted); max-width: 680px; margin: 0 auto 34px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--text-dim); }

/* ─── Animated explainer (looping CSS "video") ────────────────────────── */
.explainer { margin: 56px auto 0; max-width: 880px; }
.ex-window {
  border-radius: var(--radius-xl); border: 1px solid var(--border-hover);
  box-shadow: 0 30px 90px rgba(0,0,0,0.65), 0 0 0 1px rgba(124,58,237,0.12);
  overflow: hidden; background: #0a0c16;
}
.ex-bar {
  display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px;
  background: rgba(0,0,0,0.4); border-bottom: 1px solid var(--border);
}
.ex-dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.ex-dot:nth-child(1) { background: #ff5f57; } .ex-dot:nth-child(2) { background: #febc2e; } .ex-dot:nth-child(3) { background: #28c840; }
.ex-url {
  margin-left: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--text-dim);
  background: rgba(255,255,255,0.05); padding: 3px 12px; border-radius: 999px;
}
.ex-screen {
  position: relative; aspect-ratio: 16/9;
  background:
    radial-gradient(60% 60% at 25% 10%, rgba(124,58,237,0.18), transparent 70%),
    radial-gradient(50% 50% at 90% 90%, rgba(6,182,212,0.14), transparent 70%),
    #070912;
}

/* Scenes cross-fade on a shared 16s loop (4 × ~4s), staggered by delay */
.ex-scene {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px; padding: 56px 6% 24px;
  opacity: 0; animation: exCycle 16s infinite;
}
.ex-s1 { animation-delay: 0s; }
.ex-s2 { animation-delay: 4s; }
.ex-s3 { animation-delay: 8s; }
.ex-s4 { animation-delay: 12s; }
@keyframes exCycle {
  0%   { opacity: 0; transform: translateY(10px) scale(0.99); }
  4%   { opacity: 1; transform: none; }
  22%  { opacity: 1; transform: none; }
  26%  { opacity: 0; transform: translateY(-8px) scale(0.99); }
  100% { opacity: 0; }
}

.ex-step {
  position: absolute; top: 16px; left: 20px;
  font-size: clamp(11px, 1.6vw, 13px); font-weight: 600; letter-spacing: 0.04em;
  color: var(--accent-light); background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.25); padding: 4px 12px; border-radius: 999px;
}

/* Scene 1 — chat prompt */
.ex-chat { width: 86%; max-width: 560px; }
.ex-msg {
  background: linear-gradient(135deg, rgba(124,58,237,0.22), rgba(6,182,212,0.16));
  border: 1px solid var(--border-hover); border-radius: 16px 16px 16px 4px;
  padding: clamp(14px, 2.4vw, 22px); font-size: clamp(15px, 2.6vw, 22px);
  font-weight: 600; color: #fff; line-height: 1.4;
}
.ex-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 3px;
  background: var(--accent-light); vertical-align: text-bottom; animation: exBlink 1s steps(1) infinite; }
@keyframes exBlink { 50% { opacity: 0; } }

/* Scene 2 — outline + confirm */
.ex-outline { width: 80%; max-width: 520px; display: flex; flex-direction: column; gap: clamp(7px, 1.4vw, 11px); }
.ex-ol {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-left: 3px solid var(--primary); border-radius: 10px;
  padding: clamp(8px, 1.6vw, 12px) 14px; font-size: clamp(13px, 2vw, 17px); color: var(--text);
}
.ex-ol i { font-style: normal; width: 22px; height: 22px; flex: none; border-radius: 6px;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: rgba(124,58,237,0.25); color: #c4b5fd; }
.ex-ol b { font-weight: 600; }
.ex-confirm {
  font-size: clamp(13px, 2vw, 16px); font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 10px 22px; border-radius: 12px; animation: exPulse 1.6s ease-out infinite;
}
@keyframes exPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,0.5); }
  50% { box-shadow: 0 0 0 10px rgba(124,58,237,0); }
}

/* Scene 3 — rendered slide */
.ex-slide {
  width: 84%; max-width: 600px; aspect-ratio: 16/9; border-radius: 14px;
  border: 1px solid var(--border-hover); padding: clamp(16px, 3vw, 30px);
  background: radial-gradient(70% 70% at 20% 10%, rgba(124,58,237,0.25), transparent 70%), #0a0a18;
  display: flex; flex-direction: column; justify-content: center; gap: clamp(8px, 1.6vw, 14px);
  position: relative; overflow: hidden;
}
.ex-slide-tag { font-size: clamp(10px, 1.5vw, 13px); font-weight: 700; letter-spacing: 0.1em; color: var(--accent-light); }
.ex-slide-h { font-size: clamp(20px, 4vw, 38px); font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.ex-kpis { display: flex; gap: clamp(12px, 3vw, 28px); }
.ex-kpis span { font-size: clamp(20px, 4vw, 40px); font-weight: 800;
  background: linear-gradient(120deg, var(--primary-light), var(--accent-light));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.ex-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,0.08); }
.ex-prog i { display: block; height: 100%; width: 8%;
  background: linear-gradient(90deg, var(--primary), var(--accent)); animation: exProg 4s ease-in-out infinite; }
@keyframes exProg { 0% { width: 6%; } 80%, 100% { width: 94%; } }

/* Scene 4 — the revolution punch */
.ex-rev { text-align: center; }
.ex-strike { display: inline-block; position: relative; font-size: clamp(18px, 3.4vw, 30px);
  font-weight: 700; color: var(--text-muted); }
.ex-strike::after { content: ''; position: absolute; left: -4%; top: 52%; height: 3px; width: 0;
  background: var(--danger); border-radius: 2px; animation: exStrike 16s infinite; animation-delay: 12s; }
@keyframes exStrike { 0% { width: 0; } 8% { width: 108%; } 24% { width: 108%; } 28% { width: 0; } 100% { width: 0; } }
.ex-rev-title { font-size: clamp(28px, 6vw, 58px); font-weight: 800; letter-spacing: -0.02em; color: #fff; margin-top: 6px; }
.ex-rev-sub { font-size: clamp(13px, 2.2vw, 18px); color: var(--text-muted); margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  .ex-scene { animation: none; opacity: 0; }
  .ex-s4 { opacity: 1; }
  .ex-caret, .ex-confirm, .ex-prog i, .ex-strike::after { animation: none; }
  .ex-strike::after { width: 108%; }
}

/* Made-in-Germany badges */
.mig-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 6px 11px; border-radius: 999px; white-space: nowrap;
}
.mig-strip {
  margin-top: 18px; font-size: 13px; font-weight: 500; color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 6px;
}
@media (max-width: 980px) { .nav-actions .mig-badge { display: none; } }

/* ─── Sections ────────────────────────────────────────────────────────── */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 17px; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; transition: all var(--transition);
}
.feature:hover { border-color: var(--border-hover); transform: translateY(-3px); background: var(--bg-card-hover); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 22px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(6,182,212,0.18));
}
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 14.5px; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 30px; transition: all var(--transition);
}
.price-card.popular {
  border-color: rgba(124,58,237,0.6); box-shadow: 0 0 40px rgba(124,58,237,0.2);
  position: relative;
}
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 999px;
}
.price-name { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-light); }
.price-amount { font-size: 44px; font-weight: 800; margin: 14px 0 2px; }
.price-amount small { font-size: 16px; font-weight: 500; color: var(--text-muted); }
.price-period { color: var(--text-dim); font-size: 13px; margin-bottom: 22px; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; flex: 1; }
.price-features li { font-size: 14.5px; color: var(--text-muted); display: flex; gap: 9px; align-items: flex-start; }
.price-features li::before { content: '✓'; color: var(--success); font-weight: 700; flex: none; }
.price-features li.off { color: var(--text-dim); }
.price-features li.off::before { content: '–'; color: var(--text-dim); }
.price-card .btn { width: 100%; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; color: var(--text);
  font-family: var(--font); font-size: 16px; font-weight: 600; padding: 18px 20px;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q::after { content: '+'; color: var(--accent); font-size: 22px; font-weight: 400; transition: transform var(--transition); }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a p { padding: 0 20px 18px; color: var(--text-muted); font-size: 15px; }
.faq-item.open .faq-a { max-height: 320px; }

/* CTA band */
.cta-band { text-align: center; }
.cta-inner {
  background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(6,182,212,0.12));
  border: 1px solid var(--border-hover); border-radius: var(--radius-xl);
  padding: 56px 32px;
}
.cta-inner h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; margin-bottom: 14px; }
.cta-inner p { color: var(--text-muted); font-size: 17px; margin-bottom: 28px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 48px 0 32px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; margin-bottom: 32px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 12px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 14px; padding: 4px 0; transition: color var(--transition); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  border-top: 1px solid var(--border); padding-top: 22px; color: var(--text-dim); font-size: 13px; }

/* ─── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .features-grid, .pricing-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .price-card.popular { order: -1; }
}
