/* =====================================================================
   Advanced Improviser — Landing Page Styles
   ===================================================================== */

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

:root {
  --color-bg:          #0d0f14;
  --color-surface:     #13161e;
  --color-surface-2:   #1a1d27;
  --color-border:      #252936;
  --color-accent:      #6c63ff;
  --color-accent-2:    #a78bfa;
  --color-accent-glow: rgba(108, 99, 255, 0.35);
  --color-text:        #e8eaf2;
  --color-text-muted:  #8b90a8;
  --color-white:       #ffffff;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  22px;
  --radius-xl:  32px;

  --shadow-card: 0 2px 24px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 40px var(--color-accent-glow);

  --container-width: 1120px;
  --section-gap: 96px;
}

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

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

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.18s;
}
.btn:hover { opacity: 0.85; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--nav {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ── Nav ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-white);
}

.nav__brand img { border-radius: 8px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.18s;
}
.nav__links a:hover { color: var(--color-white); }

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

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 40%, rgba(108, 99, 255, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(167, 139, 250, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-2);
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero__sub {
  font-size: 1.08rem;
  color: var(--color-text-muted);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.75;
}

.hero__cta { margin-bottom: 16px; }

.hero__note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 8px;
}

/* Phone frame */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  border: 1px solid var(--color-border);
}

.phone-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(108,99,255,0.08) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.phone-frame__screen {
  width: 100%;
  height: auto;
  display: block;
  border-radius: inherit;
}

/* ── Sections ────────────────────────────────────────────────────── */
.section {
  padding: var(--section-gap) 0;
}

.section--alt {
  background: var(--color-surface);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Features grid ───────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.feature-card--accent {
  background: linear-gradient(135deg, rgba(108,99,255,0.14) 0%, var(--color-surface-2) 100%);
  border-color: rgba(108,99,255,0.4);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  color: var(--color-accent-2);
}

.feature-card__icon svg {
  width: 100%;
  height: 100%;
}

.feature-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 10px;
}

.feature-card__body {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ── How it works / Steps ────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 36px;
  counter-reset: steps;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step__number {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.35;
  flex-shrink: 0;
  min-width: 56px;
  letter-spacing: -0.04em;
}

.step__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 10px;
}

.step__body {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.step__body em {
  font-style: normal;
  color: var(--color-accent-2);
  font-weight: 500;
}

/* ── Formats ─────────────────────────────────────────────────────── */
.formats-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.format-badge {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  padding: 10px 28px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.06em;
  transition: border-color 0.18s, color 0.18s;
}

.format-badge:hover {
  border-color: var(--color-accent-2);
  color: var(--color-accent-2);
}

/* ── CTA section ─────────────────────────────────────────────────── */
.cta-section {
  background:
    radial-gradient(ellipse 80% 70% at 50% 50%, rgba(108, 99, 255, 0.2) 0%, transparent 70%),
    var(--color-bg);
  padding: var(--section-gap) 0;
}

.cta-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cta-icon {
  border-radius: 50%;
  box-shadow: 0 0 32px var(--color-accent-glow);
  margin-bottom: 8px;
}

.cta-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.cta-sub {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 520px;
  line-height: 1.75;
}

.cta-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* ── Play Store Badge ────────────────────────────────────────────── */
.playstore-badge {
  display: inline-block;
  transition: opacity 0.18s, transform 0.18s;
}
.playstore-badge:hover { opacity: 0.88; transform: translateY(-2px); }

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-white);
}

.footer__brand img { border-radius: 6px; }

.footer__copy {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.footer__links {
  display: flex;
  gap: 20px;
}

.footer__links a {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  transition: color 0.18s;
}
.footer__links a:hover { color: var(--color-white); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__visual {
    order: -1;
  }

  .phone-frame {
    max-width: 300px;
    margin: 0 auto;
  }

  .hero__sub { max-width: 100%; }
}

@media (max-width: 640px) {
  :root { --section-gap: 64px; }

  .nav__links li:not(:last-child) { display: none; }

  .features-grid { grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr; gap: 28px; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 12px; }

  .hero { padding: 80px 0 60px; min-height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  html { scroll-behavior: auto; }
}
