/* ============================================================
   STIOC FITNESS HUB — Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --color-bg: #0b0d12;
  --color-bg-alt: #12151c;
  --color-surface: #1a1e28;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-text: #f4f5f7;
  --color-text-muted: #9aa0ac;

  --color-primary: #ff5e3a;
  --color-primary-dark: #e8461f;
  --color-accent: #2dd4bf;
  --gradient-primary: linear-gradient(120deg, #ff5e3a 0%, #ff2d78 100%);
  --gradient-accent: linear-gradient(120deg, #2dd4bf 0%, #6366f1 100%);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-glow: 0 8px 40px rgba(255, 94, 58, 0.25);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  margin: 0 0 16px;
  line-height: 1.2;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(255, 94, 58, 0.1);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
}

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

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 45px rgba(255, 94, 58, 0.4); }

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); transform: translateY(-3px); }

.btn-block { width: 100%; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(11, 13, 18, 0.85);
  backdrop-filter: blur(14px);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.navbar .container { display: flex; align-items: center; justify-content: space-between; }

.logo { font-family: var(--font-heading); font-weight: 800; font-size: 22px; letter-spacing: 0.5px; }
.logo span { color: var(--color-primary); }

.nav-links { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text-muted);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--color-text); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; background: none; border: none; color: var(--color-text); font-size: 26px; cursor: pointer; }

@media (max-width: 900px) {
  .nav-links, .nav-actions .btn-outline { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 100px;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 94, 58, 0.18), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(45, 212, 191, 0.15), transparent 45%),
    var(--color-bg);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 950px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { order: -1; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease both;
}

.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.2);
}

.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  animation: fadeInUp 0.9s ease 0.1s both;
}

.hero p.lead {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 520px;
  margin-bottom: 36px;
  animation: fadeInUp 0.9s ease 0.2s both;
}

@media (max-width: 950px) { .hero p.lead { margin-left: auto; margin-right: auto; } }

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeInUp 0.9s ease 0.3s both; }
@media (max-width: 950px) { .hero-cta { justify-content: center; } }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  animation: fadeInUp 0.9s ease 0.4s both;
}
@media (max-width: 950px) { .hero-stats { justify-content: center; } }

.hero-stat .num {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--color-text);
}
.hero-stat .label { font-size: 13px; color: var(--color-text-muted); }

.hero-visual {
  position: relative;
  animation: floatIn 1.1s ease both;
}

.hero-visual .card-glass {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.hero-visual img { border-radius: var(--radius-md); width: 100%; }

.floating-badge {
  position: absolute;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-card);
  animation: floatY 4s ease-in-out infinite;
  font-size: 14px;
}

.floating-badge.top-right { top: -20px; right: -20px; }
.floating-badge.bottom-left { bottom: -20px; left: -20px; animation-delay: 1s; }

.floating-badge .icon-circle {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-accent);
  font-size: 16px;
}

/* ---------- Marquee (trust bar) ---------- */
.marquee-wrap {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 28px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 60px;
  animation: scrollLeft 25s linear infinite;
}
.marquee-track span { font-size: 15px; color: var(--color-text-muted); font-weight: 600; letter-spacing: 1px; }

/* ---------- Cards Grid (programs) ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,94,58,0.4);
  box-shadow: var(--shadow-card);
}

.card .icon-badge {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-primary);
  font-size: 24px;
  margin-bottom: 20px;
}

.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--color-text-muted); font-size: 15px; margin-bottom: 20px; }

.card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.12);
  color: var(--color-accent);
  margin-bottom: 14px;
}

.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 14px; color: var(--color-primary);
  text-decoration: none;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
}
.testimonial-card .stars { color: #ffb020; margin-bottom: 14px; letter-spacing: 3px; }
.testimonial-card p.msg { font-size: 15px; color: #d6d9de; margin-bottom: 22px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author img {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--color-primary);
}
.testimonial-author .name { font-weight: 600; font-size: 14px; }
.testimonial-author .result { font-size: 12px; color: var(--color-accent); }

/* ---------- FAQ Accordion ---------- */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  background: var(--color-surface);
  overflow: hidden;
}
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; cursor: pointer; font-weight: 600; font-size: 15px;
}
.faq-question .plus { transition: transform 0.3s ease; font-size: 20px; color: var(--color-primary); }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px; color: var(--color-text-muted); font-size: 14px;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 24px 20px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--color-text-muted); }
.form-control {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-size: 15px;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}
.form-control:focus { outline: none; border-color: var(--color-primary); }
textarea.form-control { resize: vertical; min-height: 130px; }

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
}
.alert-success { background: rgba(45, 212, 191, 0.12); color: var(--color-accent); border: 1px solid rgba(45,212,191,0.3); }
.alert-error { background: rgba(255, 94, 58, 0.12); color: var(--color-primary); border: 1px solid rgba(255,94,58,0.3); }

/* ---------- Footer ---------- */
.footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 60px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { font-size: 15px; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: var(--color-text-muted); text-decoration: none; font-size: 14px; }
.footer a:hover { color: var(--color-primary); }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--color-text-muted);
}
.social-icons { display: flex; gap: 12px; }
.social-icons a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
}
.social-icons a:hover { border-color: var(--color-primary); }

/* ---------- Auth pages ---------- */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,94,58,0.15), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(45,212,191,0.12), transparent 40%),
    var(--color-bg);
  padding: 40px 20px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-card);
  animation: fadeInUp 0.6s ease both;
}
.auth-logo { text-align: center; margin-bottom: 8px; font-size: 24px; font-weight: 800; font-family: var(--font-heading); }
.auth-logo span { color: var(--color-primary); }
.auth-subtitle { text-align: center; color: var(--color-text-muted); font-size: 14px; margin-bottom: 32px; }
.auth-switch { text-align: center; margin-top: 24px; font-size: 14px; color: var(--color-text-muted); }
.auth-switch a { color: var(--color-primary); font-weight: 600; text-decoration: none; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: var(--color-text-muted); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--color-border); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Keyframes ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes scrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
