/* Skyframe XR landing site. Colours, type and spacing come from tokens.css (copied from the hub's brand/). */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.5; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--orange); color: var(--on-orange); padding: 8px 16px; border-radius: var(--radius-pill); }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.muted { color: var(--ink-muted); }
.center { text-align: center; }
.eyebrow { font-family: var(--font-display); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange-deep); margin: 0 0 var(--space-4); }
.heading-xl { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 var(--space-4); text-wrap: balance; }
.display { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 7vw, 88px); line-height: 1; letter-spacing: -0.03em; margin: 0 0 var(--space-4); }
.heading-2, .heading-3 { margin: 0 0 var(--space-3); }
.body-lg { margin: 0 0 var(--space-4); }
.caption { margin: var(--space-6) auto 0; max-width: 1200px; padding: 0 var(--space-6); }

/* Buttons (brand components: orange pill primary, outline secondary) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body); font-weight: 600; font-size: 16px; line-height: 1; padding: 16px 28px; border-radius: var(--radius-pill); border: var(--border-outline) solid transparent; text-decoration: none; cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: var(--on-orange); box-shadow: 0 8px 28px rgba(254,160,0,.28); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-dark { background: #111111; color: #FFFBF7; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(16px, 4vw, 48px); transition: background .3s ease, padding .3s ease, box-shadow .3s ease; }
.nav.solid { background: rgba(17,17,17,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 12px; padding-bottom: 12px; box-shadow: 0 1px 0 rgba(255,251,247,.08); }
.nav.light.solid { background: rgba(255,251,247,.88); box-shadow: 0 1px 0 var(--line); }
.nav-logo img { height: 34px; width: auto; }
.nav .logo-black { display: none; }
.nav.light.solid .logo-white { display: none; }
.nav.light.solid .logo-black { display: block; }
.nav-links { display: flex; align-items: center; gap: clamp(12px, 2.2vw, 28px); font-size: 14px; font-weight: 500; }
.nav-links a:not(.btn) { text-decoration: none; color: #FFFBF7; opacity: .86; }
.nav.light.solid .nav-links a:not(.btn) { color: #111111; }
.nav-links a:not(.btn):hover { opacity: 1; color: var(--orange); }
@media (max-width: 860px) { .nav-links a:not(.btn):not(.nav-portal) { display: none; } }
@media (max-width: 480px) { .nav-portal { display: none; } }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: radial-gradient(120% 90% at 70% 60%, #1c1408 0%, #111111 55%, #0a0a0a 100%); color: #FFFBF7; isolation: isolate; }
.hero-dots { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-headset { position: absolute; right: -6vw; bottom: 0; width: min(72vw, 1100px); z-index: 1; will-change: transform; -webkit-mask-image: radial-gradient(70% 70% at 55% 60%, #000 55%, transparent 100%); mask-image: radial-gradient(70% 70% at 55% 60%, #000 55%, transparent 100%); }
.hero-headset img { width: 100%; height: auto; }
.hero-copy { position: relative; z-index: 2; max-width: 760px; padding: 120px clamp(20px, 6vw, 96px) 96px; }
.hero .eyebrow { color: var(--orange); }
.hero-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 7.4vw, 104px); line-height: .98; letter-spacing: -0.035em; margin: 0 0 var(--space-6); text-wrap: balance; }
.hero-sub { color: #E9E1D6; max-width: 520px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-8); }
.hero .btn-ghost { border-color: #FFFBF7; color: #FFFBF7; }
.hero .btn-ghost:hover { background: #FFFBF7; color: #111111; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; z-index: 2; width: 26px; height: 42px; border: 1.5px solid rgba(255,251,247,.5); border-radius: 14px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--orange); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 760px) {
  .hero { align-items: flex-end; }
  .hero-headset { width: 125vw; right: -32vw; top: 64px; bottom: auto; opacity: .85; }
  .hero-headset { -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 98%); mask-image: linear-gradient(180deg, #000 55%, transparent 98%); }
  .hero-copy { padding-top: 46vh; }
  .hero-copy { padding-bottom: 88px; }
}

/* Scroll story */
.story { position: relative; height: 340vh; background: #111111; color: #FFFBF7; }
.story-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.story-layer { position: absolute; inset: 0; opacity: 0; will-change: opacity, transform; }
.story-layer[data-layer="0"] { opacity: 1; }
.story-layer img { width: 100%; height: 100%; object-fit: cover; }
.story-blueprint { background: #111111; }
.story-real { opacity: 1; clip-path: inset(0 100% 0 0); }
.story-wipe { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--orange); box-shadow: 0 0 24px 6px rgba(254,160,0,.6); opacity: 0; pointer-events: none; }
.blueprint-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(254,160,0,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(254,160,0,.10) 1px, transparent 1px); background-size: 48px 48px; mix-blend-mode: screen; }
.story-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,17,17,.82) 0%, rgba(17,17,17,.45) 38%, rgba(17,17,17,0) 65%), linear-gradient(0deg, rgba(17,17,17,.6), rgba(17,17,17,0) 40%); pointer-events: none; }
.story-captions { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 clamp(20px, 6vw, 96px); pointer-events: none; }
.story-caption { position: absolute; max-width: 560px; opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.story-caption.on { opacity: 1; transform: none; }
.story-caption .eyebrow { color: var(--orange); }
.story-caption .body-lg { color: #E9E1D6; }
.story-progress { position: absolute; right: clamp(16px, 4vw, 48px); top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.story-progress li { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,251,247,.3); transition: background .3s, transform .3s; }
.story-progress li.on { background: var(--orange); transform: scale(1.4); }
@media (max-width: 760px) { .story-captions { align-items: flex-end; padding-bottom: 72px; } .story-shade { background: linear-gradient(0deg, rgba(17,17,17,.9) 0%, rgba(17,17,17,.4) 55%, rgba(17,17,17,0) 80%); } }

/* Sections */
section { position: relative; }
.section-head { max-width: 860px; margin: 0 auto var(--space-12); padding: 0 var(--space-6); text-align: center; }
.inside, .gallery, .developers { background: #111111; color: #FFFBF7; padding: var(--space-24) 0; }
.inside .eyebrow, .gallery .eyebrow, .developers .eyebrow { color: var(--orange); }
.inside .muted, .gallery .muted, .developers .muted { color: #B8B0A6; }

/* Look-around viewer */
.viewer { position: relative; margin: 0 auto; width: min(1200px, calc(100% - 32px)); aspect-ratio: 16 / 8; border-radius: var(--radius-lg); overflow: hidden; cursor: grab; touch-action: pan-y; background: #1C1C1C; box-shadow: 0 30px 80px rgba(0,0,0,.6); user-select: none; -webkit-user-select: none; }
.viewer:active { cursor: grabbing; }
.viewer-pane { position: absolute; top: -7%; left: -10%; width: 120%; height: 114%; will-change: transform; transition: transform .08s linear; }
.viewer-pane img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.viewer-frame { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,251,247,.12), inset 0 0 120px 30px rgba(0,0,0,.55); }
.hotspot { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 10px; pointer-events: auto; }
.hotspot b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: var(--on-orange); font: 700 13px/1 var(--font-display); box-shadow: 0 0 0 0 rgba(254,160,0,.6); animation: pulse 2.4s infinite; }
.hotspot em { font-style: normal; font-size: 13px; font-weight: 500; background: rgba(41,41,41,.92); color: #FFFBF7; padding: 8px 12px; border-radius: var(--radius-sm); max-width: 220px; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; }
.hotspot:hover em, .hotspot:focus-within em, .viewer.touch .hotspot em { opacity: 1; transform: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(254,160,0,.55); } 70% { box-shadow: 0 0 0 16px rgba(254,160,0,0); } 100% { box-shadow: 0 0 0 0 rgba(254,160,0,0); } }
.viewer-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); background: rgba(17,17,17,.75); color: #FFFBF7; font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: var(--radius-pill); display: flex; gap: 8px; align-items: center; transition: opacity .4s; pointer-events: none; }
.viewer-hint.gone { opacity: 0; }
.hint-hand { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--orange); animation: sway 1.6s ease-in-out infinite; }
@keyframes sway { 0%,100% { transform: translateX(-6px); } 50% { transform: translateX(6px); } }
@media (max-width: 760px) { .viewer { aspect-ratio: 4 / 5; } .viewer-pane { left: -55%; width: 210%; top: -4%; height: 108%; } }

/* How it works (Paper) */
.paper { background: var(--paper); color: var(--ink); padding: var(--space-24) var(--space-6); }
.steps { list-style: none; margin: 0 auto; padding: 0; max-width: 1200px; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-8); position: relative; overflow: hidden; }
.step::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--orange); transition: width .9s ease .2s; }
.step.in::after { width: 100%; }
.step-num { font: 600 14px/1 var(--font-mono); color: var(--orange-deep); letter-spacing: .1em; display: block; margin-bottom: var(--space-6); }
.step p { margin: 0; color: var(--ink-muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.code-demo { max-width: 1200px; margin: var(--space-16) auto 0; display: grid; grid-template-columns: 420px 1fr; gap: var(--space-16); align-items: center; }
.code-card { background: #292929; color: #FFFBF7; border-radius: var(--radius-lg); padding: var(--space-8); box-shadow: 0 30px 60px rgba(17,17,17,.25); transform: perspective(900px) rotateY(10deg) rotateX(4deg); transition: transform .3s ease; }
.code-badge { width: 44px; height: 44px; margin-bottom: var(--space-6); }
.code-card .label { margin: 0 0 var(--space-3); color: #B8B0A6; }
.code-field { font: 600 clamp(24px, 3vw, 32px)/1 var(--font-mono); letter-spacing: .2em; background: #111111; border: 1.5px solid #3A3A3A; border-radius: var(--radius-md); padding: 20px 18px; margin-bottom: var(--space-6); min-height: 74px; display: flex; align-items: center; }
.caret { display: inline-block; width: 3px; height: 1em; background: var(--orange); margin-left: 4px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.code-copy .body-lg { color: var(--ink-muted); }
@media (max-width: 960px) { .code-demo { grid-template-columns: 1fr; gap: var(--space-8); } .code-card { transform: none; } }

/* Gallery cards */
.cards { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-6); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.card { margin: 0; background: #1C1C1C; border: 1px solid #3A3A3A; border-radius: var(--radius-lg); overflow: hidden; transform-style: preserve-3d; transition: transform .25s ease, border-color .25s; }
.card:hover { border-color: rgba(254,160,0,.6); }
.card img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.card figcaption { padding: var(--space-6); }
.card p { margin: 0; color: #B8B0A6; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr; } }

/* Developers */
.dev-grid { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-6); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: start; }
.developers .btn-ghost { border-color: #FFFBF7; color: #FFFBF7; margin-top: var(--space-4); }
.developers .btn-ghost:hover { background: #FFFBF7; color: #111111; }
.outcomes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.outcomes li { border-top: 2px solid var(--orange); padding-top: var(--space-4); }
.outcomes p { margin: 0; color: #B8B0A6; }
@media (max-width: 960px) { .dev-grid, .outcomes { grid-template-columns: 1fr; } }

/* Demo CTA (Ink text on Frame Orange only) */
.demo { background: var(--orange); color: #111111; padding: var(--space-24) var(--space-6); overflow: hidden; }
.demo::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(#111111 1.2px, transparent 1.6px); background-size: 14px 14px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); opacity: .18; pointer-events: none; }
.demo-inner { position: relative; max-width: 760px; margin: 0 auto; text-align: center; }
.demo-form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-8); text-align: left; }
.demo-form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.demo-form .wide { grid-column: 1 / -1; }
.demo-form input, .demo-form textarea { font: 400 16px/1.4 var(--font-body); color: #111111; background: #FFFBF7; border: 1.5px solid #111111; border-radius: var(--radius-md); padding: 14px 16px; width: 100%; }
.demo-form input:focus, .demo-form textarea:focus { outline: 3px solid #111111; outline-offset: 1px; }
.demo-form .btn { margin-top: var(--space-2); padding: 18px; }
@media (max-width: 600px) { .demo-form { grid-template-columns: 1fr; } }

/* Footer (Charcoal, white logo, credit line) */
.footer { background: #292929; color: #FFFBF7; padding: var(--space-16) var(--space-6); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; gap: var(--space-3); justify-items: start; }
.footer-inner img { height: 38px; width: auto; margin-bottom: var(--space-3); }
.footer-tag { font: 700 20px/1.2 var(--font-display); margin: 0; }
.footer-credit { margin: 0; color: #E9E1D6; }
.footer-links { display: flex; gap: var(--space-6); flex-wrap: wrap; margin: var(--space-4) 0; }
.footer-links a { color: #FFFBF7; text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--orange); }
.footer .caption { margin: 0; padding: 0; color: #B8B0A6; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: .1s; } .hero .reveal:nth-child(3) { transition-delay: .2s; } .hero .reveal:nth-child(4) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span, .hotspot b, .hint-hand, .caret { animation: none; }
  .story { height: auto; }
  .story-stage { position: relative; height: 100svh; }
}
