:root {
  --bg: #0a0a0a;
  --bg-elev: #121212;
  --bg-elev-2: #1a1a1a;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f5;
  --text-dim: #a3a3a3;
  --text-faint: #6b6b6b;
  --green: #34c759;
  --amber: #ff9f0a;
  --red: #ff453a;
  --radius: 16px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

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

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand-icon {
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14.5px;
  color: var(--text-dim);
}

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

.nav-cta {
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.nav-cta:hover { opacity: 0.85; }

@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* Hero */
.hero {
  position: relative;
  padding: 100px 24px 90px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 480px;
  background: radial-gradient(closest-side, rgba(52, 199, 89, 0.22), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.hero-icon {
  margin: 0 auto 28px;
  border-radius: 22.4%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero h1 {
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 700;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.testflight-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  background: #000;
  border: 1px solid #a6a6a6;
  border-radius: 7.5px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.testflight-badge:hover { transform: scale(1.03); opacity: 0.92; }

.testflight-badge svg { width: 20px; height: 20px; flex-shrink: 0; }

.hero-note {
  font-size: 13px;
  color: var(--text-faint);
}

/* Features */
.features { padding: 90px 0; }

.features h2,
.screenshots h2,
.download h2 {
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 48px;
  font-weight: 700;
}

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

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(52, 199, 89, 0.12);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon svg { width: 22px; height: 22px; }

.feature-card h3 {
  font-size: 16.5px;
  margin: 0 0 8px;
  font-weight: 600;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--text-dim);
  margin: 0;
}

/* Screenshots */
.screenshots {
  padding: 90px 0 100px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.015) 15%, rgba(255, 255, 255, 0.015) 85%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-sub {
  text-align: center;
  color: var(--text-faint);
  font-size: 13.5px;
  margin: -34px 0 48px;
}

.shot-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 44px 26px;
}

.shot {
  width: 216px;
  margin: 0;
  flex-shrink: 0;
}

/* Phone frame */
.phone {
  display: block;
  background: #0b0b0c;
  border-radius: 36px;
  border: 1px solid #2c2c2e;
  padding: 7px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.phone:hover {
  transform: translateY(-4px);
  box-shadow: 0 38px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.phone:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.phone-screen {
  display: block;
  border-radius: 30px;
  overflow: hidden;
  background: #000;
}

.phone-screen img {
  width: 100%;
  height: auto;
  aspect-ratio: 1206 / 2622;
  display: block;
}

.shot-caption {
  margin: 18px 2px 0;
  text-align: center;
}

.shot-caption h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 5px;
}

.shot-caption p {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-dim);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .phone { transition: none; }
  .phone:hover { transform: none; }
}

/* Download */
.download { padding: 100px 0 110px; }

.download-inner {
  text-align: center;
  max-width: 480px;
}

.download-icon {
  margin: 0 auto 20px;
  border-radius: 22.4%;
}

.download p {
  color: var(--text-dim);
  font-size: 16px;
  margin: 0 0 32px;
}

.download .testflight-badge {
  margin: 0 auto;
}

/* Legal */
.legal { padding: 80px 0 100px; }

.legal-inner { max-width: 720px; }

.legal h1 {
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  font-weight: 700;
}

.legal-updated {
  color: var(--text-faint);
  font-size: 13.5px;
  margin: 0 0 40px;
}

.legal h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 36px 0 12px;
}

.legal p,
.legal li {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
}

.legal p { margin: 0 0 14px; }

.legal ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.legal li { margin-bottom: 6px; }

.legal a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
}

.legal a:hover { text-decoration-color: var(--text-dim); }

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

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
}

.footer-brand img { border-radius: 6px; }

.footer-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 12.5px;
  color: var(--text-faint);
}

.footer-privacy {
  font-size: 12.5px;
  color: var(--text-dim);
}

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