:root {
  --primary: #4342fe;
  --primary-dark: #2e2dcc;
  --primary-deeper: #1a1942;
  --accent: #ceff3c;
  --accent-soft: rgba(206, 255, 60, 0.55);
  --text: #f4f3ff;
  --text-muted: rgba(244, 243, 255, 0.7);
  --text-faint: rgba(244, 243, 255, 0.45);
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.14);
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --max-width: 1040px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* NOTE: no overflow-x on html/body — hidden on both turns body into a scroll
   container and breaks viewport scrolling (anchors, scroll-driven reveals).
   The fixed .bg wrapper already clips the decorative orbs. */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(ellipse at top left, var(--primary) 0%, var(--primary-dark) 55%, var(--primary-deeper) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  min-height: 100dvh;
  text-align: center;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- background ---------- */
.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}

.orb-1 {
  width: 480px; height: 480px;
  top: -120px; left: -140px;
  background: var(--accent);
  opacity: 0.35;
  animation: drift1 18s ease-in-out infinite;
}
.orb-2 {
  width: 380px; height: 380px;
  bottom: -120px; right: -100px;
  background: #6a69ff;
  opacity: 0.55;
  animation: drift2 22s ease-in-out infinite;
}
.orb-3 {
  width: 280px; height: 280px;
  top: 35%; right: 8%;
  background: var(--accent);
  opacity: 0.18;
  animation: drift3 16s ease-in-out infinite;
}
.orb-4 {
  width: 320px; height: 320px;
  bottom: 18%; left: 6%;
  background: #8a89ff;
  opacity: 0.35;
  animation: drift4 20s ease-in-out infinite;
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(60px, 80px) scale(1.08); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-70px, -50px) scale(1.12); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-40px, 60px) scale(0.95); }
}
@keyframes drift4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(50px, -40px) scale(1.06); }
}

/* ---------- sparkles ---------- */
.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent), 0 0 24px var(--accent-soft);
  opacity: 0;
  animation: twinkle 3.4s ease-in-out infinite;
}
.s1 { top: 18%; left: 12%; animation-delay: 0.2s; }
.s2 { top: 28%; right: 18%; animation-delay: 1.1s; }
.s3 { top: 62%; left: 22%; animation-delay: 2.4s; width: 4px; height: 4px; }
.s4 { top: 72%; right: 14%; animation-delay: 0.8s; width: 5px; height: 5px; }
.s5 { top: 8%;  right: 35%; animation-delay: 1.7s; width: 4px; height: 4px; }
.s6 { top: 84%; left: 48%; animation-delay: 2.9s; }

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  50%      { opacity: 1; transform: scale(1); }
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(26, 25, 66, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
}

.nav-brand img { border-radius: 7px; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.5vw, 26px);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 160ms ease;
}

.nav-links a:hover { color: var(--accent); }

.nav-cta {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(206, 255, 60, 0.45);
  color: var(--accent) !important;
}

.nav-cta:hover { background: rgba(206, 255, 60, 0.12); }

/* ---------- hero / stage ---------- */
main { position: relative; z-index: 1; }

.stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* ---------- logo ---------- */
.logo-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  margin-bottom: 8px;
  animation: float 5s ease-in-out infinite;
}

.halo {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, rgba(206, 255, 60, 0) 65%);
  filter: blur(20px);
  animation: halo-pulse 3.2s ease-in-out infinite;
  z-index: 0;
}

.logo {
  position: relative;
  z-index: 1;
  width: 180px;
  height: 180px;
  border-radius: 36px;
  box-shadow:
    0 20px 60px rgba(26, 25, 66, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  object-fit: cover;
  display: block;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@keyframes halo-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 0.95; transform: scale(1.08); }
}

/* ---------- wordmark ---------- */
.wordmark {
  font-size: clamp(40px, 8vw, 64px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin: 8px 0 0;
  line-height: 1;
  display: inline-flex;
  gap: 0;
}

.wordmark .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  animation: letter-rise 600ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes letter-rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- tagline / hero copy ---------- */
.tagline {
  font-size: clamp(15px, 2.2vw, 18px);
  color: var(--text-muted);
  margin: 0;
  font-weight: 400;
  opacity: 0;
  transform: translateY(8px);
  animation: rise 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 800ms forwards;
}

.hero-copy {
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 620px;
  margin: 6px 0 0;
  opacity: 0;
  transform: translateY(8px);
  animation: rise 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 950ms forwards;
}

.hero-copy strong { color: var(--text); font-weight: 700; }

/* ---------- coming soon ---------- */
.coming {
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 14px 0 4px;
  background: linear-gradient(
    100deg,
    #ffffff 0%,
    #ffffff 35%,
    var(--accent) 50%,
    #ffffff 65%,
    #ffffff 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 3.6s linear infinite, rise 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 1100ms forwards;
  opacity: 0;
}

@keyframes shimmer {
  0%   { background-position: 200% 50%; }
  100% { background-position: -50% 50%; }
}

@keyframes rise {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ---------- badges ---------- */
.badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
  opacity: 0;
  animation: rise 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 1400ms forwards;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-muted);
  cursor: default;
  user-select: none;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
  text-align: left;
  min-width: 180px;
}

.badge:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.10);
  color: var(--text);
  border-color: rgba(206, 255, 60, 0.35);
}

