/* Pane — panemac.com
   Studio optical glass aesthetic: volumetric WebGL light field, precision architectural grid,
   true-proportion hardware models, spring-damped motion, and cursor-reactive specular glass. */

:root {
  --bg: #070910;
  --card: rgba(18, 21, 30, .68);
  --card-solid: #12151E;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #F4F6FA;
  --muted: #9CA4B4;
  --faint: #687082;
  --accent: #7C9BFF;
  --accent-bright: #9FB7FF;
  --cyan: #67E2FF;
  --online: #3DD68C;
  --max: 1220px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .75, .15, 1);
  --spring: cubic-bezier(.22, 1.15, .36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
main { overflow-x: clip; position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }

/* Language switch */
html[data-lang="zh"] .en,
html[data-lang="en"] .zh { display: none !important; }
html:not([data-lang]) .en { display: none !important; }

h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
html[data-lang="zh"] :is(h1, h2, h3) { word-break: keep-all; overflow-wrap: anywhere; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* ---------- Scroll Progress Hairline ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 90;
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
  background: linear-gradient(90deg, #5B7CFF 0%, #7C9BFF 55%, #67E2FF 100%);
  box-shadow: 0 0 12px rgba(103, 226, 255, .65);
}

/* ---------- Living Volumetric Optical Background ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(100% 70% at 72% 10%, rgba(56, 86, 200, .24) 0%, rgba(12, 16, 30, 0) 62%),
    linear-gradient(180deg, #070912 0%, #070910 60%, #05060B 100%);
}
#bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* Precision architectural hairline grid revealed softly around the cursor */
.bg-grid {
  position: absolute;
  inset: 0;
  --gx: 55%;
  --gy: 35%;
  background-image:
    linear-gradient(rgba(165, 190, 255, .065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(165, 190, 255, .065) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image:
    radial-gradient(560px 460px at var(--gx) var(--gy), rgba(0,0,0,.95) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.08) 100%);
  mask-image:
    radial-gradient(560px 460px at var(--gx) var(--gy), rgba(0,0,0,.95) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.08) 100%);
}
/* Subtle drifting optical glass panes echoing the "Pane" brand motif */
.bg-pane {
  position: absolute;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(255,255,255,.026) 0%, rgba(124,155,255,.014) 45%, rgba(255,255,255,0) 100%);
  border: 1px solid rgba(255, 255, 255, .032);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  -webkit-mask-image: radial-gradient(85% 85% at 50% 45%, #000 30%, transparent 100%);
  mask-image: radial-gradient(85% 85% at 50% 45%, #000 30%, transparent 100%);
  will-change: transform;
}
.bg-pane-a {
  right: -8vw;
  top: 8vh;
  width: 44vw;
  height: 60vh;
  transform: rotate(-11deg);
}
.bg-pane-b {
  left: -12vw;
  bottom: -6vh;
  width: 38vw;
  height: 48vh;
  transform: rotate(9deg);
  border-color: rgba(124, 155, 255, .045);
}
.bg-grain {
  position: absolute;
  inset: -50%;
  opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Staged studio floor & lighting helpers */
.floor {
  position: absolute; left: -8%; right: -8%; height: 240px; pointer-events: none; z-index: -1;
  background:
    linear-gradient(90deg, transparent, rgba(165, 192, 255, .14) 28%, rgba(255,255,255,.18) 50%, rgba(165, 192, 255, .14) 72%, transparent) top / 100% 1px no-repeat,
    radial-gradient(56% 100% at 50% 0, rgba(124,155,255,.16), rgba(124,155,255,0) 70%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0) 58%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.contact {
  position: absolute; pointer-events: none; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.92), rgba(0,0,0,0));
  filter: blur(8px);
}
.keylight {
  position: absolute; left: 50%; top: -12%; width: 120%; height: 110%; transform: translateX(-50%); pointer-events: none; z-index: -1;
  background: radial-gradient(44% 48% at 50% 0, rgba(165,195,255,.18), rgba(124,155,255,.07) 45%, rgba(124,155,255,0) 72%);
}

/* Cursor-reactive Spotlight Glass Card */
.spot-card {
  position: relative;
  border-radius: 20px;
  background: rgba(15, 18, 27, .56);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 20px 44px -26px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden;
  transition: border-color .35s ease, transform .35s var(--ease), background-color .35s ease, box-shadow .35s ease;
}
.spot-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
  background: radial-gradient(320px circle at var(--sx, 50%) var(--sy, 50%), rgba(124, 155, 255, .16), transparent 65%);
}
.spot-card:hover {
  border-color: rgba(145, 175, 255, .28);
  background: rgba(20, 24, 36, .68);
  transform: translateY(-2px);
}
.spot-card:hover::before { opacity: 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(7, 9, 16, 0);
  border-bottom: 1px solid transparent;
  transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.site-header.scrolled {
  background: rgba(8, 10, 18, .72);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border-bottom-color: rgba(255,255,255,.07);
  box-shadow: 0 12px 36px -18px rgba(0,0,0,.8);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }

.site-nav {
  display: inline-flex; align-items: center; gap: 2px; padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .07);
}
.site-nav a {
  font-size: 13px; color: var(--muted); padding: 6px 13px; border-radius: 999px;
  transition: color .2s ease, background-color .2s ease;
}
.site-nav a:hover { color: var(--text); }
.site-nav a.on { background: rgba(124, 155, 255, .16); color: #E8EEFF; box-shadow: inset 0 0 0 1px rgba(124,155,255,.24); }

.header-right { display: flex; align-items: center; gap: 12px; }
.header-dl {
  font-size: 13px; font-weight: 600; color: #070910; background: var(--text);
  padding: 7px 15px; border-radius: 999px;
  transition: background-color .2s ease, transform .2s var(--ease), box-shadow .2s ease;
}
.header-dl:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px -4px rgba(255,255,255,.35); }
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; background: rgba(255,255,255,.025); }
.lang-switch button {
  appearance: none; border: 0; background: transparent; color: var(--muted);
  font: inherit; font-size: 13px; line-height: 1; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  transition: color .2s ease, background-color .2s ease;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"] { background: rgba(255,255,255,.13); color: var(--text); }
:is(button, a):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; white-space: nowrap;
  transition: background-color .25s ease, border-color .25s ease, transform .25s var(--ease), box-shadow .25s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; position: relative; z-index: 1; }
.btn > span { position: relative; z-index: 1; }
.btn-primary {
  background: linear-gradient(135deg, #8DA9FF 0%, #6D8EFF 55%, #5C7DF8 100%);
  color: #06080F;
  box-shadow: 0 12px 34px -10px rgba(112,145,255,.72), inset 0 1px 0 rgba(255,255,255,.45);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px -10px rgba(124,155,255,.88), inset 0 1px 0 rgba(255,255,255,.6);
}
.btn-primary:active { transform: translateY(0) scale(.985); }
.btn-sheen {
  position: absolute !important; inset: 0; pointer-events: none; z-index: 0 !important;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.45) 48%, transparent 72%);
  transform: translateX(-130%);
  transition: transform .8s var(--ease);
}
.btn-primary:hover .btn-sheen { transform: translateX(130%); }
.btn-ghost {
  border: 1px solid rgba(255,255,255,.14); color: var(--text);
  background: rgba(255,255,255,.04);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn-ghost .note { color: var(--muted); font-weight: 400; }
.btn[aria-disabled="true"] { cursor: default; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px) scale(.985); filter: blur(8px); transition: opacity .95s var(--ease), transform .95s var(--ease), filter .95s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }

/* ---------- Typography blocks ---------- */
.kicker {
  margin: 0 0 16px; color: var(--accent-bright); font-size: 13px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
}
.kicker::before {
  content: ""; width: 16px; height: 1.5px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
}
.display {
  margin: 0;
  font-size: clamp(34px, 5.2vw, 62px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.03em;
  background: linear-gradient(180deg, #FFFFFF 28%, #B2BBD0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin: 22px 0 0; color: var(--muted); font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.72; max-width: 33em; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 28px 0 32px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 4.9fr) minmax(0, 7.1fr); gap: 28px; align-items: center; min-height: min(790px, calc(100vh - 66px)); }
.hero-copy { position: relative; z-index: 3; padding-block: 12px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 24px; padding: 7px 15px 7px 10px;
  border: 1px solid rgba(124, 155, 255, .22); border-radius: 999px;
  background: rgba(18, 22, 36, .62);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px -10px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08);
  color: var(--muted); font-size: 13px;
  opacity: 0; animation: fade-up .9s .05s var(--ease) forwards;
}
.hero .eyebrow b { color: var(--text); font-weight: 600; }
.hero .eyebrow .dot {
  position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--online); margin-left: 4px;
  box-shadow: 0 0 10px rgba(61,214,140,.85);
}
.hero .eyebrow .dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid rgba(61,214,140,.6);
  animation: beacon 2.4s ease-out infinite;
}
@keyframes beacon { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }

.hero h1 { margin: 0; font-size: clamp(36px, 4.2vw, 56px); line-height: 1.08; font-weight: 700; letter-spacing: -.03em; }
html[data-lang="zh"] .hero h1 { letter-spacing: -.012em; line-height: 1.16; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero h1 .line > span {
  display: inline-block;
  background: linear-gradient(125deg, #FFFFFF 22%, #DCE6FF 55%, #A5B6DC 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(108%); animation: rise 1.05s var(--ease) forwards;
}
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
@keyframes rise { to { transform: none; } }
.hero .lede { margin: 22px 0 0; max-width: 30em; font-size: clamp(16px, 1.3vw, 18px); opacity: 0; animation: fade-up .95s .26s var(--ease) forwards; }
.hero .actions { justify-content: flex-start; margin-top: 24px; opacity: 0; animation: fade-up .95s .38s var(--ease) forwards; }
.hero-facts {
  list-style: none; margin: 26px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.08);
  display: grid; grid-template-columns: 1fr; gap: 11px;
  opacity: 0; animation: fade-up .95s .5s var(--ease) forwards;
}
.hero-facts li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: center; }
.hero-facts .hf-ic {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(124,155,255,.1); border: 1px solid rgba(124,155,255,.2); color: var(--accent-bright);
}
.hero-facts svg { width: 17px; height: 17px; }
.hero-facts b { display: inline; font-size: 14.5px; font-weight: 600; color: var(--text); margin-right: 10px; }
.hero-facts li > span:last-child > span { display: inline; font-size: 14px; color: var(--muted); line-height: 1.5; }

.hero-req { margin: 20px 0 0; font-size: 13px; color: var(--faint); opacity: 0; animation: fade-up .95s .6s var(--ease) forwards; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 38px; }

