/* GymHub Marketing Website — app-matched dark minimal */

:root {
  --color-bg: #000000;
  --color-bg-elevated: #0a0a0a;
  --color-bg-surface: #141414;
  --color-bg-glass: rgba(28, 28, 30, 0.72);
  --color-text: #ffffff;
  --color-text-secondary: #a1a1a1;
  --color-text-muted: #6e6e73;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.14);
  --color-tab-active: rgba(255, 255, 255, 0.12);
  --color-blue: #3b6fd4;
  --color-red: #c43d52;
  --color-purple: #8b4fd4;
  --color-orange: #c4842e;
  --color-glow-blue: rgba(39, 90, 158, 0.42);
  --color-glow-red: rgba(232, 69, 90, 0.38);
  --color-glow-purple: rgba(180, 88, 232, 0.36);
  --color-glow-indigo: rgba(91, 79, 216, 0.22);
  --color-cta-bg: #ffffff;
  --color-cta-text: #000000;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;
  --hero-device-width: min(560px, 96vw);
  --max-width: 1080px;
  --font-sans: 'Plus Jakarta Sans', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --section-gap: clamp(88px, 12vw, 140px);
  --hero-spotlight-size: min(1380px, 178vw);
}

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

html {
  scroll-behavior: smooth;
  background: var(--color-bg);
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

#main {
  position: relative;
  z-index: 1;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 16px;
  background: var(--color-cta-bg);
  color: var(--color-cta-text);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 32px);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Hero — Exoplan-style centered stack, copy pins while phone scrolls over */

.hero {
  position: relative;
  text-align: center;
  padding-top: clamp(72px, 12vh, 128px);
  padding-bottom: clamp(24px, 4vw, 48px);
  isolation: isolate;
}

.hero-sticky-sentinel {
  width: 100%;
  height: 1px;
  margin-bottom: -1px;
  pointer-events: none;
}

.hero-copy {
  animation: hero-in 700ms var(--ease-out);
  position: sticky;
  top: clamp(48px, 10vh, 96px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 3vw, 28px);
}

.hero--copy-stuck .hero-cta-slot {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero-cta-slot {
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    opacity 200ms var(--ease-out),
    visibility 200ms var(--ease-out);
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

.hero-eyebrow {
  display: flex;
  justify-content: center;
}

.hero-eyebrow__badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-eyebrow__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hero-eyebrow__integrations {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 12px;
}

.hero-eyebrow__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.hero-eyebrow__sep {
  width: 1px;
  height: 14px;
  background: var(--color-border-strong);
  flex-shrink: 0;
}

.hero-eyebrow__chip svg {
  width: 15px;
  height: 15px;
  opacity: 0.92;
  flex-shrink: 0;
}

@media (max-width: 420px) {
  .hero-eyebrow__badge {
    padding: 11px 14px 13px;
  }

  .hero-eyebrow__integrations {
    gap: 10px;
  }

  .hero-eyebrow__chip {
    font-size: 0.8125rem;
    gap: 5px;
  }

  .hero-eyebrow__chip svg {
    width: 14px;
    height: 14px;
  }
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  text-wrap: balance;
  margin: 0 auto;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-cta-bg);
  color: var(--color-cta-text);
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 200ms var(--ease-out),
    opacity 200ms var(--ease-out);
}

.hero-cta:hover {
  opacity: 0.9;
}

.hero-cta:active {
  transform: scale(0.98);
}

.hero-cta:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
}

.hero-cta svg {
  width: 17px;
  height: 17px;
}

.hero-visual {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: clamp(32px, 6vw, 56px);
}

/* Ambient bloom emanating from behind the phone */
.hero-spotlight {
  position: absolute;
  top: clamp(300px, 40vw, 400px);
  left: 50%;
  width: var(--hero-spotlight-size);
  height: var(--hero-spotlight-size);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(124, 168, 255, 0.58) 0%,
      rgba(122, 126, 255, 0.48) 16%,
      rgba(184, 92, 228, 0.4) 32%,
      rgba(228, 82, 108, 0.28) 48%,
      rgba(54, 84, 176, 0.15) 66%,
      transparent 82%
    );
  filter: blur(72px);
  pointer-events: none;
  z-index: 0;
}

