/* ══════════════════════════════════════════════════════════════
   BazaFit — Landing page styles
   Built on the BazaFit design tokens. Dark "cyber-gym" premium,
   Linear/Arc-cold. Atmosphere = glows only, generous air.
   ══════════════════════════════════════════════════════════════ */

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* Stronger hero atmosphere on top of .baza-atmosphere body glow */
.atmo-fixed {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.atmo-fixed::before {
  content: ""; position: absolute; top: -18%; right: -10%;
  width: 60vw; height: 60vw; max-width: 820px; max-height: 820px;
  background: radial-gradient(circle at center, rgba(0,140,255,0.22) 0%, rgba(0,140,255,0.05) 38%, transparent 68%);
  filter: blur(8px);
}
.atmo-fixed::after {
  content: ""; position: absolute; bottom: -22%; left: -12%;
  width: 55vw; height: 55vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle at center, rgba(124,58,237,0.18) 0%, rgba(124,58,237,0.04) 40%, transparent 68%);
  filter: blur(8px);
}

#root { position: relative; z-index: 1; }

/* ─── Layout primitives ───────────────────────────────────── */
.container { width: min(1160px, 100% - 48px); margin: 0 auto; }
.section { padding: 128px 0; position: relative; }
.section--tight { padding: 96px 0; }

/* ─── Section separators ──────────────────────────────────── */
.sep {
  width: min(1160px, 100% - 48px); margin: 0 auto; height: 1px; border: 0; position: relative; z-index: 1;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 15%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.04) 85%, transparent 100%);
}
.sep--neon {
  height: 2px; border-radius: 2px; background: var(--grad-divider); opacity: 0.7;
  box-shadow: 0 0 22px rgba(0,150,255,0.28);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--accent-blue);
}
.eyebrow--center { justify-content: center; }

.sec-head { text-align: center; max-width: 660px; margin: 0 auto 64px; }
.sec-head h2 {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.08; margin: 18px 0 0; text-wrap: balance;
}
.sec-head p {
  font-size: 18px; line-height: 1.6; color: var(--text-secondary);
  margin: 18px auto 0; max-width: 560px; text-wrap: pretty;
}

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  border-radius: var(--r-xl); border: 1px solid transparent; padding: 14px 22px;
  transition: transform .18s var(--ease-out), box-shadow .25s var(--ease-out),
              filter .2s var(--ease-out), background .2s, border-color .2s;
  white-space: nowrap; text-decoration: none; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn-cta {
  background: linear-gradient(90deg, #36a3d1 0%, #0099ff 100%);
  color: #fff; box-shadow: 0 6px 22px rgba(0,153,255,0.30), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,153,255,0.42), inset 0 1px 0 rgba(255,255,255,0.18); filter: brightness(1.05); }
.btn-cta:active { transform: translateY(0) scale(0.98); }
.btn-ghost {
  background: rgba(255,255,255,0.04); color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.18); transform: translateY(-2px); }
.btn-lg { padding: 18px 30px; font-size: 17px; border-radius: var(--r-xl); }
.btn-sm { padding: 10px 17px; font-size: 14px; }

/* ─── Navbar ──────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease-out), backdrop-filter .3s, border-color .3s;
}
.nav.scrolled {
  background: rgba(11,11,16,0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border-soft);
}
.nav__inner { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.brand__name { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; color: #fff; }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__link {
  font-size: 15px; font-weight: 500; color: var(--text-secondary);
  text-decoration: none; transition: color .2s; position: relative;
}
.nav__link:hover { color: #fff; }

/* ─── Hero ────────────────────────────────────────────────── */
.hero { padding-top: 88px; padding-bottom: 96px; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero h1 {
  font-size: clamp(36px, 5.2vw, 60px); font-weight: 800; letter-spacing: -0.025em;
  line-height: 1.04; margin: 22px 0 0; text-wrap: balance;
}
.hero h1 .grad {
  background: linear-gradient(90deg, #36a3d1, #0099ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub {
  font-size: 18px; line-height: 1.62; color: var(--text-secondary);
  margin: 24px 0 0; max-width: 520px; text-wrap: pretty;
}
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__trust { display: flex; align-items: center; gap: 18px; margin-top: 34px; color: var(--text-muted); font-size: 13px; }
.hero__trust .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-faint); }

/* ─── Phone mockup ────────────────────────────────────────── */
.phone-wrap { display: flex; justify-content: center; position: relative; }
.phone-wrap::before {
  content: ""; position: absolute; inset: -8% -6%;
  background: radial-gradient(ellipse 60% 55% at 60% 35%, rgba(0,150,255,0.22), transparent 70%);
  filter: blur(20px); z-index: 0;
}
.phone {
  position: relative; z-index: 1;
  width: 308px; padding: 12px; border-radius: 46px;
  background: linear-gradient(160deg, #26262e, #121217 60%);
  box-shadow: 0 40px 90px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05),
              inset 0 1px 1px rgba(255,255,255,0.12);
}
.phone__screen {
  position: relative; border-radius: 36px; overflow: hidden;
  background: var(--bg-app); height: 624px;
  border: 1px solid rgba(255,255,255,0.05);
}
.phone__screen::before { /* screen-local glow */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 30% at 50% 0%, rgba(40,80,160,0.22), transparent 70%);
}
.phone__island {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; border-radius: 14px; background: #000; z-index: 5;
}
.phone__inner {
  position: relative; z-index: 2; height: 100%; overflow: hidden;
  padding: 52px 16px 18px; display: flex; flex-direction: column;
}
.phone__statusbar {
  position: absolute; top: 16px; left: 22px; right: 22px; z-index: 6;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; font-weight: 600; color: #fff;
}
.phone__statusbar .icons { display: flex; gap: 6px; align-items: center; }
.phone__statusbar svg { width: 16px; height: 16px; }

