/* ========================================================
   GYMAID — Shared design system
   ======================================================== */

:root {
  --bg: #0c0e0a;
  --bg-2: #14180f;
  --panel: rgba(255,255,255,0.025);
  --panel-2: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --text: #f4f6ef;
  --text-dim: rgba(244,246,239,0.66);
  --text-faint: rgba(244,246,239,0.36);
  --accent: #b6f24a;
  --accent-soft: rgba(182,242,74,0.14);
  --accent-glow: rgba(182,242,74,0.35);
  --danger: #ff7a6c;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background */
.bg {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 600px at 50% 0%, rgba(182,242,74,0.06), transparent 70%),
    radial-gradient(1200px 800px at 50% 110%, rgba(182,242,74,0.04), transparent 60%),
    var(--bg);
  pointer-events: none;
}
.bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Top bar */
.topbar {
  position: relative; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 28px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}
.topbar .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  display: inline-block;
  margin-right: 10px;
  vertical-align: 1px;
}
.topbar a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.topbar a:hover { color: var(--text); }
.topbar nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.topbar nav a {
  font-size: 11.5px;
  letter-spacing: 0.16em;
}

/* Page wrapper */
.page {
  position: relative; z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Logo block — used on hero / auth pages */
.logo-wrap {
  position: relative;
  width: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.logo-wrap::before, .logo-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.logo-wrap::before { right: 100%; margin-right: 18px; }
.logo-wrap::after  { left: 100%; margin-left: 18px; }
.logo-wrap img {
  width: 200px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 28px rgba(182,242,74,0.18));
}
.logo-wrap.sm { width: 140px; }
.logo-wrap.sm img { width: 120px; }

/* Eyebrow */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* Headings */
h1.display {
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.05;
  margin: 0 0 16px;
  text-align: center;
  letter-spacing: -0.025em;
}
h1.display em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}

.lede {
  text-align: center;
  color: var(--text-dim);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.55;
  max-width: 560px;
  margin: 0 auto;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: #0c0e0a;
  font-family: 'Sora', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:hover {
  box-shadow: 0 10px 32px -10px var(--accent-glow), 0 0 0 1px var(--accent-glow);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn.ghost:hover {
  background: var(--panel);
  border-color: var(--accent);
  box-shadow: none;
}

/* Pill / status chip */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--accent-soft);
  border: 1px solid rgba(182,242,74,0.32);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Footer */
.site-foot {
  position: relative; z-index: 1;
  padding: 40px 28px 36px;
  margin-top: auto;
  border-top: 1px solid var(--border);
  text-align: center;
}
.foot-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.foot-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 13.5px;
}
.foot-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.foot-links a:hover { color: var(--accent); }
.foot-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}
.foot-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.foot-meta .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* Article / doc pages */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 28px 80px;
  position: relative; z-index: 1;
}
.doc .doc-head {
  text-align: center;
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.doc .doc-head h1 {
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  font-size: clamp(32px, 4.6vw, 44px);
  letter-spacing: -0.02em;
  margin: 18px 0 12px;
}
.doc .doc-head .last-updated {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.doc section { margin-bottom: 36px; }
.doc h2 {
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 14px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.doc h2 .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  flex-shrink: 0;
  min-width: 28px;
}
.doc p, .doc li {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.7;
  margin: 0 0 12px;
}
.doc ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.doc ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}
.doc ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: 11px;
  width: 6px; height: 6px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}
.doc strong { color: var(--text); font-weight: 600; }
.doc a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(182,242,74,0.32);
  transition: border-color 0.2s;
}
.doc a:hover { border-color: var(--accent); }

.callout {
  background: var(--accent-soft);
  border: 1px solid rgba(182,242,74,0.32);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 22px 0;
}
.callout p { color: var(--text); }
.callout p:last-child { margin-bottom: 0; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  transition: background 0.2s, border-color 0.2s;
}
.back-link:hover {
  background: var(--panel);
  border-color: var(--accent);
}

/* Responsive */
@media (max-width: 640px) {
  .topbar { padding: 16px 18px; }
  .topbar nav { gap: 16px; }
  .logo-wrap { width: 160px; }
  .logo-wrap img { width: 140px; }
  .logo-wrap::before, .logo-wrap::after { width: 30px; }
  .doc { padding: 40px 20px 60px; }
  .doc h2 { font-size: 19px; }
  .doc p, .doc li { font-size: 14.5px; }
}
