:root {
  color-scheme: dark;
  --bg: #08080a;
  --fg: #f6f5f8;
  --muted: #bbb8c3;
  --line: #33313a;
  --surface: #121117;
  --surface-raised: #18171e;
  --accent: #cabbff;
  --ease: cubic-bezier(.22,.75,.22,1);
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1:focus, #content-start:focus { outline: none; }
.shell { width: min(100% - 96px, 1280px); margin-inline: auto; }
.display { font-family: "Arial Black", "Segoe UI", sans-serif; font-weight: 900; font-style: italic; letter-spacing: -.075em; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 20; transform: translateY(-180%); background: var(--fg); color: var(--bg); padding: 10px; }
.skip:focus { transform: none; }

.header { position: sticky; top: 0; z-index: 10; background: #08080aee; border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-layout { min-height: 73px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { display: inline-flex; min-height: 44px; align-items: center; gap: 7px; padding-right: 14px; }
.wordmark { font-size: 1.65rem; letter-spacing: -.078em; transform: scaleX(1.09); transform-origin: left center; }
.brand-symbol { display: grid; width: 40px; height: 40px; background: url("assets/vortex-avatar.webp") center 48% / 155% auto no-repeat; mix-blend-mode: screen; }
.brand-symbol:has(canvas[data-ready]) { background-image: none; }
.brand-symbol canvas { width: 100%; height: 100%; display: block; }
.main-nav, .footer nav { display: flex; gap: clamp(18px, 3.4vw, 48px); align-items: center; }
.main-nav a { position: relative; display: grid; align-items: center; min-height: 44px; padding-inline: 5px; color: var(--muted); font-weight: 600; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--fg); }
.main-nav a[aria-current]::after { content: ""; height: 2px; position: absolute; bottom: 3px; inset-inline: 5px; background: var(--accent); }

.hero-shell { overflow: clip; border-bottom: 1px solid var(--line); }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, .98fr) minmax(0, 1fr); align-items: center; min-height: clamp(580px, 74vh, 790px); isolation: isolate; }
.hero-copy { z-index: 2; padding-block: 36px 68px; }
.hero h1 { font-size: clamp(3.55rem, 6.7vw, 7.45rem); line-height: .96; }
.hero h1 span { display: block; }
.hero-title-second { color: var(--accent); }
.hero p { margin-top: 21px; color: var(--muted); font-size: clamp(1.05rem,1.4vw,1.3rem); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
.button { display: inline-flex; min-height: 51px; align-items: center; justify-content: center; padding: 8px 20px; border: 1px solid transparent; border-radius: 6px; font-weight: 700; text-align: center; transition: background-color .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease); }
.button:active { transform: translateY(2px); }
.button:disabled { opacity: .6; cursor: default; }
.primary { color: #14101c; background: var(--accent); }
.primary:hover { background: #e3d9ff; }
.outline { background: transparent; color: var(--fg); border-color: #66616d; }
.outline:hover { border-color: var(--accent); }
.scene { width: 100%; aspect-ratio: 1.03; position: relative; isolation: isolate; margin-inline-start: -8px; }
.scene-art { position: absolute; inset: 0; transform: translate3d(var(--scene-x, 0), calc(var(--scene-y, 0px) + var(--scroll-y, 0px)), 0); }
.mascot { position: absolute; width: 100%; height: 100%; object-fit: contain; inset: 0 auto auto -10%; z-index: 1; pointer-events: none; }
.mascot[data-render="alpha"] { width: 84%; left: -1%; top: -1%; height: 102%; }
.orbit, .wake { position: absolute; pointer-events: none; border-radius: 50%; }
.orbit-wide { z-index: 0; width: 105%; height: 47%; left: -7%; top: 33%; transform: rotate(-24deg); border: 1px solid #62548266; border-left-color: transparent; }
.wake { z-index: 2; width: 57%; height: 31%; left: 43%; top: 47%; transform: rotate(-18deg); border: 1px solid #7d719c; border-top-color: transparent; border-bottom-color: #c7b9f1; box-shadow: 0 7px 9px -10px #d4c6ff; }
.tile { position: absolute; z-index: 3; left: 0; top: 0; width: clamp(70px,8.5vw,117px); aspect-ratio: 1.1; display: grid; place-content: center; justify-items: center; border: 1px solid #aaa4b2; border-radius: 14%; background: linear-gradient(143deg,#333039 0%,#18171d 41%,#23212b 100%); box-shadow: inset 0 0 0 3px #fff1, 4px 5px 0 #817d8a, 6px 8px 24px #000b; }
.tile b { font-size: clamp(1.3rem,2.8vw,2.45rem); line-height: 1.05; letter-spacing: -.07em; }
.tile span { font-size: clamp(.74rem,1.35vw,.92rem); margin-top: 4px; }
.tile-claude b, .product-mark.claude { color: #f4a680; }
.tile-gpt { left: 64%; top: 43%; transform: translate(-50%,-50%) rotate(9deg); }
.tile-claude { left: 86%; top: 62%; transform: translate(-50%,-50%) rotate(15deg); }
.motion-controls { position: absolute; right: 0; bottom: 12px; z-index: 4; }
.quiet { display: inline-flex; min-height: 44px; padding: 0; align-items: center; border: none; background: transparent; color: var(--muted); font-weight: 600; }
.quiet:hover, .text-link:hover { color: var(--fg); }
.quiet:disabled { opacity: .54; cursor: default; }
.text-link { text-decoration: underline; text-underline-offset: .3em; }

.section { scroll-margin-top: 86px; }
.section-head { display: flex; gap: 12px 24px; flex-wrap: wrap; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.section h2.display { font-size: clamp(2.5rem,5.3vw,5.1rem); line-height: .99; padding-right: .07em; }
.home-catalog, .home-faq { padding-block: clamp(45px,7vw,98px); }
.featured-products, .catalog-products { display: grid; gap: 15px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.product { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: clip; transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .26s var(--ease); }
.product:hover { border-color: #897aad; background: var(--surface-raised); }
@media (hover: hover) { .product:hover { transform: translateY(-4px); } }
.product-media { aspect-ratio: 2.45; display: grid; place-items: center; border-bottom: 1px solid var(--line); background: #0c0b10; overflow: clip; }
.product-mark { display: grid; place-items: center; width: 50px; aspect-ratio: 1; border: 1px solid #797385; border-radius: 9px; color: var(--fg); background: #201e28; font-weight: 880; }
.product-media .product-mark, .product-art .product-mark { width: clamp(58px,8vw,108px); font-size: clamp(1.35rem,3vw,2.5rem); background: linear-gradient(145deg,#494651,#24212b 38%,#18151d 74%,#332c42); border-color: #a39aad; box-shadow: inset 0 0 0 3px #fff1, 5px 6px 0 #52505a, 8px 10px 24px #0008; transform: rotate(-11deg) translateX(-6px); transition: transform .36s var(--ease); }
.product:hover .product-mark { transform: rotate(-2deg) translateX(1px); }
.product-mark.gemini { color: #b7c8ff; }
.product-name { display: grid; min-width: 0; padding: 16px 17px 14px; gap: 5px; }
.product-name strong { font-size: clamp(1.05rem,1.8vw,1.4rem); line-height: 1.22; overflow-wrap: anywhere; }
.product-name span, .details { color: var(--muted); font-size: .88rem; }
.product-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; align-items: baseline; justify-content: space-between; padding: 12px 17px 16px; border-top: 1px solid var(--line); }
.product-meta strong { color: var(--accent); }
.guide { background: #101015; border-block: 1px solid var(--line); padding-block: clamp(42px,7vw,92px); }
.guide-grid { display: grid; gap: clamp(30px,5vw,72px); grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); align-items: center; }
.guide-steps { padding: 0; margin: 22px 0; list-style: none; }
.guide-steps button { width: 100%; min-height: 63px; display: grid; text-align: left; gap: 4px; padding: 10px 13px; background: transparent; border: 0; border-left: 2px solid #4c465a; color: var(--fg); transition: background-color .22s var(--ease), border-color .22s var(--ease); }
.guide-steps button span { color: var(--muted); font-size: .88rem; }
.guide-steps button[aria-pressed="true"] { border-color: var(--accent); background: #211a2d; }
.guide-stage { position: relative; overflow: clip; min-height: 290px; aspect-ratio: 1.32; border: 1px solid #49414f; border-radius: 10px; background: #08080a; isolation: isolate; }
.guide-art { position: absolute; width: 100%; height: 100%; object-fit: cover; inset: 0; transition: transform .7s var(--ease), opacity .6s var(--ease); }
.guide-stage[data-step="checkout"] .guide-art { transform: scale(1.11) translate(5%,-3%) rotate(-5deg); opacity: .78; }
.guide-stage[data-step="code"] .guide-art { transform: scale(1.2) translate(3%,-8%) rotate(6deg); }
.guide-sample { position: absolute; inset: auto 14px 14px; display: flex; flex-wrap: wrap; gap: 6px 13px; align-items: center; padding: 13px; border: 1px solid #55505f; border-radius: 6px; background: #17141eeb; }
.guide-label { color: var(--muted); font-size: .87rem; }
.guide-value { margin-left: auto; color: var(--accent); font-size: .93rem; }
.faq { display: grid; max-width: 850px; gap: 9px; }
.faq details { border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.faq summary { cursor: pointer; padding: 16px; font-weight: 650; }
.faq summary::marker { color: var(--accent); }
.faq p { color: var(--muted); padding: 0 16px 16px; line-height: 1.55; }

.footer { border-top: 1px solid var(--line); background: #101014; padding-block: 36px; }
.footer-layout { display: grid; grid-template-columns: 1.35fr .72fr 1fr auto; align-items: start; gap: 16px 24px; }
.footer-brand .wordmark { display: inline-block; }
.footer-brand p { color: var(--muted); margin-top: 8px; font-size: .9rem; }
.footer nav { display: grid; justify-items: start; gap: 4px; }
.footer nav a { display: flex; align-items: center; min-height: 33px; color: var(--muted); font-size: .92rem; }
.footer nav a:hover { color: var(--fg); text-decoration: underline; }
.motion-toggle { justify-self: start; }

.shop-screen { padding-block: clamp(35px,6vw,78px) 85px; min-height: calc(100dvh - 220px); }
.shop-screen h1 { font-size: clamp(2.9rem,6.45vw,6.4rem); line-height: 1; margin-bottom: 16px; overflow-wrap: anywhere; }
.shop-screen h2 { font-size: 1.36rem; margin-bottom: 12px; }
.shop-screen p { line-height: 1.56; color: var(--muted); }
.shop-screen .intro { max-width: 62ch; }
.shop-screen .panel { padding: clamp(17px,3vw,32px); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
.shop-screen > .quiet:first-child { margin-bottom: 5px; }
.catalog-tools { display: grid; grid-template-columns: minmax(0,1fr) minmax(175px,250px); gap: 11px; margin-block: 20px 14px; }
.search { display: grid; gap: 7px; }
.search input, .search select { font: inherit; min-width: 0; min-height: 48px; color: var(--fg); padding: 9px 13px; border: 1px solid #696374; border-radius: 6px; background: var(--surface); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 9px; }
.filter { min-height: 42px; padding: 8px 14px; color: var(--fg); background: transparent; border: 1px solid #62606c; border-radius: 6px; }
.filter[aria-pressed="true"] { background: var(--accent); color: #16101c; border-color: var(--accent); }
.shop-screen .result-count { margin: 10px 0 15px; }
.catalog-products > p { grid-column: 1/-1; }
.product-layout, .account-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); align-items: start; gap: 20px; margin-top: 26px; }
.product-art { display: grid; place-items: center; min-height: 225px; background: #08080b; margin-bottom: 20px; border-radius: 6px; overflow: clip; }
.product-art img { display: block; width: 100%; height: clamp(155px,26vw,310px); object-fit: cover; }
.purchase-panel { position: sticky; top: 91px; }
.variant-list { display: grid; gap: 9px; border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.variant-list legend { font-weight: 700; margin-bottom: 12px; }
.variant { min-height: 51px; display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.variant:has(input:checked) { border-color: #aa99d9; background: #231d30; }
input[type="radio"] { accent-color: var(--accent); }
.variant span:last-child { margin-left: auto; }
.shop-screen .note { margin-top: 12px; font-size: .9rem; }
.orders-list { display: grid; gap: 7px; }
.order-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.order-row:hover strong { color: var(--accent); }
.order-row span { display: block; color: var(--muted); margin-top: 5px; }
.order-detail { max-width: 700px; margin-top: 20px; }
.order-detail p + p { margin-top: 10px; }
.shop-screen > .faq { margin-top: 23px; }
.document { margin-top: 24px; max-width: 740px; }
.document section + section { margin-top: 24px; }
.document-links { display: flex; gap: 3px 20px; flex-wrap: wrap; margin-top: 14px; }
.activation { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 20px; }
.code-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 12px; }
.code-controls input { flex: 1 1 196px; min-width: 0; width: 100%; min-height: 51px; border: 1px solid #676373; border-radius: 6px; background: #080809; color: var(--fg); font: 1rem Consolas, monospace; padding-inline: 12px; }
.activation #code-status:empty { margin: 0; }
.checkout-summary { margin: 18px 0 23px; }
.checkout-summary div { display: flex; justify-content: space-between; gap: 8px 18px; padding: 11px 0; border-top: 1px solid var(--line); }
.checkout-summary dt { color: var(--muted); }
.checkout-summary dd { margin: 0; text-align: right; }
.checkout-total { font-weight: 700; }
.checkout-total dt, .checkout-total dd { color: var(--accent); }
@media (max-width: 1000px) {
  .shell { width: calc(100% - 60px); }
  .hero { min-height: 540px; }
  .footer-layout { grid-template-columns: 1.2fr 1fr 1fr; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 36px); }
  .header-layout { min-height: 61px; gap: 8px; }
  .brand { gap: 4px; padding-right: 8px; }
  .wordmark { font-size: 1.29rem; }
  .brand-symbol { width: 29px; height: 29px; }
  .main-nav { gap: 7px; }
  .main-nav a { font-size: .87rem; padding-inline: 3px; }
  .hero { display: flex; flex-direction: column; min-height: 0; align-items: stretch; }
  .hero-copy { padding: 34px 0 0; }
  .hero h1 { font-size: clamp(2.75rem,10vw,5.3rem); }
  .hero p { margin-top: 13px; }
  .hero-actions { margin-top: 19px; }
  .desktop-break { display: none; }
  .scene { margin: 5px auto -6px; width: min(100%,445px); }
  .motion-controls { position: static; align-self: end; margin-bottom: 9px; }
  .featured-products, .catalog-products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .guide-grid, .product-layout, .account-layout { grid-template-columns: 1fr; gap: 15px; }
  .purchase-panel { position: static; }
  .product-art { min-height: 155px; }
  .footer-layout { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .shop-screen:has(.document) h1 { font-size: clamp(1.62rem,7.3vw,3rem); }
}
@media (max-width: 450px) {
  .shell { width: calc(100% - 28px); }
  .main-nav { gap: 5px; }
  .hero-actions .button { padding-inline: 12px; font-size: .91rem; }
  .catalog-tools { grid-template-columns: 1fr; }
  .product-name { padding: 11px; }
  .product-meta { padding: 9px 11px 12px; }
  .guide-sample { inset: auto 8px 8px; }
  .guide-value { margin-left: 0; }
}
@media (max-width: 345px) {
  .brand .wordmark { font-size: 1.12rem; }
  .brand-symbol { width: 23px; height: 23px; }
  .main-nav { gap: 4px; }
  .main-nav a { padding-inline: 2px; }
  .hero h1 { font-size: 2.63rem; }
  .featured-products, .catalog-products { grid-template-columns: 1fr; }
}
:root[data-motion="reduce"] * { transition-duration: 0s !important; }
:root[data-motion="reduce"] .scene-art { transform: none; }
:root[data-motion="reduce"] .product:hover { transform: none; }
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="on"]) * { transition-duration: 0s !important; }
}
.catalog-heading-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 16px; }
.catalog-heading-actions span { color: var(--muted); font-size: .88rem; }
.shop-screen .purchase-total { display: flex; gap: 12px; justify-content: space-between; border-top: 1px solid var(--line); margin-bottom: 15px; padding-top: 13px; font-weight: 700; }
.purchase-total output { color: var(--accent); }
.purchase-panel .primary { width: 100%; }
.shop-screen .order-confirmation { color: var(--accent); }
.motion-controls { display: flex; flex-wrap: wrap; justify-content: end; gap: 0 16px; }
:root[data-motion="reduce"] .button:active { transform: none; }
@media (min-width: 1001px) {
  .hero { min-height: clamp(545px,68vh,750px); }
  .home-catalog { padding-block-start: clamp(42px,4.7vw,72px); }
}
@media (max-width: 760px) {
  .guide-grid, .product-layout, .account-layout { grid-template-columns: minmax(0,1fr); }
  .guide-stage { min-width: 0; min-height: 0; }
}
.document-body { white-space: pre-line; overflow-wrap: anywhere; }
.hero-shell { position: relative; isolation: isolate; background: #07070a; }
.hero-atmosphere { position: absolute; z-index: -1; inset: 0; overflow: clip; pointer-events: none; }
.hero-atmosphere::before, .hero-atmosphere::after, #chrome-field { position: absolute; inset: 0; }
.hero-atmosphere::before {
  content: "";
  background: #07070a var(--chrome-plate) 68% center / cover no-repeat;
  opacity: .8;
}
.hero-atmosphere::after {
  content: "";
  background: linear-gradient(90deg,#08080a 0%,#08080af5 22%,#08080abc 39%,#08080a37 66%,#08080a29 100%),
    linear-gradient(0deg,#08080a 0%,#08080a00 30%);
}
#chrome-field { display: block; width: 100%; height: 100%; opacity: 0; }
.hero-atmosphere[data-renderer="webgl"] #chrome-field { opacity: 1; }
.hero-atmosphere[data-renderer="webgl"]::before { opacity: 0; }
.hero-atmosphere[data-active][data-renderer="static"]::before {
  animation: chrome-drift 16s ease-in-out infinite alternate;
  transform-origin: 80% 47%;
}
@keyframes chrome-drift {
  from { transform: scale(1.015) translate3d(-.9%,-.4%,0); }
  to { transform: scale(1.08) translate3d(.9%,.35%,0); }
}
.hero-title-second { color: #d6cbff; }
.hero-copy { text-shadow: 0 2px 22px #08080a; }
.scene .orbit-wide { opacity: .35; border-color: #b6a4df32; border-left-color: transparent; }
.scene .wake { opacity: .55; border-color: #9785b866; border-top-color: transparent; border-bottom-color: #cab8fd; }
.tile:focus-visible { outline-offset: 6px; }
.tile:hover, .tile:focus-visible { border-color: #e2d6ff; box-shadow: inset 0 0 0 3px #fff2, 4px 5px 0 #9c91ae, 0 0 25px #c5acff38; }
@media (max-width: 760px) {
  .hero-atmosphere::after {
    background: linear-gradient(180deg,#08080afa 0%,#08080ae6 32%,#08080a57 60%,#08080a90 91%,#08080a 100%);
  }
}
:root[data-motion="reduce"] .hero-atmosphere::before { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="on"]) .hero-atmosphere::before { animation: none; }
}
