:root {
  --white: #f8fbff;
  --muted: #c8d9eb;
  --blue: #0797f6;
  --deep: #00274e;
  --line: rgba(203, 229, 255, .34);
  --glass: rgba(8, 62, 111, .34);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--white);
  font-family: var(--sans);
  background: #032951 url("assets/celestial-portal.png") center top / cover fixed no-repeat;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 22, 56, .72) 0%, rgba(0, 36, 78, .25) 43%, rgba(0, 38, 84, .06) 72%),
    linear-gradient(180deg, rgba(0, 25, 61, .45) 0%, transparent 43%, rgba(0, 31, 70, .2) 100%);
}
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.page-shell { position: relative; z-index: 1; width: min(1376px, calc(100% - 40px)); margin: 0 auto; padding-bottom: 24px; }
.site-header { height: 78px; display: grid; grid-template-columns: 270px 1fr auto; align-items: center; border-bottom: 1px solid rgba(255,255,255,.035); }
.brand { font: italic 500 37px/1 var(--serif); letter-spacing: -2px; text-shadow: 0 3px 18px rgba(0,0,0,.25); }
.main-nav { display: flex; justify-content: center; align-self: stretch; gap: 47px; }
.main-nav a { position: relative; display: grid; place-items: center; padding: 0 2px; font-size: 15px; color: rgba(255,255,255,.92); }
.main-nav a::after { content: ""; position: absolute; bottom: 16px; left: 0; right: 0; height: 1px; background: #dbeeff; transform: scaleX(0); transition: transform .25s; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.button, .icon-button, .menu-button { border: 0; cursor: pointer; transition: transform .2s, background .2s, border-color .2s, box-shadow .2s; }
.button:hover, .icon-button:hover { transform: translateY(-2px); }
.button { min-height: 45px; padding: 0 25px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-weight: 500; white-space: nowrap; }
.button-primary { background: linear-gradient(135deg, #08a7ff, #087fec); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 10px 28px rgba(0,105,220,.25); }
.button-primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 14px 34px rgba(0,105,220,.42); }
.button-ghost { border: 1px solid rgba(222,240,255,.65); background: rgba(4,51,94,.2); backdrop-filter: blur(8px); }
.icon-button { width: 45px; height: 45px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); background: rgba(26,101,164,.22); }
.icon-button svg { width: 19px; }
.menu-button { display: none; background: none; width: 44px; height: 44px; padding: 12px; }
.menu-button span { display: block; height: 1px; margin: 6px 0; background: white; }

.hero { min-height: 520px; position: relative; padding-top: 47px; }
.hero-copy { max-width: 690px; }
.eyebrow { margin: 0 0 7px 3px; font-size: 13px; letter-spacing: .58em; color: #d4e4f4; }
.hero h1 { margin: 0; font: italic 500 clamp(86px, 8.2vw, 126px)/.95 var(--serif); letter-spacing: -7px; text-shadow: 0 2px 20px rgba(104,191,255,.38); }
.hero h2 { margin: 24px 0 16px 5px; font: 500 clamp(42px, 4.2vw, 60px)/.9 var(--serif); letter-spacing: -2px; }
.intro { margin: 0 0 25px 5px; font-size: 18px; line-height: 1.55; color: #f4f8ff; text-shadow: 0 2px 10px rgba(0,26,61,.8); }
.hero-actions { display: flex; gap: 20px; margin-left: 5px; }
.button-large { min-height: 57px; padding: 0 31px; font-size: 16px; }
.mini-play { width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center; background: white; color: #128fe8; }
.mini-play svg { width: 18px; fill: currentColor; stroke: none; }
.arrow { margin-left: 4px; font-size: 22px; }
.grid-icon { width: 21px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.grid-icon i { height: 8px; border: 1.5px solid currentColor; border-radius: 2px; }
.portal-callout { position: absolute; top: 110px; left: 75.5%; width: 115px; text-align: center; }
.portal-callout p { margin: 0; font-size: 13px; font-weight: 600; line-height: 2; letter-spacing: .38em; }
.callout-line { display: block; width: 34px; height: 1px; margin: 14px auto 28px; background: white; opacity: .8; }
.portal-play { width: 61px; height: 61px; display: grid; place-items: center; margin: auto; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(255,255,255,.68); color: #27618d; backdrop-filter: blur(10px); cursor: pointer; transition: transform .2s, box-shadow .2s; }
.portal-play:hover { transform: scale(1.07); box-shadow: 0 0 30px rgba(255,240,195,.5); }
.portal-play svg, .card-play svg { fill: currentColor; stroke: none; }

.process-strip { min-height: 112px; margin-top: 0; display: grid; grid-template-columns: repeat(4,1fr); align-items: center; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(110deg, rgba(23,92,148,.46), rgba(11,64,111,.33)); box-shadow: 0 12px 42px rgba(0,18,51,.18); backdrop-filter: blur(14px); overflow: hidden; }
.process-step { position: relative; min-width: 0; display: grid; grid-template-columns: 72px 1fr 16px; align-items: center; gap: 18px; padding: 19px 30px 19px 38px; }
.process-step + .process-step::before { content: ""; position: absolute; left: 0; top: 15%; height: 70%; width: 1px; background: rgba(255,255,255,.12); }
.process-icon { width: 70px; height: 70px; display: grid; place-items: center; border: 1px solid rgba(218,239,255,.38); border-radius: 50%; }
.process-icon svg { width: 30px; }
.process-step strong, .process-step small { display: block; }
.process-step strong { margin-bottom: 5px; font-size: 17px; font-weight: 600; }
.process-step small { color: #d5e4f3; font-size: 12px; line-height: 1.45; }
.process-step b { font-size: 36px; line-height: 1; font-weight: 300; color: #d0eaff; }

.explore { padding-top: 19px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-heading h2 { margin: 0 0 2px; font: 500 38px/1.05 var(--serif); letter-spacing: -1px; }
.section-heading p { margin: 0; font-size: 15px; line-height: 1.45; }
.browse-all { min-height: 44px; padding: 0 23px; }
.capsule-carousel { position: relative; }
.capsule-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; overflow: hidden; }
.capsule-card { position: relative; height: 162px; overflow: hidden; border: 1px solid rgba(193,224,250,.3); border-radius: 13px; background: var(--image) center / cover; box-shadow: 0 13px 28px rgba(0,17,49,.24); cursor: pointer; transform: translateX(0); transition: transform .35s ease, box-shadow .2s; }
.capsule-card:hover { box-shadow: 0 16px 35px rgba(0,13,43,.45); }
.capsule-card::after { content: ""; position: absolute; inset: 48% 0 0; background: linear-gradient(180deg, transparent, rgba(0,20,50,.92)); pointer-events: none; }
.card-play { position: absolute; z-index: 2; left: 50%; top: 54px; translate: -50% -50%; width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; background: rgba(255,255,255,.78); color: #1e5b8c; cursor: pointer; }
.card-play svg { width: 17px; }
.card-copy { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 12px; }
.card-copy h3 { margin: 0 0 5px; font-size: 15px; font-weight: 500; }
.card-copy p { margin: 0; font-size: 12px; color: #dce9f5; }
.card-copy time { float: right; }
.carousel-arrow { position: absolute; z-index: 4; top: 49px; width: 59px; height: 59px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; background: #003665; font: 300 43px/1 var(--sans); color: white; cursor: pointer; }
.carousel-arrow.previous { left: -29px; display: none; }
.carousel-arrow.next { right: -29px; }

.search-panel { position: fixed; z-index: 20; inset: 0; display: grid; place-content: center; gap: 18px; padding: 24px; background: rgba(0,21,52,.88); backdrop-filter: blur(18px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.search-panel.open { opacity: 1; pointer-events: auto; }
.search-panel label { font: 500 clamp(42px,7vw,86px)/1 var(--serif); }
.search-panel input { width: min(720px, 85vw); border: 0; border-bottom: 1px solid rgba(255,255,255,.5); padding: 14px 2px; outline: 0; background: transparent; color: white; font: 20px var(--sans); }
.search-panel input::placeholder { color: rgba(255,255,255,.5); }
.close-search, .dialog-close { position: absolute; right: 35px; top: 25px; border: 0; background: none; color: white; font-size: 40px; cursor: pointer; }
.story-dialog { width: min(530px, calc(100% - 32px)); border: 1px solid rgba(255,255,255,.35); border-radius: 24px; padding: 50px; color: white; background: linear-gradient(145deg, rgba(0,68,125,.94), rgba(1,29,68,.96)); box-shadow: 0 30px 90px rgba(0,0,0,.55); }
.story-dialog::backdrop { background: rgba(0,17,44,.68); backdrop-filter: blur(10px); }
.story-dialog h2 { margin: 10px 0 12px; font: 500 45px/1 var(--serif); }
.dialog-mark { letter-spacing: .35em; font-size: 12px; color: #bde4ff; }
.dialog-text { color: #d5e6f5; line-height: 1.65; }
.dialog-action { margin-top: 14px; }
.dialog-close { right: 20px; top: 12px; }
.toast { position: fixed; z-index: 30; bottom: 28px; left: 50%; translate: -50% 20px; padding: 13px 22px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: rgba(0,43,83,.9); backdrop-filter: blur(12px); opacity: 0; pointer-events: none; transition: .3s; }
.toast.show { opacity: 1; translate: -50% 0; }

.glass-section { border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(125deg, rgba(20,87,143,.55), rgba(5,46,88,.46)); box-shadow: 0 18px 55px rgba(0,18,51,.2); backdrop-filter: blur(16px); }
.section-kicker { margin: 0 0 10px; color: #c6e5fa; font-size: 11px; font-weight: 600; letter-spacing: .38em; }
.pricing-section { margin-top: 60px; padding: 46px 54px; display: grid; grid-template-columns: minmax(0, 1fr) 390px; align-items: center; gap: 60px; }
.pricing-copy { max-width: 690px; }
.pricing-copy h2, .creation-copy h2, .about-section h2 { margin: 0 0 13px; font: 500 clamp(37px, 4vw, 55px)/.95 var(--serif); letter-spacing: -1.5px; }
.pricing-copy > p:not(.section-kicker), .creation-copy > p:not(.section-kicker), .about-section > p:not(.section-kicker) { margin: 0; max-width: 720px; color: #e2edf8; font-size: 15px; line-height: 1.65; }
.founding-note { margin-top: 14px !important; color: #bcdcf3 !important; }
.price-card { min-height: 245px; padding: 28px 32px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; border: 1px solid rgba(255,255,255,.24); border-radius: 18px; background: rgba(5,50,96,.42); }
.price-label, .no-subscription { color: #cae2f5; font-size: 12px; }
.price-card > strong { margin: 5px 0 2px; font: 500 73px/1 var(--serif); }
.price-card sup { font: 500 31px/1 var(--serif); vertical-align: 23px; }
.price-card small { font: 600 12px/1 var(--sans); letter-spacing: .16em; }
.price-card .button { margin-top: 20px; align-self: stretch; }
.creation-section { margin-top: 24px; padding: 42px 54px; }
.creation-copy { max-width: 900px; }
.content-limits { margin-top: 30px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.content-limits span { min-height: 58px; padding: 14px 16px; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; background: rgba(0,41,82,.28); color: #dceaf6; font-size: 12px; }
.content-limits strong { color: white; font-size: 14px; }
.route-note { margin: 20px 0 0; color: #9fc5e2; font-size: 12px; }
.about-section { max-width: 820px; padding: 78px 0 70px; }

@media (max-width: 1180px) {
  .site-header { grid-template-columns: 230px 1fr auto; }
  .main-nav { gap: 25px; }
  .process-step { grid-template-columns: 55px 1fr; padding: 17px; gap: 13px; }
  .process-step b { display: none; }
  .process-icon { width: 55px; height: 55px; }
  .process-step strong { font-size: 14px; }
  .process-step small { font-size: 12px; }
  .pricing-section { grid-template-columns: 1fr 330px; gap: 32px; }
}

@media (max-width: 900px) {
  body { background-position: 62% top; background-attachment: scroll; }
  body::before { background: linear-gradient(180deg, rgba(0,24,60,.7), rgba(0,38,83,.26) 55%, rgba(0,27,63,.42)); }
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { position: absolute; top: 70px; left: 0; right: 0; z-index: 9; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(1,40,80,.96); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px; }
  .main-nav a::after { display: none; }
  .header-actions .login-button, .header-actions .get-started { display: none; }
  .menu-button { display: block; }
  .hero { min-height: 700px; }
  .hero-copy { max-width: 620px; }
  .portal-callout { top: 395px; left: auto; right: 11%; }
  .process-strip { grid-template-columns: 1fr 1fr; }
  .process-step:nth-child(3)::before { display: none; }
  .capsule-track { grid-template-columns: repeat(4, 310px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
  .capsule-card { scroll-snap-align: start; }
  .carousel-arrow { display: none !important; }
  .pricing-section { grid-template-columns: 1fr; }
  .price-card { min-height: auto; }
  .content-limits { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .page-shell { width: min(100% - 28px, 540px); }
  .brand { font-size: 30px; }
  .hero { min-height: 735px; padding-top: 42px; }
  .eyebrow { font-size: 10px; letter-spacing: .37em; }
  .hero h1 { font-size: clamp(62px, 20vw, 87px); letter-spacing: -4px; }
  .hero h2 { margin-top: 20px; font-size: 42px; }
  .intro { font-size: 15px; }
  .intro br { display: none; }
  .hero-actions { align-items: stretch; flex-direction: column; max-width: 305px; gap: 12px; }
  .portal-callout { top: 510px; right: 7%; }
  .portal-callout p { font-size: 10px; }
  .callout-line { margin: 8px auto 13px; }
  .portal-play { width: 50px; height: 50px; }
  .process-strip { grid-template-columns: 1fr; }
  .process-step + .process-step::before { left: 22px; right: 22px; top: 0; width: auto; height: 1px; }
  .section-heading { align-items: flex-end; }
  .section-heading h2 { font-size: 31px; }
  .section-heading p { font-size: 13px; }
  .section-heading p br { display: none; }
  .browse-all { width: 44px; min-width: 44px; padding: 0; font-size: 0; }
  .browse-all span { font-size: 22px; }
  .capsule-track { grid-template-columns: repeat(4, 82vw); }
  .story-dialog { padding: 42px 28px 30px; }
  .pricing-section, .creation-section { padding: 32px 24px; }
  .content-limits { grid-template-columns: 1fr; }
  .about-section { padding: 58px 4px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
