:root {
  color-scheme: light;
  --ink: #24162f;
  --muted: #6d6078;
  --line: #e6ddec;
  --paper: #ffffff;
  --paper-soft: rgba(255,255,255,.84);
  --wash: #f8f3fb;
  --brand: #4b2399;
  --brand-dark: #2b0e70;
  --plum: #724563;
  --cream: #fff1cf;
  --orange: #ff8a00;
  --cyan: #16c5e9;
  --green: #52cd39;
  --note: #fff7dc;
  --note-line: #f2bf42;
  --shadow: 0 24px 70px rgba(50,25,66,.11);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #fbf7ff;
  --muted: #c6b9d0;
  --line: #513e60;
  --paper: #24172c;
  --paper-soft: rgba(36,23,44,.88);
  --wash: #160e1e;
  --brand: #9a73ff;
  --brand-dark: #7451dd;
  --cream: #4b3420;
  --note: #392f1c;
  --note-line: #8f742d;
  --shadow: 0 28px 80px rgba(0,0,0,.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font: 16px/1.65 ui-rounded, "SF Pro Rounded", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-image:
    radial-gradient(circle at 8% 7%, rgba(114,69,99,.13), transparent 26rem),
    radial-gradient(circle at 94% 28%, rgba(74,36,150,.12), transparent 27rem);
  transition: background-color .2s ease, color .2s ease;
}
a { color: var(--brand-dark); }
a:hover { color: var(--brand); }
.shell { width: min(100% - 32px, 1120px); margin: 0 auto; }

header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--paper-soft);
  backdrop-filter: blur(18px);
}
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.app-icon { display: block; width: 52px; height: 52px; border-radius: 13px; object-fit: cover; box-shadow: 0 7px 18px rgba(44,17,111,.16); }
.nav-actions { display: flex; align-items: center; gap: 20px; }
nav { display: flex; gap: 20px; }
nav a { color: var(--brand-dark); font-weight: 750; text-decoration: none; }
nav a[aria-current="page"] { color: var(--ink); }
.theme-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 1.05rem;
}
.theme-toggle:hover { border-color: var(--brand); }