/* Hero device — full mockup PNG */

.hero-device {
  position: relative;
  width: var(--hero-device-width);
  margin: 0 auto;
  z-index: 1;
}

.hero-device img {
  position: relative;
  z-index: 60;
  width: 100%;
  height: auto;
  display: block;
}

/* Features — editorial zig-zag */

.features {
  position: relative;
  z-index: 2;
  background: transparent;
  margin-top: clamp(-72px, -10vw, -40px);
  padding-top: clamp(32px, 6vw, 64px);
  padding-bottom: var(--section-gap);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-bottom: var(--section-gap);
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row--reverse .feature-copy {
  order: 2;
}

.feature-row--reverse .feature-panel {
  order: 1;
}

.feature-row--health-sync,
.feature-row--screenshot {
  grid-template-columns: repeat(2, minmax(0, 430px));
  justify-content: center;
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}

.feature-row--health-sync .feature-copy p,
.feature-row--screenshot .feature-copy p {
  max-width: 40ch;
}

.feature-row--health-sync .feature-copy p + p,
.feature-row--screenshot .feature-copy p + p {
  margin-top: 12px;
}

.feature-row--health-sync .feature-panel,
.feature-row--screenshot .feature-panel {
  justify-content: center;
}

.feature-row--health-sync .feature-panel-inner--screenshot,
.feature-row--screenshot .feature-panel-inner--screenshot {
  max-width: 420px;
}

.feature-row--wide {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
}

.feature-panel-inner--landscape {
  max-width: min(520px, 100%);
}

.feature-copy h3 {
  font-size: clamp(1.5rem, 2.8vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
  text-wrap: balance;
}

.feature-copy h3 span {
  color: var(--color-text-muted);
}

.feature-copy p {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 32ch;
}

.feature-privacy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 14px;
  max-width: none;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
}

.feature-privacy svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-panel {
  display: flex;
  justify-content: center;
}

.feature-panel-inner {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 48px;
  border: 1px solid var(--color-border);
}

.feature-panel-inner--blue {
  background:
    radial-gradient(circle at 28% 24%, rgba(59, 111, 212, 0.5), transparent 62%),
    linear-gradient(160deg, #0d1526 0%, #090909 78%);
}

.feature-panel-inner--red {
  background:
    radial-gradient(circle at 70% 30%, rgba(196, 61, 82, 0.46), transparent 62%),
    linear-gradient(200deg, #1d0b10 0%, #090909 78%);
}

.feature-panel-inner--screenshot {
  aspect-ratio: auto;
  max-width: 320px;
  padding: 0;
  overflow: hidden;
}

.feature-panel-inner--device {
  border: none;
  background: transparent;
  position: relative;
  z-index: 60;
}

.feature-panel-inner--screenshot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: inherit;
}

.feature-panel-inner--purple {
  background:
    radial-gradient(circle at 50% 32%, rgba(139, 79, 212, 0.46), transparent 64%),
    linear-gradient(180deg, #150c22 0%, #090909 80%);
}

.feature-panel-inner--orange {
  background:
    radial-gradient(circle at 36% 62%, rgba(196, 132, 46, 0.42), transparent 62%),
    linear-gradient(150deg, #1c1206 0%, #090909 78%);
}

.feature-icon-wrap {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.feature-icon-wrap svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-icon-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Footer */

.site-footer {
  position: relative;
  z-index: 2;
  background: transparent;
  text-align: center;
  padding: clamp(64px, 9vw, 120px) 24px clamp(48px, 7vw, 80px);
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.footer-links a {
  color: var(--color-text-secondary);
  transition: color 200ms var(--ease-out);
}

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

.footer-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-text-muted);
}

.footer-email {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: color 200ms var(--ease-out);
}

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

/* Legal pages */

.legal-page {
  padding: clamp(72px, 10vw, 96px) 0 var(--section-gap);
}

.legal-page h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.legal-meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

.legal-content {
  max-width: 680px;
}

.legal-content h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.legal-content p,
.legal-content li {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
  line-height: 1.65;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

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

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  transition: color 200ms var(--ease-out);
}

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

@media (max-width: 900px) {
  :root {
    --hero-device-width: min(460px, 90vw);
    --hero-spotlight-size: min(1040px, 190vw);
    --section-gap: clamp(72px, 14vw, 104px);
  }

  .hero {
    padding-top: clamp(56px, 9vh, 88px);
    padding-bottom: 28px;
  }

  .hero-copy {
    top: 42px;
    gap: clamp(18px, 4vw, 24px);
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 10vw, 4rem);
  }

  .hero-visual {
    margin-top: clamp(28px, 8vw, 48px);
  }

  .hero-spotlight {
    top: clamp(230px, 56vw, 360px);
    filter: blur(58px);
  }

  .features {
    margin-top: clamp(-48px, -9vw, -24px);
    padding-top: 48px;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: var(--section-gap);
  }

  .feature-row--reverse .feature-copy,
  .feature-row--reverse .feature-panel {
    order: unset;
  }

  .feature-copy {
    text-align: center;
  }

  .feature-copy p {
    max-width: min(42ch, 100%);
    margin-inline: auto;
  }

  .feature-privacy {
    justify-content: center;
  }

  .feature-panel-inner {
    max-width: 100%;
    aspect-ratio: 4 / 3;
  }

  .feature-panel-inner--screenshot {
    max-width: min(420px, 100%);
    aspect-ratio: auto;
  }

  .feature-row--health-sync .feature-panel,
  .feature-row--screenshot .feature-panel {
    justify-content: center;
  }

  .feature-row--health-sync,
  .feature-row--screenshot {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .feature-panel-inner--landscape {
    max-width: min(420px, 100%);
  }
}

@media (max-width: 640px) {
  :root {
    --hero-device-width: min(390px, 88vw);
    --hero-spotlight-size: min(920px, 210vw);
  }

  .container {
    padding-inline: 18px;
  }

  .hero {
    padding-top: 46px;
  }

  .hero-copy {
    position: relative;
    top: auto;
    gap: 18px;
  }

  .hero--copy-stuck .hero-cta-slot {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .hero-eyebrow__badge {
    width: min(100%, 330px);
    padding: 11px 14px 13px;
  }

  .hero-eyebrow__integrations {
    gap: 10px;
  }

  .hero-eyebrow__chip {
    font-size: 0.8125rem;
  }

  .hero-copy h1 {
    font-size: clamp(3.1rem, 15vw, 4.25rem);
    line-height: 1.02;
  }

  .hero-cta {
    padding: 12px 24px;
  }

  .hero-spotlight {
    top: clamp(190px, 58vw, 290px);
    filter: blur(48px);
  }

  .feature-copy h3 {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .feature-copy p {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .feature-panel-inner--screenshot {
    max-width: min(340px, 82vw);
  }

  .site-footer {
    padding-inline: 18px;
  }
}

@media (max-width: 420px) {
  :root {
    --hero-device-width: min(350px, 90vw);
    --hero-spotlight-size: min(780px, 230vw);
  }

  .hero {
    padding-top: 38px;
  }

  .hero-eyebrow__badge {
    width: min(100%, 304px);
  }

  .hero-eyebrow__label {
    font-size: 0.625rem;
  }

  .hero-eyebrow__integrations {
    gap: 8px;
  }

  .hero-eyebrow__chip {
    font-size: 0.75rem;
    gap: 4px;
  }

  .hero-eyebrow__chip svg {
    width: 13px;
    height: 13px;
  }

  .hero-copy h1 {
    font-size: clamp(2.75rem, 16vw, 3.5rem);
  }

  .hero-spotlight {
    top: clamp(170px, 62vw, 250px);
  }

  .feature-panel-inner--screenshot {
    max-width: min(310px, 84vw);
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .hero-copy {
    animation: none;
  }
}
