/* ─── Custom Properties ─────────────────────────────────── */
:root {
  --bg:           #0f1117;
  --surface:      #1a1a2e;
  --surface-alt:  #222233;
  --primary:      #7b5ea7;
  --accent:       #27ae60;
  --streak:       #ff6b35;
  --text:         #ffffff;
  --text-muted:   #aaaaaa;
  --border:       #333344;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

a {
  text-decoration: none;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.82;
}

.btn--primary {
  background: var(--primary);
  color: var(--text);
}

.btn--secondary {
  background: var(--accent);
  color: var(--text);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

/* ─── Nav ────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav__logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.nav__ctas {
  display: flex;
  gap: 0.75rem;
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
}

.hero__headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3.5rem;
}

.hero__flags {
  font-size: 2rem;
  letter-spacing: 0.4rem;
  opacity: 0.5;
}

/* ─── Features ───────────────────────────────────────────── */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 6rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature__text h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.feature__text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 420px;
}

.feature__screenshot {
  display: flex;
  justify-content: center;
}

.feature__screenshot img {
  width: 100%;
  max-width: 260px;
  border-radius: 28px;
  border: 2px solid var(--border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--surface);
  text-align: center;
  padding: 5rem 2rem 3rem;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

.footer__headline {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1.75rem;
}

.footer__ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

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

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Hide nav download buttons on mobile — hero has them */
  .nav__ctas {
    display: none;
  }

  /* Stack feature sections vertically */
  .feature {
    grid-template-columns: 1fr;
    padding: 4rem 1.5rem;
    gap: 2rem;
    text-align: center;
  }

  .feature__text p {
    max-width: 100%;
    margin: 0 auto;
  }

  /* On mobile, always show screenshot above text for visual impact.
     feature--right already has screenshot first in DOM, so no order override needed. */
  .feature--left .feature__screenshot {
    order: -1;
  }
}
