/* KIVO — landing page */
:root {
  --purple: #7566E8;
  --purple-dark: #5B4FD6;
  --purple-soft: #EDE9FF;
  --yellow: #FFCB69;
  --yellow-soft: #FFF3D8;
  --mint: #71C9A5;
  --mint-soft: #E1F7EE;
  --coral: #FF8B83;
  --coral-soft: #FFE7E4;
  --blue: #6FA8FF;
  --blue-soft: #E7F0FF;
  --warm: #F6F3ED;
  --white: #FFFFFF;
  --ink: #27283A;
  --ink-soft: #6F7086;
  --line: #E9E3D8;
  --radius: 28px;
  --shadow: 0 20px 60px rgba(39, 40, 58, .10);
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  direction: rtl;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--warm);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

button, input { font: inherit; }

button { cursor: pointer; }

::selection { background: var(--yellow); color: var(--ink); }

section[id], main[id] { scroll-margin-top: 92px; }

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--yellow));
  z-index: 200;
  transition: width .1s linear;
}

/* ------------------------------------------------------------------ header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
}

.site-header.scrolled {
  background: rgba(246, 243, 237, .86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(39, 40, 58, .08);
  padding: 8px 0;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(117, 102, 232, .3));
}

.brand-mark svg { width: 100%; height: 100%; display: block; }

.brand-word {
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 1.2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}

.nav-links a {
  padding: 8px 13px;
  font-size: 14px;
  color: var(--ink-soft);
  border-radius: 12px;
  transition: background .2s, color .2s;
}

.nav-links a:hover { background: var(--white); color: var(--ink); }

.mobile-download { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 16px;
  padding: 14px 22px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, #8B7DF4, var(--purple-dark));
  box-shadow: 0 14px 30px rgba(117, 102, 232, .34);
}

.btn-primary:hover { box-shadow: 0 18px 36px rgba(117, 102, 232, .42); }

.btn-ghost {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.btn-light {
  color: var(--purple-dark);
  background: var(--white);
  box-shadow: 0 14px 30px rgba(20, 15, 60, .18);
}

.btn-small { padding: 11px 18px; font-size: 13px; border-radius: 13px; }

.nav-cta { flex-shrink: 0; }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative;
  padding: 148px 0 60px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.hero-glow-1 {
  width: 700px;
  height: 700px;
  top: -260px;
  left: -180px;
  background: radial-gradient(circle, rgba(117, 102, 232, .17), transparent 68%);
}

.hero-glow-2 {
  width: 560px;
  height: 560px;
  bottom: -120px;
  right: -160px;
  background: radial-gradient(circle, rgba(255, 203, 105, .30), transparent 68%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 1.4px;
  font-weight: 600;
  color: var(--purple-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: 0 8px 20px rgba(39, 40, 58, .05);
}

.kicker.light {
  color: var(--white);
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .18);
  box-shadow: none;
}

.kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(113, 201, 165, .18);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 5.6vw, 74px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.8px;
}

.gradient-text {
  background: linear-gradient(100deg, var(--purple) 5%, #A28BF6 45%, var(--purple-dark) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 13px;
  color: var(--ink-soft);
}

.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points span { font-size: 16px; }

.hero-meta {
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
}

/* phone */
.hero-visual {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  position: relative;
  width: 300px;
  aspect-ratio: 9 / 19.3;
  border-radius: 46px;
  background: #1C1C28;
  border: 9px solid #1C1C28;
  box-shadow: 0 45px 80px rgba(39, 40, 58, .24), 0 12px 30px rgba(39, 40, 58, .12);
  z-index: 3;
  transform: rotate(3deg);
  transition: transform .5s ease;
}

.phone:hover { transform: rotate(0deg) translateY(-6px); }

.phone-speaker {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 22px;
  border-radius: 999px;
  background: #1C1C28;
  z-index: 4;
}

.phone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 37px;
  background: var(--warm);
}

