/* ============================================================
   CasinoLayers Landing – Apple-inspired design
   ============================================================ */

/* Self-hosted Inter font (no Google CDN — DSGVO-konform) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/inter-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
  --purple: #7C3AED;
  --purple-light: #A78BFA;
  --blue: #2563EB;
  --blue-light: #60A5FA;
  --green: #10B981;
  --yellow: #F59E0B;
  --pink: #EC4899;
  --red: #EF4444;

  --bg: #0C0D18;
  --bg-card: #161723;
  --bg-card-2: #1E1F2D;
  --border: rgba(255,255,255,0.10);
  --border-glow: rgba(124,58,237,0.35);

  --text: #F4F4FA;
  --text-muted: #9C9CBC;
  --text-dim: #7C7CA8;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;

  --shadow: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-card: 0 0 0 1px var(--border), 0 16px 48px rgba(0,0,0,0.4);

  /* Motion scale, same values as the app (CasinoLayers app/globals.css).
     fast = hover/press, base = small state changes, slow = reveals and
     larger surfaces. UI motion never exceeds 300 ms; only the ambient
     background loops (aurora, glow, float) run longer. */
  --duration-fast: 150ms;
  --duration-base: 200ms;
  --duration-slow: 300ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(124,58,237,0.16), transparent 60%),
    radial-gradient(ellipse 70% 50% at 100% 5%, rgba(37,99,235,0.10), transparent 55%),
    radial-gradient(ellipse 60% 45% at 0% 40%, rgba(236,72,153,0.05), transparent 55%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Container ──────────────────────────────────────── */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Typography ─────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(120deg,
    var(--purple-light) 0%,
    var(--blue-light) 30%,
    var(--pink) 55%,
    var(--blue-light) 80%,
    var(--purple-light) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-flow 9s ease-in-out infinite;
}
@keyframes gradient-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.accent { color: var(--purple-light); }
.green { color: var(--green); }
.dim { color: var(--text-dim); }

code, .code-inline {
  font-family: 'SF Mono', 'Fira Code', monospace;
  background: rgba(124,58,237,0.15);
  color: var(--purple-light);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 4px 24px rgba(124,58,237,0.4);
}
/* Shine sweep on hover */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 70%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: translateX(-190%) skewX(-20deg);
  transition: transform var(--duration-slow) var(--ease-in-out);
  pointer-events: none;
}
.btn-primary:hover::after { transform: translateX(200%) skewX(-20deg); }
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.14) inset, 0 10px 40px rgba(124,58,237,0.6);
}

.btn-white {
  background: #fff;
  color: #111;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.btn-white:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.25);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

/* Press feedback for every button variant; stays after the variant hovers. */
.btn:active { transform: scale(0.97); }

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-full { width: 100%; justify-content: center; }

/* ── Navbar ─────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background-color var(--duration-slow) var(--ease-out),
              border-color var(--duration-slow) var(--ease-out),
              box-shadow var(--duration-slow) var(--ease-out),
              backdrop-filter var(--duration-slow) var(--ease-out);
}

.navbar.scrolled {
  background: rgba(12, 13, 24, 0.72);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 1px 0 rgba(124,58,237,0.12), 0 10px 40px rgba(0,0,0,0.45);
}

.navbar-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 100px;
  transition: color var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out);
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
.nav-links a.active-nav { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform var(--duration-base) var(--ease-out), opacity var(--duration-base) var(--ease-out);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px 20px;
  background: rgba(12, 13, 24, 0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
}
.mobile-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }

/* ── Section shared ─────────────────────────────────── */
.section { padding: 120px 0; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 80px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  color: var(--purple-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Animations (reveal on scroll) ──────────────────
   One entrance for everything: a short fade-up. Children of .stagger
   follow 50 ms apart, capped so long grids never wait on their last item. */
.reveal,
.stagger > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}
.reveal.visible,
.stagger.visible > * {
  opacity: 1;
  transform: none;
}
.stagger.visible > *:nth-child(2) { transition-delay: 50ms; }
.stagger.visible > *:nth-child(3) { transition-delay: 100ms; }
.stagger.visible > *:nth-child(n+4) { transition-delay: 150ms; }

/* ── Hero ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* Ambient aurora sheen – slow rotating conic gradient */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: -30%;
  background: conic-gradient(from 0deg at 50% 42%,
    transparent 0deg,
    rgba(124,58,237,0.12) 55deg,
    transparent 140deg,
    rgba(37,99,235,0.12) 220deg,
    transparent 300deg,
    rgba(236,72,153,0.08) 340deg,
    transparent 360deg);
  filter: blur(70px);
  opacity: 0.85;
  animation: aurora-spin 36s linear infinite;
}
@keyframes aurora-spin { to { transform: rotate(360deg); } }

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.55;
}
.hero-glow-1 {
  width: 940px;
  height: 940px;
  background: radial-gradient(circle, #8B4FF0 0%, transparent 70%);
  top: -280px;
  left: 50%;
  transform: translateX(-50%);
  animation: glow-pulse 6s ease-in-out infinite alternate;
}
.hero-glow-2 {
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, #3B82F6 0%, transparent 70%);
  bottom: -60px;
  right: -140px;
  opacity: 0.38;
  animation: glow-pulse 8s ease-in-out infinite alternate-reverse;
}
/* Third ambient blob – drifting pink/violet */
.hero-bg::before {
  content: '';
  position: absolute;
  width: 560px;
  height: 560px;
  left: -160px;
  top: 34%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236,72,153,0.30) 0%, transparent 70%);
  filter: blur(130px);
  animation: blob-drift 16s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  from { opacity: 0.4; transform: translateX(-50%) scale(1); }
  to   { opacity: 0.65; transform: translateX(-50%) scale(1.12); }
}
@keyframes blob-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(90px, -50px) scale(1.18); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%);
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 880px;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
  opacity: 0;
  animation: hero-fade-up var(--duration-slow) 0ms var(--ease-out) forwards;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 6px var(--green); }
  50% { box-shadow: 0 0 14px var(--green); }
}

