/* =============================================
   RepGen Fitness — dark, sleek, minimal
   ============================================= */

:root {
  --teal:        #00bfa5;
  --teal-glow:   rgba(0, 191, 165, 0.18);
  --teal-dark:   #009e89;
  --bg:          #0c0c0c;
  --bg-2:        #111111;
  --bg-3:        #161616;
  --surface:     #1a1a1a;
  --border:      rgba(255, 255, 255, 0.08);
  --text:        #f0f0f0;
  --text-muted:  #888;
  --text-dim:    #555;
  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   20px;
  --radius-pill: 100px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* =============================================
   LAYOUT HELPERS
   ============================================= */

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

.section-inner--narrow {
  max-width: 680px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.6rem;
}

/* =============================================
   NAV
   ============================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 12, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}

.nav-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

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

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

/* =============================================
   HERO
   ============================================= */

.hero {
  background: var(--bg);
  padding: 80px 24px 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* subtle radial glow behind the hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(0, 191, 165, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-wordmark {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius);
  object-fit: contain;
}

.hero-tagline {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 0 24px;
  height: 48px;
  background: var(--teal);
  color: #000;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  text-decoration: none;
}

/* =============================================
   SCREENSHOTS
   ============================================= */

.screenshots {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}

.screenshots h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 48px;
}

.phone-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

/* Phone frame — CSS-only iPhone silhouette */
.phone-frame {
  width: 180px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 36px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: scale(0.92) translateY(14px);
  opacity: 0.7;
  transition: transform var(--transition), opacity var(--transition);
}

.phone-frame--center {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.phone-frame:hover {
  transform: scale(1.02) translateY(-4px);
  opacity: 1;
}

.phone-frame--center:hover {
  transform: scale(1.04) translateY(-4px);
}

.phone-island {
  width: 56px;
  height: 10px;
  background: var(--bg);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.phone-screen {
  width: 100%;
  aspect-ratio: 9 / 19;
  background: var(--bg-3);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 8px;
  border: 1px dashed var(--border);
}

.screenshot-placeholder {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.screenshot-hint {
  font-size: 0.6rem;
  color: var(--text-dim);
  text-align: center;
}

/* =============================================
   FEATURES
   ============================================= */

.features {
  background: var(--bg);
  padding: 80px 0;
}

.features h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color var(--transition);
}

.feature-card:hover {
  border-color: rgba(0, 191, 165, 0.3);
}

.feature-icon {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

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

/* =============================================
   SUPPORT
   ============================================= */

.support {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 80px 0;
  text-align: center;
}

.support h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.support-body {
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 32px;
}

.btn-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  height: 52px;
  background: var(--teal-glow);
  border: 1.5px solid var(--teal);
  color: var(--teal);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}

.btn-email:hover {
  background: rgba(0, 191, 165, 0.28);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-email-icon {
  font-size: 1rem;
}

/* =============================================
   PRIVACY + TERMS
   ============================================= */

.privacy {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 80px 0;
}

.terms {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 60px 0;
}

.privacy h2,
.terms h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.privacy-updated {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 32px;
}

.policy-block h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 28px 0 8px;
}

.policy-block h3:first-child {
  margin-top: 0;
}

.policy-block p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.policy-block a {
  color: var(--teal);
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 36px 24px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  opacity: 0.7;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* =============================================
   RESPONSIVE
   ============================================= */

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

  .hero { padding: 60px 20px 72px; }

  .hero-tagline { font-size: 1.25rem; }
  .hero-wordmark { max-width: 300px; }

  .screenshots h2,
  .features h2,
  .support h2,
  .privacy h2,
  .terms h2 { font-size: 1.4rem; }

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

  .phone-row { gap: 12px; }

  .phone-frame {
    width: 140px;
  }

  .screenshots,
  .features,
  .support,
  .privacy,
  .terms { padding: 60px 0; }
}

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