.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.hero-orbit {
  position: absolute;
  width: 430px;
  height: 430px;
  border: 1px dashed rgba(117, 102, 232, .28);
  border-radius: 50%;
  z-index: 1;
  animation: spin 34s linear infinite;
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.hero-orbit::before { background: var(--yellow); top: 34px; right: 76px; box-shadow: 0 0 0 7px rgba(255, 203, 105, .18); }
.hero-orbit::after { background: var(--mint); bottom: 56px; left: 54px; box-shadow: 0 0 0 7px rgba(113, 201, 165, .18); }

@keyframes spin { to { transform: rotate(360deg); } }

.float-card {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(233, 227, 216, .8);
  border-radius: 18px;
  padding: 10px 14px;
  box-shadow: 0 18px 40px rgba(39, 40, 58, .14);
  animation: float 5s ease-in-out infinite;
}

.float-card strong { display: block; font-size: 13px; line-height: 1.3; }
.float-card small { display: block; font-size: 11px; color: var(--ink-soft); line-height: 1.4; }

.float-icon { font-size: 21px; }

.float-xp { top: 64px; right: 0; }
.float-live { bottom: 116px; right: -18px; animation-delay: -1.8s; }
.float-streak { bottom: 225px; left: -16px; animation-delay: -3s; }

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(113, 201, 165, .18);
  animation: pulse 1.8s ease-in-out infinite;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

.tech-strip {
  margin-top: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 12px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.tech-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-soft); opacity: .5; }

/* ---------------------------------------------------------------- sections */
.section { padding: 104px 0; }

.section-head {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: end;
  gap: 40px;
  margin-bottom: 44px;
}

.section-head.centered {
  display: block;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 46px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.25;
  margin: 12px 0 0;
  letter-spacing: -.5px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--purple-dark);
  text-transform: uppercase;
}

.eyebrow.light { color: var(--yellow); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.feature-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
  border-color: rgba(117, 102, 232, .2);
}

.feature-card::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  top: -58px;
  left: -44px;
  opacity: .12;
  background: var(--card-accent, var(--purple));
  transition: transform .4s ease;
}

.feature-card:hover::after { transform: scale(1.5); }

.feature-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-size: 25px;
  background: color-mix(in srgb, var(--card-accent, var(--purple)) 14%, white);
  margin-bottom: 20px;
}

.feature-card h3 { margin: 0 0 8px; font-size: 20px; }

.feature-card p { margin: 0 0 18px; color: var(--ink-soft); font-size: 14px; }

.feature-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  color: var(--card-accent, var(--purple-dark));
  background: color-mix(in srgb, var(--card-accent, var(--purple)) 10%, white);
}

.accent-purple { --card-accent: #7566E8; }
.accent-yellow { --card-accent: #D9A020; }
.accent-mint { --card-accent: #3FAF84; }
.accent-coral { --card-accent: #E36960; }
.accent-blue { --card-accent: #4C85D9; }
.accent-ink { --card-accent: #27283A; }

/* -------------------------------------------------------------- characters */
.characters-section {
  position: relative;
  padding: 104px 0;
  background: #1E1D2D;
  color: var(--white);
  overflow: hidden;
}

.characters-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(117, 102, 232, .3), transparent 34%),
    radial-gradient(circle at 85% 75%, rgba(255, 203, 105, .16), transparent 32%);
  pointer-events: none;
}

.section-head-light h2 { color: var(--white); }
.section-head-light p { color: rgba(255, 255, 255, .65); }

.character-showcase {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 26px;
  align-items: stretch;
}

.character-preview {
  position: relative;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 34px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 430px;
}

.preview-halo {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent, #7566E8), transparent 70%);
  opacity: .5;
  filter: blur(18px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -62%);
  transition: background .4s;
}

.character-preview img {
  position: relative;
  width: 220px;
  height: 220px;
  z-index: 1;
  filter: drop-shadow(0 30px 35px rgba(0, 0, 0, .35));
  animation: heroFloat 5.5s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

.preview-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: 14px;
  max-width: 360px;
}

.pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .12);
}

.preview-copy h3 { font-size: 30px; margin: 10px 0 6px; }
.preview-copy p { margin: 0 0 16px; color: rgba(255, 255, 255, .7); font-size: 14px; }

.preview-stats {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 11px;
  color: rgba(255, 255, 255, .55);
}

.preview-stats strong { display: block; color: var(--white); font-size: 15px; }

.character-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.character-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  padding: 10px 14px;
  color: var(--white);
  text-align: right;
  transition: background .2s, border-color .2s, transform .2s;
}

.character-card:hover {
  background: rgba(255, 255, 255, .1);
  transform: translateX(-3px);
}

.character-card.is-active {
  background: rgba(255, 255, 255, .12);
  border-color: var(--card-accent);
  box-shadow: 0 0 0 1px var(--card-accent), 0 16px 36px rgba(0, 0, 0, .18);
}

.char-circle {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--card-accent) 22%, transparent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.char-circle img { width: 54px; height: 54px; }

.char-card-copy { display: flex; flex-direction: column; line-height: 1.4; }
.char-card-copy strong { font-size: 16px; }
.char-card-copy small { font-size: 11px; color: rgba(255, 255, 255, .55); }

.char-check {
  margin-inline-start: auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--ink);
  background: var(--card-accent);
  opacity: 0;
  transform: scale(.5);
  transition: opacity .2s, transform .2s;
}