.hero-title {
  font-size: clamp(3.2rem, 9vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin-bottom: 28px;
  opacity: 0;
  animation: hero-fade-up var(--duration-slow) 60ms var(--ease-out) forwards;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 580px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: hero-fade-up var(--duration-slow) 120ms var(--ease-out) forwards;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: hero-fade-up var(--duration-slow) 180ms var(--ease-out) forwards;
}

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 56px;
  opacity: 0;
  animation: hero-fade-up var(--duration-slow) 240ms var(--ease-out) forwards;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 36px;
}
.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero Mockup */
.hero-mockup-wrap {
  position: relative;
  z-index: 1;
  margin-top: 84px;
  opacity: 0;
  animation: hero-fade-up var(--duration-slow) 300ms var(--ease-out) forwards;
}
.hero-mockup {
  animation: mockup-float 8s ease-in-out 1s infinite;
}
@keyframes mockup-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05) inset,
    0 50px 140px rgba(0,0,0,0.75),
    0 0 120px rgba(124,58,237,0.20);
  max-width: 1080px;
  margin: 0 auto;
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.mockup-dots {
  display: flex;
  gap: 6px;
}
.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.mockup-dots span:nth-child(1) { background: #FF5F57; }
.mockup-dots span:nth-child(2) { background: #FEBC2E; }
.mockup-dots span:nth-child(3) { background: #28C840; }
.mockup-url {
  font-size: 0.75rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: monospace;
  flex: 1;
  max-width: 280px;
  margin: 0 auto;
}

.mockup-content {
  display: grid;
  grid-template-columns: 180px 1fr;
}

.mockup-sidebar {
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  background: rgba(255,255,255,0.01);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mockup-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text-dim);
  cursor: default;
}
.mockup-nav-item.active {
  background: rgba(124,58,237,0.15);
  color: var(--purple-light);
}
.mockup-icon { font-size: 1rem; }

.mockup-main {
  padding: 20px;
}
.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.mockup-title {
  font-size: 1rem;
  font-weight: 700;
}
.mockup-status.live {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.2);
  padding: 4px 10px;
  border-radius: 100px;
  animation: live-blink 2s ease-in-out infinite;
}
@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.mockup-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.mockup-stat-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}
.msc-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.msc-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.msc-value.accent { color: var(--purple-light); }
.msc-value.green { color: var(--green); }
.msc-bar {
  margin-top: 8px;
  height: 3px;
  background: rgba(255,255,255,0.07);
  border-radius: 2px;
}
.msc-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  border-radius: 2px;
}