.badge-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: var(--text-muted);
}

.badge:hover .badge-icon { color: var(--accent); }

.badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.badge-eyebrow {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-faint);
}

.badge-store {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

/* ---------- sections ---------- */
.section {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px clamp(20px, 4vw, 40px);
}

.section-title {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
}

.section-sub {
  color: var(--text-muted);
  font-size: clamp(14px, 2vw, 16px);
  margin: 0 0 36px;
}

/* scroll reveal — hidden only when JS has tagged <html class="js">, so
   content stays visible if the script fails to load */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- "you are a Looper" dictionary ---------- */
.hl { color: var(--accent); }

.dictionary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  text-align: left;
}

.dict-entry {
  position: relative;
  padding: 28px 30px 24px;
  border-left: 3px solid var(--accent);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.dict-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.dict-word {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.dict-phonetic {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text-faint);
  font-size: 16px;
}

.dict-pos {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: var(--accent);
  font-size: 15px;
}

.dict-def {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-muted);
}

.dict-def strong { color: var(--text); }

.dict-example {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 14px;
  color: var(--text-faint);
}

/* ---------- pillars ---------- */
.pillar {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  text-align: left;
  padding: 34px 0;
}

.pillar + .pillar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pillar-flip .pillar-media { order: 2; }
.pillar-flip .pillar-copy  { order: 1; }

.pillar-media { display: flex; justify-content: center; }

.pillar-media .phone,
.business-media .phone { width: min(250px, 70vw); }

.phone video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
}

.pillar-num {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 10px;
}

.pillar-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.4px;
}

.pillar-copy > p {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-muted);
}

.pillar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pillar-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

.pillar-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-soft);
}

/* ---------- business band ---------- */
.business-band {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  text-align: left;
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, rgba(206, 255, 60, 0.10), rgba(206, 255, 60, 0.03));
  border: 1px solid rgba(206, 255, 60, 0.22);
}

.business-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.business-copy .section-title {
  text-align: left;
  margin-bottom: 14px;
}

.business-copy > p {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-muted);
}

.business-media { display: flex; justify-content: center; }

.business-band.no-media,
.pillar.no-media { grid-template-columns: 1fr; }

.business-band.no-media .business-copy { max-width: 640px; }

/* ---------- screenshots ---------- */
.shots {
  display: flex;
  gap: 22px;
  justify-content: flex-start;
  overflow-x: auto;
  padding: 8px 4px 18px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.shot {
  margin: 0;
  flex: 0 0 auto;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.phone {
  width: min(212px, 62vw);
  border-radius: 34px;
  padding: 9px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 60px rgba(10, 9, 40, 0.55);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
}

.shot figcaption {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 240px;
  line-height: 1.45;
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: left;
}

.step {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary-deeper);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 12px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------- about ---------- */
.about-copy {
  max-width: 640px;
  margin: 0 auto 22px;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.7;
  color: var(--text-muted);
}

.about-copy strong { color: var(--text); }

.proudly {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.flag {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

/* ---------- contact ---------- */
.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--primary-deeper);
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(206, 255, 60, 0.25);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(206, 255, 60, 0.35);
}

/* ---------- footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 26px 24px 30px;
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.3px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer p { margin: 0 0 8px; }

.footer-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover { color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .dictionary { grid-template-columns: 1fr; }
  .pillar,
  .business-band { grid-template-columns: 1fr; }
  .pillar-flip .pillar-media { order: 1; }
  .pillar-flip .pillar-copy  { order: 2; }
  .business-media { order: 2; }
}

@media (max-width: 560px) {
  .stage { padding: 40px 20px 28px; gap: 14px; }
  .logo-wrap, .logo { width: 140px; height: 140px; }
  .logo { border-radius: 28px; }
  .badges { gap: 10px; }
  .badge { min-width: 160px; padding: 9px 14px; }
  .badge-store { font-size: 14px; }
  .section { padding: 44px 20px; }
  .nav-links a:not(.nav-cta) { font-size: 13px; }
  .dict-entry { padding: 22px 20px 18px; }
}

/* ---------- legal pages (terms / privacy) ---------- */
.legal {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 48px clamp(20px, 4vw, 40px) 72px;
  text-align: left;
}

.legal h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 0 0 6px;
}

.legal .legal-updated {
  color: var(--text-faint);
  font-size: 13px;
  margin: 0 0 36px;
}

.legal h2 {
  font-size: clamp(19px, 3vw, 23px);
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 40px 0 12px;
  scroll-margin-top: 80px;
}

.legal h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 8px;
}

.legal p,
.legal li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
}

.legal p { margin: 0 0 14px; }

.legal ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal li { margin-bottom: 8px; }

.legal strong { color: var(--text); }

.legal a { color: var(--accent); }

.legal .legal-note {
  margin-top: 40px;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 14px;
}

/* ---------- accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb, .sparkle, .logo-wrap, .halo, .coming {
    animation: none !important;
  }
  .wordmark .ch, .tagline, .hero-copy, .badges, .proudly {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .coming {
    background: none;
    -webkit-text-fill-color: var(--text);
    color: var(--text);
  }
}