.mini-top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 9px; }
.mini-name { font-size: 23px; font-weight: 800; letter-spacing: -0.01em; margin-top: 4px; }
.mini-last { font-size: 12px; color: var(--text-muted); }
.mini-stack { display: flex; flex-direction: column; gap: 11px; margin-top: 20px; }
/* shrink card buttons slightly for the phone scale */
.phone .bf-card-btn { padding: 13px 13px 13px 17px; gap: 13px; }
.phone .bf-card-btn__ic { width: 42px; height: 42px; }
.phone .bf-card-btn__ic svg { width: 23px; height: 23px; }
.phone .bf-card-btn__title { font-size: 15px; }
.phone .bf-card-btn__sub { font-size: 12px; }
.phone .bf-badge { white-space: nowrap; }

/* ─── Icon tiles (feature / audience) ─────────────────────── */
.icon-tile {
  width: 52px; height: 52px; border-radius: var(--r-xl);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon-tile svg { width: 27px; height: 27px; }
.t-blue   { background: rgba(0,180,255,0.12);  color: var(--accent-blue);   box-shadow: 0 0 16px var(--glow-blue); }
.t-green  { background: rgba(56,239,125,0.10); color: var(--accent-green);  box-shadow: 0 0 16px var(--glow-green); }
.t-orange { background: rgba(255,140,30,0.10); color: var(--accent-orange); box-shadow: 0 0 16px var(--glow-orange); }
.t-purple { background: rgba(140,60,255,0.13); color: var(--accent-purple); box-shadow: 0 0 16px var(--glow-purple); }
.t-gold   { background: rgba(255,190,40,0.12); color: var(--accent-gold);   box-shadow: 0 0 16px var(--glow-gold); }

/* ─── Audience cards ──────────────────────────────────────── */
.aud-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.aud-card {
  position: relative; overflow: hidden;
  background: var(--surface-glass); border: 1px solid var(--border-card);
  border-radius: var(--r-4xl); padding: 32px;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s;
}
.aud-card::before { /* left accent bar */
  content: ""; position: absolute; left: 0; top: 14%; bottom: 14%; width: 3px;
  border-radius: 0 3px 3px 0;
}
.aud-card--blue { box-shadow: var(--glow-blue-card), inset 0 0 0 1px rgba(0,180,255,0.08); }
.aud-card--blue::before { background: var(--grad-blue); box-shadow: 0 0 12px 2px rgba(0,180,255,0.55); }
.aud-card--blue:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,140,255,0.16), inset 0 0 0 1px rgba(0,180,255,0.2); }
.aud-card--gold { box-shadow: var(--glow-gold-card), inset 0 0 0 1px rgba(255,200,60,0.08); }
.aud-card--gold::before { background: var(--grad-gold); box-shadow: 0 0 12px 2px rgba(255,190,40,0.55); }
.aud-card--gold:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(255,190,40,0.16), inset 0 0 0 1px rgba(255,200,60,0.2); }
.aud-card h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin: 20px 0 4px; }
.aud-card .aud-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 22px; }
.aud-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.aud-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; color: var(--text-body); line-height: 1.4; }
.aud-list .li-dot { margin-top: 7px; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.aud-card--blue .li-dot { background: var(--accent-blue); box-shadow: 0 0 8px var(--accent-blue); }
.aud-card--gold .li-dot { background: var(--accent-gold); box-shadow: 0 0 8px var(--accent-gold); }

/* ─── Feature grid ────────────────────────────────────────── */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat-card {
  position: relative; overflow: hidden;
  background: var(--surface-1); border: 1px solid var(--border-card);
  border-radius: var(--r-4xl); padding: 28px 26px;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s;
}
.feat-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.feat-card.fc-blue:hover   { box-shadow: 0 14px 36px rgba(0,140,255,0.14); }
.feat-card.fc-purple:hover { box-shadow: 0 14px 36px rgba(130,60,255,0.16); }
.feat-card.fc-green:hover  { box-shadow: 0 14px 36px rgba(56,239,125,0.13); }
.feat-card.fc-gold:hover   { box-shadow: 0 14px 36px rgba(255,190,40,0.14); }
.feat-card h3 { font-size: 18px; font-weight: 700; margin: 20px 0 9px; letter-spacing: -0.01em; }
.feat-card p { font-size: 14.5px; line-height: 1.55; color: var(--text-secondary); margin: 0; text-wrap: pretty; }

/* ─── Steps ───────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.steps::before { /* dashed connector */
  content: ""; position: absolute; top: 32px; left: 16%; right: 16%; height: 0;
  border-top: 2px dashed rgba(48,167,247,0.30); z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }
