/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* App-Token-Farben (siehe src/theme/tokens.ts) */
  --bg: #0A0E21;
  --bg-gradient-bottom: #1A1F3C;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-solid: #161A33;
  --bg-hover: rgba(255, 255, 255, 0.08);
  --text: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-dim: rgba(255, 255, 255, 0.4);
  --border: rgba(255, 255, 255, 0.1);
  --border-hi: rgba(255, 255, 255, 0.15);
  --purple: #9D50BB;
  --purple-deep: #6E48AA;
  --purple-muted: rgba(157, 80, 187, 0.15);
  --magenta: #C850C0;
  --neon: #DFFF00;
  --neon-muted: rgba(223, 255, 0, 0.12);
  --cyan: #00D4AA;
  --cyan-muted: rgba(0, 212, 170, 0.12);
  --green: #00B894;
  --green-muted: rgba(0, 184, 148, 0.12);
  --pink: #E84393;
  --danger: #E17055;
  --font: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(157, 80, 187, 0.18), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(200, 80, 192, 0.14), transparent 50%),
    radial-gradient(circle at 50% 95%, rgba(0, 212, 170, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-gradient-bottom) 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

.page { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== Nav ===== */
.nav { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 0; }
.logo { display: flex; align-items: center; gap: 0.6rem; }
.logo-text {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--neon);
  letter-spacing: 0.15em;
  text-shadow:
    0 0 10px rgba(223, 255, 0, 0.6),
    0 0 22px rgba(223, 255, 0, 0.35);
}
.nav-cta {
  padding: 0.5rem 1.1rem;
  background: var(--purple);
  border: 1px solid var(--purple);
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  transition: all 0.2s;
  box-shadow:
    0 0 14px rgba(157, 80, 187, 0.4),
    0 0 28px rgba(110, 72, 170, 0.2);
}
.nav-cta:hover {
  background: var(--magenta);
  border-color: var(--magenta);
  box-shadow:
    0 0 18px rgba(200, 80, 192, 0.5),
    0 0 36px rgba(200, 80, 192, 0.25);
}

/* ===== Hero ===== */
.hero { padding-bottom: 4rem; }
.hero-content { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 3rem; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; max-width: 600px; }
.gradient-text {
  background: linear-gradient(135deg, var(--neon), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 18px rgba(223, 255, 0, 0.35));
}
.hero-subtitle { margin-top: 1.25rem; font-size: 1.05rem; color: var(--text-muted); max-width: 520px; line-height: 1.65; }

/* ===== Phone Frame (Screenshot des Modes-Screens) ===== */
.hero-phone { margin: 3rem 0 2.5rem; }
.phone-frame {
  position: relative;
  width: 320px;
  aspect-ratio: 432 / 934;
  background: var(--bg);
  border-radius: 44px;
  border: 4px solid var(--border-hi);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 25px 60px rgba(0, 0, 0, 0.55),
    0 0 120px rgba(157, 80, 187, 0.22),
    0 0 80px rgba(223, 255, 0, 0.08);
}
.phone-screenshot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Store Buttons ===== */
.cta-group { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.store-badge-link { display: inline-block; transition: transform 0.15s; }
.store-badge-link:hover { transform: translateY(-1px); }
.store-badge-link.disabled { pointer-events: none; opacity: 0.35; }
.coming-soon-wrapper { position: relative; }
.coming-soon-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  background: var(--danger);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 2rem;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 0 18px rgba(225, 112, 85, 0.45);
}
.store-badge { height: 54px; width: auto; }
.store-badge.google-badge { height: 78px; width: auto; margin: -12px 0; }

/* ===== WebApp Link ===== */
.webapp-link {
  margin-top: 1.5rem;
  display: inline-block;
  padding: 0.65rem 1.5rem;
  color: var(--neon);
  font-size: 0.95rem;
  font-weight: 700;
  border: 1px dashed rgba(223, 255, 0, 0.4);
  border-radius: 12px;
  transition: all 0.2s;
}
.webapp-link:hover {
  border-color: var(--neon);
  background: var(--neon-muted);
  box-shadow: 0 0 14px rgba(223, 255, 0, 0.3);
}

/* ===== Features ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}
.feature {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all 0.2s;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.feature:hover {
  border-color: var(--border-hi);
  background: var(--bg-hover);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 1rem;
}
.feature-icon.purple { background: var(--purple-muted); color: var(--purple); }
.feature-icon.gold { background: var(--neon-muted); color: var(--neon); }
.feature-icon.green { background: var(--cyan-muted); color: var(--cyan); }
.feature h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.feature p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; }

/* ===== Decks Section ===== */
.decks-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.decks-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}
.deck-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}
.deck-tag {
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tag-color, var(--text-muted));
  transition: all 0.2s;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.deck-tag:hover {
  border-color: var(--tag-color, var(--border-hi));
  background: color-mix(in srgb, var(--tag-color, var(--purple)) 12%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--tag-color, var(--purple)) 30%, transparent);
}

/* ===== Footer ===== */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer a { color: var(--neon); }
.footer a:hover { text-decoration: underline; }

/* ===== Mobile ===== */
@media (max-width: 480px) {
  .cta-group { flex-direction: column; align-items: center; }
  .phone-frame { width: 280px; }
  .deck-grid { gap: 0.4rem; }
  .deck-tag { font-size: 0.78rem; padding: 0.4rem 0.75rem; }
}
