:root {
  --night: #151636;
  --night-2: #24204b;
  --violet: #7560a8;
  --rose: #ec8e9c;
  --coral: #f2a27b;
  --cream: #fff7ee;
  --milk: #fffdf8;
  --gold: #f6d38a;
  --mint: #b8e6d1;
  --ink: #453a38;
  --muted: #7e6d6a;
  --soft-line: rgba(255, 255, 255, 0.54);
  --glass: rgba(255, 255, 255, 0.58);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 8%, rgba(255, 240, 200, 0.85), transparent 18rem),
    radial-gradient(circle at 86% 18%, rgba(184, 230, 209, 0.36), transparent 20rem),
    linear-gradient(180deg, #161638 0%, #463067 34%, #fff0e8 68%, #fffaf3 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.86) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(246, 211, 138, 0.74) 0 1px, transparent 2px);
  background-position: 0 0, 38px 62px;
  background-size: 132px 132px, 190px 190px;
  opacity: 0.34;
}

body::after {
  content: "";
  position: fixed;
  inset: auto -10% -18rem -10%;
  z-index: -1;
  height: 36rem;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 30%, rgba(255, 203, 211, 0.68), transparent 18rem),
    radial-gradient(circle at 76% 20%, rgba(255, 245, 220, 0.88), transparent 19rem);
  filter: blur(10px);
}

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

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

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(18px, 5vw, 76px);
  color: white;
  backdrop-filter: blur(22px);
  background: linear-gradient(180deg, rgba(20, 18, 45, 0.58), rgba(20, 18, 45, 0.18));
}

.brand,
.nav nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 18px;
  font-weight: 620;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 15px;
  color: #6f4f47;
  background:
    radial-gradient(circle at 32% 24%, #fff, transparent 38%),
    linear-gradient(145deg, #fff4da, #f4a9a9 72%, #b8e6d1);
  box-shadow: 0 14px 36px rgba(255, 198, 190, 0.32);
}

.nav nav {
  gap: 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.nav a {
  transition: color 180ms ease, transform 180ms ease, background 180ms ease;
}

.nav a:hover {
  color: white;
}

.nav-cta {
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  overflow: hidden;
  padding: 120px clamp(20px, 7vw, 104px) clamp(64px, 9vw, 112px);
  color: white;
  isolation: isolate;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 44%;
  filter: saturate(1.08) brightness(0.88);
}

.hero-wash {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(14, 14, 39, 0.78) 0%, rgba(22, 18, 47, 0.58) 36%, rgba(22, 18, 47, 0.18) 74%, rgba(22, 18, 47, 0.42) 100%),
    linear-gradient(0deg, rgba(20, 17, 41, 0.74) 0%, rgba(20, 17, 41, 0.1) 34%, rgba(20, 17, 41, 0.36) 100%);
}

.spark-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.spark-field i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 238, 189, 0.92);
  box-shadow: 0 0 22px 8px rgba(255, 208, 151, 0.54);
  animation: floatSpark 7s ease-in-out infinite;
}

.spark-field i:nth-child(1) {
  left: 8%;
  top: 26%;
}

.spark-field i:nth-child(2) {
  left: 72%;
  top: 18%;
  animation-delay: -1.2s;
}

.spark-field i:nth-child(3) {
  left: 58%;
  top: 70%;
  animation-delay: -2.4s;
}

.spark-field i:nth-child(4) {
  left: 86%;
  top: 54%;
  animation-delay: -3.1s;
}

.spark-field i:nth-child(5) {
  left: 21%;
  top: 76%;
  animation-delay: -4.2s;
}

.spark-field i:nth-child(6) {
  left: 42%;
  top: 21%;
  animation-delay: -5.1s;
}

@keyframes floatSpark {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(0.74);
    opacity: 0.45;
  }

  45% {
    transform: translate3d(12px, -24px, 0) scale(1.18);
    opacity: 1;
  }
}

