:root {
  color-scheme: dark;
  --background: #07121e;
  --surface: #0d2030;
  --ink: #eff9ff;
  --muted: #b3c8d7;
  --ice: #b8edff;
  --line: #274152;
  --page: min(100% - 3rem, 72rem);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; }
p { line-height: 1.65; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid #8be2ff; outline-offset: 5px; }
.wrap { width: var(--page); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: .75rem; left: .75rem; z-index: 20; padding: .7rem 1rem; background: #102638; border-radius: .4rem; }
.site-header { position: relative; z-index: 5; border-bottom: 1px solid #243647; background: #081524; }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem 2rem; }
.header-inner { min-height: 4.9rem; }
.studio-brand, .product-brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 820; font-size: 1.12rem; letter-spacing: .1em; text-decoration: none; white-space: nowrap; }
.studio-brand { gap: 0; }
.studio-brand span { color: var(--ice); }
.product-brand img { object-fit: contain; }
nav { display: flex; flex-wrap: wrap; gap: .7rem clamp(1rem, 2vw, 1.9rem); }
nav a { text-decoration: none; color: var(--muted); font-size: .9rem; font-weight: 650; text-underline-offset: .4rem; }
nav a:hover, nav a[aria-current] { color: var(--ice); text-decoration: underline; }
.site-footer { padding-block: 1.6rem; color: var(--muted); border-top: 1px solid var(--line); background: #07121e; }
.footer-inner { flex-wrap: wrap; font-size: .9rem; }
.footer-inner > a:not(.studio-brand) { text-underline-offset: .25rem; }
.store-button, .secondary-button { display: inline-flex; justify-content: center; align-items: center; min-height: 3rem; padding: .75rem 1.15rem; border-radius: .65rem; font-size: .9375rem; font-weight: 760; text-align: center; text-decoration: none; }
.store-button { background: var(--ice); color: #092138; border: 1px solid var(--ice); }
.store-button:hover { background: #e4f8ff; border-color: #e4f8ff; }
.secondary-button { color: var(--ice); border: 1px solid #52778d; }
.secondary-button:hover { background: #173448; border-color: #9bd7ed; }

.studio main { background: radial-gradient(ellipse at 75% 3%, #17394e, transparent 50%), #0a1724; }
.studio-intro { padding-block: clamp(3.1rem, 9vw, 7rem) 3.4rem; border-bottom: 1px solid var(--line); }
.studio-intro h1 { font-size: clamp(3.6rem, 13vw, 9rem); line-height: .9; letter-spacing: -.075em; }
.studio-intro p { margin-top: 1.1rem; color: var(--muted); font-size: clamp(1rem, 2vw, 1.3rem); }
.studio-apps { padding-block: 2.15rem 5rem; }
.studio-apps h2 { margin-bottom: 1.15rem; font-size: 1.55rem; letter-spacing: -.035em; }
.app-card { position: relative; display: grid; grid-template-columns: minmax(11rem, .9fr) 1.1fr; max-width: 42rem; overflow: hidden; border: 1px solid #3e5c70; border-radius: 1rem; background: #0e2233; }
.app-card:hover, .app-card:focus-within { border-color: #a7dcf3; }
.card-art { display: grid; min-height: 15rem; place-items: center; isolation: isolate; background: radial-gradient(ellipse at center, #4a789292, transparent 66%), #102d43; }
.card-art::before { position: absolute; z-index: -1; inset: 0; content: ''; opacity: .32; background: repeating-linear-gradient(145deg, #98d5eb 0 1px, transparent 1px 24px); mask-image: radial-gradient(ellipse, black, transparent 74%); }
.card-art img { width: clamp(6rem, 11vw, 9.2rem); height: auto; border-radius: 22%; box-shadow: 0 1.2rem 1.7rem #0008; }
.card-copy { padding: clamp(1.15rem, 3vw, 1.8rem); }
.card-copy h3 { font-size: 1.7rem; letter-spacing: -.045em; }
.card-link { text-decoration: none; }
.card-link::after { content: ''; position: absolute; inset: 0; }
.card-link:focus-visible { outline: none; }
.app-card:has(.card-link:focus-visible) { outline: 3px solid #8be2ff; outline-offset: 5px; }
.card-copy p { margin-block: .45rem .9rem; color: var(--muted); }
.visit { display: block; margin-bottom: .75rem; color: var(--ice); text-decoration: underline; text-underline-offset: .2rem; font-weight: 650; }
.card-copy .store-button { position: relative; z-index: 1; }

.product main { background: radial-gradient(ellipse at 80% 12%, #15384d, transparent 54%); }
.hero { min-height: 37rem; display: grid; grid-template-columns: .94fr 1.06fr; align-items: center; gap: clamp(1rem, 3vw, 4rem); padding-block: 4.1rem 4.6rem; }
.eyebrow { color: var(--ice); font-weight: 730; font-size: .9rem; letter-spacing: .06em; }
.hero h1 { margin-block: .85rem 1.3rem; font-size: clamp(3.1rem, 6.1vw, 6.4rem); line-height: .9; letter-spacing: -.073em; font-weight: 790; }
.hero h1 em { font-style: normal; color: var(--ice); }
.hero-copy > p:not(.eyebrow) { max-width: 30rem; color: var(--muted); font-size: 1.09rem; }
.hero-actions { margin-top: 1.65rem; display: flex; flex-wrap: wrap; gap: .65rem; }
.gallery { min-width: 0; }
.gallery-deck { position: relative; height: clamp(18rem, 31vw, 25.25rem); perspective: 60rem; }
.poster { position: absolute; inset: 3% auto 3% 50%; width: 42%; overflow: hidden; background: #244354; border: 1px solid #97cfe085; border-radius: 1.1rem; box-shadow: 0 1.6rem 2.4rem #050d15a8; transition: transform .4s ease, filter .4s ease; }
.poster img { height: 100%; width: 100%; object-fit: cover; }
.poster::after { content: ''; position: absolute; inset: 42% 0 0; background: linear-gradient(transparent, #050c16f2); }
.poster span { position: absolute; z-index: 1; bottom: 7%; left: 10%; right: 10%; font-size: clamp(.8rem, 2vw, 1.5rem); font-weight: 760; line-height: 1.12; letter-spacing: -.035em; }
.poster[data-slot='center'] { z-index: 3; transform: translateX(-50%) rotate(-3deg); }
.poster[data-slot='left'] { z-index: 1; transform: translateX(-113%) rotate(-12deg) scale(.8); filter: brightness(.76); }
.poster[data-slot='right'] { z-index: 2; transform: translateX(13%) rotate(10deg) scale(.85); filter: brightness(.82); }
.gallery figcaption { display: flex; min-height: 2.8rem; align-items: center; justify-content: center; flex-wrap: wrap; gap: .55rem 1rem; color: var(--muted); font-size: .86rem; }
.gallery-controls:not([hidden]) { display: inline-flex; gap: .45rem; }
.gallery-controls button { width: 2.6rem; height: 2.6rem; padding: 0 0 .17rem; border: 1px solid #5f8194; border-radius: 50%; background: #112536; color: var(--ice); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.gallery-controls button:hover { background: #24485e; }

.features { padding-block: clamp(3rem, 7vw, 6rem); background: #dceef6; color: #112738; }
.feature-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.6rem, 6vw, 5rem); align-items: center; }
.feature-copy h2 { font-size: clamp(2.15rem, 4.5vw, 3.65rem); line-height: .98; letter-spacing: -.067em; }
.feature-copy dl { margin-block: 1.5rem; }
.feature-copy dl > div { border-top: 1px solid #a2c4d5; padding-block: .55rem .75rem; }
.feature-copy dt { font-size: 1.05rem; font-weight: 760; }
.feature-copy dd { color: #2f4f61; line-height: 1.48; }
.feature-copy > p { color: #385567; font-size: .9rem; }
.device-demo { position: relative; padding: 4% 12% 10% 0; }
.demo-tv, .demo-phone { background: #081624; color: #e5f6ff; box-shadow: 0 1.1rem 2rem #17344945; border: min(.65vw, .55rem) solid #243543; }
.demo-tv { border-radius: .9rem; aspect-ratio: 1.54; padding: 3.5%; overflow: hidden; }
.demo-brand { display: flex; gap: .3rem; align-items: center; font-size: clamp(.45rem, 1vw, .74rem); font-weight: 820; letter-spacing: .08em; }
.demo-brand img { width: clamp(.7rem, 2vw, 1.35rem); height: auto; }
.demo-banner { display: grid; align-content: end; gap: .2rem; margin-top: .35rem; padding: 5%; height: 58%; border-radius: .42rem; background: linear-gradient(92deg, #0b192a 12%, #0b192a32 87%), url('polar.webp') 52% 42% / cover; font-size: clamp(.48rem, 1vw, .75rem); }
.demo-banner strong { font-size: clamp(.84rem, 2vw, 1.8rem); letter-spacing: -.04em; }
.demo-play { width: max-content; background: #c5edff; color: #0c2434; border-radius: .23rem; padding: .18rem .35rem; font-weight: 750; }
.demo-row { display: flex; gap: .28rem; margin-top: .35rem; }
.demo-row img { width: 23%; height: auto; aspect-ratio: 1.44; object-fit: cover; border-radius: .25rem; }
.demo-phone { position: absolute; right: 0; bottom: 0; width: 29%; aspect-ratio: .55; border-radius: .85rem; transform: rotate(6deg); padding: 2%; overflow: hidden; font-size: clamp(.4rem, .95vw, .65rem); }
.demo-phone-cover { width: 100%; height: 58%; object-fit: cover; margin-block: .3rem; border-radius: .23rem; }
.demo-phone .demo-row img { width: calc(50% - .14rem); }

.legal { max-width: 48rem; padding-block: clamp(2.7rem, 7vw, 5.5rem); }
.legal h1 { margin-bottom: .65rem; font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: .98; letter-spacing: -.06em; }
.legal h2 { margin-top: 2.25rem; margin-bottom: .65rem; font-size: 1.28rem; }
.legal p, .legal li { color: var(--muted); line-height: 1.7; }
.legal p + p { margin-top: .7rem; }
.legal .meta { margin-bottom: 1.5rem; font-size: .9rem; }
.legal a { color: var(--ice); text-underline-offset: .2rem; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .hero, .feature-grid { grid-template-columns: 1fr; }
  .hero { gap: 2rem; padding-block: 3rem 2.3rem; }
  .hero h1 { font-size: clamp(3.1rem, 11vw, 5.25rem); }
  .gallery { max-width: 31rem; width: 100%; margin-inline: auto; }
  .gallery-deck { height: clamp(15rem, 63vw, 23rem); }
  .device-demo { max-width: 33rem; width: 100%; }
}
@media (max-width: 455px) {
  :root { --page: calc(100% - 2rem); }
  .product .header-inner { min-height: auto; flex-direction: column; align-items: flex-start; gap: .7rem; padding-block: .8rem; }
  .app-card { grid-template-columns: 1fr; }
  .card-art { min-height: 9.75rem; }
  .footer-inner { gap: .6rem 1rem; }
}
@media (prefers-reduced-motion: reduce) { .poster { transition: none; } }