.mockup-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mockup-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
}
.mockup-item.done { background: rgba(255,255,255,0.03); color: var(--text-muted); }
.mockup-item.active-item {
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  color: var(--text);
}
.mockup-item.pending { color: var(--text-dim); }
.mi-multi.green { color: var(--green); }
.mi-multi.dim { color: var(--text-dim); }
.pulse-dot::before {
  content: '● ';
  color: var(--green);
  animation: dot-pulse 1.5s infinite;
}

/* ── Social Proof ───────────────────────────────────── */
.social-proof {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.social-proof-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}
.sp-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 600;
}
.sp-logos {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.sp-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  transition: color var(--duration-fast) var(--ease-out);
}
.sp-logo:hover { color: var(--text-muted); }
.sp-logo svg { opacity: 0.4; transition: opacity var(--duration-fast) var(--ease-out); }
.sp-logo:hover svg { opacity: 0.7; }

/* ── Features ───────────────────────────────────────── */
.features { background: transparent; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  --mx: 50%;
  --my: 0%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform var(--duration-slow) var(--ease-out),
              border-color var(--duration-slow) var(--ease-out),
              box-shadow var(--duration-slow) var(--ease-out);
  position: relative;
  overflow: hidden;
}
/* Cursor-following spotlight (behind content) */
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(139,79,240,0.20), transparent 60%),
    linear-gradient(135deg, rgba(124,58,237,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out);
}
.feature-card > * { position: relative; z-index: 1; }
.feature-card:hover {
  border-color: rgba(124,58,237,0.35);
  transform: translateY(-6px);
  box-shadow: 0 24px 70px rgba(0,0,0,0.45), 0 0 60px rgba(124,58,237,0.14);
}
.feature-card:hover::before { opacity: 1; }

.feature-card-large {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(124,58,237,0.08) 0%, var(--bg-card) 60%);
  border-color: rgba(124,58,237,0.2);
}

.feature-card-highlight {
  background: linear-gradient(135deg, rgba(37,99,235,0.08) 0%, var(--bg-card) 60%);
  border-color: rgba(37,99,235,0.2);
}

.fc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.fc-icon-purple { background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.2); }
.fc-icon-blue   { background: rgba(37,99,235,0.15);  border: 1px solid rgba(37,99,235,0.2); }
.fc-icon-yellow { background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.2); }
.fc-icon-green  { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.2); }
.fc-icon-pink   { background: rgba(236,72,153,0.15); border: 1px solid rgba(236,72,153,0.2); }

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
.fc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fc-list li {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.fc-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.25);
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.03em;
}
.fc-tag.fc-tag-new {
  background: rgba(124,58,237,0.15);
  border-color: rgba(124,58,237,0.35);
  color: var(--purple-light);
}
.fc-tag.fc-tag-beta {
  background: rgba(245,158,11,0.14);
  border-color: rgba(245,158,11,0.32);
  color: #FBBF24;
}
.fc-icon-cyan { background: rgba(6,182,212,0.15); border: 1px solid rgba(6,182,212,0.22); }

/* ── How it works ───────────────────────────────────── */
.how-it-works {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(124,58,237,0.04) 50%, var(--bg) 100%);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}
.step-reverse { direction: rtl; }
.step-reverse > * { direction: ltr; }

.step-number {
  font-size: 5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, rgba(124,58,237,0.4) 0%, rgba(37,99,235,0.2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 20px;
  display: block;
}
.step-content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.25;
}
.step-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

/* Step visuals */
.step-visual {
  position: relative;
}

/* Step 1: Login card */
.sv-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  max-width: 340px;
  margin: 0 auto;
}
.sv-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.sv-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  flex-shrink: 0;
}
.sv-text { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.sv-line {
  height: 10px;
  background: rgba(255,255,255,0.07);
  border-radius: 4px;
}
.sv-line-lg { width: 80%; }
.sv-line-sm { width: 50%; }
.sv-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
}
.sv-button-twitch {
  background: #9146FF;
  color: #fff;
}

