/* ============================================================
   GymGo landing — base layer
   Reset, design tokens, layout primitives, shared components
   ============================================================ */

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

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces */
  --bg: #0a0a0a;
  --bg-soft: #111214;
  --bg-card: #14161a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hi: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-hi: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #ffffff;
  --mute: #a0a0a0;
  --dim: #6b6f75;

  /* Brand palette */
  --teal: #00d9b2;
  --teal-dim: #00bfa0;
  --teal-soft: rgba(0, 217, 178, 0.12);
  --coral: #ff6b6b;
  --coral-soft: rgba(255, 107, 107, 0.14);
  --mango: #ff8c42;
  --purple: #8b5cf6;
  --yellow: #ffd166;

  /* Effects */
  --shadow-teal: 0 12px 40px rgba(0, 217, 178, 0.35);

  /* Radii */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 30px;

  /* Type */
  --font-body: 'Inter', -apple-system, system-ui, sans-serif;
  --font-display: 'Manrope', 'Inter', sans-serif;
}

/* ---------- Document ---------- */
html {
  scroll-behavior: smooth;
}

html,
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(0, 217, 178, 0.1), transparent 60%),
    radial-gradient(900px 600px at -10% 35%, rgba(255, 107, 107, 0.07), transparent 60%),
    var(--bg);
  min-height: 100vh;
}

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

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

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

::selection {
  background: var(--teal);
  color: #002a22;
}

/* ---------- Layout ---------- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

section {
  padding: 100px 0;
  position: relative;
}

/* Alternate section background (AI deep-dive, results) */
.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
  section {
    padding: 64px 0;
  }

  .container {
    padding: 0 20px;
  }
}

/* ---------- Typography helpers ---------- */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 56px;
  gap: 16px;
}

.section-head h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 880px;
}

.section-head p {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--mute);
  max-width: 640px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--teal), var(--mango));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stars {
  color: var(--yellow);
  letter-spacing: 1px;
}

/* ---------- Eyebrow badge ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mute);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}

.eyebrow .dot--coral {
  background: var(--coral);
  box-shadow: 0 0 8px var(--coral);
}

/* ---------- Placeholder photo texture ---------- */
.ph-strip {
  background: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04) 0 8px,
    rgba(255, 255, 255, 0.08) 8px 16px
  );
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  cursor: pointer;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--teal);
  color: #00231c;
  box-shadow: var(--shadow-teal);
}

.btn-primary:hover {
  background: #00efc5;
  box-shadow: 0 14px 40px rgba(0, 217, 178, 0.5);
}

.btn-ghost {
  background: var(--surface-hi);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* App-store download button */
.btn-store {
  background: #000;
  color: #fff;
  padding: 13px 22px;
  border: 1px solid var(--border-hi);
}

.btn-store:hover {
  background: #1a1a1a;
  border-color: var(--teal);
}

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

.btn-store .store-sub {
  font-size: 10px;
  opacity: 0.7;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: -1px;
}

.btn-store .store-name {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
}

/* ---------- Scroll-reveal utility ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}
