/* ==========================================================================
   Fitness Mobile Landing & Web Suite
   Brand Color Palette from @docs/emails & design tokens:
   - Background: #070C13
   - Surface / Card: #18181A
   - Card Border: #303136
   - Subtle Border / Divider: #242528
   - Accent 1: #00D7A7 (Green 50)
   - Accent 2: #09DCBA (Green 75 / Teal)
   - Accent Subtle: rgba(9, 220, 186, 0.12)
   - Accent Glow: rgba(9, 220, 186, 0.28)
   - Text Primary: #FFFFFF
   - Text Secondary: #96979C
   - Text Muted: #7C7D83
   ========================================================================== */

:root {
  --color-bg: #070C13;
  --color-bg-secondary: #0D131C;
  --color-card: #18181A;
  --color-card-hover: #212226;
  --color-card-elevated: #242528;
  --color-border: #303136;
  --color-border-subtle: #242528;
  --color-border-hover: #3E4047;
  
  --color-accent-1: #00D7A7;
  --color-accent-2: #09DCBA;
  --color-accent-subtle: rgba(9, 220, 186, 0.12);
  --color-accent-glow: rgba(9, 220, 186, 0.28);
  --color-accent-hover: #07A291;
  
  --color-text: #FFFFFF;
  --color-text-secondary: #96979C;
  --color-text-muted: #7C7D83;
  
  --color-success: #31C455;
  --color-warning: #FEDC34;
  --color-error: #FF453A;

  --font-heading: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px var(--color-accent-glow);

  --container-max: 1160px;
  --container-narrow: 860px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(9, 220, 186, 0.12), transparent 70%),
    radial-gradient(circle at 10% 30%, rgba(0, 215, 167, 0.04), transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(9, 220, 186, 0.04), transparent 45%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ─── Header & Navigation ─────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 12, 19, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border-subtle);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand-link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.brand-logo {
  height: 38px;
  width: auto;
  aspect-ratio: 1224 / 261;
  flex-shrink: 0;
  object-fit: contain;
}

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

.nav-link {
  color: var(--color-text-secondary);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
  white-space: nowrap;
}

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

.nav-link.active {
  color: var(--color-accent-2);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.header-cta:hover {
  background: var(--color-card-elevated);
  border-color: var(--color-accent-2);
  color: var(--color-accent-2);
  box-shadow: 0 0 16px var(--color-accent-subtle);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  color: var(--color-text);
  padding: 8px;
}

/* ─── Hero Section ────────────────────────────────────────────────────────── */
.hero {
  padding: 72px 0 60px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(9, 220, 186, 0.08);
  border: 1px solid rgba(9, 220, 186, 0.25);
  border-radius: var(--radius-full);
  color: var(--color-accent-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--color-accent-2);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-accent-2);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--color-text);
  max-width: 860px;
  margin: 0 auto 20px;
  letter-spacing: -0.5px;
}

.hero-title-gradient {
  background: linear-gradient(135deg, #FFFFFF 40%, var(--color-accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 36px;
}

/* ─── Store Buttons (Apple, Google Play, RuStore) ─────────────────────────── */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 12px 22px;
  min-width: 200px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.store-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.04), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.store-btn:hover {
  transform: translateY(-3px);
  background: var(--color-card-elevated);
  border-color: var(--color-accent-2);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), 0 0 20px var(--color-accent-subtle);
}

.store-btn:hover::after {
  opacity: 1;
}

.store-btn:active {
  transform: translateY(-1px);
}

.store-btn-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.store-btn-icon svg {
  width: 100%;
  height: 100%;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.store-btn-overline {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-secondary);
  line-height: 1.2;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.store-btn-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
  letter-spacing: 0.2px;
}

/* Individual store accents on hover */
.store-btn.apple:hover {
  border-color: #FFFFFF;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.15);
}

.store-btn.google:hover {
  border-color: #4285F4;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), 0 0 20px rgba(66, 133, 244, 0.2);
}

.store-btn.rustore:hover {
  border-color: #0077FF;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 119, 255, 0.25);
}

/* Trust Perks below store buttons */
.hero-perks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
}

.hero-perk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.hero-perk-icon {
  color: var(--color-accent-2);
  display: flex;
  align-items: center;
}

/* ─── App Showcase Visual ─────────────────────────────────────────────────── */
.showcase {
  margin: 40px auto 80px;
  max-width: 980px;
  position: relative;
}

.showcase-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(9, 220, 186, 0.15), transparent 70%);
  filter: blur(50px);
  z-index: 0;
  pointer-events: none;
}

.showcase-card {
  position: relative;
  z-index: 1;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.showcase-stat {
  background: var(--color-bg);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.showcase-stat:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent-subtle);
}

.showcase-stat-num {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--color-accent-2);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.showcase-stat-label {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

/* ─── Features Grid Section ───────────────────────────────────────────────── */
.features-section {
  padding: 60px 0 100px;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-accent-2);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--color-text-secondary);
}

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

.feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent-2);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 0 24px var(--color-accent-subtle);
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(9, 220, 186, 0.1);
  border: 1px solid rgba(9, 220, 186, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-2);
  margin-bottom: 22px;
}

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

.feature-card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.feature-card-desc {
  font-size: 14.5px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ─── Call to Action Banner ───────────────────────────────────────────────── */
.cta-section {
  padding: 40px 0 90px;
}

.cta-banner {
  background: linear-gradient(135deg, #18181A 0%, #121A22 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 56px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent-2), transparent);
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 16px;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  margin-top: auto;
  background: #05080E;
  border-top: 1px solid var(--color-border-subtle);
  padding: 64px 0 32px;
  color: var(--color-text-secondary);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  height: 34px;
  width: auto;
  align-self: flex-start;
}

.footer-brand-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  max-width: 320px;
  line-height: 1.6;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-links a {
  color: var(--color-text-secondary);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-col-links a:hover {
  color: var(--color-accent-2);
  transform: translateX(2px);
}

.footer-bottom {
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.footer-support-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  font-size: 13px;
}

.footer-support-pill a {
  color: var(--color-accent-2);
  font-weight: 600;
}

.footer-support-pill a:hover {
  text-decoration: underline;
}

/* ─── Responsive Queries ─────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .showcase-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-brand-col {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  .header-inner {
    height: 64px;
  }
  .nav-links {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
}

@media (max-width: 680px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .store-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .store-btn {
    width: 100%;
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-brand-col {
    grid-column: span 1;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