/* Hero 3D interactive stage */
.hero-stage {
  position: relative;
  width: calc(100% + max(0px, (100vw - var(--max)) / 2) + 28px);
  margin-right: calc(-1 * (max(0px, (100vw - var(--max)) / 2) + 28px));
  aspect-ratio: 1.32;
  perspective: 2800px;
  perspective-origin: 48% 26%;
}
.hero-stage > * { position: absolute; }

/* Studio screen-cast lighting that adapts to active app color */
.room-light {
  left: -8%; top: -18%; width: 106%; height: 104%; pointer-events: none; z-index: -1;
  background:
    radial-gradient(46% 50% at 44% 48%, rgba(92,128,255,.46), rgba(92,128,255,0) 70%),
    radial-gradient(36% 40% at 64% 38%, rgba(114,88,242,.34), rgba(114,88,242,0) 68%),
    radial-gradient(44% 44% at 78% 66%, rgba(80,210,255,.22), rgba(80,210,255,0) 70%);
  filter: blur(32px);
  transition: filter 1s ease, opacity 1s ease;
  animation: screen-breathe 8s ease-in-out infinite alternate;
}
.hero-stage[data-active-app="agent"] .room-light {
  background:
    radial-gradient(46% 50% at 44% 48%, rgba(56,196,138,.36), rgba(56,196,138,0) 70%),
    radial-gradient(38% 42% at 64% 40%, rgba(84,124,255,.32), rgba(84,124,255,0) 70%),
    radial-gradient(44% 44% at 78% 66%, rgba(61,214,140,.24), rgba(61,214,140,0) 70%);
}
.hero-stage[data-active-app="image"] .room-light {
  background:
    radial-gradient(46% 50% at 44% 48%, rgba(236,144,92,.36), rgba(236,144,92,0) 70%),
    radial-gradient(38% 42% at 62% 38%, rgba(148,92,226,.36), rgba(148,92,226,0) 70%),
    radial-gradient(44% 44% at 78% 66%, rgba(245,168,112,.26), rgba(245,168,112,0) 70%);
}
@keyframes screen-breathe { from { opacity: .82; transform: scale(1); } to { opacity: 1; transform: scale(1.05); } }

.desk-pool {
  left: -14%; right: 2%; top: 64%; height: 48%; pointer-events: none; z-index: -1;
  background:
    linear-gradient(90deg, transparent, rgba(160,185,255,.12) 25%, rgba(255,255,255,.14) 55%, transparent) top / 100% 1px no-repeat,
    radial-gradient(48% 42% at 46% 10%, rgba(114,140,255,.30), rgba(114,140,255,0) 70%),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,0) 52%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 84%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 84%, transparent);
}
.phone-pool {
  right: 0%; width: 32%; top: 82%; height: 20%; pointer-events: none; z-index: -1; opacity: 0;
  background: radial-gradient(50% 50% at 50% 30%, rgba(124,180,255,.42), rgba(124,180,255,0) 72%);
  filter: blur(12px);
  transition: opacity 1.2s ease;
}
.hero-stage.moved .phone-pool { opacity: 1; }

/* Optical streaming beam connecting Mac window to iPhone */
.hero-beam {
  inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none;
  opacity: 0; transition: opacity .9s var(--ease);
}
.hero-stage.moved .hero-beam { opacity: 1; }
.hb-track { stroke: rgba(124,155,255,.16); stroke-width: 1.5; }
.hb-glow { stroke-width: 2.2; opacity: .75; }
.hb-pulse {
  stroke: #9AEBFF; stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 26 240;
  animation: hb-fwd 2.1s linear infinite;
}
.hb-ret {
  stroke: #4AE8A0; stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 8 280; opacity: .75;
  animation: hb-back 2.9s linear infinite;
}
@keyframes hb-fwd { from { stroke-dashoffset: 266; } to { stroke-dashoffset: 0; } }
@keyframes hb-back { from { stroke-dashoffset: 288; } to { stroke-dashoffset: 0; } }

/* Specular glass sweep overlay for hardware screens */
.glass-sheen {
  position: absolute; inset: -30%; z-index: 9; pointer-events: none;
  background: linear-gradient(120deg, transparent 36%, rgba(255,255,255,.07) 48%, rgba(160,205,255,.11) 51%, transparent 62%);
  transform: translate3d(var(--shx, -8%), var(--shy, 0%), 0);
  transition: transform .15s linear;
}