/* Step 2: Editor */
.sv-editor {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 380px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.sv-editor-bar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.sv-editor-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.sv-editor-bar span:nth-child(1) { background: #FF5F57; }
.sv-editor-bar span:nth-child(2) { background: #FEBC2E; }
.sv-editor-bar span:nth-child(3) { background: #28C840; }
.sv-editor-canvas {
  position: relative;
  height: 200px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 24px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 24px);
}
.sv-widget {
  position: absolute;
  background: rgba(124,58,237,0.15);
  border: 1.5px solid rgba(124,58,237,0.4);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--purple-light);
  cursor: move;
}
.sv-widget-1 { top: 20px; left: 20px; }
.sv-widget-2 { top: 70px; left: 100px; animation: float-widget 3s ease-in-out infinite; }
@keyframes float-widget {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.sv-resize-handle {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 14px;
  height: 14px;
  border-right: 2px solid rgba(124,58,237,0.5);
  border-bottom: 2px solid rgba(124,58,237,0.5);
}

/* Step 3: OBS */
.sv-obs {
  background: #1A1A2E;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 360px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.sv-obs-bar {
  background: #0D0D1F;
  padding: 10px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.sv-obs-body { padding: 20px; }
.sv-obs-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.sv-obs-url {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.72rem;
  font-family: monospace;
  color: var(--text-muted);
  margin-bottom: 14px;
  word-break: break-all;
}
.sv-obs-url .accent { color: var(--purple-light); }
.sv-obs-btn {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

/* ── Widgets / Tabs ─────────────────────────────────── */
.widgets-section { background: transparent; }

.widgets-tabs {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.wtab-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  overflow-x: auto;
  scrollbar-width: none;
}
.wtab-nav::-webkit-scrollbar { display: none; }

.wtab-btn {
  flex: 1;
  min-width: 140px;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.wtab-btn:hover { color: var(--text-muted); background: rgba(255,255,255,0.03); }
.wtab-btn.active {
  color: var(--text);
  border-bottom-color: var(--purple);
  background: rgba(124,58,237,0.05);
}

.wtab-content { min-height: 400px; }

.wtab-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
}
.wtab-panel.active { display: grid; }

.wtab-preview {
  padding: 40px;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  background: radial-gradient(ellipse at 50% 50%, rgba(124,58,237,0.06) 0%, transparent 70%);
}

.wtab-info {
  padding: 48px;
}
.wtab-info h3 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.wtab-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.wtab-info ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wtab-info ul li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}
.wtab-info ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--purple-light);
}

/* Overlay Previews */
.overlay-preview {
  background: rgba(10,10,18,0.9);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 20px;
  width: 100%;
  max-width: 320px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.op-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.op-title { font-size: 0.88rem; font-weight: 700; }
.op-badge {
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.25);
  color: var(--purple-light);
  padding: 3px 8px;
  border-radius: 100px;
}
.op-badge.accent { background: rgba(124,58,237,0.2); }
.op-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.op-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 8px 10px;
}
.ops-label { font-size: 0.65rem; color: var(--text-dim); margin-bottom: 4px; }
.ops-val { font-size: 0.9rem; font-weight: 700; }
.ops-val.accent { color: var(--purple-light); }
.ops-val.green { color: var(--green); }
.op-list { display: flex; flex-direction: column; gap: 3px; }
.op-item {
  display: flex;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
}
.op-item.done { color: var(--text-muted); background: rgba(255,255,255,0.02); }
.op-item.current {
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.2);
  color: var(--text);
}
.op-item.pending { color: var(--text-dim); }
.op-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Bracket */
.bracket-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.bracket-col { display: flex; flex-direction: column; gap: 12px; }
.bracket-match {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.bm-player {
  padding: 6px 12px;
  font-size: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.bm-player:last-child { border-bottom: none; }
.bm-player.winner {
  background: rgba(124,58,237,0.15);
  color: var(--purple-light);
  font-weight: 600;
}
.bm-player.dim { color: var(--text-dim); }
.bracket-arrow { color: var(--text-dim); font-size: 1rem; }
.bracket-col-final { align-self: center; }
.bracket-match-final { opacity: 0.6; }

/* Wager */
.wager-display { text-align: center; padding: 8px 0; }
.wager-amounts {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}
.wager-current { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.wager-sep { font-size: 1.4rem; color: var(--text-dim); }
.wager-target { font-size: 1.2rem; color: var(--text-muted); }
.wager-bar-wrap { margin-bottom: 10px; }
.wager-bar {
  height: 10px;
  background: rgba(255,255,255,0.07);
  border-radius: 10px;
  overflow: hidden;
}
.wager-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(124,58,237,0.5);
}
.wager-label { font-size: 0.75rem; color: var(--text-dim); }

/* Wheel (Glücksrad) */
.wheel-display {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0 4px;
}
.wheel-pointer {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 16px solid #fff;
  z-index: 3;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.45));
}
.wheel-spin {
  position: relative;
  width: 156px;
  height: 156px;
  margin-top: 6px;
  animation: wheel-rotate 9s linear infinite;
}
.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    #7C3AED 0deg 45deg,
    #2563EB 45deg 90deg,
    #10B981 90deg 135deg,
    #F59E0B 135deg 180deg,
    #EC4899 180deg 225deg,
    #06B6D4 225deg 270deg,
    #A78BFA 270deg 315deg,
    #F43F5E 315deg 360deg
  );
  box-shadow:
    0 0 0 4px rgba(255,255,255,0.06),
    0 14px 40px rgba(0,0,0,0.5),
    inset 0 0 24px rgba(0,0,0,0.35);
}
.wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-card-2);
  border: 2px solid rgba(255,255,255,0.16);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
