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

:root {
  --bg:        #0f0f0f;
  --bg-card:   #1a1a1a;
  --bg-border: #2a2a2a;
  --text:      #f0f0f0;
  --text-muted:#a0a0a0;
  --accent:    #6366f1;
  --accent-hover: #818cf8;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

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

/* ============================================================
   Layout helpers
   ============================================================ */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Header / Nav
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 15, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bg-border);
}

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

.nav-brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  opacity: 0.9;
}

.nav-brand span {
  color: var(--accent);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 20px;
  border: 1px solid var(--bg-border);
  border-radius: 6px;
  transition: color 0.2s, border-color 0.2s;
}

.nav-link:hover {
  color: var(--text);
  border-color: var(--accent);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  font-size: 3rem;
  box-shadow: 0 0 48px rgba(99, 102, 241, 0.35);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 40px;
}

/* ============================================================
   Play Badge Button
   ============================================================ */
.play-badge {
  display: inline-block;
  transition: opacity 0.2s, transform 0.2s;
}

.play-badge:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.play-badge img {
  height: 60px;
  width: auto;
}

/* ============================================================
   Section shared
   ============================================================ */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 56px;
}

/* ============================================================
   Features
   ============================================================ */
.features {
  background: var(--bg-card);
  border-top: 1px solid var(--bg-border);
  border-bottom: 1px solid var(--bg-border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--bg-border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s;
}

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

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   Screenshots
   ============================================================ */
.screenshots-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Phone mockup */
.phone-frame {
  width: 220px;
  flex-shrink: 0;
  border: 3px solid #333;
  border-radius: 32px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px #444;
  position: relative;
}

/* Notch / status bar */
.phone-frame::before {
  content: "";
  display: block;
  height: 28px;
  background: #111;
  border-bottom: 1px solid #333;
}

.phone-frame::after {
  content: "";
  display: block;
  width: 60px;
  height: 8px;
  background: #2a2a2a;
  border-radius: 4px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.phone-screen {
  width: 100%;
  height: auto;
  display: block;
  background: #111;
}

/* Placeholder state when no image src */
.phone-screen[src=""],
.phone-screen:not([src]) {
  background: linear-gradient(135deg, #1e1e2e 0%, #12121e 100%);
}

.phone-frame-bottom {
  height: 24px;
  background: #111;
  border-top: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-home-indicator {
  width: 48px;
  height: 4px;
  background: #444;
  border-radius: 2px;
}

/* ============================================================
   Download CTA
   ============================================================ */
.cta {
  background: var(--bg-card);
  border-top: 1px solid var(--bg-border);
  border-bottom: 1px solid var(--bg-border);
  text-align: center;
}

.cta p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 32px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  padding: 40px 0;
  text-align: center;
}

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

.footer-brand {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
}

.footer-brand span {
  color: var(--accent);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 0.8rem;
  color: #555;
}

/* ============================================================
   Divider accent line
   ============================================================ */
.accent-line {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0 auto 48px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 600px) {
  .hero {
    padding: 64px 0 56px;
  }

  .screenshots-row {
    gap: 16px;
  }

  .phone-frame {
    width: 160px;
  }
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}