/* MacBook Pro, three-quarter view */
.mbp { left: 0; top: 4%; width: 79%; transform-style: preserve-3d; opacity: 0; animation: device-in 1.3s .35s var(--ease) forwards; }
.mbp-body { position: relative; transform-style: preserve-3d; transform: rotateY(-17deg) rotateX(4deg); will-change: transform; }
.mbp-lid { position: relative; transform-origin: 50% 100%; transform: rotateX(4deg); transform-style: preserve-3d; }
.mbp .mb-lid {
  padding: 1.2% 1.2% 1.5%; border-radius: 3% / 4.6%;
  background: linear-gradient(#050506, #050506) padding-box, linear-gradient(155deg, #747B8C, #242830 28%, #474D5A 58%, #1A1D24) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 0 0 1px #000, 0 36px 96px -22px rgba(72,102,230,.46), 0 0 1px 1px rgba(255,255,255,.06);
}
.mbp-deck { position: absolute; left: 0; top: 100%; width: 100%; aspect-ratio: 1554 / 1060; transform-origin: 50% 0; transform: rotateX(70deg); transform-style: preserve-3d; }
.mbp-deck .deck {
  border-radius: 0 0 46px 46px; overflow: hidden;
  background:
    radial-gradient(74% 38% at 50% 0, rgba(124,155,255,.42), rgba(124,155,255,0) 74%),
    linear-gradient(180deg, #323640 0%, #22252C 45%, #16181E 100%);
}
.deck .spk {
  position: absolute; top: 60px; width: 120px; height: 560px; border-radius: 10px;
  background-image: radial-gradient(circle, rgba(0,0,0,.65) 2.2px, transparent 2.8px); background-size: 12px 12px;
}
.deck .spk.l { left: 38px; }
.deck .spk.r { right: 38px; }
.mkb { position: absolute; left: 177px; top: 60px; width: 1200px; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: rgba(0,0,0,.38); }
.mkb .r { display: flex; gap: 10px; }
.mkb .k {
  flex: var(--u, 1) 1 0; min-width: 0; height: 80px; border-radius: 10px;
  background: linear-gradient(180deg, #17191E, #0D0E12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 0 #000;
  color: #939AA8; font: 500 22px var(--font); display: flex; align-items: flex-end; justify-content: flex-start; padding: 0 0 10px 12px;
}
.mkb .r.fn .k { height: 44px; font-size: 16px; align-items: center; padding: 0 0 0 10px; }
.mkb .k.c { justify-content: center; padding: 0; align-items: center; font-size: 26px; }
.mkb .k.tid { background: radial-gradient(circle at 50% 50%, #1F222A 0 40%, #0E0F12 42%); }
.tpad {
  position: absolute; left: 50%; top: 660px; width: 720px; height: 350px; margin-left: -360px; border-radius: 26px;
  background: linear-gradient(180deg, #2D313A, #22252B);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.07);
}
.deck-edge {
  position: absolute; left: 0; right: 0; top: calc(100% - 1px); height: 0; padding-bottom: 2.4%;
  transform-origin: 50% 0; transform: rotateX(-70deg);
  border-radius: 0 0 14px 14px / 0 0 60% 60%;
  background: linear-gradient(180deg, #565C68, #2A2E36 40%, #12141A);
}
.deck-edge::after { content: ""; position: absolute; left: 42%; width: 16%; top: 0; height: 55%; background: #0D0F14; border-radius: 0 0 10px 10px; }

/* Mac menu bar card */
.pane-card {
  position: absolute; right: 146px; top: 44px; width: 336px; padding: 12px; border-radius: 15px;
  background: rgba(24,27,38,.82); -webkit-backdrop-filter: blur(32px); backdrop-filter: blur(32px);
  box-shadow: 0 0 0 .5px rgba(255,255,255,.22), 0 24px 56px rgba(0,0,0,.6); color: #ECEDF0; font-size: 14px;
  opacity: 0; transform: translateY(-10px) scale(.97); transition: opacity .6s var(--ease), transform .6s var(--ease); z-index: 7;
}
.hero-stage.moved .pane-card { opacity: 1; transform: none; transition-delay: .35s; }
.pc-head { display: flex; gap: 12px; align-items: center; padding: 4px 6px 12px; }
.pc-logo { width: 38px; height: 38px; border-radius: 10px; background: #141720; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.pc-logo svg { width: 28px; height: 28px; }
.pc-title { font-weight: 600; font-size: 15px; display: grid; }
.pc-title small, .pc-dev small, .pc-row small { font-weight: 400; font-size: 12.5px; color: #9CA4B4; }
.pc-title small { display: flex; align-items: center; gap: 6px; }
.pc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--online); box-shadow: 0 0 8px var(--online); }
.pc-dev { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; background: rgba(124,155,255,.16); box-shadow: inset 0 0 0 1px rgba(124,155,255,.22); margin-bottom: 6px; }
.pc-dev > span:last-child { display: grid; }
.pc-ic { width: 30px; height: 30px; display: grid; place-items: center; color: var(--accent-bright); }
.pc-ic svg { width: 20px; height: 20px; }
.pc-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: 8px; }
.pc-switch { width: 34px; height: 20px; border-radius: 999px; background: rgba(255,255,255,.18); position: relative; }
.pc-switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.pc-sep { height: 1px; background: rgba(255,255,255,.1); margin: 6px 4px; }

/* Hero iPhone: standing front right */
.hero-stage .hero-phone {
  position: absolute; right: 4.5%; top: 31%; width: 22.5%; z-index: 5; transform-origin: 50% 100%;
  opacity: 0; transform: translate(40px, 30px) rotateY(-13deg);
  animation: phone-in 1.35s .7s var(--ease) forwards;
  will-change: transform;
}
@keyframes device-in { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
@keyframes phone-in { to { opacity: 1; transform: rotateY(-13deg); } }
.hero-stage.moved .hero-phone {
  box-shadow: 0 0 0 1px rgba(0,0,0,.85), 0 54px 96px -28px rgba(0,0,0,.95), 0 0 120px -6px rgba(124,165,255,.36);
}

/* Cleanly positioned glassmorphic callout pills (no screen/bezel overlap) */
.callout {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  font-size: 12.5px; color: #EEF3FF; white-space: nowrap;
  background: rgba(10,13,22,.84); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 0 0 1px rgba(155,185,255,.24), 0 14px 34px rgba(0,0,0,.62), inset 0 1px 0 rgba(255,255,255,.12);
  opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease); z-index: 6;
}
.callout i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 3px rgba(124,155,255,.22), 0 0 10px var(--accent); }
.callout .pulse-ring {
  position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.callout .pulse-ring::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid rgba(103, 226, 255, .65);
  animation: beacon 2.2s ease-out infinite;
}
.hero-stage.moved .callout { opacity: 1; transform: none; }
.hero-stage.moved .callout.c2 { transition-delay: .18s; }
.hero-stage.moved .callout.c1 { transition-delay: .32s; }
.hero-stage.moved .callout.c3 { transition-delay: .46s; }
.callout.c2 { left: 42%; top: -2.5%; }
.callout.c1 { left: 2%; bottom: 2%; }
.callout.c3 { right: 2%; top: 19%; border-color: rgba(103,226,255,.3); }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 18px; }
  .hero-stage { width: 100%; margin-right: 0; }
  .hero-copy { text-align: left; }
}
@media (max-width: 860px) {
  .site-nav { display: none; }
}
@media (max-width: 600px) {
  .hero { padding-top: 24px; }
  .hero-facts { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .hero .actions { flex-direction: column; align-items: stretch; }
  .callout { font-size: 11px; padding: 5px 10px; }
  .callout.c2 { left: 24%; top: -4%; }
  .callout.c1, .callout.c3 { display: none; }
}

/* ---------- Device: MacBook & iPhone ---------- */
.macbook { position: relative; width: 100%; }
.mb-lid {
  position: relative; padding: 1.35% 1.35% 1.7%;
  background: #0A0B0D; border-radius: 2.6% / 4%;
  box-shadow: inset 0 0 0 1.5px #2E3138, inset 0 0 0 4px #0A0B0D, 0 0 0 1px #000, 0 40px 80px -30px rgba(0,0,0,.9);
}
.mb-screen { position: relative; aspect-ratio: 1512 / 982; overflow: hidden; border-radius: .9% / 1.4%; background: #000; }

.iphone {
  position: relative; padding: 0;
  border: 2.5px solid transparent; border-radius: 15.6% / 7.25%;
  background:
    linear-gradient(#030304, #030304) padding-box,
    linear-gradient(145deg, #BCC3D2 0%, #565B68 18%, #282B33 40%, #6A7080 62%, #282B33 82%, #A0A6B4 100%) border-box;
  box-shadow: 0 0 0 1px rgba(0,0,0,.85), 0 50px 90px -30px rgba(0,0,0,.95), 0 0 84px -10px rgba(124,155,255,.24);
}
.iphone .hw { position: absolute; width: 1.1%; border-radius: 2px; background: linear-gradient(90deg, #26292E, #848A98 50%, #26292E); }
.iphone .act { left: -1.7%; top: 17%; height: 3.6%; }
.iphone .vup { left: -1.7%; top: 23.5%; height: 6.6%; }
.iphone .vdn { left: -1.7%; top: 31.6%; height: 6.6%; }
.iphone .pwr { right: -1.7%; top: 25%; height: 10.5%; }
.iphone .cam { right: -1.6%; top: 54%; height: 5.6%; width: .9%; background: linear-gradient(90deg, #1A1C20, #555A66 50%, #1A1C20); }
.phone-screen { position: relative; margin: 2.3%; aspect-ratio: 402 / 874; overflow: hidden; border-radius: 13.4% / 6.15%; background: #000; }

/* Fitted design canvases */
[data-fit] { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: scale(var(--k, .25)); text-align: left; line-height: 1.5; letter-spacing: 0; }
.rf-canvas { text-align: left; line-height: 1.5; }

/* ---------- macOS desktop (1512 × 982) ---------- */
.desk {
  width: 1512px; height: 982px; overflow: hidden; font-size: 13px; color: #E9EAEE;
  background:
    radial-gradient(940px 660px at 18% 8%, #34479C 0%, rgba(52,71,156,0) 70%),
    radial-gradient(840px 620px at 90% 84%, #4B338A 0%, rgba(75,51,138,0) 70%),
    radial-gradient(720px 520px at 72% 18%, #1A4A7A 0%, rgba(26,74,122,0) 70%),
    linear-gradient(160deg, #111834, #0B0E1B 60%, #100C20);
}
.menubar {
  position: absolute; left: 0; right: 0; top: 0; height: 34px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 18px;
  background: rgba(14,17,28,.5); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  font-size: 13.5px; color: #ECEDF0; z-index: 4;
}
.menubar .mb-left, .menubar .mb-right { display: flex; align-items: center; gap: 22px; }
.menubar b { font-weight: 700; }
.menubar .mb-pane { width: 18px; height: 18px; border-radius: 4px; display: grid; place-items: center; }
.menubar .mb-pane svg { width: 18px; height: 18px; }
.notch { position: absolute; left: 50%; top: 6px; width: 148px; height: 23px; margin-left: -74px; background: #000; border-radius: 12px; z-index: 5; box-shadow: 0 0 0 .5px rgba(255,255,255,.06); }
.notch::after { content: ""; position: absolute; right: 16px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #1E2638 0 30%, #07080A 60%); }
.dock {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  display: flex; gap: 10px; padding: 9px 11px; border-radius: 22px;
  background: rgba(40,46,66,.44); border: 1px solid rgba(255,255,255,.15);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); z-index: 4;
}
.dock i { width: 54px; height: 54px; border-radius: 13px; display: block; position: relative; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.dock i:nth-child(1) { background: linear-gradient(160deg, #F2F3F5, #B9BEC9); }
.dock i:nth-child(2) { background: linear-gradient(160deg, #2D3140, #15171C); }
.dock i:nth-child(3) { background: linear-gradient(160deg, #F0B35A, #D9773C); }
.dock i:nth-child(4) { background: linear-gradient(160deg, #6FD3A7, #2C9C6F); }
.dock i:nth-child(5) { background: linear-gradient(160deg, #1A1C22, #0B0C0F); }
.dock i:nth-child(6) { background: linear-gradient(160deg, #8EA6FF, #5A6FE0); }
.dock .sep { width: 1px; background: rgba(255,255,255,.2); margin: 4px 2px; }

.mac-win {
  position: absolute; border-radius: 14px; overflow: hidden; cursor: pointer;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.9), inset 0 0 0 .5px rgba(255,255,255,.16), 0 32px 74px rgba(0,0,0,.58);
  transition: opacity .75s var(--ease), transform .75s var(--ease), box-shadow .45s ease;
}
.mac-win:hover { box-shadow: 0 0 0 1.5px rgba(140,170,255,.55), 0 32px 74px rgba(0,0,0,.62); }
.mac-win.w-agent { left: 54px; top: 82px; width: 580px; height: 470px; z-index: 1; }
.mac-win.w-img { left: 90px; top: 472px; width: 590px; height: 396px; z-index: 2; }
.mac-win.w-chat { left: 378px; top: 96px; width: 1010px; height: 740px; z-index: 3; }

.mac-win.picked {
  z-index: 5;
  box-shadow: 0 0 0 2.5px var(--cyan), 0 0 0 10px rgba(103,226,255,.24), 0 34px 80px rgba(0,0,0,.65);
  transform: scale(1.012);
}
/* Instead of vanishing into an empty hole, streamed Mac window enters a frosted "Streaming to iPhone" state */
.stream-veil {
  position: absolute; inset: 0; z-index: 12; pointer-events: none;
  display: grid; place-items: center;
  background: rgba(11, 14, 24, .54);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  box-shadow: inset 0 0 0 2px rgba(124, 155, 255, .78), inset 0 0 50px rgba(124, 155, 255, .18);
  opacity: 0; transition: opacity .6s var(--ease);
}
.sv-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px;
  background: rgba(15, 19, 32, .88); border: 1px solid rgba(124, 155, 255, .45);
  box-shadow: 0 16px 40px rgba(0,0,0,.6), 0 0 28px rgba(124,155,255,.32);
  font-size: 16px; font-weight: 600; color: #EEF2FF;
}
.sv-badge i {
  width: 9px; height: 9px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .65; } }
.mac-win.streaming {
  z-index: 5;
  box-shadow: 0 0 0 2px rgba(124,155,255,.72), 0 0 42px rgba(124,155,255,.34), 0 30px 70px rgba(0,0,0,.55);
}
.mac-win.streaming .stream-veil { opacity: 1; }
.mac-pointer { position: absolute; left: 960px; top: 530px; width: 22px; z-index: 6; transition: transform 1.2s var(--ease); pointer-events: none; }

.traffic { display: flex; gap: 8px; }
.traffic i { width: 12px; height: 12px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.3); }
.traffic i:nth-child(1) { background: #FF5F57; }
.traffic i:nth-child(2) { background: #FEBC2E; }
.traffic i:nth-child(3) { background: #28C840; }

/* ---------- App Slot Crossfade ---------- */
.app-slot {
  position: absolute; inset: 0;
  opacity: 0; transform: scale(.97); filter: blur(6px); pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease), filter .5s var(--ease);
}
.app-slot.on { opacity: 1; transform: none; filter: none; pointer-events: auto; }

/* ---------- AI chat app (fictional) ---------- */
.chat {
  container: chat / inline-size;
  position: absolute; inset: 0; display: flex; background: #16181E; color: #E9EAEE;
  font-size: 15px; line-height: 1.6;
}
.c-side { display: none; width: 236px; flex: none; background: #101217; border-right: 1px solid #22252E; padding: 16px 12px; font-size: 13.5px; }
.c-side .traffic { margin: 2px 6px 22px; }
.c-new { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 9px; background: #1E212A; color: #F2F3F5; font-weight: 600; margin-bottom: 8px; }
.c-new svg { width: 15px; height: 15px; }
.c-search { padding: 8px 10px; color: #7D838F; display: flex; gap: 8px; align-items: center; }
.c-search svg { width: 14px; height: 14px; }
.c-label { margin: 16px 10px 6px; font-size: 11.5px; color: #6E7480; font-weight: 600; letter-spacing: .02em; }
.c-item { padding: 7px 10px; border-radius: 8px; color: #B8BDC7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-item.on { background: #242732; color: #F2F3F5; }
.c-main { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.c-head { height: 54px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid #21242D; }
.c-head .c-menu { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: #AEB3BD; }
.c-head .c-menu svg { width: 18px; height: 18px; }
.c-title { font-weight: 600; font-size: 15px; white-space: nowrap; }
.c-model { margin-left: auto; font-size: 12.5px; color: #9AA0AB; padding: 5px 10px; border: 1px solid #2A2E38; border-radius: 999px; white-space: nowrap; }
.c-msgs { flex: 1; overflow: hidden; padding: 26px 26px 0; display: flex; flex-direction: column; gap: 20px; }
.m-user { align-self: flex-end; max-width: 78%; padding: 11px 15px; border-radius: 18px 18px 6px 18px; background: #252A38; color: #F2F3F5; }
.m-ai { display: flex; gap: 12px; align-items: flex-start; }
.m-mark { flex: none; width: 26px; height: 26px; margin-top: 2px; border-radius: 8px; background: #222634; box-shadow: inset 0 0 0 1px #363C4D; display: grid; place-items: center; }
.m-mark::after { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #C9CEFF; }
.m-body { min-width: 0; }
.m-body p { margin: 0 0 10px; color: #D5D8DE; }
.m-body .stream p { margin: 0 0 8px; }
.m-body .stream b { color: #F2F3F5; font-weight: 600; margin-right: 8px; }
.caret { display: inline-block; width: 8px; height: 1.05em; vertical-align: -2px; margin-left: 2px; border-radius: 2px; background: #98B6FF; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.c-compose {
  flex: none; margin: 14px 20px 20px; padding: 12px 12px 12px 18px; border-radius: 16px;
  background: #1E2129; border: 1px solid #2C303C; display: flex; align-items: center; gap: 12px; color: #7D838F;
}
.c-compose .txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; }
.c-compose .typed { color: #F2F3F5; }
.c-compose .typed:not(:empty) + .ph { display: none; }
.c-send { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #E9EAEE; color: #16181E; display: grid; place-items: center; }
.c-send svg { width: 16px; height: 16px; }
.c-panel { display: none; width: 300px; flex: none; border-left: 1px solid #22252E; background: #12141A; padding: 20px; font-size: 13px; }
.p-title { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.p-title span { font-weight: 400; color: #7D838F; font-size: 12px; }
.p-map { position: relative; height: 150px; border-radius: 12px; overflow: hidden; margin-bottom: 16px; background: #191C24; border: 1px solid #252934; }
.p-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.p-day { display: grid; grid-template-columns: 40px 1fr; gap: 2px 10px; padding: 12px 0; border-top: 1px solid #21242D; }
.p-day b { grid-row: span 2; font-size: 22px; font-weight: 600; color: #F2F3F5; line-height: 1.1; }
.p-day span { color: #D5D8DE; }
.p-day small { color: #7D838F; font-size: 12px; }

@container chat (min-width: 600px) {
  .c-side { display: block; }
  .c-head .c-menu { display: none; }
}
@container chat (min-width: 940px) {
  .c-panel { display: block; }
}
@container chat (max-width: 599px) {
  .c-msgs { padding: 20px 18px 0; }
  .c-compose { margin: 12px 14px 16px; }
}

/* ---------- Coding agent ---------- */
.agent { position: absolute; inset: 0; background: #0C0E13; color: #D5D8DE; font-family: var(--mono); font-size: 13px; line-height: 1.75; display: flex; flex-direction: column; }
.a-head { height: 40px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: #151820; border-bottom: 1px solid #222630; font-family: var(--font); font-size: 12.5px; color: #9AA0AB; }
.a-head .t { flex: 1; text-align: center; margin-right: 52px; }
.a-body { padding: 16px 18px; overflow: hidden; flex: 1; }
.a-prompt { color: #F2F3F5; margin-bottom: 10px; }
.a-prompt::before { content: "› "; color: var(--accent-bright); }
.a-step { color: #AEB3BD; }
.a-step::before { content: "● "; color: #7C9BFF; }
.a-step.done::before { color: var(--online); }
.a-diff { margin: 6px 0 8px 14px; padding: 8px 10px; border-left: 2px solid #2C3140; font-size: 12px; background: rgba(255,255,255,.02); border-radius: 0 6px 6px 0; }
.a-diff .add { color: #7FE0A0; }
.a-diff .del { color: #FF8A80; }
.a-ok { color: var(--online); margin-top: 6px; }
.a-cur { margin-top: 10px; color: #F2F3F5; }
.a-cur::before { content: "› "; color: var(--accent-bright); }

/* ---------- Image tool ---------- */
.imggen { position: absolute; inset: 0; display: flex; background: #12141A; color: #D5D8DE; font-size: 13px; }
.g-canvas { position: relative; flex: 1; margin: 14px; border-radius: 12px; overflow: hidden; background: #090A0F; }
.g-art {
  position: absolute; inset: 0;
  background:
    radial-gradient(42% 28% at 66% 47%, #FFE6BA 0%, rgba(246,160,92,.7) 35%, rgba(246,160,92,0) 70%),
    linear-gradient(180deg, #232864 0%, #724F9B 30%, #DC8E78 50%, #F7C288 58%, #2A1F3A 58.5%, #120E1C 100%);
}
.g-art::before {
  content: ""; position: absolute; left: -5%; right: -5%; bottom: 40%; height: 22%;
  background: #3A2B4E; clip-path: polygon(0 100%, 0 60%, 12% 40%, 24% 55%, 38% 25%, 52% 50%, 63% 34%, 76% 52%, 88% 30%, 100% 48%, 100% 100%);
  opacity: .9;
}
.g-art::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background: #120E1C; clip-path: polygon(0 100%, 0 30%, 8% 30%, 14% 12%, 20% 30%, 30% 30%, 30% 42%, 44% 42%, 50% 20%, 56% 42%, 70% 42%, 70% 28%, 78% 8%, 86% 28%, 100% 28%, 100% 100%);
}
.g-scan {
  position: absolute; left: 0; right: 0; top: -20%; height: 140%;
  background: linear-gradient(180deg, rgba(10,11,14,0) 0%, rgba(103,226,255,.45) 13.5%, rgba(124,155,255,.75) 14.5%, #090A0F 15.5%, #090A0F 100%);
  animation: render 6.4s var(--ease) infinite;
}
@keyframes render { 0% { transform: translateY(0); } 58%, 100% { transform: translateY(100%); } }
.g-side { width: 210px; flex: none; padding: 18px 18px 18px 4px; display: flex; flex-direction: column; gap: 12px; }
.g-side .lbl { font-size: 11.5px; color: #6E7480; font-weight: 600; letter-spacing: .02em; }
.g-side .prompt { padding: 12px; border-radius: 10px; background: #1B1E26; border: 1px solid #2A2E39; color: #E9EAEE; line-height: 1.55; }
.g-side .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.g-side .chips span { padding: 4px 10px; border-radius: 999px; border: 1px solid #2E3340; color: #AEB3BD; font-size: 12px; }
.g-side .gen { margin-top: auto; padding: 10px; border-radius: 10px; text-align: center; background: #E9EAEE; color: #12141A; font-weight: 600; }
.g-side .bar { height: 4px; border-radius: 2px; background: #232630; overflow: hidden; }
.g-side .bar i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--accent), var(--cyan)); animation: bar 6.4s var(--ease) infinite; }
@keyframes bar { 0% { width: 4%; } 58%, 100% { width: 100%; } }
/* Make image tool responsive when shown inside narrow phone container */
.hero-phone .imggen { flex-direction: column; }
.hero-phone .g-side { width: auto; padding: 8px 14px 14px; gap: 8px; }
.hero-phone .g-canvas { margin: 12px 12px 6px; min-height: 360px; }

/* ---------- Pane chrome on device ---------- */
.ios { position: absolute; left: 0; top: 0; background: #0B0C10; color: #F2F3F5; font-size: 15px; overflow: hidden; }
.statusbar { position: absolute; left: 0; right: 0; top: 0; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 6px 34px 0 46px; font-weight: 600; font-size: 17px; z-index: 4; }
.statusbar .sb-icons { display: flex; gap: 7px; align-items: center; }
.statusbar .sb-icons svg { height: 13px; width: auto; }
.island { position: absolute; left: 138px; top: 11px; width: 126px; height: 37px; border-radius: 19px; background: #000; z-index: 5; }
.pane-bar { position: absolute; left: 14px; right: 14px; top: 58px; height: 44px; display: flex; align-items: center; gap: 8px; z-index: 6; }
.pb-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #1A1D25; color: #C9CDD5; border: 1px solid #282C36; }
.pb-btn svg { width: 18px; height: 18px; }
.strip { display: flex; gap: 8px; min-width: 0; }
.thumb {
  position: relative; flex: none; width: 60px; height: 40px; border-radius: 9px; overflow: hidden;
  background: #15171C; border: 1px solid #282C36; padding: 0;
  transition: transform .2s var(--ease), border-color .25s ease, box-shadow .25s ease;
}
button.thumb { cursor: pointer; appearance: none; }
button.thumb:hover { transform: scale(1.06); border-color: rgba(145,175,255,.65); }
.thumb.on { border: 2px solid var(--accent-bright); box-shadow: 0 0 0 3px rgba(124,155,255,.24), 0 0 14px rgba(124,155,255,.35); }
.thumb.t-chat { background: linear-gradient(90deg, #121317 0 30%, #18191D 30%); }
.thumb.t-chat::before { content: ""; position: absolute; left: 36%; right: 10%; top: 30%; height: 4px; border-radius: 2px; background: #3A3E48; box-shadow: 0 8px 0 #2C2F37, 0 16px 0 #2C2F37; }
.thumb.t-agent { background: #0E0F12; }
.thumb.t-agent::before { content: ""; position: absolute; left: 12%; width: 50%; top: 28%; height: 3px; border-radius: 2px; background: #7FE0A0; box-shadow: 0 7px 0 #3A3E48, 6px 14px 0 #3A3E48; }
.thumb.t-img { background: linear-gradient(180deg, #2B2F6E, #8D5A9E 45%, #F2A271 60%, #120E1C 62%); }
.picture { position: absolute; overflow: hidden; background: #16181E; }
.float-keys {
  position: absolute; display: flex; gap: 6px; padding: 6px; border-radius: 999px;
  background: rgba(28,31,40,.84); border: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); z-index: 4;
}
.float-keys span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #DADDE3; }
.float-keys span.on { background: rgba(124,155,255,.2); color: var(--accent-bright); }
.float-keys svg { width: 20px; height: 20px; }
.home-ind { position: absolute; left: 50%; bottom: 8px; width: 140px; height: 5px; margin-left: -70px; border-radius: 3px; background: rgba(255,255,255,.55); z-index: 6; }

/* Hero phone connecting state */
.hero-phone .picture > .app-slot { transition: opacity .65s var(--ease), transform .65s var(--ease), filter .65s var(--ease); }
.hero-phone:not(.connected) .picture > .app-slot { opacity: 0 !important; filter: blur(10px) !important; transform: scale(.94) !important; }
.hero-phone .connecting { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 16px; color: #9AA0AB; font-size: 15px; z-index: 3; transition: opacity .5s ease; }
.hero-phone.connected .connecting { opacity: 0; pointer-events: none; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid #2A2D34; border-top-color: var(--cyan); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Luminous flying optical pane ghost */
.ghost {
  position: fixed; z-index: 50; pointer-events: none; border-radius: 16px;
  border: 1.5px solid rgba(130, 210, 255, .95);
  background: linear-gradient(135deg, rgba(124,155,255,.28), rgba(103,226,255,.12) 55%, rgba(124,155,255,.04));
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 0 46px rgba(103,226,255,.45), inset 0 1px 0 rgba(255,255,255,.55);
}

/* ---------- Sections ---------- */
.section { position: relative; padding: 136px 0 0; scroll-margin-top: 76px; }
.section-head { max-width: 760px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Reflow (Spring Scroll + Interactive Presets + CAD Guides) ---------- */
.reflow { height: 290vh; position: relative; margin-top: 100px; }
.sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.reflow .display, .duo .display { font-size: clamp(30px, 3.6vw, 50px); }
.reflow .grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 52px; align-items: center; width: 100%; }

.rf-hud {
  margin-top: 30px; padding: 18px 20px; border-radius: 18px;
  background: rgba(15, 18, 28, .62); border: 1px solid rgba(255,255,255,.09);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px -24px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.07);
}
.rf-meter { display: flex; gap: 12px; align-items: center; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.rf-meter b { color: var(--text); font-weight: 600; min-width: 12ch; }
.rf-layout-tag {
  margin-left: auto; font-family: var(--font); font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(124, 155, 255, .15); color: var(--accent-bright);
  border: 1px solid rgba(124, 155, 255, .28);
}
.rf-bar { margin-top: 14px; height: 3px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; }
.rf-bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--accent), var(--cyan)); box-shadow: 0 0 12px rgba(103,226,255,.6); }
.rf-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rf-presets button {
  appearance: none; cursor: pointer; padding: 6px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.09);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.rf-presets button:hover { color: var(--text); border-color: rgba(145,175,255,.35); }
.rf-presets button.on { background: rgba(124,155,255,.18); border-color: rgba(124,155,255,.45); color: #EEF3FF; }

.rf-stage { position: relative; height: min(76vh, 720px); }
.rf-aura {
  position: absolute; left: 50%; top: 50%; width: 78%; height: 78%; transform: translate(-50%, -50%);
  pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, rgba(112, 148, 255, .28), rgba(103, 226, 255, .08) 52%, transparent 78%);
  filter: blur(28px);
}
.rf-box { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
/* Precision CAD dimension guides around the morphing window */
.rf-guide-x {
  position: absolute; left: 0; right: 0; top: -28px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(124,155,255,.55), rgba(124,155,255,.15) 35%, rgba(124,155,255,.15) 65%, rgba(124,155,255,.55));
  opacity: calc(1 - var(--bo, 0) * .72);
}
.rf-guide-x::before, .rf-guide-x::after { content: ""; position: absolute; top: -4px; width: 1px; height: 9px; background: rgba(124,155,255,.7); }
.rf-guide-x::before { left: 0; }
.rf-guide-x::after { right: 0; }
.rf-guide-x span {
  position: absolute; left: 50%; top: -11px; transform: translateX(-50%);
  padding: 2px 8px; border-radius: 6px; background: rgba(10,13,22,.85); border: 1px solid rgba(124,155,255,.28);
  font-family: var(--mono); font-size: 11px; color: var(--accent-bright); white-space: nowrap;
}
.rf-guide-y {
  position: absolute; top: 0; bottom: 0; right: -28px; width: 1px; pointer-events: none;
  background: linear-gradient(180deg, rgba(124,155,255,.55), rgba(124,155,255,.15) 35%, rgba(124,155,255,.15) 65%, rgba(124,155,255,.55));
  opacity: calc(1 - var(--bo, 0) * .72);
}
.rf-guide-y::before, .rf-guide-y::after { content: ""; position: absolute; left: -4px; height: 1px; width: 9px; background: rgba(124,155,255,.7); }
.rf-guide-y::before { top: 0; }
.rf-guide-y::after { bottom: 0; }
.rf-guide-y span {
  position: absolute; top: 50%; left: 10px; transform: translateY(-50%);
  padding: 2px 7px; border-radius: 6px; background: rgba(10,13,22,.85); border: 1px solid rgba(124,155,255,.28);
  font-family: var(--mono); font-size: 11px; color: var(--accent-bright); white-space: nowrap;
}
.rf-corner {
  position: absolute; width: 14px; height: 14px; pointer-events: none; z-index: 6;
  border-color: rgba(103, 226, 255, .8); border-style: solid; border-width: 0;
  opacity: calc(1 - var(--bo, 0));
}
.rf-corner.tl { left: -7px; top: -7px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 4px; }
.rf-corner.tr { right: -7px; top: -7px; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 4px; }
.rf-corner.bl { left: -7px; bottom: -7px; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 4px; }
.rf-corner.br { right: -7px; bottom: -7px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 4px; }

.rf-bezel {
  position: absolute; inset: 0; border-radius: var(--r, 14px); pointer-events: none;
  box-shadow:
    0 0 0 calc(var(--bz, 0) * 1px) #07080C,
    0 0 0 calc(var(--bz, 0) * 1px + 1.8px) rgba(118,128,150,var(--bo, 0)),
    0 52px 110px -28px rgba(0,0,0,.92),
    0 0 90px -20px rgba(124,155,255, calc(.18 + var(--bo, 0) * .22));
}
.rf-island { position: absolute; left: 138px; top: 11px; width: 126px; height: 37px; border-radius: 19px; background: #000; z-index: 9; opacity: 0; }
.rf-time { position: absolute; left: 46px; top: 16px; font: 600 17px var(--font); color: #F2F3F5; z-index: 9; opacity: 0; }
.rf-win { position: absolute; inset: 0; overflow: hidden; border-radius: var(--r, 14px); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.16); background: #16181E; }

/* ---------- iPhone Duo (Spring 3D + Specular Sheen) ---------- */
.duo { height: 350vh; position: relative; }
.duo .grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 40px; align-items: center; width: 100%; }
.duo .copy { position: relative; z-index: 5; }
.poses { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 8px; }
.poses li {
  position: relative; padding: 16px 18px 16px 24px; border-radius: 16px;
  color: #8994AA; transition: color .35s ease, background-color .35s ease, border-color .35s ease;
  cursor: pointer; border: 1px solid transparent;
}
.poses li:hover { background: rgba(255,255,255,.04); color: #C5CEDF; }
.poses li::before { content: ""; position: absolute; left: 8px; top: 18px; bottom: 18px; width: 2px; background: rgba(255,255,255,.12); border-radius: 2px; }
.poses li::after { content: ""; position: absolute; left: 8px; top: 18px; width: 2px; height: 0; background: linear-gradient(180deg, var(--accent-bright), var(--cyan)); border-radius: 2px; transition: height .5s var(--ease); box-shadow: 0 0 10px rgba(103,226,255,.6); }
.poses li.on {
  color: var(--text);
  background: rgba(16, 20, 32, .76);
  border-color: rgba(124, 155, 255, .28);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.poses li.on::after { height: calc(100% - 36px); }
.pose-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pose-deg { font-family: var(--mono); font-size: 12px; color: #7C879E; transition: color .3s ease; }
.poses li.on .pose-deg { color: var(--cyan); }
.poses h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.poses p { margin: 6px 0 0; font-size: 15px; color: var(--muted); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease), opacity .5s ease; }
.poses li.on p { max-height: 140px; opacity: 1; }

.duo-stage {
  position: relative; height: min(82vh, 780px);
  perspective: 2200px; perspective-origin: 50% 44%;
}
.duo-stage::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 16%; bottom: 10%;
  background: radial-gradient(closest-side, rgba(124,155,255,.22), rgba(103,226,255,.06) 55%, transparent);
  filter: blur(26px); pointer-events: none;
}
.duo-stage .floor { top: 85%; }
.duo-stage .contact { left: 50%; top: 81%; width: calc(var(--shw, 60%) * 1); height: 7.5%; transform: translateX(-50%); opacity: var(--sho, .85); }
.duo-stage .keylight {
  left: 50%; top: 50%; width: 92%; height: 82%; transform: translate(-50%, -50%);
  background: radial-gradient(44% 48% at 50% 50%, rgba(130,165,255,.30), rgba(130,165,255,0) 72%);
  filter: blur(16px); opacity: var(--sho, .85);
}

.duo-angle-badge {
  position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); z-index: 6;
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px;
  font-family: var(--mono); font-size: 12px; color: #DCE6FF; white-space: nowrap;
  background: rgba(12,15,24,.76); border: 1px solid rgba(124,155,255,.26);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.dab-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

/* ---------- True Solid 3D iPhone Duo (Night Sky Grade 5 Titanium) ----------
   Inner OLED fold plane sits at z = 0; each half has real physical slab thickness --th (5.2mm proportion;
   ~11.3mm double-stack when folded closed), 12 contoured titanium layers around the curved corners,
   machined side rails (Touch ID power, volume, USB-C), a 5-facet cylindrical micro-blasted titanium
   hinge barrel, and a 3D raised Dual-Fusion 48MP rear camera plateau. */
.d3 {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--hw, 200px) * 2); height: calc(var(--hw, 200px) * 1.4215);
  --th: 14px;
  transform-style: preserve-3d; will-change: transform;
}
.d3-half { position: absolute; top: 0; width: 50%; height: 100%; transform-style: preserve-3d; }
.d3-L { left: 0; transform-origin: 100% 50%; }
.d3-R { left: 50%; transform-origin: 0 50%; }

/* Contoured 12-layer Grade 5 Night Sky Titanium body (fills rounded corners seamlessly in 3D) */
.d3-slab { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.d3-slab i {
  position: absolute; inset: 0; display: block;
  transform: translateZ(calc(var(--z, 1) * -1px));
  background: linear-gradient(150deg, #5A6276 0%, #242834 22%, #474F62 46%, #1B1F29 72%, #525B70 100%);
  box-shadow: inset 0 0 0 1px rgba(145, 162, 196, .22);
}
.d3-slab i.rim {
  background: linear-gradient(150deg, #8B96B0 0%, #3E4556 26%, #6B758E 52%, #292E3B 76%, #7C87A0 100%);
  box-shadow: inset 0 0 0 1.2px rgba(215, 228, 255, .42);
}
.d3-L .d3-slab i { border-radius: 13.7% 0 0 13.7% / 9.7% 0 0 9.7%; }
.d3-R .d3-slab i { border-radius: 0 13.7% 13.7% 0 / 0 9.7% 9.7% 0; }

/* Machined 3D Titanium Side Rails + Physical Hardware Controls */
.d3-edge {
  position: absolute; transform-style: preserve-3d; pointer-events: none;
  background: linear-gradient(180deg, #434B5D 0%, #7C87A0 18%, #2C313E 48%, #69738B 82%, #353B49 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32), inset 0 -1px 0 rgba(0,0,0,.55);
}
.d3-L .edge-l {
  left: -0.5px; top: 9.5%; bottom: 9.5%; width: var(--th);
  transform-origin: 0 50%;
  transform: translateZ(calc(var(--th) * -1)) rotateY(-90deg);
}
.d3-R .edge-r {
  right: -0.5px; top: 9.5%; bottom: 9.5%; width: var(--th);
  transform-origin: 100% 50%;
  transform: translateZ(calc(var(--th) * -1)) rotateY(90deg);
}
.d3-R .edge-b {
  left: 4%; right: 14%; bottom: -0.5px; height: var(--th);
  transform-origin: 50% 100%;
  transform: translateZ(calc(var(--th) * -1)) rotateX(-90deg);
  background: linear-gradient(90deg, #3A4152 0%, #768098 24%, #2B303D 52%, #6B758D 80%, #373D4C 100%);
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
/* Antenna break bands */
.d3-edge .ant { position: absolute; left: 0; right: 0; height: 2.5px; background: rgba(15, 18, 26, .85); }
.d3-edge .ant.t { top: 4%; }
.d3-edge .ant.b { bottom: 4%; }
/* Physical protruding titanium buttons (Volume, Action, Side Touch ID Power) */
.d3-edge .sbtn {
  position: absolute; left: 22%; width: 56%; border-radius: 3px;
  background: linear-gradient(180deg, #8F9AB4, #4D5569 45%, #2D3240);
  box-shadow: 0 0 0 .8px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.45);
  transform: translateZ(1.8px);
}
.d3-edge .sbtn.act { top: 13%; height: 5.5%; }
.d3-edge .sbtn.vup { top: 22%; height: 10.5%; }
.d3-edge .sbtn.vdn { top: 35%; height: 10.5%; }
.d3-edge .sbtn.tid { top: 21%; height: 16%; background: linear-gradient(180deg, #5D667B, #252936 50%, #4A5265); box-shadow: inset 0 0 0 1px rgba(170,190,230,.4), 0 0 0 1px rgba(0,0,0,.8); transform: translateZ(.6px); }
.d3-edge .sbtn.camc { top: 58%; height: 10%; background: linear-gradient(180deg, #3B4150, #1A1D26); transform: translateZ(.5px); }
/* Bottom USB-C & machined speaker grilles */
.d3-edge .usbc {
  width: 24px; height: 52%; border-radius: 999px;
  background: #07080C; box-shadow: inset 0 0 0 1.2px rgba(180,195,225,.45), 0 0 2px rgba(0,0,0,.8);
}
.d3-edge .spkr {
  width: 26px; height: 3px;
  background-image: radial-gradient(circle, #0A0C12 1.2px, transparent 1.4px);
  background-size: 5px 3px;
}

/* 5-Facet Cylindrical Micro-Blasted Titanium Hinge Barrel */
.d3-spine {
  position: absolute; left: 50%; top: 1.2%; bottom: 1.2%; width: 0;
  transform-style: preserve-3d; pointer-events: none;
}
.d3-spine .sp-f {
  position: absolute; top: 0; bottom: 0;
  width: calc(var(--th, 14px) * 0.58);
  left: calc(var(--th, 14px) * -0.29);
  background: linear-gradient(180deg, #353B4A 0%, #5B6478 16%, #3E4556 50%, #576074 84%, #2F3442 100%);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.08);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.d3-spine .sp-f.f0 { transform: rotateY(124deg) translateZ(calc(var(--th, 14px) * 0.92)); filter: brightness(.78); }
.d3-spine .sp-f.f1 { transform: rotateY(152deg) translateZ(calc(var(--th, 14px) * 0.92)); filter: brightness(.95); }
.d3-spine .sp-f.f2 { transform: rotateY(180deg) translateZ(calc(var(--th, 14px) * 0.92)); background: linear-gradient(90deg, #3E4556, #818CA6 48%, #3B4252); }
.d3-spine .sp-f.f3 { transform: rotateY(208deg) translateZ(calc(var(--th, 14px) * 0.92)); filter: brightness(.95); }
.d3-spine .sp-f.f4 { transform: rotateY(236deg) translateZ(calc(var(--th, 14px) * 0.92)); filter: brightness(.78); }
.d3-spine .sp-cap {
  position: absolute; left: calc(var(--th, 14px) * -0.9); width: calc(var(--th, 14px) * 1.8);
  height: calc(var(--th, 14px) * 0.95); border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #717B94, #2B303D 75%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}
/* Rotate toward -Z (behind the inner OLED plane) so hinge end-caps never poke through the display */
.d3-spine .sp-cap.top { top: 0; transform-origin: 50% 0; transform: translateZ(-1px) rotateX(-90deg); }
.d3-spine .sp-cap.bot { bottom: 0; transform-origin: 50% 100%; transform: translateZ(-1px) rotateX(90deg); }

/* Front & Back Faces separated by real thickness --th */
.d3-face { position: absolute; inset: 0; background: #050608; -webkit-backface-visibility: hidden; backface-visibility: hidden; transform-style: preserve-3d; }
.d3-face::after {
  content: ""; position: absolute; inset: 0;
  border: 1.8px solid rgba(130, 142, 168, .65);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .9);
  border-radius: inherit; pointer-events: none; z-index: 8;
}
.d3-face.front { transform: translateZ(0.4px); }
.d3-face.back { transform: translateZ(calc(var(--th, 14px) * -1)) rotateY(180deg); }
.d3-L .front { padding: 2.46% 0 2.46% 2.46%; border-radius: 13.7% 0 0 13.7% / 9.7% 0 0 9.7%; right: -1px; }
.d3-L .front::after { border-right: 0; box-shadow: none; right: 1px; }
.d3-R .front { padding: 2.46% 2.46% 2.46% 0; border-radius: 0 13.7% 13.7% 0 / 0 9.7% 9.7% 0; }
.d3-R .front::after { border-left: 0; box-shadow: none; }
.d3-L .front .d3-scr { border-radius: 11.6% 0 0 11.6% / 8.2% 0 0 8.2%; width: 100%; }
.d3-R .front .d3-scr { border-radius: 0 11.6% 11.6% 0 / 0 8.2% 8.2% 0; }
.d3-L .back { padding: 1.54% 2.36% 1.54% 2.05%; border-radius: 2% 13.7% 13.7% 2% / 1.4% 9.7% 9.7% 1.4%; }
.d3-L .back .d3-scr { border-radius: 1.7% 12.7% 12.7% 1.7% / 1.2% 8.7% 8.7% 1.2%; }
.d3-R .back {
  border-radius: 13.7% 2% 2% 13.7% / 9.7% 1.4% 1.4% 9.7%;
  background:
    radial-gradient(120% 80% at 30% 15%, rgba(92, 110, 154, .22), transparent 60%),
    linear-gradient(155deg, #212636 0%, #141824 48%, #0E111A 100%);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .5);
}
.d3-scr { position: relative; width: 100%; height: 100%; overflow: hidden; background: #000; }
.d3-clip { overflow: hidden; }
.d3-land { opacity: calc(1 - var(--lap, 0)); }
.d3-lap { position: absolute; left: -96.75px; top: 96.75px; width: 669px; height: 475.5px; transform: rotate(90deg); opacity: var(--lap, 0); }
.d3-lap > * { position: absolute; left: 0; top: 0; }
/* Inner screen sleeps when fully closed so zero pixel leaks behind cover display */
.d3-R .front .d3-scr { opacity: var(--inner-on, 1); }
.d3-L .front .d3-scr { opacity: var(--inner-on, 1); }
/* Zero-crease inner display: ultra-whisper ambient shading ONLY when deeply bent, 0 when flat */
.d3-crease {
  position: absolute; top: 0; bottom: 0; width: 16%; z-index: 6; pointer-events: none;
  opacity: calc(var(--bend, 0) * .22);
}
.d3-crease.r { right: 0; background: linear-gradient(270deg, rgba(0,0,0,.38), rgba(0,0,0,.10) 45%, transparent); }
.d3-crease.l { left: 0; background: linear-gradient(90deg, rgba(0,0,0,.38), rgba(0,0,0,.10) 45%, transparent); }

/* Dynamic angle-reactive glass specular sheen — spans seamlessly across both halves when flat */
.d3-sheen {
  position: absolute; top: -30%; bottom: -30%; left: 0; width: 200%; z-index: 7; pointer-events: none;
  background: linear-gradient(118deg, transparent 38%, rgba(255,255,255,.075) 49%, rgba(155,210,255,.09) 52%, transparent 62%);
  transform: translate3d(var(--sheen, -35%), 0, 0);
  opacity: var(--sheen-o, .6);
}
.d3-R .front .d3-sheen { left: -100%; }
.d3-L .back .d3-sheen { width: 140%; left: -20%; }

/* 3D Extruded Dual-Fusion 48MP Camera Plateau on Night Sky Rear Glass */
.d3-plateau {
  position: absolute; left: 10%; top: 5.5%; width: 32%; height: 42%;
  transform-style: preserve-3d;
}
.d3-plateau .pl-layer {
  position: absolute; inset: 0; border-radius: 34% / 19%;
  background: linear-gradient(155deg, #4B5368, #1C202C 55%, #373E50);
  box-shadow: 0 0 0 1px rgba(150,168,204,.35), 0 10px 24px rgba(0,0,0,.6);
}
.d3-plateau .pl-layer.l1 { transform: translateZ(2.5px); }
.d3-plateau .pl-layer.l2 { transform: translateZ(5px); }
.d3-plateau .pl-top {
  position: absolute; inset: 0; border-radius: 34% / 19%;
  transform: translateZ(7px); transform-style: preserve-3d;
  background: linear-gradient(155deg, #272C3C 0%, #151824 60%, #1C2130 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 0 0 1px rgba(135,152,188,.4);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 15% 14%;
}
.pl-lens {
  position: relative; width: 92%; aspect-ratio: 1; border-radius: 50%;
  transform: translateZ(3px); transform-style: preserve-3d;
  background: linear-gradient(145deg, #6A748D, #1A1E28 50%, #4E566B);
  box-shadow: 0 4px 10px rgba(0,0,0,.7), inset 0 0 0 2px #141720;
  display: grid; place-items: center;
}
.pl-glass {
  width: 74%; height: 74%; border-radius: 50%; transform: translateZ(2px);
  background:
    radial-gradient(circle at 36% 32%, rgba(120, 165, 255, .55) 0%, rgba(45, 68, 125, .4) 22%, #07090F 52%, #131826 85%),
    #06070B;
  box-shadow: inset 0 0 0 2.5px #0B0D14, 0 0 0 1px rgba(140,160,200,.28);
}
.pl-flash {
  position: absolute; right: -34%; top: 24%; width: 22%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 45% 45%, #FFF4D6 0%, #D9C6A0 48%, #6D6659 85%);
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.25), 0 2px 6px rgba(0,0,0,.6);
  transform: translateZ(-5px);
}
.pl-mic {
  position: absolute; right: -28%; top: 54%; width: 10%; aspect-ratio: 1; border-radius: 50%;
  background: #06070A; box-shadow: 0 0 0 1px rgba(255,255,255,.15);
  transform: translateZ(-5px);
}
.d3-rear-glow {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(128deg, rgba(255,255,255,.07) 0%, transparent 42%, rgba(124,155,255,.05) 100%);
}

.duo-frame {
  position: relative; background: #050506;
  box-shadow: 0 0 0 1.5px #585E6D, inset 0 0 0 1.5px #262932, 0 54px 96px -28px rgba(0,0,0,.95), 0 0 90px -12px rgba(124,155,255,.22);
}
.cover-frame { padding: 2.83%; border-radius: 2% 14.8% 14.8% 2% / 1.4% 10.3% 10.3% 1.4%; }
.cover-frame::before {
  content: ""; position: absolute; left: -2.6%; top: .6%; bottom: .6%; width: 2.6%; border-radius: 5px 0 0 5px;
  background: linear-gradient(90deg, #1B1E25, #4B5160 45%, #1D2028); box-shadow: 0 0 0 1px #000;
}
.cover-frame.land { padding: 1.98%; border-radius: 10.3% 10.3% 1.4% 1.4% / 14.8% 14.8% 2% 2%; }
.cover-frame.land::before { left: .6%; right: .6%; top: auto; bottom: -3.7%; width: auto; height: 3.7%; border-radius: 0 0 5px 5px; background: linear-gradient(180deg, #1B1E25, #4B5160 45%, #1D2028); }
.cover-screen { position: relative; aspect-ratio: 466 / 678; overflow: hidden; background: #000; border-radius: 1.7% 12.66% 12.66% 1.7% / 1.18% 8.7% 8.7% 1.18%; }
.cover-screen.land { aspect-ratio: 678 / 466; border-radius: 8.7% 8.7% 1.18% 1.18% / 12.66% 12.66% 1.7% 1.7%; }
.lap-top, .lap-base { position: relative; background: #08090C; box-shadow: 0 0 0 1.5px #575D6B, inset 0 0 0 1.5px #262932; }
.lap-top { padding: 2% 2% 0; border-radius: 9.9% 9.9% 0 0 / 14.7% 14.7% 0 0; }
.lap-base { padding: 0 2% 2%; border-radius: 0 0 9.9% 9.9% / 0 0 14.7% 14.7%; box-shadow: 0 0 0 1.5px #575D6B, inset 0 0 0 1.5px #262932, 0 60px 80px -30px rgba(0,0,0,.92); }
.half-screen { position: relative; aspect-ratio: 669 / 455.5; overflow: hidden; background: #000; }
.lap-top .half-screen { border-radius: 8.2% 8.2% 0 0 / 12% 12% 0 0; }
.lap-base .half-screen { border-radius: 0 0 8.2% 8.2% / 0 0 12% 12%; }
.hinge { height: 4px; background: linear-gradient(#1A1C22, #464C5A, #1A1C22); }

/* ---------- Interactive 3D Tilt & Specular Glare ---------- */
.tilt-card {
  position: relative; transform-style: preserve-3d;
  transition: transform .55s var(--ease);
  will-change: transform;
}
.tilt-glare {
  position: absolute; inset: 0; z-index: 10; pointer-events: none; border-radius: inherit;
  opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(380px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.16), rgba(160,210,255,.06) 35%, transparent 70%);
}
.tilt-card.tilting .tilt-glare,
.icon-tilt.tilting .tilt-glare { opacity: 1; }

/* ---------- Cover Display Section ---------- */
.outer-show { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 64px; align-items: center; margin-top: 84px; position: relative; }
.outer-show figure { margin: 0; position: relative; perspective: 1400px; }
.outer-show .floor { top: 93%; }
.outer-show figcaption { margin-top: 28px; color: var(--muted); font-size: 14px; text-align: center; }
.outer-show figcaption b { color: var(--text); font-weight: 600; margin-right: 8px; }
.outer-port { max-width: 344px; margin: 0 auto; }
.outer-land { max-width: 608px; margin: 0 auto; }

/* Dual-hemisphere chromatic screen-cast aura */
.outer-show figure::before {
  content: ""; position: absolute; left: -18%; right: -18%; top: -14%; bottom: -4%; z-index: -1; pointer-events: none;
  filter: blur(28px); transition: opacity .6s ease, transform .6s var(--ease);
}
.outer-show figure:nth-of-type(1)::before {
  background: radial-gradient(46% 48% at 50% 46%, rgba(61, 214, 140, .28), rgba(61, 214, 140, 0) 72%);
}
.outer-show figure:nth-of-type(2)::before {
  background: radial-gradient(48% 50% at 52% 46%, rgba(246, 152, 92, .32), rgba(154, 88, 224, .18) 54%, rgba(154, 88, 224, 0) 76%);
}
.outer-show figure:hover::before { transform: scale(1.06); }

/* Cover rail */
.rail { position: absolute; top: 0; bottom: 0; width: 84px; display: flex; flex-direction: column; align-items: center; background: #0B0C10; z-index: 4; }
.rail .cam { width: 37px; height: 37px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #1C2333 0 20%, #050608 45%); box-shadow: 0 0 0 3px #11131A; margin-top: 29px; flex: none; }
.rail .r-search { margin-top: 18px; }
.rail .r-strip { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.rail .thumb { width: 60px; height: 44px; }
.rail .r-keys { margin-top: auto; margin-bottom: 44px; display: flex; flex-direction: column; gap: 10px; }
.rail .pb-btn { width: 46px; height: 46px; }
.rail .pb-btn.on { background: rgba(124,155,255,.2); color: var(--accent-bright); border-color: rgba(124,155,255,.4); }
.land .rail .r-keys { margin-bottom: 40px; gap: 8px; }
.land .rail .r-strip .thumb:nth-child(3) { display: none; }

/* ---------- Full Mac Keyboard Section ---------- */
.kb { display: flex; flex-direction: column; gap: 7px; }
.kb-row { display: flex; gap: 6px; }
.key {
  position: relative;
  flex: var(--u, 1) 1 0; min-width: 0; height: 38px; border-radius: 7px;
  background: linear-gradient(180deg, #2D313C, #242730);
  color: #E9EAEE; cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 0 #12141A;
  transition: background .12s ease, color .12s ease, transform .12s ease, box-shadow .16s ease;
}
.key:hover { background: linear-gradient(180deg, #393E4D, #2D313D); }
.key.sm { font-size: 11.5px; color: #C9CDD5; padding: 0 8px; }
.key.sm.l { justify-content: flex-start; }
.key.sm.r { justify-content: flex-end; }
.key.sym { font-size: 17px; }
.key svg { width: 16px; height: 16px; }
.key.down {
  background: linear-gradient(180deg, #6E8EFF, #5373E8);
  color: #fff; transform: translateY(1.5px);
  box-shadow: 0 0 18px rgba(124,155,255,.75), inset 0 1px 0 rgba(255,255,255,.35);
}
.key.latched {
  background: rgba(124,155,255,.34); color: #EFF3FF;
  box-shadow: inset 0 0 0 1px rgba(135,175,255,.65), 0 0 16px rgba(124,155,255,.45);
}
.key.latched::after {
  content: ""; position: absolute; top: 4px; right: 5px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 6px var(--cyan);
}
.arrows { flex: 3 1 0; min-width: 0; display: flex; gap: 6px; align-items: flex-end; }
.arrows .key { flex: 1 1 0; height: 19px; font-size: 10px; }
.arrows .ud { flex: 1 1 0; display: flex; flex-direction: column; gap: 2px; }
.arrows .ud .key { height: 18px; }
.pad { position: relative; border-radius: 14px; background: linear-gradient(180deg, #1B1E26, #161820); border: 1px solid #2B303D; overflow: hidden; }
.finger {
  position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  background: radial-gradient(circle, rgba(130, 210, 255, .45) 0%, rgba(124, 155, 255, .18) 55%, transparent 72%);
  box-shadow: 0 0 0 1.5px rgba(155, 215, 255, .55), 0 0 22px rgba(103, 226, 255, .55);
  opacity: 0;
}

.duo-ops { position: absolute; left: 0; top: 0; background: #0B0D12; padding: 30px 16px 22px; display: flex; flex-direction: column; gap: 12px; }
.duo-ops .ops-top { display: flex; gap: 8px; align-items: center; height: 40px; flex: none; }
.duo-ops .ops-top .thumb { height: 36px; width: 54px; }
.duo-ops .pad { flex: 1; min-height: 0; margin: 0 16%; }

.kbd-show { position: relative; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: 56px; align-items: center; margin-top: 56px; }
.kbd-show .floor { top: 96%; }
.kbd-device { position: relative; max-width: 416px; margin: 0 auto; width: 100%; }
.kbd-live-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px;
  margin-bottom: 14px; font-size: 12px; color: #C9D6F8;
  background: rgba(16, 20, 32, .72); border: 1px solid rgba(124, 155, 255, .24);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.klp-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--online); box-shadow: 0 0 8px var(--online); }
.kbd-device .lap-top { box-shadow: 0 0 0 1.5px #575D6B; clip-path: inset(-6px -6px 0 -6px); }
.kbd-device .lap-base .half-screen { margin-top: -1px; }
.kbd-device::before {
  content: ""; position: absolute; inset: 14% -16% -6%; z-index: -1;
  background: radial-gradient(closest-side, rgba(124,155,255,.28), rgba(103,226,255,.08) 55%, transparent);
  filter: blur(28px);
}
.combo {
  position: absolute; left: 50%; top: calc(50% - 8px); transform: translate(-50%, 10px) scale(.95); z-index: 8;
  padding: 9px 18px; border-radius: 13px; font-family: var(--mono); font-size: 14.5px; color: #EAF0FF;
  background: rgba(14,18,30,.9); border: 1px solid rgba(124,155,255,.48);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 14px 36px rgba(0,0,0,.65), 0 0 26px rgba(124,155,255,.32);
  opacity: 0; transition: opacity .25s ease, transform .25s var(--ease); white-space: nowrap; pointer-events: none;
}
.combo.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

.inputs { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.inputs li { display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; padding: 20px 22px; }
.inputs .ic {
  grid-row: span 2; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  color: var(--accent-bright); background: rgba(124,155,255,.11);
  box-shadow: inset 0 0 0 1px rgba(124,155,255,.24);
}
.inputs .ic svg { width: 21px; height: 21px; }
.inputs h3 { margin: 0; font-size: 17px; font-weight: 600; }
.inputs p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.kbd-keys { font-family: var(--mono); color: var(--text); }

/* ---------- Connection Topology Section ---------- */
.net {
  position: relative; margin: 48px auto 0; max-width: 1020px; padding: 26px 24px 18px;
  border-radius: 26px;
  background: rgba(12, 15, 24, .56);
  border: 1px solid rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 32px 72px -34px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.07);
}
.net-legend {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px;
  font-size: 12.5px; color: var(--muted); margin-bottom: 4px;
}
.net-legend span { display: inline-flex; align-items: center; gap: 8px; }
.net-legend i { width: 18px; height: 3px; border-radius: 2px; display: inline-block; }
.net-legend .nl-vid { background: linear-gradient(90deg, var(--accent), var(--cyan)); box-shadow: 0 0 10px rgba(103,226,255,.65); }
.net-legend .nl-inp { background: var(--online); box-shadow: 0 0 10px rgba(61,214,140,.65); }

.net svg { width: 100%; height: auto; overflow: visible; }
.net .dev-lbl { font: 600 14px var(--font); fill: #A6B0C4; }
.net .route { fill: none; stroke: rgba(255,255,255,.09); stroke-width: 1.5; transition: stroke .4s ease; }
.net .route-glow { fill: none; stroke-width: 2.4; opacity: 0; transition: opacity .45s ease; }
.net .flow {
  fill: none; stroke: #8EE9FF; stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 28 240; opacity: 0; transition: opacity .45s ease;
  animation: net-fwd 1.75s linear infinite;
}
.net .flow-ret {
  fill: none; stroke: #44E096; stroke-width: 2.2; stroke-linecap: round;
  stroke-dasharray: 10 260; opacity: 0; transition: opacity .45s ease;
  animation: net-back 2.35s linear infinite;
}
.net g.on .route { stroke: rgba(124,155,255,.32); }
.net g.on .route-glow { opacity: .88; }
.net g.on .flow { opacity: 1; }
.net g.on .flow-ret { opacity: .85; }
.net .tag-pill rect {
  fill: rgba(11, 14, 22, .88); stroke: rgba(255,255,255,.08); stroke-width: 1;
  transition: fill .35s ease, stroke .35s ease;
}
.net g.on .tag-pill rect { fill: rgba(18, 26, 46, .94); stroke: rgba(124,155,255,.55); }
.net .tag { font: 600 13.5px var(--font); fill: #697284; transition: fill .35s ease; }
.net g.on .tag { fill: #F4F7FF; }
@keyframes net-fwd { from { stroke-dashoffset: 268; } to { stroke-dashoffset: 0; } }
@keyframes net-back { from { stroke-dashoffset: 270; } to { stroke-dashoffset: 0; } }

.routes { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.routes li { padding: 22px 20px 20px; cursor: pointer; }
.routes li::after {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  box-shadow: 0 0 12px rgba(103,226,255,.65);
}
.routes li.on { border-color: rgba(124, 155, 255, .36); background: rgba(20, 25, 40, .74); }
.routes li.on::after { animation: fill 3.8s linear forwards; }
@keyframes fill { to { width: 100%; } }
.rt-meta {
  display: inline-block; margin-bottom: 10px; font-family: var(--mono); font-size: 11px;
  color: var(--faint); letter-spacing: .04em; transition: color .3s ease;
}
.routes li.on .rt-meta { color: var(--cyan); }
.routes h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; color: var(--muted); transition: color .3s; }
.routes li.on h3 { color: var(--text); }
.routes p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ---------- Privacy Statement ---------- */
.statement { padding: 180px 0 60px; position: relative; scroll-margin-top: 76px; }
.privacy-aura {
  position: absolute; left: 50%; top: 58%; width: min(760px, 92vw); aspect-ratio: 1;
  transform: translate(-50%, -50%); pointer-events: none; z-index: -1;
}
.p-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(124, 155, 255, calc(.06 + var(--lit, 0) * .12));
  transition: transform .6s var(--ease), border-color .6s ease;
}
.p-ring.r1 { transform: scale(calc(.52 + var(--lit, 0) * .12)); background: radial-gradient(closest-side, rgba(112, 148, 255, calc(.08 + var(--lit, 0) * .14)), transparent 74%); }
.p-ring.r2 { transform: scale(calc(.74 + var(--lit, 0) * .10)); border-style: dashed; opacity: .6; animation: slow-spin 42s linear infinite; }
.p-ring.r3 { transform: scale(calc(.96 + var(--lit, 0) * .06)); opacity: .35; }
@keyframes slow-spin { to { transform: scale(.8) rotate(360deg); } }

.statement p.big { margin: 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.24; font-weight: 700; letter-spacing: -.025em; }
.statement p.sub { margin: 20px 0 0; max-width: 34em; color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.75; }
html[data-lang="zh"] .statement p.big { letter-spacing: -.01em; }
.statement .w { color: rgba(242,243,245,.15); transition: color .35s ease, text-shadow .35s ease; }
.statement .w.lit { color: var(--text); text-shadow: 0 0 28px rgba(145, 180, 255, .28); }

.privacy-pills {
  list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px;
}
.privacy-pills li {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px;
  font-size: 13.5px; color: #DCE4F5;
  background: rgba(16, 20, 32, .62); border: 1px solid rgba(124, 155, 255, .2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.privacy-pills svg { width: 16px; height: 16px; color: var(--cyan); flex: none; }

.statement .more { margin-top: 30px; display: inline-flex; align-items: center; gap: 8px; color: var(--accent-bright); font-weight: 500; }
.statement .more svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.statement .more:hover svg { transform: translateX(4px); }

/* ---------- Download Finale ---------- */
.get { padding: 190px 0 0; text-align: center; position: relative; }
.get::before {
  content: ""; position: absolute; left: 50%; top: 110px; width: 760px; max-width: 100%; height: 480px;
  transform: translateX(-50%); z-index: -1;
  background: radial-gradient(closest-side, rgba(112, 148, 255, .32), rgba(103, 226, 255, .09) 55%, transparent);
  filter: blur(32px);
}
.get-stage { position: relative; width: 240px; height: 240px; margin: 0 auto 24px; display: grid; place-items: center; perspective: 900px; }
.orbit-ring {
  position: absolute; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(145, 175, 255, .18);
}
.orbit-ring.o1 {
  width: 196px; height: 196px;
  border-top-color: rgba(103, 226, 255, .55);
  animation: orbit 14s linear infinite;
}
.orbit-ring.o2 {
  width: 240px; height: 240px; border-style: dashed; border-color: rgba(124, 155, 255, .14);
  animation: orbit 24s linear infinite reverse;
}
@keyframes orbit { to { transform: rotate(360deg); } }

.icon-tilt {
  position: relative; width: 132px; height: 132px; border-radius: 30px; overflow: hidden;
  transition: transform .45s var(--ease);
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 34px 74px -10px rgba(108,145,255,.55);
  will-change: transform;
}
.get .appicon { width: 132px; height: 132px; border-radius: 30px; display: block; }
.get .display { margin: 0 auto; font-size: clamp(30px, 4.4vw, 52px); }
.req { margin-top: 26px; color: var(--faint); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 150px; border-top: 1px solid rgba(255,255,255,.07); color: var(--faint); font-size: 13px; background: rgba(5, 7, 12, .45); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 28px; padding-bottom: 42px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--muted); transition: color .15s ease; }
.site-footer a:hover { color: var(--text); }
.site-footer .credit a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }

/* ---------- Legal page ---------- */
.legal { padding: 72px 0 0; }
.legal .wrap { max-width: 760px; }
.legal h1 { margin: 0; font-size: clamp(32px, 4.6vw, 48px); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.legal .updated { margin: 12px 0 0; color: var(--faint); font-size: 14px; }
.legal .summary { margin: 40px 0 0; padding: 26px 28px; border-radius: 18px; background: rgba(124,155,255,.08); box-shadow: inset 0 0 0 1px rgba(124,155,255,.22); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: 17px; line-height: 1.75; }
.legal h2 { margin: 56px 0 12px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.legal p, .legal li { color: #C5CBD8; font-size: 16px; line-height: 1.8; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 1.2em; }
.legal li { margin: 4px 0; }
.legal li::marker { color: var(--faint); }
.legal strong { color: var(--text); font-weight: 600; }

/* Not found */
.notfound { padding: 160px 0 40px; text-align: center; }
.notfound h1 { margin: 0; font-size: 40px; letter-spacing: -.02em; }
.notfound p { color: var(--muted); margin: 12px 0 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .reflow .grid, .duo .grid { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .reflow .sticky, .duo .sticky { align-items: flex-start; padding-top: 76px; }
  .rf-stage { height: min(50vh, 460px); }
  .duo-stage { height: clamp(340px, 52vh, 480px); margin-top: 4px; }
  .poses { margin-top: 12px; }
  .poses li { padding: 10px 14px 10px 20px; }
  .poses li:not(.on) { display: none; }
  .outer-show, .kbd-show { grid-template-columns: 1fr; gap: 56px; }
  .routes { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .site-header .wrap { height: 56px; }
  .header-dl { display: none; }
  .section { padding-top: 112px; }
  .reflow { margin-top: 72px; }
  .lede { font-size: 15.5px; }
  .reflow .lede, .duo .lede { display: none; }
  .rf-hud { margin-top: 16px; padding: 14px; }
  .rf-presets { display: none; }
  .rf-guide-x, .rf-guide-y { display: none; }
  .routes { grid-template-columns: 1fr; gap: 12px; }
  .net { padding: 16px 12px; border-radius: 18px; }
  .statement { padding-top: 136px; }
  .get { padding-top: 136px; }
  .site-footer { margin-top: 110px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