@keyframes wheel-rotate { to { transform: rotate(360deg); } }

/* Points leaderboard */
.overlay-points .op-item.current { font-weight: 600; }
.overlay-points .op-item span:last-child { font-variant-numeric: tabular-nums; font-weight: 700; }

/* Animated tab enumeration */
.widgets-tabs.visible .wtab-btn {
  opacity: 0;
  animation: wtab-in var(--duration-slow) var(--ease-out) forwards;
}
.widgets-tabs.visible .wtab-btn:nth-child(2) { animation-delay: 50ms; }
.widgets-tabs.visible .wtab-btn:nth-child(3) { animation-delay: 100ms; }
.widgets-tabs.visible .wtab-btn:nth-child(n+4) { animation-delay: 150ms; }
@keyframes wtab-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Blink */
.blink { animation: blink 1.2s ease-in-out infinite; color: var(--green); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }

/* ── CTA Section ────────────────────────────────────── */
.cta-section { padding: 80px 0 120px; }

.cta-card {
  position: relative;
  background: linear-gradient(135deg, rgba(124,58,237,0.15) 0%, rgba(37,99,235,0.1) 100%);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 24px;
  padding: 80px 60px;
  text-align: center;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.cta-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ─────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 14px; font-size: 1rem; }
.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.7;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9898C0;
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #8888A8;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-link { color: var(--text-dim); text-decoration: none; transition: color var(--duration-fast) var(--ease-out); }
.footer-link:hover { color: var(--text); }
/* Sprachumschalter im Footer: aktuelle Sprache wie ein aktiver Nav-Link */
.footer-links [aria-current] { color: var(--text); }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links, .nav-actions { display: none; }
  .menu-toggle { display: flex; }

  .features-grid { grid-template-columns: 1fr; }
  .feature-card-large { grid-column: span 1; }

  .step, .step-reverse { grid-template-columns: 1fr; gap: 40px; direction: ltr; }

  .wtab-panel { grid-template-columns: 1fr; }
  .wtab-preview {
    border-right: none;
    border-bottom: 1px solid var(--border);
    min-height: auto;
  }

  .hero-mockup { display: none; }

  .mockup-content { grid-template-columns: 1fr; }
  .mockup-sidebar { display: none; }
  .mockup-stats-row { grid-template-columns: 1fr 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: 1fr 1fr; }

  .cta-card { padding: 48px 24px; }

  .hero-stats { gap: 0; }
  .stat { padding: 0 20px; }
}

