/* ============ GYMCIRCLE ============ */
:root {
  --bg: #0b0a08;
  --panel: #131110;
  --card: #1a1613;
  --line: #292420;
  --text: #f2ece4;
  --muted: #9d938a;
  --accent: #ff5b17;
  --accent-soft: rgba(255, 91, 23, 0.12);
  --display: "Anton", "Arial Narrow", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* film grain */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 2000; pointer-events: none;
  opacity: 0.05;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="180" height="180"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter><rect width="100%25" height="100%25" filter="url(%23n)"/></svg>');
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; }
h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
}

/* ============ nav ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem clamp(1.25rem, 5vw, 4.5rem);
  background: rgba(11, 10, 8, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 0.55rem;
  font-weight: 700; letter-spacing: 0.12em; text-decoration: none; font-size: 0.95rem;
}
.logo { width: 30px; height: 30px; }
.nav nav { display: flex; align-items: center; gap: 1.7rem; }
.nav nav a {
  text-decoration: none; color: var(--muted);
  font-weight: 500; font-size: 0.9rem; transition: color 0.15s;
}
.nav nav a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 0.5rem 1.05rem; border-radius: 9px; font-weight: 600 !important;
}
.nav-cta:hover { background: #ff6f33; }
@media (max-width: 640px) { .nav nav a:not(.nav-cta) { display: none; } }

/* ============ hero ============ */
.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem; align-items: center;
  padding: clamp(3rem, 8vh, 6rem) clamp(1.25rem, 5vw, 4.5rem) 4rem;
  min-height: 78vh;
}
.hero h1 {
  font-size: clamp(3.2rem, 8.5vw, 6.8rem);
  margin-bottom: 1.4rem;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.lede {
  color: var(--muted); font-size: 1.1rem; max-width: 32rem;
  margin-bottom: 2.2rem;
}
.lede strong { color: var(--text); }
.proof { margin-top: 1.4rem; color: var(--muted); font-size: 0.88rem; }

.store-buttons { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.store-buttons.center { justify-content: center; }
.store-btn {
  display: flex; align-items: center; gap: 0.65rem;
  background: var(--text); color: #131110; text-decoration: none;
  padding: 0.6rem 1.15rem; border-radius: 12px;
  transition: transform 0.12s ease;
}
.store-btn:hover { transform: scale(1.03); }
.store-btn svg { width: 20px; height: 24px; }
.store-btn small { display: block; font-size: 0.6rem; line-height: 1; opacity: 0.65; }
.store-btn strong { font-size: 1rem; line-height: 1.2; }

/* ============ phone mockup ============ */
.hero-visual { display: grid; place-items: center; }
.phone {
  width: min(290px, 76vw); aspect-ratio: 9 / 19;
  background: #000; border-radius: 46px;
  border: 2px solid #35302b;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65), 0 0 0 6px rgba(255, 255, 255, 0.02);
  padding: 10px; overflow: hidden;
  transform: rotate(-1.5deg);
  position: relative;
}
.phone-island {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 30%; height: 24px; background: #000; border-radius: 999px; z-index: 3;
}
.phone-screen {
  height: 100%; border-radius: 38px; overflow: hidden;
  background: #100e0c;
  padding: 0.85rem 0.8rem 0.8rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.ui-status {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.68rem; font-weight: 600; padding: 0.15rem 0.55rem 0;
}
.ui-batt {
  width: 21px; height: 10px; border: 1px solid var(--muted);
  border-radius: 3px; display: inline-block; padding: 1px;
}
.ui-batt i { display: block; height: 100%; width: 80%; background: var(--muted); border-radius: 1px; }
.ui-header { display: flex; justify-content: space-between; align-items: baseline; padding: 0.5rem 0.3rem 0; }
.ui-title { font-weight: 700; font-size: 0.84rem; }
.ui-timer { font-size: 0.74rem; color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }

.ui-card, .mini-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 0.7rem 0.8rem; font-size: 0.73rem;
}
.ui-card-title { font-weight: 700; font-size: 0.8rem; margin-bottom: 0.4rem; }
.ui-row {
  display: flex; justify-content: space-between; gap: 0.4rem;
  padding: 0.28rem 0.25rem; color: var(--muted);
  border-radius: 8px; font-variant-numeric: tabular-nums;
}
.ui-row.active { background: var(--accent-soft); color: var(--text); }
.ui-row.you { color: var(--text); font-weight: 600; }
.ui-row .done { color: #59c96f; }
.ui-row .rest { color: var(--accent); font-weight: 700; }
.ui-note { margin-top: 0.45rem; color: var(--muted); font-size: 0.66rem; }
.ui-feed-head { display: flex; gap: 0.45rem; align-items: center; margin-bottom: 0.35rem; }
.ui-feed-head small { color: var(--muted); }
.ui-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700;
  display: grid; place-items: center; font-size: 0.66rem;
}
.ui-feed-body { margin-bottom: 0.35rem; }
.ui-feed-foot { color: var(--muted); font-size: 0.66rem; }
.ui-chips { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.ui-chips span {
  background: var(--accent-soft); color: var(--text);
  border-radius: 999px; padding: 0.15rem 0.55rem; font-size: 0.66rem;
}

/* ============ marquee ============ */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 0.85rem 0;
  background: var(--panel);
}
.marquee-track {
  display: flex; align-items: center; gap: 2.2rem;
  width: max-content;
  animation: ticker 36s linear infinite;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 0.92rem; letter-spacing: 0.06em;
  color: var(--muted);
}
.marquee-track i { color: var(--accent); font-style: normal; font-size: 0.5rem; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ============ how it works ============ */
.how { padding: 5rem clamp(1.25rem, 5vw, 4.5rem); display: flex; flex-direction: column; gap: 5.5rem; }
.row {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
  max-width: 62rem; margin: 0 auto; width: 100%;
}
.row:nth-child(even) .row-copy { order: 2; }
.row:nth-child(even) .row-visual { order: 1; }
.num {
  font-family: var(--display); font-size: 1rem; color: var(--accent);
  letter-spacing: 0.15em;
}
.row-copy h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin: 0.4rem 0 1rem; }
.row-copy p { color: var(--muted); max-width: 30rem; }
.row-visual { display: grid; place-items: center; }
.mini-card {
  width: min(300px, 100%);
  font-size: 0.8rem; padding: 1rem 1.1rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.tilt-l { transform: rotate(-2deg); }
.tilt-r { transform: rotate(2deg); }

/* ============ founders ============ */
.founders { background: var(--panel); border-block: 1px solid var(--line); padding: 5rem clamp(1.25rem, 5vw, 4.5rem); }
.founders-inner { max-width: 40rem; margin: 0 auto; }
.founders-kicker {
  font-family: var(--display); text-transform: uppercase;
  color: var(--accent); letter-spacing: 0.12em; font-size: 0.95rem;
  margin-bottom: 1.4rem;
}
.founders-note { font-size: 1.18rem; line-height: 1.7; margin-bottom: 1.2rem; color: var(--text); }
.signature {
  font-family: "Caveat", cursive; font-size: 1.9rem; color: var(--accent);
  margin-top: 1.8rem; line-height: 1;
}
.founders-loc { color: var(--muted); font-size: 0.88rem; margin-top: 0.3rem; }

/* ============ faq ============ */
.faq { padding: 5rem clamp(1.25rem, 5vw, 4.5rem); max-width: 50rem; margin: 0 auto; width: 100%; }
.faq h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin-bottom: 2rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.05rem 0.2rem; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; font-weight: 600; list-style: none;
  position: relative; padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.2rem; top: -0.1rem;
  color: var(--accent); font-weight: 700; font-size: 1.2rem;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 0.6rem; max-width: 42rem; }
.faq a { color: var(--accent); }

/* ============ cta ============ */
.cta {
  text-align: center; position: relative; overflow: hidden;
  padding: 6.5rem clamp(1.25rem, 5vw, 4.5rem);
  border-top: 1px solid var(--line);
}
.cta::before {
  content: "GYMCIRCLE";
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--display); font-size: clamp(6rem, 22vw, 17rem);
  color: transparent; -webkit-text-stroke: 1px rgba(242, 236, 228, 0.05);
  pointer-events: none; white-space: nowrap;
}
.cta h2 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); margin-bottom: 0.7rem; position: relative; }
.cta p { color: var(--muted); margin-bottom: 2.2rem; position: relative; }
.cta .store-buttons { position: relative; }

/* ============ footer ============ */
footer { border-top: 1px solid var(--line); padding: 2rem clamp(1.25rem, 5vw, 4.5rem) 1.4rem; }
.foot-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1.5rem; flex-wrap: wrap;
}
.foot-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 0.88rem; }
.foot-links a:hover { color: var(--accent); }
.copyright { color: var(--muted); font-size: 0.78rem; margin-top: 1.6rem; }

/* ============ responsive ============ */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 3rem; }
  .hero-visual { order: 2; margin-top: 2rem; }
  .row, .row:nth-child(even) { grid-template-columns: 1fr; }
  .row:nth-child(even) .row-copy { order: 1; }
  .row:nth-child(even) .row-visual { order: 2; }
  .row-visual { justify-items: start; }
  .mini-card { width: min(320px, 100%); }
}

/* ============ legal pages ============ */
.legal { max-width: 44rem; margin: 0 auto; padding: 3.5rem 1.25rem; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 0.4rem; }
.legal .updated { color: var(--muted); margin-bottom: 2rem; }
.legal h2 { font-size: 1.15rem; margin: 2rem 0 0.5rem; font-family: var(--body); font-weight: 700; text-transform: none; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2rem; margin: 0.5rem 0; }
.legal a { color: var(--accent); }
