:root {
  --ink: #15121b;
  --muted: #6f6978;
  --paper: #fbfaff;
  --line: #e8e2ef;
  --violet: #7040ec;
  --violet-dark: #5126ca;
  --night: #09080d;
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  color: white;
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { background: rgba(9, 8, 13, .92); box-shadow: 0 10px 30px rgba(0,0,0,.18); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 850; letter-spacing: .16em; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px;
  color: white; font-size: 19px; font-weight: 900;
  background: linear-gradient(135deg, #a27cff, var(--violet-dark));
  box-shadow: 0 8px 24px rgba(112,64,236,.4);
}
.nav { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 650; }
.nav a { color: rgba(255,255,255,.76); transition: color .2s ease; }
.nav a:hover, .nav a:focus-visible { color: white; }
.nav-download { border: 1px solid rgba(255,255,255,.35); padding: 11px 20px; border-radius: 999px; background: rgba(255,255,255,.08); }
.menu-button { display: none; border: 0; background: transparent; padding: 8px; }
.menu-button span { display: block; width: 24px; height: 2px; margin: 5px; background: white; }

.hero { position: relative; min-height: min(900px, 100svh); display: grid; align-items: center; overflow: hidden; color: white; background: var(--night); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,6,10,.98) 0%, rgba(7,6,10,.84) 36%, rgba(7,6,10,.18) 72%, rgba(7,6,10,.35) 100%), linear-gradient(0deg, rgba(7,6,10,.6), transparent 55%); }
.hero-content { position: relative; width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 140px 0 72px; }
.eyebrow { margin: 0 0 18px; color: #b99cff; font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.purple { color: var(--violet); }
.hero h1 { max-width: 700px; margin: 0; font-size: clamp(58px, 8.5vw, 116px); line-height: .92; letter-spacing: -.065em; }
.hero h1 span { color: #9972ff; }
.hero-copy { max-width: 590px; margin: 30px 0 0; color: rgba(255,255,255,.72); font-size: clamp(17px, 2vw, 20px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; padding: 0 25px; border-radius: 16px; font-weight: 780; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: linear-gradient(135deg, #8559f5, var(--violet-dark)); box-shadow: 0 14px 34px rgba(112,64,236,.35); }
.button-quiet { color: white; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.07); backdrop-filter: blur(12px); }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.store-button { min-width: 204px; min-height: 64px; display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 11px; padding: 9px 17px; color: white; border: 1px solid rgba(255,255,255,.24); border-radius: 17px; background: rgba(10,8,15,.72); box-shadow: 0 14px 34px rgba(0,0,0,.18); backdrop-filter: blur(14px); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.store-button:hover { transform: translateY(-2px); border-color: rgba(185,156,255,.72); background: rgba(24,17,34,.9); }
.store-mark { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(255,255,255,.1); font-size: 15px; font-weight: 850; }
.store-mark-android { color: #b99cff; font-size: 18px; }
.store-mark-ios { color: white; font-size: 11px; letter-spacing: .03em; }
.store-copy { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.store-copy small { margin-bottom: 4px; color: rgba(255,255,255,.62); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.store-copy strong { font-size: 18px; letter-spacing: -.015em; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 48px; color: rgba(255,255,255,.55); font-size: 13px; }
.hero-proof span::before { content: ""; width: 6px; height: 6px; display: inline-block; margin: 0 9px 1px 0; border-radius: 50%; background: #8d60ff; box-shadow: 0 0 12px #8d60ff; }

.section { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 120px 0; }
.intro { display: grid; grid-template-columns: 1.05fr .95fr; column-gap: 70px; }
.section-heading h2, .how h2, .experience h2, .cta h2 { margin: 0; font-size: clamp(38px, 5vw, 66px); line-height: 1.06; letter-spacing: -.045em; }
.section-lead { margin: 42px 0 0; color: var(--muted); font-size: 19px; line-height: 1.7; }
.feature-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 70px; }
.feature-card { min-height: 300px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.7); box-shadow: 0 18px 55px rgba(38,26,60,.05); }
.feature-card.featured { color: white; border-color: transparent; background: linear-gradient(145deg, #1a1426, #0d0a12); box-shadow: 0 24px 60px rgba(45,24,90,.18); }
.feature-number { color: var(--violet); font-size: 13px; font-weight: 850; }
.feature-card h3 { margin: 88px 0 12px; font-size: 24px; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.feature-card.featured p { color: rgba(255,255,255,.62); }

.how { width: 100%; padding: 0 24px 120px; }
.how-panel { width: min(1320px, 100%); margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; padding: 86px max(32px, calc((100% - var(--max)) / 2)); color: white; border-radius: 36px; background: radial-gradient(circle at 15% 15%, rgba(112,64,236,.38), transparent 34%), #0b0910; }
.how-panel > div > p:last-child { max-width: 480px; color: rgba(255,255,255,.6); font-size: 18px; line-height: 1.65; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 50px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.steps li > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #c4adff; background: rgba(112,64,236,.2); font-weight: 800; }
.steps h3 { margin: 2px 0 7px; font-size: 20px; }
.steps p { margin: 0; color: rgba(255,255,255,.57); line-height: 1.55; }

.experience { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.experience-copy > p:last-child { margin: 28px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.experience-list { border-top: 1px solid var(--line); }
.experience-list > div { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.experience-list span { color: var(--violet); font-weight: 800; }
.experience-list p { margin: 0; color: var(--muted); line-height: 1.55; }

.cta { width: min(var(--max), calc(100% - 48px)); margin: 0 auto 34px; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding: 64px; color: white; border-radius: 32px; background: linear-gradient(135deg, #171020, #09080d); }
.cta h2 { max-width: 760px; font-size: clamp(36px, 5vw, 62px); }
.cta .button { flex: 0 0 auto; }
.cta-copy { max-width: 650px; margin: 22px 0 0; color: rgba(255,255,255,.62); line-height: 1.65; }
.cta-store-buttons { max-width: 440px; flex: 0 0 auto; justify-content: flex-end; margin-top: 0; }
footer { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; min-height: 130px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 35px; color: var(--muted); font-size: 13px; }
footer .brand { color: var(--ink); }

.legal-page {
  background:
    radial-gradient(circle at 8% 24%, rgba(112,64,236,.08), transparent 28%),
    radial-gradient(circle at 96% 65%, rgba(112,64,236,.06), transparent 24%),
    #f7f5fb;
}
.legal-page .site-header {
  position: sticky;
  color: white;
  background: rgba(9,8,13,.93);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 35px rgba(0,0,0,.14);
  backdrop-filter: blur(18px);
}
.legal-page .nav a { color: rgba(255,255,255,.7); }
.legal-page .nav a:hover, .legal-page .nav a:focus-visible { color: white; }
.legal-main {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 38px 0 110px;
}
.legal-hero {
  position: relative;
  isolation: isolate;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  margin-bottom: 22px;
  padding: 62px;
  color: white;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 34px;
  background: var(--night);
  box-shadow: 0 28px 80px rgba(31,18,55,.18);
}
.legal-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("assets/gymax-hero.png") 68% 40% / cover no-repeat;
  transform: scale(1.02);
}
.legal-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 88% 16%, rgba(126,80,246,.32), transparent 31%),
    linear-gradient(90deg, rgba(7,6,10,.98) 0%, rgba(7,6,10,.86) 46%, rgba(7,6,10,.36) 100%),
    linear-gradient(0deg, rgba(7,6,10,.76), transparent 64%);
}
.privacy-hero::before { background-position: 66% 34%; }
.support-hero::before { background-position: 70% 48%; }
.legal-hero .eyebrow { margin-bottom: 14px; }
.legal-hero h1 { max-width: 760px; margin: 0 0 16px; font-size: clamp(48px, 7.2vw, 82px); line-height: .96; letter-spacing: -.06em; }
.legal-hero p { max-width: 650px; margin: 0; color: rgba(255,255,255,.72); font-size: 17px; line-height: 1.7; }
.legal-updated { display: inline-block; margin-top: 25px; color: #c8b4ff; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.support-hero .support-button { align-self: flex-start; margin-top: 28px; }

.support-topics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 0 24px;
}
.support-topics a {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 16px 44px rgba(38,26,60,.06);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.support-topics a:hover, .support-topics a:focus-visible { transform: translateY(-4px); border-color: #cdbbf8; box-shadow: 0 20px 48px rgba(72,42,140,.13); }
.support-topics span { margin-bottom: auto; color: var(--violet); font-size: 12px; font-weight: 850; letter-spacing: .12em; }
.support-topics strong { font-size: 18px; }
.support-topics small { margin-top: 7px; color: var(--muted); line-height: 1.45; }

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.legal-sidebar { position: sticky; top: 106px; }
.legal-sidebar-card {
  overflow: hidden;
  padding: 24px;
  color: white;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  background: radial-gradient(circle at 0 0, rgba(112,64,236,.32), transparent 38%), #100d16;
  box-shadow: 0 22px 54px rgba(27,15,49,.13);
}
.legal-sidebar-label { display: block; margin-bottom: 16px; color: #b99cff; font-size: 11px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.legal-sidebar-card > a { display: block; padding: 10px 0; color: rgba(255,255,255,.68); font-size: 13px; font-weight: 650; border-bottom: 1px solid rgba(255,255,255,.08); transition: color .2s ease, padding-left .2s ease; }
.legal-sidebar-card > a:hover, .legal-sidebar-card > a:focus-visible { padding-left: 5px; color: white; }
.legal-sidebar-help { margin: 20px -8px -8px; padding: 18px; border-radius: 16px; background: rgba(112,64,236,.18); }
.legal-sidebar-help span { display: block; margin-bottom: 7px; color: rgba(255,255,255,.56); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }
.legal-sidebar-help a { color: white; font-size: 13px; font-weight: 800; }

.legal-content {
  overflow: hidden;
  padding: 8px 52px;
  border: 1px solid rgba(226,219,237,.9);
  border-radius: 28px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 22px 65px rgba(38,26,60,.075);
  backdrop-filter: blur(8px);
}
.legal-content section { scroll-margin-top: 108px; padding: 42px 0; border-bottom: 1px solid var(--line); }
.legal-content section:last-child { border-bottom: 0; }
.legal-content h2 { margin: 0 0 15px; font-size: clamp(26px, 3.5vw, 36px); line-height: 1.12; letter-spacing: -.035em; }
.legal-content h3 { margin: 27px 0 9px; font-size: 18px; letter-spacing: -.01em; }
.legal-content p, .legal-content li { color: #56505f; line-height: 1.78; }
.legal-content p { margin: 10px 0; }
.legal-content ul { margin: 14px 0; padding-left: 22px; }
.legal-content li + li { margin-top: 8px; }
.legal-content li::marker { color: var(--violet); }
.deletion-steps { margin: 18px 0 30px; padding: 0; list-style: none; }
.deletion-steps li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line); }
.deletion-steps li:last-child { border-bottom: 0; }
.deletion-steps li > span { width: 36px; height: 36px; display: grid; place-items: center; color: white; border-radius: 12px; background: linear-gradient(135deg, #8559f5, var(--violet-dark)); box-shadow: 0 8px 20px rgba(112,64,236,.22); font-size: 13px; font-weight: 850; }
.deletion-steps strong { display: block; color: var(--ink); font-size: 15px; }
.deletion-steps p { margin: 4px 0 0; font-size: 14px; }
.legal-content a { color: var(--violet-dark); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.legal-note { margin: 22px 0 4px !important; padding: 22px 24px; color: #3d3154 !important; border: 1px solid #d9cbed; border-radius: 18px; background: linear-gradient(135deg, #f2edff, #fbf9ff); box-shadow: inset 4px 0 0 var(--violet); }
.legal-page footer {
  width: 100%;
  min-height: 150px;
  padding: 30px max(24px, calc((100vw - var(--max)) / 2));
  color: rgba(255,255,255,.54);
  border-top: 1px solid rgba(255,255,255,.08);
  background: var(--night);
}
.legal-page footer .brand { color: white; }
.legal-page footer a:hover, .legal-page footer a:focus-visible { color: white; }

@media (max-width: 820px) {
  .site-header { height: 72px; }
  .menu-button { display: block; }
  .nav { position: absolute; top: 64px; left: 16px; right: 16px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(13,10,18,.97); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
  .legal-page .nav { position: static; display: flex; flex-direction: row; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .legal-page .nav a { padding: 10px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px; }
  .nav-download { text-align: center; margin-top: 5px; }
  .hero { min-height: 780px; align-items: end; }
  .hero-image { object-position: 65% center; opacity: .72; }
  .hero-shade { background: linear-gradient(0deg, rgba(7,6,10,1) 12%, rgba(7,6,10,.65) 62%, rgba(7,6,10,.4)); }
  .hero-content { width: min(100% - 40px, 620px); padding: 120px 0 54px; }
  .hero h1 { font-size: clamp(54px, 17vw, 82px); }
  .hero-copy { font-size: 16px; }
  .hero-proof { gap: 12px 18px; margin-top: 35px; }
  .section { width: min(100% - 40px, 620px); padding: 85px 0; }
  .intro, .experience { grid-template-columns: 1fr; gap: 24px; }
  .section-lead { margin-top: 16px; }
  .feature-grid { grid-template-columns: 1fr; margin-top: 44px; }
  .feature-card { min-height: auto; }
  .feature-card h3 { margin-top: 55px; }
  .how { padding: 0 14px 85px; }
  .how-panel { grid-template-columns: 1fr; gap: 40px; padding: 54px 24px; border-radius: 28px; }
  .experience { gap: 45px; }
  .cta { width: calc(100% - 28px); margin-bottom: 20px; flex-direction: column; align-items: stretch; padding: 44px 24px; }
  .cta .button { width: 100%; }
  .cta-store-buttons { max-width: none; justify-content: flex-start; margin-top: 4px; }
  .store-button { flex: 1 1 204px; }
  footer { width: calc(100% - 40px); grid-template-columns: 1fr; gap: 12px; padding: 40px 0; }
  .legal-main { width: min(100% - 28px, 700px); padding: 20px 0 70px; }
  .legal-hero { min-height: 420px; padding: 38px 26px; border-radius: 26px; }
  .legal-hero::before { background-position: 62% center; }
  .legal-hero::after { background: linear-gradient(0deg, rgba(7,6,10,.98) 7%, rgba(7,6,10,.75) 62%, rgba(7,6,10,.35)); }
  .legal-hero h1 { font-size: clamp(46px, 14vw, 68px); }
  .support-hero .support-button { width: 100%; }
  .support-topics { grid-template-columns: repeat(2, 1fr); }
  .legal-layout { display: block; }
  .legal-sidebar { display: none; }
  .legal-content { padding: 0 24px; border-radius: 24px; }
  .legal-content section { padding: 34px 0; }
  .legal-page footer { width: 100%; padding: 42px 24px; }
}

@media (max-width: 520px) {
  .support-topics { grid-template-columns: 1fr; }
  .support-topics a { min-height: 142px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