@media (max-width: 600px) {
  .section { padding: 80px 0; }
  .container { padding: 0 20px; }
  .hero-title { font-size: 2.9rem; }
  .section-title { font-size: 1.85rem; }
  .stat-number { font-size: 1.3rem; }
  .hero-stats { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .stat-divider { display: none; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .wtab-btn { min-width: 120px; font-size: 0.78rem; padding: 12px 14px; }
}

/* ── Contact Section ─────────────────────────────────── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.ci-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ci-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 4px;
}

.ci-value {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
a.ci-value:hover { color: var(--purple-light); }

/* Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Honeypot – hidden from real users */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.required { color: var(--purple-light); }

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
  width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%238888A8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.char-count {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: right;
  margin-top: -4px;
}

/* Cap-Widget (dunkles Theme passt zum Landing-Design) */
.captcha-group cap-widget {
  display: block;
  --cap-background: #16161f;
  --cap-border-color: #2a2a3a;
  --cap-color: #e8e8ff;
  --cap-widget-width: 100%;
  max-width: 320px;
}

/* Alerts */
.form-alert {
  font-size: 0.88rem;
  border-radius: 8px;
  padding: 0;
  min-height: 0;
}
.form-alert--success {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
  padding: 12px 16px;
}
.form-alert--error {
  color: #f87171;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.2);
  padding: 12px 16px;
}

/* Spinner */
.hidden { display: none !important; }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { animation: spin 0.8s linear infinite; }

/* Responsive contact */
@media (max-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .contact-info { flex-direction: row; flex-wrap: wrap; gap: 20px; }
  .contact-info-item { flex: 1; min-width: 160px; }
}

@media (max-width: 600px) {
  .contact-form { padding: 24px 18px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-info { flex-direction: column; }
}

/* ── Legal pages (Impressum, Datenschutz, AGB) ───────── */
.legal-page { padding: 140px 0 100px; min-height: 100vh; }
.legal-content { max-width: 720px; margin: 0 auto; }
.legal-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.legal-content .lead {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.legal-section { margin-bottom: 48px; }
.legal-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.legal-section h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 20px 0 8px;
}
.legal-section p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.93rem;
  margin-bottom: 12px;
}
.legal-section ul,
.legal-section ol {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.8;
  padding-left: 20px;
  margin-bottom: 12px;
}
.legal-section li { margin-bottom: 4px; }
.legal-section a,
.legal-content .highlight-box a {
  color: var(--purple-light);
  text-decoration: none;
}
.legal-section a:hover,
.legal-content .highlight-box a:hover { text-decoration: underline; }
.info-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.info-block p { margin: 0; }
.info-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px;
  font-size: 0.92rem;
}
.info-label { color: var(--text-dim); font-weight: 500; }
.info-value { color: var(--text-muted); }
.info-value a { color: var(--purple-light); text-decoration: none; }
.info-value a:hover { text-decoration: underline; }
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  margin-bottom: 56px;
}
.toc-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.toc ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.toc a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--duration-fast) var(--ease-out);
}
.toc a:hover { color: var(--purple-light); }
.highlight-box {
  background: rgba(124,58,237,0.07);
  border: 1px solid rgba(124,58,237,0.18);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.last-updated {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.legal-footer { border-top: 1px solid var(--border); padding-top: 24px; }
@media (max-width: 600px) {
  .info-row { grid-template-columns: 1fr; gap: 2px; }
  .info-label { font-size: 0.78rem; }
}

/* ── 404 page ───────────────────────────────────────── */
.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 0 100px;
}
.not-found-content {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.not-found-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-light);
}
.not-found-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.not-found-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}
.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}
.not-found-hint { margin-top: 12px; font-size: 0.875rem; color: var(--text-muted); }
.not-found-hint a { color: var(--purple-light); text-decoration: none; }
.not-found-hint a:hover { text-decoration: underline; }

/* ============================================================
   Roadmap page
   ============================================================ */
.roadmap-hero {
  position: relative;
  padding: 160px 0 40px;
  text-align: center;
  overflow: hidden;
}
.roadmap-hero .hero-bg { position: absolute; inset: 0; pointer-events: none; }
.roadmap-hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.roadmap-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 20px;
}
.roadmap-hero p {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}
.roadmap-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 0.82rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
}