.hero-content {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 15px;
  color: #ffd7bd;
  font-size: 14px;
  font-weight: 620;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  max-width: 820px;
  font-size: clamp(46px, 8vw, 104px);
  line-height: 1.03;
  font-weight: 640;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(31px, 4.8vw, 62px);
  line-height: 1.12;
  font-weight: 620;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(23px, 2.7vw, 38px);
  line-height: 1.18;
  font-weight: 610;
  letter-spacing: 0;
}

.lead {
  max-width: 670px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 24px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 620;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-btn {
  color: #503d39;
  background:
    radial-gradient(circle at 28% 20%, #fff 0 18%, transparent 42%),
    linear-gradient(135deg, #fff0c5, #ffc4bd 58%, #c6f0dc);
  box-shadow: 0 22px 52px rgba(255, 184, 172, 0.34);
}

.secondary-btn {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
}

.promise-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

.promise-row span {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.opening,
.section-heading,
.privacy,
.closing {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.opening {
  padding: clamp(80px, 12vw, 140px) 0 clamp(32px, 6vw, 72px);
  color: var(--milk);
  text-align: center;
}

.opening p:last-child {
  width: min(760px, 100%);
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.9;
}

.storybook {
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto;
  padding: 10px 0 clamp(88px, 12vw, 150px);
}

.story-page {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.74fr) minmax(300px, 0.86fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
  min-height: 78svh;
  padding: clamp(28px, 5vw, 64px) 0;
}

.story-page.reverse {
  grid-template-columns: minmax(300px, 0.86fr) minmax(280px, 0.74fr);
}

.story-page.reverse figure {
  order: 2;
}

.story-page figure {
  position: relative;
  margin: 0;
  border-radius: 38px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 34px 90px rgba(35, 24, 66, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.42);
  transform: translateZ(0);
}

.story-page figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 28%, rgba(255, 240, 226, 0.1));
}

.story-page img {
  width: 100%;
  height: auto;
}

.chapter-copy {
  position: relative;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.86), transparent 15rem),
    linear-gradient(145deg, rgba(255, 253, 247, 0.82), rgba(255, 229, 225, 0.56));
  box-shadow: 0 26px 70px rgba(109, 78, 101, 0.18);
  backdrop-filter: blur(22px);
}

.chapter-copy::before {
  content: "";
  position: absolute;
  right: 28px;
  top: -16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, #fff, transparent 34%),
    linear-gradient(145deg, #ffe8a9, #f5a7b1);
  box-shadow: 0 0 34px rgba(255, 214, 148, 0.72);
}

.chapter-copy span {
  display: inline-flex;
  margin-bottom: 18px;
  color: #9a7068;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.chapter-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.abilities {
  position: relative;
  padding: clamp(78px, 10vw, 130px) 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 224, 196, 0.98), transparent 28rem),
    radial-gradient(circle at 86% 22%, rgba(184, 230, 209, 0.44), transparent 20rem),
    linear-gradient(180deg, rgba(255, 250, 245, 0.98), rgba(255, 241, 238, 0.96));
}

.abilities::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(117, 96, 168, 0.16) 0 1px, transparent 1.8px);
  background-size: 90px 90px;
  opacity: 0.52;
}

.section-heading {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(34px, 5vw, 58px);
  text-align: center;
}

.section-heading .eyebrow,
.privacy .eyebrow,
.closing .eyebrow {
  color: #c4797d;
}

.section-heading h2 {
  width: min(820px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.ability-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.74fr) minmax(320px, 1fr);
  gap: clamp(30px, 6vw, 82px);
  align-items: center;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.ability-visual {
  padding: clamp(12px, 2vw, 18px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 28px 80px rgba(175, 114, 112, 0.2);
  backdrop-filter: blur(18px);
}

.ability-visual img {
  border-radius: 26px;
}

.ability-list {
  display: grid;
  gap: 14px;
}

.ability-list article {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 52px rgba(127, 88, 92, 0.12);
  backdrop-filter: blur(18px);
}

.ability-list span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 30% 22%, #fff 0 18%, transparent 45%),
    linear-gradient(145deg, #ffe0c3, #ffd1d8 64%, #d9f2e5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.68), 0 12px 28px rgba(226, 145, 146, 0.18);
}

.ability-list h3 {
  margin-bottom: 6px;
  font-size: 21px;
}

.ability-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.privacy {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: center;
  padding: clamp(78px, 10vw, 128px) 0;
}

.privacy-copy p:last-child,
.closing p {
  color: rgba(69, 58, 56, 0.72);
  font-size: 18px;
  line-height: 1.9;
}

.privacy-orbit {
  position: relative;
  min-height: 320px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 38px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.9), transparent 10rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(230, 220, 255, 0.34));
  box-shadow: 0 28px 76px rgba(80, 59, 93, 0.15);
  backdrop-filter: blur(22px);
}

