/* ── Tokens ── */
:root {
  --electric-lime: #D5FB28;
  --electric-lime-hover: #e0fc5a;
  --court-blue: #1565C0;
  --court-blue-light: #1E88E5;
  --clay-orange: #E65100;
  --clay-orange-light: #EF6C00;
  --deep-charcoal: #0E0E0E;
  --surface-low: #131313;
  --surface-high: #20201F;
  --on-surface-variant: #ADAAAA;
  --on-primary-dark: #4D5D00;
  --ghost-border: rgba(72, 72, 71, 0.15);
  --heading-color: #E8E8E8;
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --max-width: 1120px;
}

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

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  font-family: var(--font-body);
  background: var(--deep-charcoal);
  color: var(--on-surface-variant);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--electric-lime); text-decoration: none; }
a:hover { color: var(--electric-lime-hover); }

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

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

section { padding: 80px 0; }

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

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

.nav-brand { text-decoration: none; }

.nav-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--on-surface-variant);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--heading-color); }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--on-surface-variant);
  margin: 6px 0;
  transition: transform 0.3s, opacity 0.3s;
}

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

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--heading-color);
  margin-bottom: 16px;
}

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

.hero p {
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.hero-logo {
  width: 420px;
  height: auto;
}

/* ── CTA Button ── */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: 2px solid var(--electric-lime);
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--electric-lime);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.cta-button:hover {
  background: var(--electric-lime);
  color: var(--on-primary-dark);
}

/* ── Section Headers ── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--heading-color);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Features ── */
.features { background: var(--surface-low); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface-high);
  border: 1px solid var(--ghost-border);
  border-radius: 16px;
  padding: 32px 24px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: rgba(213, 251, 40, 0.08);
  color: var(--electric-lime);
}

.feature-icon .material-symbols-outlined {
  font-size: 1.5rem;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--heading-color);
  margin-bottom: 8px;
}

.feature-card p { font-size: 0.92rem; line-height: 1.55; }

/* ── Formats ── */
.formats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.format-card {
  background: var(--surface-high);
  border: 1px solid var(--ghost-border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
}

.format-card .format-icon {
  margin-bottom: 16px;
  color: var(--electric-lime);
}

.format-card .format-icon .material-symbols-outlined {
  font-size: 2rem;
}

.format-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--heading-color);
  margin-bottom: 12px;
}

.format-card p { font-size: 0.92rem; line-height: 1.55; }

.format-card ul {
  list-style: none;
  margin-top: 16px;
  font-size: 0.85rem;
}

.format-card ul li {
  padding: 6px 0;
  border-top: 1px solid var(--ghost-border);
}

/* ── Screenshots ── */
.screenshots { background: var(--surface-low); }

.screenshots-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.screenshots-scroll::-webkit-scrollbar { height: 6px; }
.screenshots-scroll::-webkit-scrollbar-track { background: var(--surface-high); border-radius: 3px; }
.screenshots-scroll::-webkit-scrollbar-thumb { background: rgba(173, 170, 170, 0.3); border-radius: 3px; }

.screenshot-placeholder {
  flex: 0 0 auto;
  width: 180px;
  height: 390px;
  border: 2px dashed rgba(173, 170, 170, 0.2);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(173, 170, 170, 0.4);
  scroll-snap-align: start;
  background: var(--surface-high);
}

/* ── Download ── */
.download {
  text-align: center;
  padding: 80px 0;
}

.download h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--heading-color);
  margin-bottom: 16px;
}

.download p {
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.built-by {
  margin-top: 24px;
  font-size: 0.85rem;
}

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

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}

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

.footer-links a { color: var(--on-surface-variant); }
.footer-links a:hover { color: var(--heading-color); }

/* ── Mobile ── */
@media (max-width: 768px) {
  section { padding: 56px 0; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(14, 14, 14, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--ghost-border);
  }

  .nav-links.open { display: flex; }

  .nav-hamburger { display: block; }

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

  .hero-logo {
    width: 320px;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .container { padding: 0 16px; }
}