.character-card.is-active .char-check { opacity: 1; transform: scale(1); }

.character-note {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
}

.character-note span { color: var(--yellow); }
.character-note p { margin: 0; }

/* ------------------------------------------------------------------- steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 76px;
  right: 8%;
  left: 8%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px 20px;
  transition: transform .3s ease, box-shadow .3s ease;
}

.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.step-num {
  position: absolute;
  top: 18px;
  left: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--purple);
  background: var(--purple-soft);
  padding: 3px 8px;
  border-radius: 8px;
}

.step-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  font-size: 24px;
  border-radius: 16px;
  background: var(--yellow-soft);
  margin-bottom: 20px;
}

.step:nth-child(2) .step-icon { background: var(--mint-soft); }
.step:nth-child(3) .step-icon { background: var(--purple-soft); }
.step:nth-child(4) .step-icon { background: var(--coral-soft); }

.step h3 { font-size: 18px; margin: 0 0 6px; }
.step p { margin: 0; font-size: 13px; color: var(--ink-soft); }

/* --------------------------------------------------------------------- try */
.try-section {
  padding: 70px 0;
  background: linear-gradient(180deg, transparent, rgba(117, 102, 232, .06) 40%, transparent);
}

.try-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 36px;
  align-items: center;
}

.try-copy h2 {
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.25;
  margin: 14px 0 14px;
}

.try-copy p { color: var(--ink-soft); margin: 0 0 22px; }

.quiz-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.quiz-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(117, 102, 232, .12), transparent 70%);
  top: -110px;
  left: -90px;
}

.quiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.quiz-top .pill {
  background: var(--purple-soft);
  color: var(--purple-dark);
  border-color: transparent;
}

.quiz-xp {
  font-size: 12px;
  font-weight: 700;
  color: #B17E16;
  background: var(--yellow-soft);
  border-radius: 999px;
  padding: 5px 11px;
}

.quiz-kicker { font-size: 11px; color: var(--ink-soft); margin: 0 0 8px; }

.quiz-card h3 {
  position: relative;
  z-index: 1;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.55;
  margin: 0 0 20px;
}

.quiz-options { display: grid; gap: 8px; position: relative; z-index: 1; }

.quiz-options button {
  text-align: right;
  background: #FBF8F2;
  border: 1px solid #E4DDD0;
  color: var(--ink);
  padding: 13px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  transition: border-color .2s, background .2s, transform .2s;
}

.quiz-options button:hover:not(:disabled) {
  border-color: var(--purple);
  background: var(--purple-soft);
  transform: translateX(-3px);
}

.quiz-options button:disabled { cursor: default; }

.quiz-options button.correct {
  background: var(--mint-soft);
  border-color: var(--mint);
  color: #1D6B50;
  font-weight: 600;
}

.quiz-options button.wrong {
  background: var(--coral-soft);
  border-color: var(--coral);
  color: #9D3B34;
}

.quiz-feedback {
  margin-top: 16px;
  background: var(--purple-soft);
  border-radius: 16px;
  padding: 14px 16px;
  position: relative;
  z-index: 1;
  animation: fadeUp .4s ease both;
}