.mode-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.66);
}

.mode-card + .mode-card {
  margin-top: 92px;
}

.mode-card span {
  display: block;
  margin-bottom: 7px;
  color: #9a7068;
  font-size: 13px;
  font-weight: 650;
}

.mode-card strong {
  font-size: 22px;
  font-weight: 620;
}

.mode-card.active {
  background: linear-gradient(145deg, rgba(255, 243, 214, 0.88), rgba(255, 214, 217, 0.72));
}

.mode-toggle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 128px;
  height: 66px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: linear-gradient(90deg, #ffe1b8, #d8f1e3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.76), 0 14px 34px rgba(212, 148, 133, 0.18);
}

.mode-toggle i {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 33% 28%, #fff, transparent 36%),
    linear-gradient(145deg, #fffaf2, #f39aa7);
  box-shadow: 0 8px 24px rgba(166, 92, 100, 0.26);
  animation: toggleBreath 3.5s ease-in-out infinite;
}

@keyframes toggleBreath {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(62px);
  }
}

.closing {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(320px, 1fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
  padding: clamp(30px, 6vw, 72px) 0 clamp(88px, 12vw, 144px);
}

.closing img {
  width: 100%;
  border-radius: 34px;
  box-shadow: 0 28px 80px rgba(120, 80, 84, 0.18);
}

.closing .primary-btn {
  margin-top: 10px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 26px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(135deg, #171638, #3a2957);
}

@media (max-width: 900px) {
  .nav {
    padding: 14px 18px;
  }

  .nav nav {
    gap: 12px;
    font-size: 13px;
  }

  .nav nav a:not(.nav-cta):nth-child(2),
  .nav nav a:not(.nav-cta):nth-child(3) {
    display: none;
  }

  .hero {
    min-height: 94svh;
    padding: 104px 20px 48px;
  }

  .hero-video {
    object-position: 56% 42%;
  }

  .hero-wash {
    background:
      linear-gradient(180deg, rgba(16, 15, 39, 0.72) 0%, rgba(16, 15, 39, 0.18) 38%, rgba(16, 15, 39, 0.76) 100%),
      linear-gradient(90deg, rgba(16, 15, 39, 0.34), rgba(16, 15, 39, 0.18));
  }

  h1 {
    font-size: clamp(42px, 12vw, 64px);
  }

  .promise-row {
    font-size: 12px;
  }

  .opening {
    text-align: left;
  }

  .opening p:last-child {
    margin-left: 0;
  }

  .story-page,
  .story-page.reverse,
  .ability-layout,
  .privacy,
  .closing {
    grid-template-columns: 1fr;
  }

  .story-page {
    min-height: 0;
    padding: 36px 0;
  }

  .story-page.reverse figure {
    order: 0;
  }

  .story-page figure {
    border-radius: 30px;
  }

  .chapter-copy {
    border-radius: 28px;
  }

  .section-heading {
    text-align: left;
  }

  .mode-card + .mode-card {
    margin-top: 78px;
  }

  footer {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 16px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .nav nav a:not(.nav-cta) {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

  .storybook,
  .opening,
  .section-heading,
  .ability-layout,
  .privacy,
  .closing {
    width: min(100% - 28px, 1120px);
  }

  .ability-list article {
    grid-template-columns: 44px 1fr;
    gap: 12px;
    padding: 15px;
  }

  .ability-list span {
    width: 44px;
    height: 44px;
    border-radius: 17px;
  }

  .privacy-orbit {
    min-height: 292px;
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
