/* GymGram — Landing & legal pages
   Sobrio, oscuro, minimalista. Acentos en naranja del logo. */

:root {
  --bg: #0a0a0c;
  --bg-elev: #14141a;
  --bg-card: #16161e;
  --border: #1f1f2a;
  --border-strong: #2a2a37;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #ff6b35;
  --accent-dim: rgba(255, 107, 53, 0.12);
  --accent-strong: #ff7a4a;
  --max-w: 1100px;
  --radius: 14px;
  --radius-sm: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: "ss01", "cv11";
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ---------- HEADER ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 18px;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--text-muted);
}

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

@media (max-width: 600px) {
  .nav-links { display: none; }
}

/* ---------- HERO ---------- */

.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 96px 24px 80px;
  text-align: center;
}

.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin: 0 auto 32px;
  box-shadow:
    0 0 0 1px var(--border),
    0 20px 60px -20px rgba(255, 107, 53, 0.25);
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  font-size: clamp(17px, 2.1vw, 20px);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.55;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 24px -6px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover { border-color: var(--text-muted); background: var(--bg-elev); }

/* ---------- SECTIONS ---------- */

.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 18px;
  max-width: 640px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 48px;
}

/* ---------- FEATURE GRID ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
  font-size: 20px;
}

.card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---------- BETA NOTICE ---------- */

.beta-notice {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 80px;
}

.beta-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.beta-badge {
  background: var(--accent-dim);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

.beta-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .beta-card { flex-direction: column; }
}

/* ---------- FOOTER ---------- */

.footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 48px 24px 32px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-brand img { width: 28px; height: 28px; border-radius: 7px; }

.footer-brand span { font-weight: 700; letter-spacing: -0.02em; }

.footer p.tag {
  font-size: 13.5px;
  color: var(--text-dim);
  max-width: 320px;
}

.footer h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer ul { list-style: none; }

.footer li { margin-bottom: 8px; }

.footer a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.12s ease;
}

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

.footer-bottom {
  max-width: var(--max-w);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- LEGAL PAGES ---------- */

.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
  transition: color 0.12s ease;
}

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

.legal-content { font-size: 16px; line-height: 1.75; color: var(--text); }

.legal-content h1 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 48px 0 16px;
  color: var(--text);
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text);
}

.legal-content p { margin-bottom: 16px; color: var(--text-muted); }

.legal-content ul, .legal-content ol {
  margin: 0 0 20px 24px;
  color: var(--text-muted);
}

.legal-content li { margin-bottom: 6px; }

.legal-content strong { color: var(--text); font-weight: 600; }

.legal-content blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--bg-elev);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  color: var(--text);
  font-size: 15px;
}

.legal-content blockquote p { color: var(--text); margin-bottom: 0; }

.legal-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

.legal-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: var(--bg-elev);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13.5px;
  color: var(--accent);
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(255, 107, 53, 0.4);
  text-underline-offset: 3px;
}

.legal-content a:hover { text-decoration-color: var(--accent); }

.legal-loading {
  color: var(--text-dim);
  font-size: 14px;
  padding: 24px 0;
  text-align: center;
}
