/* ============================================================
   ScolerAI Home (scolerai.app) — dark "movie poster" page
   ============================================================ */

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

:root {
  --purple:   #7C3AED;
  --purple-l: #A78BFA;
  --blue:     #2563EB;
  --pink:     #EC4899;
  --bg:       #0a0a12;
  --surface:  rgba(255,255,255,.06);
  --border:   rgba(255,255,255,.12);
  --text:     #f1f1f8;
  --muted:    #9ca3af;
  --grad-cta: linear-gradient(135deg, #7C3AED 0%, #2563EB 100%);
  --ease:     cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

.text-gradient {
  background: linear-gradient(135deg, var(--purple-l), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Background blobs ── */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg__blob { position: absolute; border-radius: 50%; filter: blur(130px); opacity: .28; }
.bg__blob--1 { width: 640px; height: 640px; background: var(--purple); top: -220px; left: -180px; animation: drift 18s ease-in-out infinite alternate; }
.bg__blob--2 { width: 520px; height: 520px; background: var(--blue); bottom: -160px; right: -120px; animation: drift 22s ease-in-out infinite alternate-reverse; }
.bg__blob--3 { width: 380px; height: 380px; background: var(--pink); top: 45%; left: 58%; animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(36px,28px) scale(1.07); }
}

main, .nav, .foot { position: relative; z-index: 1; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 700; border-radius: 999px; transition: all .2s var(--ease); white-space: nowrap; }
.btn--primary { background: var(--grad-cta); color: #fff; padding: .8rem 1.6rem; box-shadow: 0 4px 18px rgba(124,58,237,.4); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(124,58,237,.55); }
.btn--ghost { padding: .55rem 1.1rem; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; }
.btn--ghost:hover { color: var(--text); border-color: rgba(255,255,255,.3); }

/* ── Nav ── */
.nav { padding: 1rem 0; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav__brand { display: flex; align-items: center; gap: .6rem; }
.nav__logo { height: 38px; width: 38px; border-radius: 10px; object-fit: contain; }
.nav__wordmark { font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; }
.nav__actions { display: flex; align-items: center; gap: 1rem; }
.nav__link { font-size: .9375rem; font-weight: 600; color: var(--muted); transition: color .15s; }
.nav__link:hover { color: var(--text); }

/* ── Language switcher (dark variant) ── */
.lang-switcher { position: relative; }
.lang-switcher__current { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .8rem; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: .85rem; font-weight: 600; transition: all .2s var(--ease); }
.lang-switcher__current:hover { color: var(--text); border-color: rgba(255,255,255,.3); }
.lang-switcher__dropdown { position: absolute; top: calc(100% + 8px); right: 0; min-width: 160px; background: #15151f; border: 1px solid var(--border); border-radius: 14px; padding: .4rem; box-shadow: 0 12px 36px rgba(0,0,0,.5); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .2s var(--ease); z-index: 50; }
.lang-switcher--open .lang-switcher__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-switcher__option { display: flex; align-items: center; gap: .55rem; padding: .5rem .7rem; border-radius: 9px; font-size: .9rem; cursor: pointer; color: var(--muted); }
.lang-switcher__option:hover { background: rgba(255,255,255,.07); color: var(--text); }
.lang-switcher__option--active { color: var(--purple-l); font-weight: 700; }

/* ── Hero ── */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 3.5rem; padding-top: 4.5rem; padding-bottom: 5rem; }
.hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem; }

.hero__chip { display: inline-flex; align-items: center; gap: .55rem; background: rgba(124,58,237,.18); border: 1px solid rgba(124,58,237,.4); color: var(--purple-l); padding: .4rem 1rem; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .03em; }
.hero__chip-dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; box-shadow: 0 0 10px #34D399; animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.hero__chip-count { font-variant-numeric: tabular-nums; color: #fff; font-weight: 800; }
.hero__chip-count:empty { display: none; }

.hero__title { font-size: clamp(2.3rem, 5.2vw, 3.6rem); font-weight: 900; line-height: 1.1; letter-spacing: -.025em; }
.hero__sub { color: var(--muted); font-size: 1.08rem; line-height: 1.65; max-width: 480px; }

.hero__tour { color: var(--purple-l); font-weight: 600; font-size: .95rem; transition: color .15s; }
.hero__tour:hover { color: #fff; }

/* ── Waitlist form ── */
.waitlist-form { width: 100%; max-width: 460px; }
.waitlist-form__row { display: flex; gap: .6rem; }
.waitlist-form__input { flex: 1; min-width: 0; background: rgba(255,255,255,.07); border: 1px solid var(--border); border-radius: 999px; padding: .8rem 1.25rem; color: var(--text); font: inherit; font-size: .95rem; outline: none; transition: border-color .2s var(--ease); }
.waitlist-form__input::placeholder { color: #6b7280; }
.waitlist-form__input:focus { border-color: var(--purple-l); }
.waitlist-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.waitlist-form__msg { font-size: .875rem; font-weight: 600; margin-top: .6rem; min-height: 1.2em; }
.waitlist-form__msg--ok { color: #34D399; }
.waitlist-form__msg--err { color: #FB7185; }
.waitlist-form__hint { color: #6b7280; font-size: .8rem; margin-top: .15rem; }
.waitlist-form--center { margin: 0 auto; }
.waitlist-form--center .waitlist-form__msg { text-align: center; }

/* ── Hero collage ── */
.hero__collage { position: relative; }
.hero__main-shot { border-radius: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 24px 70px rgba(0,0,0,.55), 0 0 80px rgba(124,58,237,.18); background: #fff; }
.hero__float { position: absolute; border-radius: 16px; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 16px 44px rgba(0,0,0,.5); background: #fff; }
.hero__float--ring { width: clamp(90px, 9vw, 128px); top: -28px; right: -18px; animation: floatY 6s ease-in-out infinite; }
.hero__float--podcast { width: clamp(220px, 24vw, 320px); bottom: -34px; left: -30px; animation: floatY 7s ease-in-out infinite reverse; }
@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-9px); }
}

/* ── Steps ── */
.steps { padding-top: 1rem; padding-bottom: 4.5rem; text-align: center; }
.steps__title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 2.25rem; }
.steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.steps__card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 1.75rem 1.5rem; backdrop-filter: blur(10px); display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.steps__icon { width: 46px; height: 46px; border-radius: 14px; background: rgba(124,58,237,.2); border: 1px solid rgba(124,58,237,.35); display: flex; align-items: center; justify-content: center; margin-bottom: .35rem; }
.steps__icon svg { width: 22px; height: 22px; color: var(--purple-l); }
.steps__card strong { font-size: 1.02rem; font-weight: 700; }
.steps__card p { color: var(--muted); font-size: .9rem; line-height: 1.55; }

/* ── Wow reel ── */
.reel { padding-bottom: 4.5rem; text-align: center; }
.reel__eyebrow { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--purple-l); margin-bottom: .4rem; }
.reel__title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 2rem; }
.reel__carousel { max-width: 860px; margin: 0 auto; }
.reel__viewport { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid var(--border); background: #11111c; box-shadow: 0 22px 60px rgba(0,0,0,.5); }
.reel__track { display: flex; transition: transform .55s var(--ease); will-change: transform; }
.reel__slide { position: relative; min-width: 100%; height: clamp(280px, 44vw, 480px); display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.reel__slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 12px; }
.reel__chip { position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: .45rem; background: rgba(10,10,18,.78); border: 1px solid var(--border); color: var(--text); padding: .4rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 700; backdrop-filter: blur(8px); }
.reel__chip svg { width: 15px; height: 15px; color: var(--purple-l); }
.reel__dots { display: flex; justify-content: center; gap: .55rem; margin-top: 1.1rem; }
.reel__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); padding: 0; transition: all .2s var(--ease); }
.reel__dot--active { background: var(--purple-l); transform: scale(1.25); }

/* ── Differentiators ── */
.diff { padding-bottom: 4.5rem; text-align: center; }
.diff__eyebrow { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--purple-l); margin-bottom: 1.75rem; }
.diff__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.diff__card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 1.75rem 1.5rem; text-align: left; display: flex; flex-direction: column; gap: .55rem; transition: all .25s var(--ease); }
.diff__card:hover { transform: translateY(-4px); border-color: rgba(124,58,237,.5); box-shadow: 0 14px 40px rgba(124,58,237,.18); }
.diff__icon { width: 44px; height: 44px; border-radius: 13px; background: rgba(124,58,237,.2); border: 1px solid rgba(124,58,237,.35); display: flex; align-items: center; justify-content: center; margin-bottom: .3rem; }
.diff__icon svg { width: 21px; height: 21px; color: var(--purple-l); }
.diff__card strong { font-size: 1.02rem; font-weight: 700; }
.diff__card p { color: var(--muted); font-size: .9rem; line-height: 1.55; flex: 1; }
.diff__more { color: var(--purple-l); font-size: .85rem; font-weight: 700; }

/* ── Proof + final CTA ── */
.proof { padding-bottom: 4rem; display: flex; flex-direction: column; align-items: center; gap: 3rem; }
.proof__backed { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.proof__label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.proof__logos { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.proof__logos img { height: 40px; width: auto; object-fit: contain; border-radius: 10px; background: #fff; padding: 6px 14px; opacity: .92; transition: opacity .25s, transform .25s; }
.proof__logos img:hover { opacity: 1; transform: translateY(-2px); }
.proof__cta { width: 100%; max-width: 620px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 2.5rem 2rem; text-align: center; backdrop-filter: blur(12px); }
.proof__title { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .4rem; }
.proof__desc { color: var(--muted); font-size: .98rem; margin-bottom: 1.5rem; }
.proof__cta .waitlist-form { max-width: 440px; }

/* ── Footer ── */
.foot { padding: 1.5rem 1.5rem 2.5rem; display: flex; flex-direction: column; align-items: center; gap: .8rem; border-top: 1px solid rgba(255,255,255,.07); }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; font-size: .875rem; color: var(--muted); }
.foot__links a:hover { color: var(--text); }
.foot__copy { color: #4b5563; font-size: .8rem; }

/* ── Responsive ── */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 3rem; padding-top: 2.5rem; text-align: center; }
  .hero__text { align-items: center; }
  .hero__collage { max-width: 560px; margin: 0 auto; }
  .hero__float--podcast { left: -10px; }
  .steps__grid, .diff__grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .nav__link { display: none; }
}
@media (max-width: 520px) {
  .waitlist-form__row { flex-direction: column; }
  .waitlist-form__row .btn { width: 100%; }
  .hero__float--ring { top: -16px; right: 0; }
  .hero__float--podcast { bottom: -20px; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .bg__blob, .hero__float, .hero__chip-dot { animation: none !important; }
  .reel__track { transition: none; }
  html { scroll-behavior: auto; }
}