main { padding: 42px 0 80px; }
.landing { padding-top: 28px; }
.hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  align-items: center;
  gap: clamp(30px, 7vw, 86px);
  padding: clamp(34px, 7vw, 76px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 38px;
  background: var(--paper-soft);
  box-shadow: var(--shadow);
}
.eyebrow { color: var(--plum); font-size: .82rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
:root[data-theme="dark"] .eyebrow { color: #c59dda; }
.accent-dots { display: inline-flex; gap: 6px; margin-left: 8px; vertical-align: middle; }
.accent-dots i { width: 8px; height: 8px; border-radius: 50%; }
.accent-dots i:nth-child(1) { background: var(--cyan); }
.accent-dots i:nth-child(2) { background: var(--green); }
.accent-dots i:nth-child(3) { background: var(--orange); }
.hero h1 { max-width: 680px; margin: 12px 0 18px; font-size: clamp(2.65rem, 7vw, 5.4rem); line-height: .98; letter-spacing: -.055em; }
.hero-copy > p { max-width: 570px; margin: 0; color: var(--muted); font-size: clamp(1.04rem, 2vw, 1.22rem); }
.hero-art { position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-start; }
.hero-art::before { content: ""; position: absolute; inset: 14% -8% 2%; border-radius: 46% 54% 38% 62%; background: radial-gradient(circle, rgba(255,138,0,.22), rgba(75,35,153,.12) 57%, transparent 70%); }
.hero-mascot { position: relative; display: block; width: 100%; height: auto; margin-top: auto; filter: drop-shadow(0 28px 22px rgba(44,17,111,.18)); }
.hero-brand { position: relative; z-index: 1; display: block; width: min(84%, 390px); height: auto; margin: -10px auto 14px; }
.store-coming-soon { margin: 28px 0 0; color: var(--muted); font-weight: 750; }

.landing-section { padding: 92px 0 6px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 26px; margin-bottom: 30px; }
.section-head-copy { max-width: 680px; }
.section-head h2 { margin: 7px 0 8px; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.06; letter-spacing: -.04em; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.carousel-controls { display: flex; gap: 10px; }
.carousel-button { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; font-size: 1.35rem; }
.carousel-button:hover { border-color: var(--brand); color: var(--brand); }
.screenshot-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(245px, 31%); gap: 24px; overflow-x: auto; padding: 10px 4px 28px; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-inline: contain; }
.screenshot-track::-webkit-scrollbar { display: none; }
.screenshot-card { position: relative; padding: 0; scroll-snap-align: start; overflow: hidden; border: 8px solid var(--paper); border-radius: 36px; background: var(--paper); box-shadow: 0 18px 44px rgba(50,25,66,.13); cursor: zoom-in; appearance: none; }
.screenshot-card:hover { border-color: color-mix(in srgb, var(--brand) 55%, var(--paper)); }
.screenshot-card:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.screenshot-card img { display: block; width: 100%; aspect-ratio: 9/16; object-fit: cover; }
.screenshot-card.ipad img { aspect-ratio: 3/4; }
.placeholder-label { position: absolute; left: 14px; bottom: 14px; padding: 6px 10px; border-radius: 999px; background: rgba(24,14,30,.78); color: white; font-size: .75rem; font-weight: 800; backdrop-filter: blur(8px); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.step { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper-soft); box-shadow: 0 12px 32px rgba(50,25,66,.06); }
.step-number { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 18px; border-radius: 13px; background: var(--cream); color: var(--brand-dark); font-weight: 900; }
.step:nth-child(2) .step-number { background: #dff8ff; }
.step:nth-child(3) .step-number { background: #e4f8df; }
:root[data-theme="dark"] .step:nth-child(2) .step-number { background: #183d4a; }
:root[data-theme="dark"] .step:nth-child(3) .step-number { background: #203f25; }
.step h3 { margin: 0 0 8px; }
.step p { margin: 0; color: var(--muted); }
.platform-note { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; padding: 23px 28px; border-radius: 21px; background: linear-gradient(135deg, #4b2399, #2b0e70); color: white; }
.platform-note span { color: rgba(255,255,255,.8); }

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: white;
}
.lightbox::backdrop { background: rgba(8,5,12,.88); backdrop-filter: blur(12px); }
.lightbox-shell { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 58px 82px; }
.lightbox-image { display: block; max-width: min(92vw, 1200px); max-height: calc(100vh - 116px); object-fit: contain; border-radius: 22px; box-shadow: 0 28px 90px rgba(0,0,0,.52); }
.lightbox-close,.lightbox-nav { position: absolute; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; background: rgba(20,12,28,.72); color: white; cursor: pointer; backdrop-filter: blur(12px); }
.lightbox-close { top: 22px; right: 24px; width: 46px; height: 46px; font-size: 1.5rem; }
.lightbox-nav { top: 50%; width: 52px; height: 52px; font-size: 1.7rem; transform: translateY(-50%); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-close:hover,.lightbox-nav:hover { background: rgba(75,35,153,.88); }

.document { max-width: 920px; margin: 0 auto; padding: clamp(28px,6vw,64px); border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); }
.intro-grid { display: grid; grid-template-columns: minmax(0,1fr) 210px; align-items: center; gap: clamp(24px,5vw,52px); }
.mascot-wrap { min-height: 230px; padding: 18px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; overflow: hidden; border-radius: 34px; background: linear-gradient(145deg,var(--cream),#ead3fa); box-shadow: inset 0 0 0 1px rgba(114,69,99,.14); }
:root[data-theme="dark"] .mascot-wrap { background: linear-gradient(145deg,#483820,#39234b); }
.mascot-brand { position: relative; z-index: 1; display: block; width: min(78%,160px); height: auto; margin: 0 auto; }
.mascot { display: block; width: 178px; max-height: 178px; object-fit: contain; object-position: center bottom; }
h1,h2,h3 { line-height: 1.2; letter-spacing: -.025em; }
.document h1 { margin: 8px 0 10px; font-size: clamp(2.2rem,7vw,4rem); }
.document h2 { margin: 48px 0 14px; font-size: 1.55rem; }
.document h3 { margin: 28px 0 8px; font-size: 1.15rem; }
p,ul,ol { max-width: 72ch; }
ul,ol { padding-left: 1.25rem; }
li+li { margin-top: 8px; }
.meta,.lede { color: var(--muted); }
.lede { font-size: 1.12rem; }
.summary { margin: 32px 0; padding: 22px 24px; border-left: 4px solid var(--brand); border-radius: 4px 14px 14px 4px; background: rgba(111,74,214,.11); }
.platform { margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper-soft); }
.platform h3 { margin-top: 0; }
.notice { margin: 24px 0; padding: 18px 20px; border: 1px solid var(--note-line); border-radius: 14px; background: var(--note); }
.contact { display: inline-block; margin-top: 6px; padding: 12px 18px; border-radius: 999px; background: linear-gradient(135deg,#4b2399,#2b0e70); color: white; font-weight: 800; text-decoration: none; }
.contact:hover { color: white; filter: brightness(1.08); }
footer { padding: 28px 0 44px; color: var(--muted); text-align: center; }

@media (max-width: 760px) {
  .nav { padding: 12px 0; }
  .app-icon { width: 46px; height: 46px; border-radius: 12px; }
  .nav-actions { gap: 12px; }
  nav { gap: 12px; }
  .hero { min-height: 0; grid-template-columns: 1fr; border-radius: 28px; }
  .hero-art { width: min(78%,390px); margin: 0 auto; order: -1; }
  .hero-brand { margin: 0 auto 12px; }
  .hero h1 { font-size: clamp(2.7rem,14vw,4.2rem); }
  .section-head { align-items: flex-start; flex-direction: column; }
  .carousel-controls { align-self: flex-end; }
  .screenshot-track { grid-auto-columns: minmax(230px,76%); }
  .steps { grid-template-columns: 1fr; }
  .platform-note { align-items: flex-start; flex-direction: column; gap: 5px; }
  .intro-grid { grid-template-columns: 1fr; }
  .mascot-wrap { min-height: 180px; padding: 16px 0; gap: 7px; }
  .mascot-brand { width: min(60%,150px); }
  .mascot { width: 150px; max-height: 150px; }
  .lightbox-shell { padding: 64px 18px 76px; }
  .lightbox-image { max-width: calc(100vw - 36px); max-height: calc(100vh - 140px); }
  .lightbox-nav { top: auto; bottom: 14px; transform: none; }
  .lightbox-prev { left: calc(50% - 62px); }
  .lightbox-next { right: calc(50% - 62px); }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 22px,1120px); }
  nav a { font-size: .9rem; }
  .theme-toggle { width: 38px; height: 38px; }
  main { padding-top: 20px; }
  .landing-section { padding-top: 70px; }
  .document { border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  body { background: white; }
  header,footer,.theme-toggle { display: none; }
  main { padding: 0; }
  .document { border: 0; box-shadow: none; padding: 0; }
}
