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

:root {
  --bg: #0D0D1A;
  --bg-card: #1E1E2E;
  --bg-hover: #2D2D44;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --border: #2D2D44;
  --border-hi: #3f3f56;
  --purple: #6C5CE7;
  --purple-muted: rgba(108, 92, 231, 0.12);
  --gold: #FFD700;
  --gold-muted: rgba(255, 215, 0, 0.1);
  --green: #00B894;
  --green-muted: rgba(0, 184, 148, 0.1);
  --font: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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(--gold); letter-spacing: 0.15em; }
.nav-cta {
  padding: 0.5rem 1.1rem;
  background: var(--purple);
  border: 1px solid var(--purple);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  transition: all 0.15s;
}
.nav-cta:hover { background: #5a4bd6; }

/* ===== 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(--gold), #FFA500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle { margin-top: 1.25rem; font-size: 1.05rem; color: var(--text-muted); max-width: 520px; line-height: 1.65; }

/* ===== Phone Frame ===== */
.hero-phone { margin: 3rem 0 2.5rem; }
.phone-frame {
  position: relative;
  width: 280px;
  height: 580px;
  background: var(--bg);
  border-radius: 40px;
  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.5),
    0 0 120px rgba(108, 92, 231, 0.08);
}
.phone-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem;
}
.phone-logo {
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.15em;
}
.phone-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.phone-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}
.phone-card {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  border: 1px solid transparent;
}
.pc-purple { background: var(--bg-card); border-color: var(--purple); }
.pc-green { background: var(--bg-card); border-color: var(--green); }

/* ===== 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: rgba(231, 76, 60, 0.9);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 2rem;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}
.store-badge { height: 54px; width: auto; }
.store-badge.google-badge { height: 78px; margin: -12px 0; }

/* ===== WebApp Link ===== */
.webapp-link {
  margin-top: 1.5rem;
  display: inline-block;
  padding: 0.65rem 1.5rem;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px dashed var(--border-hi);
  border-radius: 10px;
  transition: all 0.15s;
}
.webapp-link:hover { border-color: var(--gold); background: var(--gold-muted); }

/* ===== 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: 14px;
  transition: border-color 0.2s;
}
.feature:hover { border-color: var(--border-hi); }
.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.feature-icon.purple { background: var(--purple-muted); color: var(--purple); }
.feature-icon.gold { background: var(--gold-muted); color: var(--gold); }
.feature-icon.green { background: var(--green-muted); color: var(--green); }
.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: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tag-color, var(--text-muted));
  transition: all 0.2s;
}
.deck-tag:hover {
  border-color: var(--tag-color, var(--border-hi));
  background: color-mix(in srgb, var(--tag-color, var(--purple)) 10%, 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(--purple); }
.footer a:hover { text-decoration: underline; }

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