/* ============================================================
   Relivix — Static Site Styles
   Brand: Relivix Purple #4b2987 / Dark bg #0d0d0d / Didot
   ============================================================ */

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

:root {
  /* Brand */
  --brand:           #4b2987;
  --brand-dark:      #2d1660;
  --brand-darker:    #120a24;
  --brand-light:     #7c52c8;
  --brand-lighter:   #ede9f8;

  /* Backgrounds */
  --bg:              #0d0d0d;
  --bg-card:         #1c1c1e;
  --bg-input:        #2c2c2e;
  --bg-section-alt:  #111111;

  /* Text */
  --text-primary:    #f0f0f0;
  --text-secondary:  #a0a0a0;
  --text-muted:      #6e6e73;

  /* Borders */
  --border:          #38383a;

  /* Sport accents */
  --sport-golf:      #2D5A27;
  --sport-cycling:   #E65100;
  --sport-running:   #1565C0;
  --sport-skiing:    #1E88E5;
  --sport-shooting:  #B71C1C;

  /* Spacing */
  --section-gap: 100px;

  /* Radius */
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  24px;
  --radius-xl:  36px;

  /* Fonts */
  --font-display: 'Didot', 'Didot LT STD', 'GFS Didot', 'Bodoni MT', 'Bodoni 72', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

.section {
  padding: var(--section-gap) 0;
}

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

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  letter-spacing: 0;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:hover  { opacity: 0.85; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--brand);
  color: #fff;
}
.btn--primary:hover { background: var(--brand-light); opacity: 1; }

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover { border-color: var(--brand-light); color: var(--brand-light); opacity: 1; }

.btn--sm {
  padding: 9px 18px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
}
.btn--sm:hover { background: var(--brand-light); opacity: 1; }

/* ── Gradient text ────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #c4aaff 0%, #e8dcff 50%, #b08af0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── NAV ──────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav--scrolled {
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #e8dcff 0%, #c4aaff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.nav__links a:hover { color: var(--brand-light); }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(75,41,135,0.45) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(45,22,96,0.25) 0%, transparent 60%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(75,41,135,0.25);
  border: 1px solid rgba(124,82,200,0.4);
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--brand-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.hero__tagline-brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #e8dcff 0%, #c4aaff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 800px;
}

.hero__sub {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 560px;
  line-height: 1.65;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}



.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__scroll-hint span {
  display: block;
  width: 1.5px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--brand-light));
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ── FEATURES ─────────────────────────────────────────────── */
.features {
  background: var(--bg-section-alt);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

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

.feature-card:hover {
  border-color: rgba(124,82,200,0.5);
  transform: translateY(-2px);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(75,41,135,0.2);
  border: 1px solid rgba(75,41,135,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--brand-light);
}

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

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 10px;
}

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

/* ── SPORTS ───────────────────────────────────────────────── */
.sports {
  background: var(--bg);
}

.sports__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.sport-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  border: 1.5px solid;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.sport-pill:hover { transform: translateY(-2px); opacity: 0.9; }

.sport-pill__icon { width: 20px; height: 20px; flex-shrink: 0; font-size: 20px; }

.sport-pill--golf     { color: #4a8c42; border-color: rgba(74,140,66,0.4);  background: rgba(74,140,66,0.1);  }
.sport-pill--cycling  { color: #FF9100; border-color: rgba(255,145,0,0.4);  background: rgba(255,145,0,0.1);  }
.sport-pill--running  { color: #42A5F5; border-color: rgba(66,165,245,0.4); background: rgba(66,165,245,0.1); }
.sport-pill--skiing   { color: #42A5F5; border-color: rgba(66,165,245,0.4); background: rgba(66,165,245,0.08);}
.sport-pill--shooting { color: #EF5350; border-color: rgba(239,83,80,0.4);  background: rgba(239,83,80,0.1);  }

/* ── ABOUT ────────────────────────────────────────────────── */
.about {
  background: var(--bg-section-alt);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
}

.about__text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  letter-spacing: 0;
  margin-bottom: 24px;
}

.about__text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 560px;
}

.about__text p + p { margin-top: 16px; }

.about__icon-wrap {
  flex-shrink: 0;
}

.about__app-icon-wrap {
  width: 160px;
  height: 160px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(75,41,135,0.3),
    0 24px 64px rgba(75,41,135,0.25),
    0 8px 24px rgba(0,0,0,0.5);
}

.about__app-icon {
  width: 160px;
  height: 160px;
  display: block;
}

/* ── BETA CTA ─────────────────────────────────────────────── */
.beta {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.beta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(75,41,135,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.beta__inner {
  position: relative;
  text-align: center;
  max-width: 560px;
}

.beta__inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0;
  margin-bottom: 14px;
}

.beta__inner p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.beta__form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.beta__input {
  flex: 1;
  min-width: 220px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.beta__input::placeholder { color: var(--text-muted); }
.beta__input:focus { border-color: var(--brand-light); }

.store-badges {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  transition: border-color 0.15s ease, transform 0.15s ease;
  cursor: not-allowed;
  opacity: 0.6;
}

.store-badge span {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.2;
}

.store-badge small {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.beta__note {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg);
}

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

.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #e8dcff 0%, #c4aaff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer__icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer__links a:hover { color: var(--brand-light); }

.footer__sep { color: var(--text-muted); }

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --section-gap: 72px; }

  .nav__links a:not(.btn) { display: none; }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .about__app-icon-wrap { margin: 0 auto; }
  .about__text p { max-width: 100%; }

  .hero__headline { font-size: clamp(2rem, 8vw, 3rem); }

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

@media (max-width: 480px) {
  .beta__form { flex-direction: column; }
  .beta__input { min-width: 0; }
  .btn { width: 100%; }
  .hero__ctas .btn { width: auto; }
}
