:root { --sf-accent: #7c5cff; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #0b0a14; }
::selection { background: rgba(124,92,255,.35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(124,92,255,.3); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---- Animations ---- */
@keyframes sf-float   { 0%,100% { transform: translateY(0); }       50% { transform: translateY(-10px); } }
@keyframes sf-glow    { 0%,100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes sf-blink   { 0%,90%,100% { transform: scaleY(1); }       94% { transform: scaleY(.08); } }
@keyframes sf-squish  { 0%,100% { transform: scale(1,1); }          50% { transform: scale(1.04,.96); } }
@keyframes sf-bob     { 0%,100% { transform: translateX(-50%) rotate(-6deg); } 50% { transform: translateX(-50%) rotate(6deg); } }
@keyframes sf-wave    { 0%,100% { transform: rotate(8deg); }        50% { transform: rotate(-14deg); } }
@keyframes sf-twinkle { 0%,100% { opacity: .2; transform: scale(.6) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(40deg); } }
@keyframes sf-ring    { to { transform: rotate(360deg); } }
@keyframes sf-drift   { from { background-position: 0 0; } to { background-position: -400px -1000px; } }
@keyframes sf-aurora  { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-30px) scale(1.12); } }

/* ---- Hover states ---- */
.nav-link, .footer-link { color: inherit; text-decoration: none; transition: color .2s ease; }
.nav-link:hover, .footer-link:hover { color: #fff; }

.btn-signup {
  font-size: 14px; font-weight: 600; color: #fff; text-decoration: none;
  padding: 10px 20px; border-radius: 11px;
  background: linear-gradient(135deg, #a489ff, var(--sf-accent));
  box-shadow: 0 8px 24px -8px rgba(124,92,255,.85), inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-signup:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(124,92,255,1); }
/* Registration not open yet — disabled, non-clickable. */
.btn-signup.is-disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-signup.is-disabled:hover { transform: none; box-shadow: none; }

.btn-primary {
  font-size: 15px; font-weight: 600; color: #fff; text-decoration: none;
  padding: 13px 28px; border-radius: 13px;
  background: linear-gradient(135deg, #a489ff, var(--sf-accent));
  box-shadow: 0 14px 32px -10px rgba(124,92,255,.95), inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .2s ease;
}
.btn-primary:hover { transform: translateY(-2px); }

.btn-ghost {
  font-size: 15px; font-weight: 600; color: #e3e0ef; text-decoration: none;
  padding: 13px 26px; border-radius: 13px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  transition: background .2s ease;
}
.btn-ghost:hover { background: rgba(255,255,255,.12); }

.login-link { font-size: 14px; font-weight: 600; color: #d6d2e6; text-decoration: none; transition: color .2s ease; }
.login-link:hover { color: #fff; }

/* ---- Carousel ---- */
.sf-track { display: flex; height: 520px; transition: transform .8s cubic-bezier(.7,0,.18,1); }
.sf-slide { flex: 0 0 100%; display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; padding: 54px 58px; }

.sf-dot { height: 8px; width: 8px; border-radius: 999px; border: none; cursor: pointer; background: rgba(255,255,255,.25); transition: width .3s ease, background .3s ease; }
.sf-dot.active { width: 30px; background: var(--sf-accent); }

@media (max-width: 820px) {
  .sf-slide { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .nav-links { display: none !important; }
}

/* ---- Shared section bits ---- */
.sf-section { max-width: 1200px; margin: 0 auto; padding: 50px 40px; }
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 42px; }
.sf-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px;
  background: rgba(124,92,255,.16); border: 1px solid rgba(124,92,255,.34);
  font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #cdbfff;
}
.sf-h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(26px,3.4vw,42px); line-height: 1.08; letter-spacing: -.02em; margin: 18px 0 10px; }
.sf-sub { font-size: 16px; line-height: 1.6; color: #bcb8d0; max-width: 560px; margin: 0; }

/* ---- Familiars (existing bots — clickable image avatars) ---- */
.familiars-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px 38px; }
.familiar { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 118px; text-decoration: none; color: inherit; transition: transform .2s ease; }
.familiar:hover { transform: translateY(-5px); }
.familiar-img {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none;
  background: rgba(255,255,255,.04); border: 2px solid rgba(255,255,255,.12);
  box-shadow: 0 16px 34px -14px rgba(0,0,0,.65);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.familiar:hover .familiar-img { border-color: rgba(124,92,255,.75); box-shadow: 0 18px 40px -12px rgba(124,92,255,.6); }
.familiar-name { font-weight: 600; font-size: 14px; color: #d6d2e6; }

/* ---- Features (stacked rows: icon left, text right) ---- */
.feat-list { display: flex; flex-direction: column; gap: 16px; max-width: 820px; margin: 0 auto; }
.feat-row {
  display: flex; gap: 22px; align-items: flex-start; padding: 26px 28px; border-radius: 18px;
  border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .2s ease, border-color .2s ease;
}
.feat-row:hover { transform: translateY(-2px); border-color: rgba(124,92,255,.5); }
.feat-icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; flex: none;
  background: linear-gradient(135deg, rgba(124,92,255,.28), rgba(124,92,255,.1)); border: 1px solid rgba(124,92,255,.34);
}
.feat-body { min-width: 0; }
.feat-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 19px; margin: 2px 0 8px; }
.feat-row p { font-size: 15px; line-height: 1.65; color: #bcb8d0; margin: 0; }

@media (max-width: 600px) {
  .feat-row { flex-direction: column; gap: 14px; }
}

/* ---- Mascot: shared component + per-slide animation variants ---- */
/* Base motions live on classes so a slide's v-* class can override them. */
.sfm      { animation: sf-float 5s ease-in-out infinite; }
.sfm-body { animation: sf-squish 4s ease-in-out infinite; }
.sfm-arm  { animation: sf-wave 2.6s ease-in-out infinite; }
.sfm-arm.r { animation-delay: .4s; }
.sfm-laptop { display: none; }

/* Slide 2 — Forge personality: curious, looks left & right, exploring. */
.v-explore .sfm       { animation: sf-explore 3.6s ease-in-out infinite; }
.v-explore .sfm-pupil { animation: sf-glance 3.6s ease-in-out infinite; }
@keyframes sf-explore {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  22%, 32% { transform: translateX(-12px) rotate(-7deg); }
  68%, 78% { transform: translateX(12px) rotate(7deg); }
}
@keyframes sf-glance {
  0%, 100% { transform: translateX(0); }
  22%, 35% { transform: translateX(-4px); }
  68%, 82% { transform: translateX(4px); }
}

/* Slide 3 — Control its growth: puffs up with air, holds, deflates. */
.v-puff .sfm      { animation: sf-puff 5s ease-in-out infinite; transform-origin: 50% 92%; }
.v-puff .sfm-body { animation: none; }
@keyframes sf-puff {
  0%, 100% { transform: scale(1); }
  38%, 58% { transform: scale(1.34); }
}

/* Slide 4 — Fully integrated: at his laptop, seen from behind (lid back + a
   softly pulsing logo). His arms/hands are behind the laptop, so they're hidden. */
.v-work .sfm-arm { display: none; }
.v-work .sfm-laptop { display: block; }
.v-work .sfm-logo { animation: sf-pulse 1.6s ease-in-out infinite; }
@keyframes sf-pulse {
  0%, 100% { opacity: .7; transform: translate(-50%,-50%) scale(.88); }
  50%      { opacity: 1; transform: translate(-50%,-50%) scale(1.12); }
}