.step__num {
  width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; color: #fff;
  background: radial-gradient(circle at 35% 30%, #1b2740, #0e0e15);
  border: 1px solid rgba(48,167,247,0.4); box-shadow: 0 0 26px rgba(0,140,255,0.28), inset 0 0 14px rgba(0,140,255,0.18);
}
.step__ic { margin-top: 18px; color: var(--accent-blue); }
.step__ic svg { width: 26px; height: 26px; }
.step h3 { font-size: 19px; font-weight: 700; margin: 12px 0 8px; letter-spacing: -0.01em; }
.step p { font-size: 15px; line-height: 1.55; color: var(--text-secondary); margin: 0; max-width: 270px; }

/* ─── Final CTA ───────────────────────────────────────────── */
.finalcta { position: relative; }
.finalcta__box {
  position: relative; overflow: hidden; text-align: center;
  border: 1px solid var(--border-card); border-radius: var(--r-5xl);
  background: linear-gradient(180deg, rgba(20,20,28,0.6), rgba(11,11,16,0.4));
  padding: 84px 40px;
}
.finalcta__box::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 70% at 50% 0%, rgba(0,140,255,0.20), transparent 65%),
              radial-gradient(ellipse 40% 60% at 50% 120%, rgba(124,58,237,0.16), transparent 60%);
}
.finalcta__box > * { position: relative; z-index: 1; }
.finalcta__box h2 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; letter-spacing: -0.025em; margin: 0; line-height: 1.05; }
.finalcta__box p { font-size: 18px; color: var(--text-secondary); margin: 18px 0 0; }
.finalcta__note { font-size: 13px; color: var(--text-muted); margin-top: 16px; }

/* ─── Footer ──────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border-soft); padding: 40px 0 56px; }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer__copy { font-size: 13px; color: var(--text-muted); }
.footer__links { display: flex; gap: 26px; }
.footer__links a { font-size: 14px; color: var(--text-secondary); text-decoration: none; transition: color .2s; }
.footer__links a:hover { color: #fff; }

/* ─── Scroll reveal ───────────────────────────────────────── */
/* Transition gives the entrance on a normally-painting browser; a JS
   timer later strips the transition + forces final values, so content
   is NEVER stuck hidden even if the paint clock freezes (preview/bg). */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .section { padding: 88px 0; }
  .hero { padding-top: 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__copy { text-align: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__btns, .hero__trust { justify-content: center; }
  .nav__links { display: none; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 44px; }
  .steps::before { display: none; }
  .step p { max-width: 320px; }
}
@media (max-width: 620px) {
  .container { width: 100% - 36px; width: calc(100% - 36px); }
  .section { padding: 72px 0; }
  .aud-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .aud-card, .feat-card { padding: 26px 22px; }
  .finalcta__box { padding: 56px 24px; }
  .footer__row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero__btns { width: 100%; }
  .hero__btns .btn { flex: 1; }
}