.quiz-feedback strong { display: block; margin-bottom: 4px; }
.quiz-feedback p { margin: 0 0 10px; font-size: 13px; color: var(--ink-soft); }

.quiz-feedback .btn { background: var(--white); }

.quiz-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 6;
}

.confetti-piece {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  animation: confettiFall 1.8s ease-in forwards;
}

@keyframes confettiFall {
  0% { transform: translate3d(0, -20px, 0) rotate(0); opacity: 1; }
  100% { transform: translate3d(var(--dx, 0), 420px, 0) rotate(620deg); opacity: 0; }
}

/* ----------------------------------------------------------------- screens */
.gallery-controls { display: flex; gap: 8px; justify-content: flex-end; }

.gallery-controls button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 18px;
  transition: background .2s, color .2s, border-color .2s;
}

.gallery-controls button:hover { background: var(--purple); color: var(--white); border-color: var(--purple); }

.screens-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.screens-track:focus-visible { outline: 2px dashed var(--purple); outline-offset: 6px; }

.screen-item {
  flex: 0 0 240px;
  margin: 0;
  scroll-snap-align: start;
}

.mini-phone {
  width: 100%;
  aspect-ratio: 9 / 19.3;
  border-radius: 30px;
  border: 6px solid #1C1C28;
  background: #1C1C28;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(39, 40, 58, .14);
  transition: transform .35s ease;
}

.screen-item:hover .mini-phone { transform: translateY(-8px) rotate(-1deg); }

.mini-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.screen-item figcaption { padding: 12px 4px 0; }
.screen-item figcaption strong { display: block; font-size: 14px; }
.screen-item figcaption span { font-size: 11px; color: var(--ink-soft); }

/* --------------------------------------------------------------------- FAQ */
.faq-list { max-width: 820px; margin-inline: auto; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-plus {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--purple-soft);
  color: var(--purple-dark);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
}

.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s;
}

.faq-plus::before { width: 10px; height: 2px; }
.faq-plus::after { width: 2px; height: 10px; }

.faq-item[open] .faq-plus::after { transform: rotate(90deg); }

.faq-answer { padding: 0 22px 20px; }
.faq-answer p { margin: 0; font-size: 14px; color: #595A70; line-height: 1.8; }

/* ---------------------------------------------------------------- download */
.download-section { padding: 40px 0 100px; }

.download-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 30px;
  align-items: center;
  border-radius: 40px;
  padding: 50px;
  color: var(--white);
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 203, 105, .22), transparent 32%),
    radial-gradient(circle at 8% 80%, rgba(113, 201, 165, .16), transparent 34%),
    linear-gradient(135deg, #6C5CE0, #4D42BC);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(75, 62, 190, .3);
}

.download-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .35;
  pointer-events: none;
}

.download-copy { position: relative; z-index: 2; }
.download-copy h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.2; margin: 16px 0 14px; }
.download-copy > p { color: rgba(255, 255, 255, .72); max-width: 470px; margin: 0 0 26px; }

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

.download-size { font-size: 12px; color: rgba(255, 255, 255, .65); }
.btn-light { color: var(--purple-dark); }

.install-note {
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, .78);
}

.install-note strong { display: block; color: var(--white); margin-bottom: 6px; }
.install-note ol { margin: 0; padding-inline-start: 18px; }
.install-note li { margin-bottom: 3px; }

.download-art {
  position: relative;
  z-index: 2;
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-blob {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .2), transparent 65%);
  filter: blur(4px);
}

.download-char {
  position: relative;
  width: 260px;
  height: 260px;
  filter: drop-shadow(0 30px 40px rgba(20, 10, 60, .35));
  animation: heroFloat 5.5s ease-in-out infinite;
}

.download-bubble {
  position: absolute;
  background: var(--white);
  color: var(--ink);
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 16px 30px rgba(20, 10, 60, .2);
}

.download-bubble.one { top: 12px; right: 0; max-width: 200px; animation: float 5.5s ease-in-out infinite; }
.download-bubble.two { bottom: 26px; left: 0; color: var(--purple-dark); background: var(--yellow); animation: float 5.5s ease-in-out infinite reverse; }

