/* GymIA — marketing & support site
   Theme mirrors the app: near-black background, vivid lime-green accent. */

:root {
  --bg: #0a0b0a;
  --bg-2: #0d0f0d;
  --surface: #141614;
  --surface-2: #1b1e1b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --lime: #9be800;
  --lime-600: #7fc400;
  --lime-soft: rgba(155, 232, 0, 0.12);
  --text: #f4f6f4;
  --muted: #9aa39a;
  --muted-2: #6d746d;
  --orange: #f59e0b;
  --teal: #10d9a0;
  --blue: #7d92ff;
  --pink: #f65aa6;
  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1140px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
  background: var(--lime-soft);
  border: 1px solid rgba(155, 232, 0, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
}

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; font-weight: 800; }

.section { padding: 96px 0; position: relative; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 18px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--lime); color: #0a0b0a; }
.btn-primary:hover { transform: translateY(-2px); background: #aef300; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 10, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 11px;
  display: block;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(155, 232, 0, 0.35);
}
.brand .logo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 0.95rem; transition: color 0.15s ease; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 78% 12%, rgba(155, 232, 0, 0.16), transparent 70%),
    radial-gradient(700px 500px at 10% 0%, rgba(125, 146, 255, 0.08), transparent 65%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin: 22px 0 20px; }
.hero h1 .accent { color: var(--lime); }
.hero p.lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 32px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 22px; color: var(--muted-2); font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.hero-visual { display: flex; justify-content: center; position: relative; }

/* ---------- Phone mockup ---------- */
.phone {
  position: relative;
  width: 300px;
  max-width: 78vw;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 44px;
  padding: 10px;
  background: linear-gradient(160deg, #202320, #0e100e);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}
.phone::before {
  content: "";
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.14);
  z-index: 2;
}
.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  border-radius: 35px;
}
.phone.tilt { transform: rotate(-2deg); }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.feature .ico {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 20px;
}
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.22rem; margin-bottom: 10px; }
.feature p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.ico.lime { background: var(--lime-soft); color: var(--lime); }
.ico.orange { background: rgba(245, 158, 11, 0.12); color: var(--orange); }
.ico.teal { background: rgba(16, 217, 160, 0.12); color: var(--teal); }
.ico.blue { background: rgba(125, 146, 255, 0.14); color: var(--blue); }
.ico.pink { background: rgba(246, 90, 166, 0.14); color: var(--pink); }

/* ---------- Showcase ---------- */
.showcase { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.shots { display: flex; gap: 26px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; }
.shot { scroll-snap-align: center; flex: 0 0 auto; text-align: center; }
.shot .phone { width: 250px; }
.shot p { color: var(--muted); font-weight: 600; margin: 18px 0 0; font-size: 0.95rem; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 860px; margin: 0 auto; }
.plan {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.plan.featured { border-color: rgba(155, 232, 0, 0.5); box-shadow: 0 0 0 1px rgba(155, 232, 0, 0.15), 0 30px 60px rgba(0,0,0,0.4); }
.plan .badge {
  position: absolute; top: -13px; left: 32px;
  background: var(--lime); color: #0a0b0a; font-weight: 800; font-size: 0.75rem;
  letter-spacing: 0.05em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px;
}
.plan h3 { font-size: 1.4rem; }
.plan .price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 6px; }
.plan .price .amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.plan .price .per { color: var(--muted); font-weight: 600; }
.plan .subprice { color: var(--muted); font-size: 0.95rem; margin: 0 0 26px; min-height: 22px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 13px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 0.98rem; }
.plan li svg { width: 20px; height: 20px; flex: 0 0 20px; color: var(--lime); margin-top: 2px; }
.plan li.muted { color: var(--muted-2); }
.plan li.muted svg { color: var(--muted-2); }
.plan .btn { width: 100%; margin-top: auto; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 4px 24px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--lime); font-size: 1.5rem; font-weight: 400; transition: transform 0.2s ease; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 0 0 22px; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact-card {
  max-width: 620px; margin: 0 auto;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: 48px 36px;
}
.contact-card .mail {
  display: inline-flex; align-items: center; gap: 12px; margin: 22px 0 8px;
  font-size: 1.5rem; font-weight: 800; color: var(--lime);
  word-break: break-all;
}
.contact-card .mail svg { width: 26px; height: 26px; flex: 0 0 26px; }
.contact-meta { color: var(--muted); margin: 6px 0 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 46px 0 60px; background: var(--bg-2); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .brand { font-size: 1.05rem; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 0.95rem; transition: color 0.15s ease; }
.footer-links a:hover { color: var(--lime); }
.footer .copy { color: var(--muted-2); font-size: 0.88rem; margin-top: 26px; }

/* ---------- Legal / doc pages ---------- */
.doc { max-width: 800px; margin: 0 auto; padding: 60px 0 80px; }
.doc .back { color: var(--muted); font-weight: 600; display: inline-flex; gap: 8px; margin-bottom: 30px; }
.doc .back:hover { color: var(--lime); }
.doc h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 8px; }
.doc .updated { color: var(--muted-2); margin: 0 0 40px; font-size: 0.92rem; }
.doc h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.doc h3 { font-size: 1.1rem; margin: 26px 0 8px; }
.doc p, .doc li { color: #cfd4cf; }
.doc ul { padding-left: 22px; display: grid; gap: 8px; }
.doc a:not(.btn) { color: var(--lime); }
.doc a:not(.btn):hover { text-decoration: underline; }
.doc strong { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-note { justify-content: center; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hide-mobile { display: none; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 18px 24px; gap: 18px;
  }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---------- Language selector ---------- */
.language-switcher select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 9px 28px 9px 12px;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 13px) 50%, calc(100% - 9px) 50%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}
.language-switcher select:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