/* Legend */
.roadmap-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 820px;
  margin: 36px auto 0;
  padding: 0 24px;
}
.rm-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 100px;
}
.rm-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Category colors */
.cat-hunt    { --cat: #7C3AED; }
.cat-points  { --cat: #F59E0B; }
.cat-bot     { --cat: #10B981; }
.cat-mods    { --cat: #2563EB; }
.cat-wheel   { --cat: #EC4899; }
.cat-editor  { --cat: #06B6D4; }
.cat-platform{ --cat: #A78BFA; }
.cat-website { --cat: #14B8A6; }
.cat-game    { --cat: #EF4444; }
.rm-dot { background: var(--cat, var(--purple)); }

/* Board */
.roadmap-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 40px;
  align-items: start;
}
.roadmap-col {
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 8px 16px;
}
.rm-col-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.rm-col-icon {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.rm-col-title { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.rm-col-count {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 2px 9px;
  border-radius: 100px;
}
/* Column accents */
.roadmap-col.col-done   .rm-col-icon { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.25); }
.roadmap-col.col-done   { border-color: rgba(16,185,129,0.18); }
.roadmap-col.col-prog   .rm-col-icon { background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.25); }
.roadmap-col.col-prog   { border-color: rgba(124,58,237,0.18); }
.roadmap-col.col-plan   .rm-col-icon { background: rgba(255,255,255,0.05); border: 1px solid var(--border); }

.rm-col-body { display: flex; flex-direction: column; gap: 10px; padding: 8px 8px 0; }

/* "Show more" toggle for the released column */
.rm-more-wrap { display: flex; flex-direction: column; gap: 10px; }
.rm-more-wrap[hidden] { display: none; }
.rm-more-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 2px; padding: 10px 14px;
  background: rgba(255,255,255,0.03); border: 1px dashed var(--border);
  border-radius: 12px; color: var(--text-muted, #9aa4b2);
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}
.rm-more-toggle:hover { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.25); }
.rm-more-toggle .rm-more-icon { transition: transform var(--duration-base) var(--ease-out); }
.rm-more-toggle[aria-expanded="true"] .rm-more-icon { transform: rotate(180deg); }

/* Cards */
.rm-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cat, var(--purple));
  border-radius: 12px;
  padding: 16px 16px 15px;
  transition: transform var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}
.rm-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  border-color: rgba(255,255,255,0.16);
  border-left-color: var(--cat, var(--purple));
}
.rm-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.rm-cat {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cat, var(--purple-light));
  background: color-mix(in srgb, var(--cat, var(--purple)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat, var(--purple)) 30%, transparent);
  padding: 3px 9px;
  border-radius: 100px;
}
.rm-beta {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #FBBF24;
  background: rgba(245,158,11,0.14);
  border: 1px solid rgba(245,158,11,0.3);
  padding: 3px 8px;
  border-radius: 100px;
}
.rm-card h3 {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 6px;
}
.rm-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.rm-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
}
.rm-card ul li {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}
.rm-card.done ul li::before   { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.rm-card.prog ul li::before   { content: '→'; position: absolute; left: 0; color: var(--purple-light); }
.rm-card.plan ul li::before   { content: '○'; position: absolute; left: 0; color: var(--text-dim); font-size: 0.7em; top: 3px; }

/* Roadmap CTA */
.roadmap-cta {
  text-align: center;
  padding: 20px 24px 100px;
}
.roadmap-cta p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .roadmap-board { grid-template-columns: 1fr; gap: 16px; }
  .roadmap-hero { padding: 130px 0 24px; }
}

/* ============================================================
   Global polish – selection, scrollbar, spotlights, glows
   ============================================================ */
::selection {
  background: rgba(124,58,237,0.38);
  color: #fff;
}

/* Custom scrollbar */
html { scrollbar-color: rgba(124,58,237,0.55) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--purple), var(--blue));
  border-radius: 20px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(var(--purple-light), var(--blue-light));
}

/* Section badge – subtle glow */
.section-badge {
  box-shadow: 0 0 24px rgba(124,58,237,0.18);
}

/* Cursor spotlight on roadmap cards */
.rm-card { --mx: 50%; --my: 0%; overflow: hidden; }
.rm-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx) var(--my),
    color-mix(in srgb, var(--cat, var(--purple)) 18%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out);
  pointer-events: none;
}
.rm-card > * { position: relative; z-index: 1; }
.rm-card:hover::before { opacity: 1; }

/* Overlay-preview cards – soft floating glow */
.overlay-preview {
  transition: transform var(--duration-slow) var(--ease-out), box-shadow var(--duration-slow) var(--ease-out);
}
.wtab-preview:hover .overlay-preview {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 60px rgba(124,58,237,0.18);
}

/* CTA card – animated conic glow ring */
.cta-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from 0deg,
    rgba(124,58,237,0.6), rgba(37,99,235,0.6), rgba(236,72,153,0.6), rgba(124,58,237,0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  animation: aurora-spin 12s linear infinite;
  pointer-events: none;
}

/* ── Focus ──────────────────────────────────────────── */
:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 3px;
}

/* ── Reduced motion ─────────────────────────────────────
   Visitors who ask for less motion get every state change instantly,
   including the scroll reveals and the ambient background loops. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}
