:root {
  color-scheme: dark;
  font-family: "Segoe UI", system-ui, sans-serif;
  --page: #141018;
  --text: #fff6f5;
  --soft: #d8cad5;
  --muted: #beadbd;
  --accent: #ffad96;
  --line: #443447;
  --surface: #211a27;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--text); }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #ffb59f; outline-offset: 4px; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
.wrap { width: min(100% - 3.5rem, 72rem); margin-inline: auto; }
.skip-link { position: fixed; z-index: 5; top: 1rem; left: 1rem; padding: .7rem 1rem; background: var(--page); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.masthead { border-bottom: 1px solid var(--line); background: #18121be8; }
.landing .masthead { position: sticky; top: 0; z-index: 3; backdrop-filter: blur(16px); }
.masthead-inner, .footer-inner { min-height: 4.55rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { display: inline-flex; gap: .65rem; align-items: center; font-weight: 750; text-decoration: none; white-space: nowrap; letter-spacing: -.025em; }
.brand img { transition: transform .3s var(--ease); }
.brand:hover img { transform: rotate(-7deg); }
nav { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.35rem; row-gap: .55rem; }
nav a, .footer a:not(.brand), .text-action { color: var(--soft); text-underline-offset: .25em; }
nav a { padding-block: .28rem; font-size: .95rem; text-decoration: none; }
nav a:hover, .footer a:hover, .text-action:hover { color: var(--accent); }
section[id] { scroll-margin-top: 5rem; }

.landing main {
  background:
    radial-gradient(ellipse at 78% 2%, #43273970, transparent 31rem),
    radial-gradient(ellipse at 0 21rem, #502c3040, transparent 29rem);
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
  padding-block: clamp(3rem, 6vw, 5.2rem);
}
.hero-copy { animation: rise .62s var(--ease) both; }
.release-status {
  display: inline-flex;
  gap: .58rem;
  align-items: center;
  padding: .46rem .72rem;
  border: 1px solid #724653;
  border-radius: 2rem;
  background: #36232e;
  color: #ffc3b0;
  font-size: .875rem;
  font-weight: 650;
}
.release-status span { width: .45rem; height: .45rem; border-radius: 50%; background: #ff9d89; box-shadow: 0 0 12px #ff8d81a0; }
.hero h1 { font-size: clamp(3.05rem, 6.2vw, 6rem); letter-spacing: -.075em; line-height: .98; margin-top: 1.2rem; font-weight: 760; }
.hero h1 em { display: block; color: var(--accent); font-style: normal; }
@supports (background-clip: text) {
  .hero h1 em { background: linear-gradient(105deg, #ffba98, #ff849a 85%); background-clip: text; color: transparent; }
}
.hero-description strong { color: var(--text); }
.hero-description, .section-heading p { font-size: clamp(1.065rem, 1.5vw, 1.2rem); line-height: 1.58; color: var(--soft); margin-top: 1.3rem; max-width: 43ch; }
.hero-actions { margin-top: 1.8rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.35rem; }
.button { padding: .87rem 1.2rem; border-radius: .75rem; font-weight: 750; background: linear-gradient(120deg, #ffc0a7, #ff9b9c); color: #22131a; text-decoration: none; transition: transform .24s var(--ease), box-shadow .24s var(--ease); }
.button:hover { transform: translateY(-3px); box-shadow: 0 .6rem 1.65rem #ff9b9c36; }
.text-action { font-weight: 615; }
.release-details {
  display: grid;
  grid-template-columns: 1.2fr .85fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
  border: 1px solid var(--line);
  padding: .86rem 1rem;
  border-radius: .85rem;
  background: #211821aa;
  max-width: 33rem;
}
.release-details dt { font-size: .875rem; color: var(--muted); }
.release-details dd { margin-top: .25rem; font-weight: 650; }
.hero-visual { display: grid; justify-items: center; align-content: center; gap: .78rem; min-width: 0; animation: rise .75s .08s var(--ease) both; }
.visual-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  width: 100%;
  place-items: center;
  padding: 1.65rem;
  border: 1px solid #755161;
  border-radius: 1.75rem;
  background:
    radial-gradient(ellipse at 20% 78%, #ec777957, transparent 62%),
    radial-gradient(ellipse at 87% 5%, #6f8baf50, transparent 47%),
    linear-gradient(145deg, #281a35, #3b1f31);
  box-shadow: 0 1.7rem 4rem #0c081080, inset 0 1px #ffccbd42;
}
.visual-stage::before, .visual-stage::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.visual-stage::before {
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 0 37%, #f9aea728 37.2% 37.4%, transparent 37.6% 47%, #f9aea71f 47.2% 47.4%, transparent 47.6%),
    linear-gradient(#ffc0ad16 1px, transparent 1px) 0 0 / 1.45rem 1.45rem,
    linear-gradient(90deg, #ffc0ad16 1px, transparent 1px) 0 0 / 1.45rem 1.45rem;
}
.visual-stage::after {
  inset: 0;
  background: linear-gradient(90deg, transparent, #ffc8aad4, transparent) center top / 100% 2px no-repeat;
  filter: drop-shadow(0 0 8px #ffa398b0);
  opacity: 0;
  animation: sweep 3.6s .25s var(--ease) both;
}
.phone {
  position: relative;
  width: min(64%, 17.2rem);
  padding: .5rem;
  border: 1px solid #bc8e9f;
  border-radius: 1.85rem;
  background: linear-gradient(160deg, #53515b, #201720 35%, #46313d 88%);
  box-shadow: 0 1.3rem 3.2rem #08050bd0, inset 0 0 0 1px #ffccb02d;
  transform: rotate(-5deg);
  transition: transform .45s var(--ease);
}
.visual-stage:hover .phone { transform: translateY(-.28rem) rotate(-2deg); }
.phone-screen { overflow: hidden; border-radius: 1.38rem; background: #101017; }
.phone img { width: 100%; height: auto; aspect-ratio: 9 / 16; }
.hero-visual figcaption { display: grid; gap: .65rem; width: 100%; color: var(--soft); text-align: center; font-size: .9rem; }
#hero-caption { min-height: 1.25rem; }
.screen-switcher:not([hidden]) { display: grid; grid-template-columns: .75fr 1.2fr 1fr 1fr; gap: .32rem; width: 100%; }
.screen-switcher button, .viewer-controls button, .viewer-close {
  min-height: 2.65rem;
  border: 1px solid var(--line);
  border-radius: .62rem;
  background: #241b29;
  padding: .42rem .5rem;
  font-size: .875rem;
  font-weight: 650;
  transition: background-color .2s, border-color .2s;
}
.screen-switcher button:hover, .viewer-controls button:hover, .viewer-close:hover { border-color: #b9788b; background: #392635; }
.screen-switcher button[aria-pressed="true"] { border-color: #ffad96; background: #ffbbab; color: #271420; }

.screens-section { background: #1c1622; border-block: 1px solid var(--line); padding-block: clamp(2.6rem, 5vw, 4.5rem); }
.section-heading h2 { font-size: clamp(2rem, 4.5vw, 3.65rem); font-weight: 740; letter-spacing: -.06em; line-height: 1.05; }
.section-heading p { max-width: 60ch; margin-top: .8rem; }
.screen-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; margin-top: 1.75rem; }
.screen-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(150deg, #302339, var(--surface) 68%);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: .65rem;
  transition: transform .28s var(--ease), border-color .28s;
}
.screen-card:is(:hover, :focus-within) { transform: translateY(-.3rem); border-color: #b26a7d; }
.screen-card > a { position: relative; display: block; border-radius: .62rem; }
.screen-card > a::after {
  content: "+";
  display: grid;
  place-items: center;
  position: absolute;
  inset: auto .55rem .55rem auto;
  width: 2rem;
  height: 2rem;
  border: 1px solid #c4a6bc;
  border-radius: 50%;
  background: #16101de6;
  color: #fff6f5;
  font-size: 1.3rem;
  line-height: 1;
}
.screen-card img { border-radius: .62rem; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: contain; background: #1f2327; }
.screen-card figcaption { padding: .8rem .28rem .35rem; }
h3 { font-size: 1.08rem; line-height: 1.3; }
.screen-card p, .steps p, .faq p { color: var(--soft); line-height: 1.53; margin-top: .4rem; }

.screen-viewer {
  width: min(100% - 1.25rem, 38rem);
  max-height: calc(100dvh - 1rem);
  padding: 0;
  color: var(--text);
  background: #221a29;
  border: 1px solid #886378;
  border-radius: 1.15rem;
  box-shadow: 0 1.2rem 3rem #000a;
}
.screen-viewer[open] { animation: rise .25s var(--ease) both; }
.screen-viewer::backdrop { background: #0c0813dc; backdrop-filter: blur(8px); }
html:has(.screen-viewer[open]) { overflow: hidden; }
.viewer-content { display: grid; gap: .8rem; padding: 1rem; }
.viewer-header, .viewer-controls { display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.viewer-header h2 { font-size: clamp(1rem, 3vw, 1.4rem); }
.viewer-close { padding-inline: .82rem; }
.viewer-image {
  justify-self: center;
  width: auto;
  height: min(67dvh, 46rem);
  max-width: 100%;
  object-fit: contain;
  border-radius: .6rem;
}
.viewer-position { color: var(--soft); font-variant-numeric: tabular-nums; }

.getting-started { padding-block: clamp(2.7rem, 6vw, 5rem); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; padding: 0; margin: 1.75rem 0 2.5rem; list-style-position: inside; }
.steps li { padding: 1.05rem 1rem; border: 1px solid var(--line); border-radius: .85rem; background: #221a2b; }
.steps li::marker { color: var(--accent); font-weight: 750; }
.steps h3 { display: inline; }
.faq { max-width: 58rem; }
details { border-top: 1px solid var(--line); padding: .95rem 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; font-weight: 675; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.25rem; }
details[open] summary::after { content: "−"; }
details[open] p { animation: rise .24s var(--ease) both; }
details p { max-width: 65ch; margin: .65rem 0 0; }
.footer { border-top: 1px solid var(--line); }
.footer-inner p { color: var(--muted); }
.rise-in { animation: rise .45s var(--ease) both; }

@keyframes rise {
  from { opacity: .42; translate: 0 .75rem; }
  to { opacity: 1; translate: 0; }
}
@keyframes sweep {
  0% { transform: translateY(3%); opacity: 0; }
  17%, 78% { opacity: .8; }
  100% { transform: translateY(96%); opacity: 0; }
}

.policy-layout { width: min(100% - 3.5rem, 49rem); margin-inline: auto; padding-block: 3rem 4rem; }
.policy-layout h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.07; letter-spacing: -.055em; margin-bottom: .8rem; }
.policy-layout h2 { font-size: 1.45rem; letter-spacing: -.025em; margin-top: 1.9rem; line-height: 1.23; }
.policy-layout p, .policy-layout li { line-height: 1.65; color: var(--soft); margin-top: .7rem; }
.policy-layout p a, .policy-layout li a { color: var(--accent); text-underline-offset: .2em; }
.policy-layout ul { padding-inline-start: 1.5rem; }
.policy-layout .draft { padding: .75rem .9rem; border: 1px solid #653f47; border-radius: .6rem; background: #281b25; color: var(--accent); }
.policy-layout .operator { padding: .9rem 1rem; margin-top: 1.05rem; background: var(--surface); border: 1px solid var(--line); border-radius: .65rem; }
.policy-layout .operator p { margin: 0; }
.policy-layout a { overflow-wrap: anywhere; }

@media (max-width: 58rem) {
  .screen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { gap: 2rem; }
  .screen-switcher:not([hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 44rem) {
  .wrap, .policy-layout { width: calc(100% - 2rem); }
  .landing .masthead { position: static; }
  .masthead-inner, .footer-inner { align-items: flex-start; flex-wrap: wrap; padding-block: .9rem; }
  .masthead-inner { flex-direction: column; gap: .6rem; }
  nav { gap: .4rem 1rem; }
  section[id] { scroll-margin-top: 1rem; }
  .hero { grid-template-columns: 1fr; gap: 1.7rem; padding-block: 2.45rem 2.6rem; }
  .hero h1 { max-width: 15ch; }
  .hero-visual { width: min(100%, 27rem); margin-inline: auto; }
  .visual-stage { padding-block: 1.2rem; }
  .phone { width: min(64%, 13.15rem); }
  .steps { grid-template-columns: 1fr; gap: .72rem; }
  .policy-layout { padding-top: 2rem; }
}
@media (max-width: 25rem) {
  .hero h1 { font-size: clamp(2.6rem, 12vw, 3.03rem); }
  .release-details { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .screen-grid { gap: .65rem; }
  .screen-card { padding: .4rem; }
  .screen-card p { font-size: .9rem; }
  .viewer-content { padding: .7rem; }
  .policy-layout h1 { font-size: clamp(1.6rem, 8vw, 2.15rem); overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .button:hover, .brand:hover img, .screen-card:is(:hover, :focus-within) { transform: none; }
  .visual-stage:hover .phone { transform: rotate(-5deg); }
}
