/* A luminous violet opening with a lightweight, live-typed code concept. */
.site-header .nav-shell { width: min(100%, 1380px); padding-inline: clamp(26px, 5.5vw, 78px); }
.hero { color: #fff; background: linear-gradient(115deg, #2c194f, #41256d 57%, #493077); border-bottom: 0; }
.hero-atmosphere { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; contain: paint; }
.aurora-orb { position: absolute; display: block; width: clamp(440px, 55vw, 800px); aspect-ratio: 1; border-radius: 50%; filter: blur(80px); }
.aurora-violet { left: 4%; top: -52%; background: #7b3ae4; opacity: .55; }
.aurora-blue { right: -20%; top: -14%; background: #747deb; opacity: .5; }
.aurora-lilac { left: 35%; bottom: -65%; background: #b15fd9; opacity: .48; }
.hero::before { content: ""; position: absolute; pointer-events: none; width: 85%; height: 130%; top: -75%; left: 24%; border-radius: 50%; border: 1px solid #e3d7ff13; transform: rotate(-20deg); }
.hero-layout { width: min(100%, 1380px); grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 34px; min-height: 648px; padding: 52px clamp(26px, 5.5vw, 78px) 40px; }
.hero-copy { position: relative; z-index: 3; animation: none; }
.hero-label { font-size: 10px; letter-spacing: .16em; gap: 11px; margin-bottom: 28px; color: #d3c3f5; }
.hero-label::before { display: none; }
.hero-label > span { display: inline-grid; place-items: center; flex: 0 0 auto; width: 27px; height: 27px; border: 1px solid #ffe9b566; border-radius: 50%; background: #ffffff12; color: #ffedc2; line-height: 1; letter-spacing: 0; }
.hero-label > span > svg { display: block; width: 17px; height: 17px; }
.hero h1 { font-size: clamp(56px, 6.95vw, 96px); line-height: 1.02; letter-spacing: -.075em; font-weight: 700; }
.hero .heading-line { padding: 0 .04em .07em 0; margin: 0 -.04em -.07em 0; }
.hero .heading-line > span { animation: none; }
.hero .accent-line > span { color: #d6c0ff; }
/* Real WebGL Warp Text sits over the unchanged, accessible DOM heading. */
.warp-title { position: relative; }
.warp-title .warp-canvas { position: absolute; z-index: 1; left: -16px; top: -16px; width: calc(100% + 32px); height: calc(100% + 32px); display: block; opacity: 0; pointer-events: none; }
.warp-title.warp-ready .warp-canvas { opacity: 1; }
.warp-title.warp-ready .warp-line { opacity: 0 !important; }
.hero[data-motion-state="reduced"] .warp-canvas { display: none; }
.hero[data-motion-state="reduced"] .warp-line { opacity: 1 !important; }
.hero-description { margin: 25px 0 30px; max-width: 365px; font-size: 16px; line-height: 1.65; color: #d5c7e9; }
.hero-actions { gap: 12px 22px; }
.hero-actions .primary { background: #f9f5ff; color: #49267e; padding: 9px 9px 9px 23px; min-height: 56px; box-shadow: 0 4px 22px #1d103220; transition: background .2s, color .2s; }
.hero-actions .primary svg { background: #e9deff; color: #693cbb; width: 36px; height: 36px; }
.hero-actions .primary:hover { background: #eadeff; }
.shine-button { position: relative; isolation: isolate; overflow: hidden; }
.shine-button .button-label, .shine-button > svg { position: relative; z-index: 1; }
.button-shine { position: absolute; z-index: 0; inset: -25% 0; background: linear-gradient(90deg, transparent 10%, #9b74f44d 50%, transparent 90%); transform: translateX(-120%) skewX(-15deg); pointer-events: none; }
.hero[data-motion-state="reduced"] .button-shine { display: none; }
.hero .demo-link { font-size: 13px; gap: 9px; color: #e9ddff; }
.hero .play-icon { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #d9cbee55; border-radius: 50%; font-size: 8px; padding-left: 1px; }
.hero .demo-link:hover .play-icon { transform: scale(1.08); border-color: #e2d0ff; }
.hero :focus-visible { outline-color: #e0caff; }
.hero-art { position: relative; z-index: 1; width: 100%; min-width: 0; height: 664px; isolation: isolate; }
.hero-art::before { content: ""; position: absolute; pointer-events: none; z-index: -2; width: 140%; height: 115%; inset: -8% -20%; background: radial-gradient(ellipse, #c2a2ff30 0%, #ab91ff20 35%, transparent 65%); }
.editor-star { position: absolute; z-index: -1; width: 155px; height: 155px; right: -44px; top: -15px; transform: rotate(17deg); opacity: .4; }
.hero-cubi { position: absolute; z-index: 3; top: -134px; right: -7px; width: 144px; height: 144px; padding: 0; border: 0; border-radius: 16px; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hero-cubi img { width: 100%; height: 100%; object-fit: contain; transform-origin: 55% 100%; }
.hero-cubi:disabled { cursor: default; }
.cubi-motion-reaction { display: block; width: 100%; height: 100%; transform-origin: 55% 100%; }
.cubi-spark { position: absolute; pointer-events: none; opacity: 0; color: #f9dfac; font-size: 18px; line-height: 1; }
.spark-a { top: 27%; left: 1%; }
.spark-b { top: 8%; right: 28%; font-size: 12px; }
.spark-c { top: 52%; right: 2%; font-size: 15px; }
.hero-cubi:focus-visible { outline: 2px solid #e4cfff; outline-offset: 4px; }
.cubi-feedback { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.editor-orbits { position: absolute; z-index: -1; pointer-events: none; width: 125%; height: 115%; left: -10%; top: -6%; overflow: visible; stroke: #dacbff2e; stroke-width: 1; }
.editor-orbits .orbit-signal { stroke: #e1d6ff99; stroke-width: 1.5; stroke-dasharray: 70 1500; }
.hero-floating-scene { position: absolute; inset: 146px 0 auto; perspective: 1400px; }
.hero-motion-stage, .hero-motion-float { position: relative; width: 100%; }
.hero-motion-stage { transform-origin: 50% 35%; }
.code-signal { position: absolute; z-index: 2; top: 0; left: 0; width: 100%; height: 100px; overflow: visible; pointer-events: none; }
.code-signal-path { stroke: #e5caff; stroke-width: 1.5; stroke-linecap: round; opacity: 0; }
.code-editor { position: relative; z-index: 1; width: 100%; border: 1px solid #e1d1ff4f; border-radius: 16px; background: #201631; box-shadow: 0 28px 65px #170a3b45, 0 0 0 6px #e9ddff06; overflow: hidden; }
.editor-run-progress { position: absolute; z-index: 2; top: 77px; left: 0; right: 0; height: 2px; overflow: hidden; pointer-events: none; }
.editor-run-progress > span { display: block; height: 100%; background: linear-gradient(90deg, #9870e7, #d9bcff, #abd5ff); transform: scaleX(0); transform-origin: left; }
.editor-titlebar { display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 17px; background: #342447; border-bottom: 1px solid #a386cc19; color: #bfaad6; font-size: 10px; }
.editor-dots { display: flex; gap: 5px; }
.editor-dots i { width: 6px; height: 6px; border-radius: 50%; background: #9c7ab2; }
.editor-dots i:nth-child(2) { background: #b397ca; }
.editor-dots i:nth-child(3) { background: #c6b1e5; }
.editor-brand { font-size: 20px; color: #c4a9f4; line-height: 1; }
.editor-tabbar { height: 40px; display: flex; align-items: center; justify-content: space-between; padding-right: 17px; border-bottom: 1px solid #a386cc1a; background: #291c3c; }
.editor-tab { display: flex; align-items: center; gap: 9px; align-self: stretch; padding: 0 17px; border-right: 1px solid #a386cc1a; border-top: 1px solid #b18af2; background: #201631; color: #e0d5f5; font-size: 11px; }
.ts-icon { color: #b6a3ff; font-size: 9px; font-weight: 700; }
.file-dot { width: 5px; height: 5px; margin-left: 10px; border-radius: 50%; background: #b697ea; }
.concept-label { font-size: 9px; color: #b2a0c6; }
.editor-code { padding: 21px 18px 20px 0; }
.code-line { display: flex; align-items: baseline; min-height: 23px; font: 13px/23px ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; color: #e5dbf3; }
.line-number { width: 48px; flex: 0 0 48px; padding-right: 17px; text-align: right; color: #867494; font-size: 10px; user-select: none; }
.code-line code { display: block; position: relative; white-space: pre; font: inherit; min-width: 0; }
.syntax-keyword { color: #c5a0fb; }
.syntax-function { color: #a8d6ff; }
.syntax-type { color: #f0c6e6; }
.syntax-string { color: #d0e8a8; }
.code-line.is-current { background: #c3a0fa09; }
.code-line.is-current .line-number { color: #cfbaf0; }
.editor-caret { display: inline-block; width: 1.5px; height: 1.15em; vertical-align: -.16em; background: #e2c3ff; animation: cursor-blink 1s steps(1) infinite; }
.editor-terminal { padding: 13px 18px 14px; border-top: 1px solid #a386cc27; background: #241935; }
.terminal-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; font-size: 8px; letter-spacing: .1em; color: #b7a2cc; }
.terminal-state { font-size: 9px; letter-spacing: 0; color: #c2abd8; }
.terminal-command, .terminal-result { display: flex; align-items: center; gap: 9px; font: 11px/1.5 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; }
.terminal-command { color: #b6a5c9; }
.terminal-command > span { color: #c7a5ff; }
.terminal-result { margin-top: 7px; color: #c7dcbd; }
.terminal-result[data-state="writing"] { color: #b5a2ce; }
.terminal-result[data-state="running"] { color: #d8c5f6; }
.terminal-indicator { width: 11px; height: 15px; flex: 0 0 11px; display: grid; place-items: center; }
.editor-statusbar { display: flex; align-items: center; justify-content: space-between; height: 27px; padding: 0 15px; border-top: 1px solid #a386cc1a; background: #302040; font-size: 8px; color: #bba5ce; }
.editor-statusbar > span { display: inline-flex; align-items: center; gap: 6px; }
.editor-statusbar i { width: 4px; height: 4px; background: #bb9ee7; border-radius: 50%; }
.editor-statusbar > span:last-child span { font-size: 13px; color: #dac0fc; }
.hero-art-controls { position: absolute; right: 0; bottom: -2px; left: 1px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #dacaf0; font-size: 10px; letter-spacing: .01em; }
.hero-art-controls[hidden] { display: none; }
.hero-art[data-motion-state="reduced"] .editor-playback { display: none; }
.editor-playback { display: flex; gap: 2px; }
.hero-motion-toggle, .hero-replay { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 50%; background: transparent; color: #dfcef7; transition: background .2s; }
.hero-motion-toggle svg { width: 12px; height: 12px; }
.hero-replay svg { width: 16px; height: 16px; }
.hero-motion-toggle:hover, .hero-replay:hover { background: #dcc4ff18; border-color: #d8c3ff33; color: white; }
.hero-motion-toggle .play-symbol { display: none; }
.hero-motion-toggle[aria-pressed="true"] .play-symbol { display: block; }
.hero-motion-toggle[aria-pressed="true"] .pause-symbol { display: none; }
.hero-art.is-paused *, .hero-art.is-paused *::after { animation-play-state: paused !important; }
.hero-bottom-line { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(calc(100% - 11vw), 1224px); margin: 0 auto; padding: 17px 0; border-top: 1px solid #e2d2ff24; font-size: 11px; color: #c3afd9; }
.hero-bottom-line a { color: #e3d4f6; display: inline-flex; align-items: center; gap: 12px; min-height: 28px; }
.hero-bottom-line a span { color: #e3ceff; font-size: 19px; transition: transform .2s; }
.hero-bottom-line a:hover span { transform: translate(3px, 3px); }
@keyframes cursor-blink { 50% { opacity: 0; } }
/* Desktop Cubi leans against the lower-left edge; mobile keeps its original perch. */
@media (min-width: 761px) {
  .hero-cubi { top: auto; right: auto; bottom: 6px; left: -146.4px; width: 172.8px; height: 172.8px; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .hero-layout { gap: 24px; min-height: 610px; padding-inline: 4.5vw; }
  .hero h1 { font-size: 6.8vw; }
  .hero-description { font-size: 14px; }
  .hero-actions { gap: 8px 15px; }
  .hero-actions .primary { font-size: 12px; padding-left: 17px; gap: 13px; min-height: 50px; }
  .hero-actions .primary svg { width: 30px; height: 30px; }
  .hero .demo-link { font-size: 11px; }
  .hero-art { height: 618px; }
  .hero-cubi { width: 157.44px; height: 157.44px; left: -133.2px; }
  .code-line { font-size: 11px; line-height: 22px; min-height: 22px; }
  .line-number { width: 32px; flex-basis: 32px; padding-right: 10px; font-size: 9px; }
  .editor-code { padding-right: 10px; }
  .hero-floating-scene { top: 122px; }
  .editor-terminal { padding-inline: 13px; }
  .terminal-command, .terminal-result { font-size: 10px; }
}
@media (max-width: 760px) {
  .site-header .nav-shell { padding-inline: 24px; }
  .hero { background: linear-gradient(150deg, #30205c, #432675 63%, #503480); }
  .aurora-orb { width: 470px; }
  .aurora-violet { left: -65%; top: -20%; opacity: .48; }
  .aurora-blue { right: -80%; top: 20%; opacity: .42; }
  .aurora-lilac { left: -5%; bottom: -28%; opacity: .42; }
  .hero-layout { grid-template-columns: 1fr; gap: 12px; padding: 37px 24px 14px; min-height: auto; }
  .hero-copy { max-width: 540px; width: 100%; margin-inline: auto; }
  .hero-label { font-size: 8px; margin-bottom: 18px; gap: 8px; }
  .hero-label > span { width: 23px; height: 23px; }
  .hero-label > span > svg { width: 15px; height: 15px; }
  .hero h1 { font-size: clamp(41px, 11.8vw, 76px); line-height: 1.02; letter-spacing: -.07em; }
  .hero-description { font-size: 14px; margin: 18px 0 22px; max-width: 340px; }
  .hero-actions { gap: 10px 16px; }
  .hero-actions .primary { font-size: 12px; min-height: 49px; padding: 7px 7px 7px 17px; gap: 13px; }
  .hero-actions .primary svg { width: 31px; height: 31px; }
  .hero .demo-link { font-size: 12px; gap: 7px; }
  .hero .play-icon { display: grid; width: 23px; height: 23px; }
  .hero-art { width: min(100%, 490px); height: 465px; margin-inline: auto; z-index: 4; }
  .hero-cubi { width: 128px; height: 128px; top: -119px; right: -7px; }
  .hero-floating-scene { top: 0; transform: none; }
  .editor-star { width: 100px; height: 100px; top: -114px; right: -28px; opacity: .35; }
  .code-editor { border-radius: 12px; box-shadow: 0 15px 35px #24123f33, 0 0 0 4px #e9ddff06; }
  .editor-run-progress { top: 64px; }
  .editor-titlebar { height: 30px; padding-inline: 13px; font-size: 9px; justify-content: flex-start; gap: 12px; }
  .editor-titlebar .editor-brand { margin-left: auto; }
  .editor-tabbar { height: 35px; padding-right: 12px; }
  .editor-tab { font-size: 10px; padding-inline: 13px; }
  .concept-label { font-size: 8px; }
  .editor-code { padding: 15px 11px 15px 0; }
  .code-line { font-size: 11px; line-height: 21px; min-height: 21px; }
  .line-number { width: 33px; flex-basis: 33px; padding-right: 11px; font-size: 9px; }
  .editor-terminal { padding: 10px 13px 12px; }
  .terminal-heading { margin-bottom: 8px; }
  .terminal-command, .terminal-result { font-size: 10px; }
  .editor-statusbar { height: 24px; padding-inline: 13px; font-size: 7px; }
  .hero-art-controls { font-size: 9px; bottom: -7px; }
  .hero-motion-toggle, .hero-replay { width: 44px; height: 44px; }
  .hero-bottom-line { width: calc(100% - 48px); padding: 12px 0; font-size: 10px; }
  .hero-bottom-line > span { display: none; }
  .hero-bottom-line a { width: 100%; justify-content: space-between; }
}
@media (max-width: 350px) {
  .hero-layout { padding-inline: 20px; padding-top: 28px; }
  .hero h1 { font-size: 11.6vw; }
  .hero-description { font-size: 13px; }
  .hero-actions { gap: 9px; }
  .hero-actions .primary { padding-left: 13px; gap: 8px; font-size: 11px; }
  .hero .demo-link { font-size: 11px; gap: 5px; }
  .hero .play-icon { width: 20px; height: 20px; }
  .code-line { font-size: 10px; line-height: 20px; min-height: 20px; }
  .line-number { width: 29px; flex-basis: 29px; padding-right: 9px; font-size: 8px; }
  .hero-art { height: 455px; }
  .hero-cubi { right: -19px; }
  .terminal-command, .terminal-result { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .button-shine { display: none; }
  .hero-floating-scene { transform: none !important; }
  .editor-playback { display: none; }
}
