/* ============================================================
   Twizzle — Landing Page Styles
   ============================================================ */

:root {
  /* native Browser-Controls (Scrollbalken, Dropdown-Listen, Spinner)
     dunkel rendern statt weiß */
  color-scheme: dark;
  --bg: #08060f;
  --bg-2: #0d0a1a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #ece9f5;
  --text-dim: #a29db8;
  --text-mute: #6f6a85;
  --violet: #a855f7;
  --violet-2: #7c3aed;
  --cyan: #22d3ee;
  --pink: #ec4899;
  --grad: linear-gradient(120deg, #a855f7 0%, #6366f1 45%, #22d3ee 100%);
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-glow: 0 0 60px -12px rgba(124, 58, 237, 0.55);
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background canvas + radial glow */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(60% 55% at 78% 12%, rgba(124, 58, 237, 0.28), transparent 60%),
    radial-gradient(50% 50% at 15% 20%, rgba(34, 211, 238, 0.16), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 55%, var(--bg) 100%);
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .nav, .footer { position: relative; z-index: 2; }

/* ---------------- Scrollbalken (schlank & dunkel) ---------------- */
* {
  scrollbar-width: thin;                                /* Firefox */
  scrollbar-color: rgba(168, 85, 247, 0.35) transparent;
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.55);
  background-clip: content-box;
  border: 3px solid transparent;
}
*::-webkit-scrollbar-corner { background: transparent; }

/* ---------------- Typography ---------------- */
h1, h2, h3, h4, .brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.25rem; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------- Buttons ---------------- */
.btn {
  --pad-y: 0.62rem;
  --pad-x: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--grad);
  color: #0a0713;
  box-shadow: 0 8px 30px -8px rgba(124, 58, 237, 0.7);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -8px rgba(124, 58, 237, 0.85);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--border-strong); background: var(--surface-2); }

.btn-lg { --pad-y: 0.9rem; --pad-x: 1.6rem; font-size: 1.02rem; }
.btn-block { width: 100%; justify-content: center; }
.play { font-size: 0.7rem; opacity: 0.9; }

/* ---------------- Nav ---------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  /* 3 Spalten: Links bleiben exakt mittig, egal wie breit die Seiten sind */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav .brand { justify-self: start; }
.nav .nav-links { justify-self: center; }
.nav .nav-actions { justify-self: end; }
.nav.scrolled {
  background: rgba(8, 6, 15, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.brand { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--text); }
.brand-mark { display: grid; place-items: center; filter: drop-shadow(0 0 10px rgba(168,85,247,0.5)); }
.brand-name { font-size: 1.3rem; }
.brand-logo {
  height: 36px;
  width: auto;
  display: block;
}
.foot-logo {
  height: 40px;
  width: auto;
  display: block;
}
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 0.7rem; align-items: center; }