.download-spark { position: absolute; color: var(--yellow); font-size: 24px; opacity: .85; }
.download-spark.s1 { top: 30px; left: 34px; }
.download-spark.s2 { bottom: 50px; right: 20px; font-size: 18px; }
.download-spark.s3 { top: 55%; left: 8px; font-size: 14px; }

/* ------------------------------------------------------------------ footer */
.site-footer {
  background: #1E1D2D;
  color: var(--white);
  padding: 54px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 30px;
  align-items: start;
}

.footer-brand { margin-bottom: 12px; }
.footer-brand .brand-word { color: var(--white); }
.footer-grid p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .6); }

.footer-links { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.footer-links a:hover { color: var(--yellow); }

.footer-meta { display: flex; flex-direction: column; gap: 5px; font-size: 11px; color: rgba(255, 255, 255, .45); text-align: left; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 11px;
  color: rgba(255, 255, 255, .42);
}

/* ------------------------------------------------------------------ reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}

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

.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------- responsive */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-copy { text-align: center; }
  .hero-copy .kicker { margin-inline: auto; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-points { justify-content: center; }
  .hero-visual { min-height: 600px; }
  .section-head { grid-template-columns: 1fr; align-items: start; gap: 14px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .character-showcase { grid-template-columns: 1fr; }
  .character-preview { min-height: 400px; }
  .character-list { grid-template-columns: repeat(2, 1fr); }
  .character-card:last-child { grid-column: span 2; }
  .try-grid { grid-template-columns: 1fr; }
  .download-card { grid-template-columns: 1fr; padding: 38px; }
  .download-art { min-height: 280px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-meta { text-align: right; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 34px); }
  .nav-links {
    position: fixed;
    top: 74px;
    right: 17px;
    left: 17px;
    margin: 0;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(39, 40, 58, .16);
    display: none;
    flex-direction: column;
    align-items: stretch;
    z-index: 120;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 15px; }
  .mobile-download {
    display: flex !important;
    justify-content: center;
    margin-top: 4px;
    background: linear-gradient(135deg, #8B7DF4, var(--purple-dark)) !important;
    color: var(--white) !important;
    border-radius: 12px;
    font-weight: 600;
  }
  .nav-cta { display: none; }
  .menu-toggle { display: flex; margin-inline-start: auto; }
  .menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.is-open span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding-top: 120px; }
  .hero h1 { font-size: clamp(38px, 12vw, 54px); }
  .hero-visual { min-height: 540px; }
  .phone { width: 260px; }
  .float-xp { top: 10px; right: 2px; }
  .float-live { bottom: 66px; right: 0; }
  .float-streak { display: none; }
  .hero-orbit { width: 360px; height: 360px; }
  .tech-strip { font-size: 11px; justify-content: center; }
  .section, .characters-section { padding: 72px 0; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .character-list { grid-template-columns: 1fr; }
  .character-card:last-child { grid-column: auto; }
  .character-preview { min-height: 380px; }
  .character-preview img { width: 190px; height: 190px; }
  .preview-copy h3 { font-size: 26px; }
  .download-card { padding: 30px 22px; border-radius: 30px; }
  .download-copy h2 { font-size: 38px; }
  .download-art { min-height: 240px; }
  .download-char { width: 210px; height: 210px; }
  .download-bubble.one { right: 0; top: 0; max-width: 160px; font-size: 11px; }
  .footer-bottom { flex-direction: column; }
  .gallery-controls { display: none; }
  .screen-item { flex-basis: 210px; }
  .quiz-card { padding: 20px; }
}

@media (max-width: 480px) {
  .hero-visual { min-height: 480px; }
  .phone { width: 228px; border-width: 7px; border-radius: 38px; }
  .phone-screen { border-radius: 31px; }
  .phone-speaker { width: 70px; height: 18px; }
  .float-card { padding: 8px 11px; border-radius: 14px; }
  .float-card strong { font-size: 11px; }
  .float-card small { font-size: 9px; }
  .float-xp { right: -4px; }
  .float-live { bottom: 44px; right: -4px; }
  .hero-orbit { width: 310px; height: 310px; }
  .btn { padding: 13px 18px; font-size: 14px; }
  .download-actions { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