/* Musik-Steuerung in der Navbar */
.music-ctl {
  position: relative; /* Anker für den Spotify-Credit darunter */
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.music-credit {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 3px;
  font-size: 0.62rem;
  color: var(--text-mute);
  text-decoration: none;
  white-space: nowrap;
  text-shadow: 1px 1px 0 #000;
  transition: color 0.2s;
}
.music-credit:hover { color: #1ed760; text-decoration: underline; } /* Spotify-Grün */
.music-ctl button {
  background: transparent;
  border: none;
  font-size: 1.05rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  filter: grayscale(0.2);
  transition: transform 0.15s;
}
.music-ctl button:hover { transform: scale(1.15); }
.music-ctl input[type="range"] {
  width: 86px;
  accent-color: var(--violet);
  cursor: pointer;
}
@media (max-width: 700px) {
  .music-ctl input[type="range"] { display: none; }
}

/* ---------------- Layout ---------------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 2rem);
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3.2rem; }
.section-head p { color: var(--text-dim); margin-top: 0.8rem; font-size: 1.08rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.8rem;
}
.grid { display: grid; gap: 1.2rem; }

/* ---------------- Hero ---------------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(8rem, 16vh, 11rem) clamp(1rem, 4vw, 2rem) 3rem;
  text-align: center;
}
.hero-inner { max-width: 820px; margin: 0 auto; }

/* Logo statt Headline – gleicher harter Schatten wie der Text
   (drop-shadow folgt der Logo-Silhouette, 100 % Schwarz, rechts unten) */
.hero-logo {
  display: block;
  width: clamp(280px, 42vw, 560px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(4px 5px 0 #000);
}

/* Lesbarkeit über dem 3D-Hintergrund: harter schwarzer Schatten,
   leicht nach rechts unten versetzt */
.hero .lead { text-shadow: 2px 3px 0 #000; }
.hero .trust p,
.hero .badge { text-shadow: 1px 2px 0 #000; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.8rem;
  backdrop-filter: blur(8px);
}
.badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
.lead {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: var(--text-dim);
  max-width: 620px;
  margin: 1.6rem auto 0;
}
.hero-cta {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}
.trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.4rem;
  color: var(--text-mute);
  font-size: 0.9rem;
}
.trust strong { color: var(--text-dim); font-weight: 600; }
.avatars { display: flex; }
.avatars span {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -8px;
  background: var(--grad);
}
.avatars span:nth-child(2) { background: linear-gradient(135deg,#ec4899,#f59e0b); }
.avatars span:nth-child(3) { background: linear-gradient(135deg,#22d3ee,#3b82f6); }
.avatars span:nth-child(4) { background: linear-gradient(135deg,#34d399,#a855f7); }

/* ---------------- Marquee ---------------- */
.marquee {
  margin-top: 4rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 0.9rem;
  width: max-content;
  animation: scroll 32s linear infinite;
}
.marquee-track span {
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-dim);
  white-space: nowrap;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------------- Feature cards ---------------- */
.features { grid-template-columns: repeat(3, 1fr); }
.card {
  padding: 1.8rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s, background 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.card .ic {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(168,85,247,0.22), rgba(34,211,238,0.14));
  border: 1px solid var(--border);
  margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-dim); font-size: 0.96rem; }

/* ---------------- Creator mockup ---------------- */
.creator-mock {
  max-width: 980px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: rgba(13, 10, 26, 0.85);
  backdrop-filter: blur(14px);
  overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(124, 58, 237, 0.5);
}
.mock-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.tb-dot { width: 11px; height: 11px; border-radius: 50%; background: #3a3550; }
.tb-dot:nth-child(1) { background: #ef5f6b; }
.tb-dot:nth-child(2) { background: #f5bd4f; }
.tb-dot:nth-child(3) { background: #61c554; }
.tb-title { margin-left: 0.7rem; color: var(--text-mute); font-size: 0.85rem; }
.mock-body {
  display: grid;
  grid-template-columns: 190px 1fr 210px;
  min-height: 380px;
}
.mock-panel { padding: 1.1rem; }
.mock-panel.left { border-right: 1px solid var(--border); }
.mock-panel.right { border-left: 1px solid var(--border); }
.panel-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  margin-bottom: 0.9rem;
}
.chip {
  padding: 0.6rem 0.8rem;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 0.55rem;
  cursor: grab;
  transition: border-color 0.2s, transform 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--violet); color: var(--text); transform: translateX(3px); }

.mock-canvas {
  position: relative;
  background: radial-gradient(circle at 50% 45%, rgba(124,58,237,0.14), transparent 70%), #0a0714;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.canvas-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.alert-preview {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.4rem;
  border-radius: 16px;
  background: rgba(20, 15, 35, 0.9);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-glow);
  animation: floaty 4s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.alert-gif { font-size: 2.2rem; animation: pop 4s ease-in-out infinite; }
@keyframes pop { 0%,100%{transform:scale(1) rotate(0);} 50%{transform:scale(1.15) rotate(-8deg);} }
.alert-text { display: flex; flex-direction: column; line-height: 1.3; }
.alert-text strong {
  font-family: "Space Grotesk";
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: 1.15rem;
}
.alert-text span { color: var(--text-dim); font-size: 0.92rem; }
.canvas-badge {
  position: absolute;
  bottom: 12px; right: 12px;
  font-size: 0.72rem;
  color: var(--text-mute);
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
}
.prop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.prop span { color: var(--text-mute); }
.prop em { color: var(--text); font-style: normal; font-weight: 500; }
.prop.slider { flex-direction: column; align-items: stretch; gap: 0.5rem; }
.prop.slider .track {
  height: 6px; border-radius: 999px;
  background: var(--surface-2);
  position: relative;
}
.prop.slider .track i {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 62%; border-radius: 999px; background: var(--grad);
}
.prop.slider .track::after {
  content: ""; position: absolute; left: 62%; top: 50%;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* ---------------- Steps ---------------- */
.steps { grid-template-columns: repeat(3, 1fr); }
.step {
  padding: 2rem 1.8rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
}
.step-num {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  font-family: "Space Grotesk";
  font-weight: 700; font-size: 1.3rem;
  background: var(--grad);
  color: #0a0713;
  margin-bottom: 1.1rem;
}
.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--text-dim); font-size: 0.96rem; }

/* ---------------- Pricing ---------------- */
.pricing { grid-template-columns: repeat(3, 1fr); align-items: start; }
.price-card {
  padding: 2rem 1.8rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.25s, border-color 0.25s;
}
.price-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.price-card.featured {
  border-color: rgba(168,85,247,0.5);
  background: linear-gradient(180deg, rgba(124,58,237,0.14), var(--surface));
  box-shadow: var(--shadow-glow);
}
.price-card .tag {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad);
  color: #0a0713;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
}
.price-card h3 { margin-bottom: 0.6rem; }
.price { font-family: "Space Grotesk"; color: var(--text-mute); font-size: 0.9rem; margin-bottom: 1.4rem; }
.price span { font-size: 2.6rem; font-weight: 700; color: var(--text); }
.price-card ul { list-style: none; margin-bottom: 1.6rem; }
.price-card li {
  padding: 0.5rem 0 0.5rem 1.6rem;
  position: relative;
  color: var(--text-dim);
  font-size: 0.94rem;
  border-bottom: 1px solid var(--border);
}
.price-card li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--cyan);
  font-weight: 700;
}

/* ---------------- CTA band ---------------- */
.cta-band {
  max-width: 900px;
  margin: 2rem auto 6rem;
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(124,58,237,0.22), rgba(34,211,238,0.12));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-glow);
}
.cta-band p { color: var(--text-dim); margin: 0.8rem 0 1.8rem; font-size: 1.08rem; }

/* ---------------- Footer ---------------- */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3.5rem clamp(1rem, 4vw, 2rem) 3rem;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 2rem;
}
.foot-brand .brand-name { font-size: 1.4rem; }
.foot-brand p { color: var(--text-mute); margin-top: 0.5rem; font-size: 0.92rem; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.foot-cols h4 { font-size: 0.9rem; margin-bottom: 0.8rem; color: var(--text); }
.foot-cols a {
  display: block;
  color: var(--text-mute);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  transition: color 0.2s;
}
.foot-cols a:hover { color: var(--text); }
.copy {
  grid-column: 1 / -1;
  color: var(--text-mute);
  font-size: 0.82rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ---------------- Reveal on scroll ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .features, .steps, .pricing { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-panel.left, .mock-panel.right { border: none; border-bottom: 1px solid var(--border); }
  .mock-canvas { min-height: 260px; }
  .footer { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .nav-actions .btn-ghost { display: none; }
  .foot-cols { grid-template-columns: 1fr; }
  .trust { flex-direction: column; gap: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
