/* PixelCore Engine — marketing site
   One stylesheet, no framework. Tokens first, then layout, then components. */

:root {
  --bg: #05070d;
  --bg-2: #080b14;
  --surface: #0d121e;
  --surface-2: #121929;
  --surface-3: #18213a;
  --line: rgba(148, 170, 214, .12);
  --line-strong: rgba(148, 170, 214, .22);
  --text: #e8edf6;
  --text-2: #aab6cc;
  --text-3: #7a879f;
  --silver-1: #f4f7fc;
  --silver-2: #aeb9cc;
  --orange: #ff9a1f;
  --orange-2: #ffb547;
  --orange-deep: #e86f00;
  --blue: #2e8bff;
  --blue-2: #6db2ff;
  --blue-deep: #1556c9;
  --green: #4fd1a5;
  --red: #ff6b6b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-2); text-decoration: none; }
a:hover { color: var(--text); }
::selection { background: rgba(255, 154, 31, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--orange); color: #120a00; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); margin: 0; letter-spacing: -.02em; line-height: 1.1; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.9rem); font-weight: 700; letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 650; }
h3 { font-size: 1.22rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--text-2); max-width: 46rem; }
.muted { color: var(--text-2); }
.small { font-size: .9rem; }
.mono { font-family: var(--font-mono); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .78rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-2); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--orange)); border-radius: 2px; }

.grad-silver {
  background: linear-gradient(180deg, var(--silver-1) 10%, var(--silver-2) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-core {
  background: linear-gradient(100deg, var(--orange-2), var(--orange) 45%, var(--orange-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-blue {
  background: linear-gradient(100deg, var(--blue-2), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --b: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font: 600 .98rem/1 var(--font-text); letter-spacing: -.005em;
  color: var(--text); background: var(--b); border: 1px solid var(--line-strong);
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { color: #fff; transform: translateY(-1px); border-color: rgba(148, 170, 214, .4); }
.btn-primary {
  color: #1a0d00; border: 0;
  background: linear-gradient(180deg, #ffbb5c, var(--orange) 55%, #f07f00);
  box-shadow: 0 10px 30px -10px rgba(255, 140, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-primary:hover { color: #1a0d00; box-shadow: 0 16px 40px -12px rgba(255, 140, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-ghost { background: rgba(255, 255, 255, .03); backdrop-filter: blur(8px); }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled, .nav.open { background: rgba(5, 7, 13, .78); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand img { width: 38px; height: 38px; }
.brand-name { display: inline-grid; justify-items: stretch; gap: 4px; font-family: var(--font-display); text-transform: uppercase; }
.brand-word { font-size: 1.22rem; font-weight: 700; line-height: 1; letter-spacing: .01em; }
.brand-word b { font-weight: 700; color: var(--orange); }
.brand-word span { color: var(--silver-1); }
.brand-name small {
  display: flex; align-items: center; gap: 6px;
  font: 600 .56rem/1 var(--font-display); letter-spacing: .52em; color: var(--silver-2);
}
.brand-name small::before, .brand-name small::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(174, 185, 204, .6)); }
.brand-name small::after { background: linear-gradient(90deg, rgba(174, 185, 204, .6), transparent); margin-left: -.52em; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 9px; color: var(--text-2); font-size: .95rem; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { min-height: 40px; padding: 0 16px; font-size: .92rem; border-radius: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; }
.nav-toggle svg { margin: auto; }

@media (max-width: 1040px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links, .nav-cta .btn-primary { display: none; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    padding: 12px var(--gutter) 22px; background: rgba(5, 7, 13, .96); border-bottom: 1px solid var(--line);
  }
  .nav.open .nav-links a { padding: 14px 12px; font-size: 1.05rem; }
  .nav.open .nav-links .mobile-cta { display: block; margin-top: 10px; }
}
.nav-links .mobile-cta { display: none; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { max-width: 880px; margin-left: auto; margin-right: auto; text-align: center; }
.split h2 { margin-bottom: 18px; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }
.section-head h2 { margin-bottom: 18px; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(100vh, 980px); padding: calc(var(--nav-h) + 40px) 0 80px;
  display: flex; align-items: center; overflow: hidden; isolation: isolate;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 18% 30%, rgba(46, 139, 255, .22), transparent 70%),
    radial-gradient(50% 50% at 85% 60%, rgba(255, 154, 31, .17), transparent 70%),
    radial-gradient(80% 60% at 50% 120%, rgba(46, 139, 255, .18), transparent 70%),
    var(--bg);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 200px; z-index: -1;
  background: linear-gradient(transparent, var(--bg));
}
.hero-inner { display: grid; justify-items: center; text-align: center; }
.hero-mark { width: min(560px, 86vw); margin: 0 auto 26px; filter: drop-shadow(0 20px 60px rgba(255, 140, 0, .25)); }
.hero h1 { max-width: 15ch; margin: 0 auto 22px; }
.hero .lede { margin: 0 auto 36px; text-align: center; }
.hero .btn-row { justify-content: center; }
.status-pill {
  display: inline-flex; max-width: 100%; text-align: left; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 7px 14px 7px 10px; border-radius: 999px; font-size: .86rem; color: var(--text-2);
  background: rgba(13, 18, 30, .7); border: 1px solid var(--line-strong); backdrop-filter: blur(8px);
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 154, 31, .18), 0 0 14px var(--orange); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 154, 31, .05), 0 0 18px var(--orange); } }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 38px; color: var(--text-3); font-size: .9rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--green); }

/* Page hero (inner pages) */
.page-hero { padding: calc(var(--nav-h) + clamp(60px, 9vw, 110px)) 0 clamp(50px, 7vw, 80px); position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 70% at 15% 0%, rgba(46, 139, 255, .2), transparent 70%),
    radial-gradient(40% 60% at 90% 10%, rgba(255, 154, 31, .14), transparent 70%);
}
.page-hero .grid-floor { position: absolute; inset: auto 0 0 0; height: 60%; z-index: -1; opacity: .5; }
.page-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); max-width: 18ch; margin-bottom: 20px; }

.grid-floor {
  background-image:
    linear-gradient(rgba(46, 139, 255, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 139, 255, .16) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(500px) rotateX(60deg); transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, #000 10%, transparent 90%);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%);
}

/* ---------- Pillars strip ---------- */
.pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pillar { background: var(--bg-2); padding: 26px 22px; }
.pillar .k { font: 700 1.6rem/1.1 var(--font-display); letter-spacing: -.02em; margin-bottom: 6px; }
.pillar .v { color: var(--text-2); font-size: .93rem; line-height: 1.5; }
@media (max-width: 1000px) { .pillars { grid-template-columns: repeat(2, 1fr); } .pillar:last-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  --mx: 50%; --my: 0%;
  position: relative; padding: 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 25, 41, .8), rgba(10, 14, 24, .8));
  border: 1px solid var(--line);
  transition: border-color .25s ease, transform .25s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 154, 31, .10), transparent 45%);
}
.card:hover { border-color: var(--line-strong); }
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: .97rem; margin: 0; }
.card .tag { position: absolute; top: 22px; right: 22px; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(180deg, rgba(46, 139, 255, .22), rgba(46, 139, 255, .06));
  border: 1px solid rgba(46, 139, 255, .3); color: var(--blue-2);
}
.icon.orange { background: linear-gradient(180deg, rgba(255, 154, 31, .24), rgba(255, 154, 31, .06)); border-color: rgba(255, 154, 31, .35); color: var(--orange-2); }
.icon svg { width: 22px; height: 22px; }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; color: var(--text-2); font-size: .93rem; }
.card ul > li { padding: 5px 0 5px 22px; position: relative; }
.card ul > li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); transform: rotate(45deg); opacity: .8; }

.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
  font: 600 .7rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--green); background: rgba(79, 209, 165, .1); border: 1px solid rgba(79, 209, 165, .28);
}
.tag.v1x { color: var(--blue-2); background: rgba(46, 139, 255, .1); border-color: rgba(46, 139, 255, .3); }
.tag.later { color: var(--text-3); background: rgba(255, 255, 255, .04); border-color: var(--line-strong); }
.tag.paid { color: var(--orange-2); background: rgba(255, 154, 31, .1); border-color: rgba(255, 154, 31, .3); }

/* Feature (split) rows */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 960px) { .split, .split.reverse { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--text-2); }
.checks li b { color: var(--text); font-weight: 600; }
.checks svg { width: 20px; height: 20px; margin-top: 3px; color: var(--orange); }

/* ---------- Studio mock ---------- */
.studio-shot {
  position: relative; border-radius: 18px; padding: 1px;
  background: linear-gradient(140deg, rgba(46, 139, 255, .55), rgba(148, 170, 214, .12) 35%, rgba(148, 170, 214, .08) 65%, rgba(255, 154, 31, .55));
  box-shadow: 0 50px 120px -40px rgba(46, 139, 255, .35), 0 40px 100px -50px rgba(255, 154, 31, .35);
}
.studio-shot::after { content: ""; position: absolute; inset: -60px 0 auto; height: 160px; z-index: -1; background: radial-gradient(closest-side, rgba(46, 139, 255, .3), transparent); filter: blur(30px); }
.studio {
  border-radius: 17px; overflow: hidden; background: #0a0e17;
  font: 500 12.5px/1.4 var(--font-text); color: var(--text-2);
  display: grid; grid-template-rows: auto 1fr auto;
}
.st-bar { display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 14px; background: #0d121d; border-bottom: 1px solid var(--line); }
.st-dots { display: flex; gap: 7px; }
.st-dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a3247; }
.st-dots i:nth-child(1) { background: #ff5f57; } .st-dots i:nth-child(2) { background: #febc2e; } .st-dots i:nth-child(3) { background: #28c840; }
.st-title { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.st-title img { width: 18px; height: 18px; }
.st-menu { display: flex; gap: 14px; color: var(--text-3); }
.st-play { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.st-play span { display: grid; place-items: center; width: 28px; height: 24px; border-radius: 6px; background: #151c2c; border: 1px solid var(--line); }
.st-play span.on { background: linear-gradient(180deg, #ffb24a, #ff8a00); border: 0; color: #1a0d00; box-shadow: 0 0 16px rgba(255, 140, 0, .5); }
.st-play svg { width: 11px; height: 11px; }
.st-k { margin-left: 8px; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--text-3); font-family: var(--font-mono); font-size: 11px; }
.st-body { display: grid; grid-template-columns: 190px 1fr 230px; min-height: 0; }
.st-panel { background: #0b1019; border-right: 1px solid var(--line); padding: 10px 0; overflow: hidden; }
.st-panel:last-child { border-right: 0; border-left: 1px solid var(--line); }
.st-ph { display: flex; justify-content: space-between; padding: 2px 14px 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.tree { list-style: none; margin: 0; padding: 0; }
.tree li { display: flex; align-items: center; gap: 7px; padding: 4px 14px; white-space: nowrap; }
.tree li.sel { background: rgba(255, 154, 31, .12); color: var(--text); box-shadow: inset 2px 0 0 var(--orange); }
.tree .ind1 { padding-left: 28px; } .tree .ind2 { padding-left: 42px; }
.tree i { width: 10px; height: 10px; border-radius: 3px; flex: none; background: var(--blue); opacity: .85; }
.tree i.o { background: var(--orange); } .tree i.s { background: #9aa6bd; } .tree i.g { background: var(--green); }
.st-view { position: relative; background: radial-gradient(120% 90% at 50% 10%, #13213c, #0a0f1a 70%); min-height: 380px; }
.st-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.st-viewbar { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; pointer-events: none; }
.seg { display: inline-flex; background: rgba(9, 13, 22, .8); border: 1px solid var(--line); border-radius: 8px; padding: 2px; backdrop-filter: blur(6px); }
.seg span { padding: 4px 9px; border-radius: 6px; font-size: 11px; }
.seg span.on { background: var(--surface-3); color: var(--text); }
.st-fps { position: absolute; left: 10px; bottom: 10px; font: 500 11px/1.5 var(--font-mono); color: var(--green); background: rgba(9, 13, 22, .8); border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; }
.st-fps span { color: var(--text-3); }
.insp { padding: 0 14px; }
.insp .comp { border: 1px solid var(--line); border-radius: 9px; margin-bottom: 9px; overflow: hidden; }
.insp .comp-h { display: flex; align-items: center; gap: 7px; padding: 7px 10px; background: #111827; color: var(--text); font-weight: 600; }
.insp .comp-h i { width: 9px; height: 9px; border-radius: 2px; background: var(--blue); }
.insp .comp-h i.o { background: var(--orange); }
.insp .row { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 8px; padding: 5px 10px; }
.insp .val { padding: 3px 7px; border-radius: 5px; background: #0d1320; border: 1px solid var(--line); color: var(--text); font-family: var(--font-mono); font-size: 11px; text-align: right; }
.insp .val.x { border-left: 2px solid #ff6b6b; } .insp .val.y { border-left: 2px solid #4fd1a5; } .insp .val.z { border-left: 2px solid #2e8bff; }
.insp .xyz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.insp .toggle { justify-self: end; width: 28px; height: 16px; border-radius: 9px; background: var(--orange); position: relative; }
.insp .toggle::after { content: ""; position: absolute; right: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.st-foot { display: grid; grid-template-columns: 1fr 1.25fr; border-top: 1px solid var(--line); background: #0b1019; height: 182px; }
.st-assets { padding: 10px 14px; border-right: 1px solid var(--line); overflow: hidden; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.thumbs div { aspect-ratio: 1; border-radius: 7px; border: 1px solid var(--line); background: #111827; display: grid; place-items: center; }
.thumbs div i { width: 46%; aspect-ratio: 1; transform: rotate(45deg) skew(-8deg, -8deg); border-radius: 3px; }
.st-code { padding: 8px 0; overflow: hidden; font: 400 11.5px/1.65 var(--font-mono); }
.st-tabs { display: flex; gap: 2px; padding: 0 10px 6px; font-family: var(--font-text); font-size: 11px; }
.st-tabs span { padding: 3px 10px; border-radius: 6px; color: var(--text-3); }
.st-tabs span.on { background: #141c2d; color: var(--text); }
.st-code pre { margin: 0; padding: 0 14px; color: #c9d4e8; white-space: pre; }
.st-code .ln { color: #3a4560; display: inline-block; width: 22px; }
@media (max-width: 1000px) { .st-body { grid-template-columns: 1fr; } .st-panel { display: none; } .st-foot { grid-template-columns: 1fr; } .st-assets { display: none; } .st-menu { display: none; } }
@media (max-width: 560px) { .st-view { min-height: 260px; } .st-k { display: none; } }

/* Syntax colors */
.k { color: #ff9a1f; } .f { color: #6db2ff; } .s { color: #8fe3b5; } .n { color: #f7c873; } .c { color: #5b6884; font-style: italic; } .t { color: #c49bff; } .p { color: #e8edf6; }

/* ---------- Code card ---------- */
.code-card { border-radius: var(--radius); border: 1px solid var(--line-strong); background: #0a0e17; overflow: hidden; box-shadow: var(--shadow); }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #0d121d; border-bottom: 1px solid var(--line); font: 500 .82rem/1 var(--font-mono); color: var(--text-3); }
.code-head .file { display: flex; align-items: center; gap: 10px; color: var(--text-2); }
.code-head .file::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--orange); }
.code-card pre { margin: 0; padding: 20px 22px; font: 400 .9rem/1.75 var(--font-mono); color: #c9d4e8; overflow-x: auto; }
.reload { display: inline-flex; align-items: center; gap: 8px; color: var(--green); }
.reload i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

/* ---------- Platforms ---------- */
.platforms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.platforms.later { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; }
@media (max-width: 860px) { .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .platforms.later { grid-template-columns: 1fr; } .platform { padding: 14px; gap: 12px; } }
.platform {
  display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 14px;
  background: rgba(13, 18, 30, .7); border: 1px solid var(--line);
}
.platform svg { width: 30px; height: 30px; flex: none; color: var(--silver-2); }
.platform b { display: block; font-weight: 600; color: var(--text); font-size: .98rem; }
.platform small { color: var(--text-3); font-size: .82rem; }
.platform.soon { opacity: .6; border-style: dashed; }

/* ---------- Tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tier { padding: 30px 28px; background: var(--bg-2); position: relative; }
.tier + .tier { border-left: 1px solid var(--line); }
.tier .lvl { font: 600 .75rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; display: flex; justify-content: space-between; }
.tier h3 { font-size: 1.35rem; margin-bottom: 14px; }
.tier .bar { height: 4px; border-radius: 4px; background: var(--surface-3); margin-bottom: 20px; overflow: hidden; }
.tier .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--orange)); }
.tier ul { margin: 0; padding: 0; list-style: none; color: var(--text-2); font-size: .93rem; display: grid; gap: 7px; }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } .tier + .tier { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- Learn timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; position: relative; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--blue), var(--orange)); opacity: .5; }
.timeline li { display: grid; grid-template-columns: 44px 1fr auto; gap: 18px; align-items: start; padding: 14px 0; position: relative; }
.timeline li::before {
  counter-increment: step; content: counter(step);
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font: 700 1rem/1 var(--font-display); color: var(--text); background: var(--surface-2); border: 1px solid var(--line-strong); z-index: 1;
}
.timeline b { display: block; color: var(--text); font-weight: 600; margin-top: 2px; }
.timeline span { color: var(--text-2); font-size: .94rem; }
.timeline time { font: 500 .82rem/1 var(--font-mono); color: var(--orange-2); padding-top: 14px; }

/* ---------- AI terminal ---------- */
.term { border-radius: var(--radius); border: 1px solid var(--line-strong); background: #080b13; overflow: hidden; box-shadow: var(--shadow); font: 400 .86rem/1.65 var(--font-mono); }
.term-head { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: #0c111b; color: var(--text-3); font-size: .78rem; }
.term-head .live { margin-left: auto; color: var(--green); display: inline-flex; align-items: center; gap: 7px; }
.term-head .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.term-body { padding: 18px 20px; min-height: 360px; }
.term-line { opacity: 0; transform: translateY(4px); transition: opacity .35s ease, transform .35s ease; margin-bottom: 8px; }
.term-line.show { opacity: 1; transform: none; }
.term-line.user { color: var(--text); }
.term-line.user::before { content: "you › "; color: var(--blue-2); }
.term-line.ai { color: var(--text-2); font-family: var(--font-text); font-size: .92rem; }
.term-line.ai::before { content: "assistant › "; color: var(--orange-2); font-family: var(--font-mono); font-size: .86rem; }
.term-line.tool { color: #8fa0bf; padding-left: 14px; border-left: 2px solid rgba(46, 139, 255, .4); }
.term-line.tool b { color: var(--blue-2); font-weight: 500; }
.term-line.tool em { color: var(--green); font-style: normal; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); -webkit-overflow-scrolling: touch; }
table.compare { width: 100%; border-collapse: collapse; min-width: 860px; font-size: .92rem; }
.compare th, .compare td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font: 600 .82rem/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); background: #0b0f19; position: sticky; top: 0; }
.compare thead th.us { color: var(--orange-2); }
.compare tbody th { color: var(--text); font-weight: 600; width: 22%; }
.compare td { color: var(--text-2); width: 19.5%; }
.compare td.us { color: var(--text); background: linear-gradient(180deg, rgba(255, 154, 31, .07), rgba(255, 154, 31, .04)); border-left: 1px solid rgba(255, 154, 31, .22); border-right: 1px solid rgba(255, 154, 31, .22); }
.compare thead th.us { background: linear-gradient(180deg, rgba(255, 154, 31, .16), rgba(255, 154, 31, .07)); border-left: 1px solid rgba(255, 154, 31, .22); border-right: 1px solid rgba(255, 154, 31, .22); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--green); font-weight: 600; }
.compare tr.group th { padding-top: 26px; font: 600 .74rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-2); background: transparent; }
.compare tr.group td { background: transparent; }
.footnote { margin-top: 16px; color: var(--text-3); font-size: .84rem; max-width: 70rem; }

/* ---------- Pricing ---------- */
.price-cards { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .price-cards { grid-template-columns: 1fr; } }
.price { padding: 36px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; }
.price.feature { background: linear-gradient(180deg, rgba(255, 154, 31, .1), rgba(13, 18, 30, .9) 40%); border-color: rgba(255, 154, 31, .35); box-shadow: 0 30px 80px -40px rgba(255, 140, 0, .45); }
.price .amount { font: 700 clamp(3rem, 6vw, 4.2rem)/1 var(--font-display); letter-spacing: -.04em; margin: 16px 0 6px; }
.price .amount small { font-size: 1rem; font-weight: 500; color: var(--text-2); letter-spacing: 0; margin-left: 6px; }
.price .checks { margin-bottom: 28px; }
.price > .tag { align-self: flex-start; }
.price .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Roadmap ---------- */
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
@media (max-width: 1000px) { .roadmap { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .roadmap { grid-template-columns: 1fr; } }
.phase { padding: 26px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); position: relative; }
.phase .when { font: 600 .76rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--orange-2); margin-bottom: 12px; }
.phase h3 { margin-bottom: 12px; }
.phase ul { margin: 0; padding: 0 0 0 18px; color: var(--text-2); font-size: .92rem; display: grid; gap: 6px; }
.phase .gate { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line-strong); font-size: .85rem; color: var(--text-3); }
.phase .gate b { color: var(--blue-2); font-weight: 600; }
.phase.now { border-color: rgba(255, 154, 31, .45); box-shadow: 0 0 0 1px rgba(255, 154, 31, .15), 0 30px 60px -40px rgba(255, 140, 0, .5); }
.phase.now::after { content: "Now"; position: absolute; top: -11px; right: 18px; font: 700 .68rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: #1a0d00; background: var(--orange); padding: 5px 8px; border-radius: 6px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); transition: border-color .2s ease; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font: 600 1.04rem/1.4 var(--font-text); color: var(--text); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: translateY(-70%) rotate(45deg); transition: transform .25s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .a { padding: 0 24px 22px; color: var(--text-2); }
.faq .a p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  border-radius: 28px; padding: clamp(50px, 8vw, 90px) var(--gutter);
  background: radial-gradient(60% 90% at 50% 0%, rgba(255, 154, 31, .2), transparent 70%), radial-gradient(60% 80% at 50% 100%, rgba(46, 139, 255, .22), transparent 70%), var(--surface);
  border: 1px solid var(--line-strong);
}
.cta-band .grid-floor { position: absolute; inset: auto 0 0 0; height: 70%; z-index: -1; opacity: .6; }
.cta-band h2 { max-width: 18ch; margin: 0 auto 18px; }
.cta-band .lede { margin: 0 auto 32px; }
.cta-band .btn-row { justify-content: center; }
.cta-band .badge-img { width: min(380px, 80%); margin: 40px auto 0; opacity: .95; }

/* ---------- Badge / brand ---------- */
.badge-stage { display: grid; place-items: center; padding: clamp(30px, 6vw, 60px); border-radius: var(--radius); background: radial-gradient(70% 90% at 50% 50%, rgba(46, 139, 255, .12), transparent 70%), #060910; border: 1px solid var(--line); }
.badge-stage.light { background: #e9edf4; }
.badge-stage img { width: min(520px, 100%); }
.asset-card { display: flex; flex-direction: column; gap: 14px; }
.asset-card .preview { aspect-ratio: 16 / 10; border-radius: 12px; display: grid; place-items: center; background: #060910; border: 1px solid var(--line); padding: 18px; }
.asset-card .preview img { max-height: 100%; width: auto; object-fit: contain; }
.asset-card .meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.asset-card .meta b { color: var(--text); font-weight: 600; }
.asset-card .meta a { font-size: .9rem; font-weight: 600; }
.do-dont { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .do-dont { grid-template-columns: 1fr; } }
.do-dont .card h3 { display: flex; align-items: center; gap: 10px; }
.do-dont .do h3 { color: var(--green); } .do-dont .dont h3 { color: var(--red); }
.do-dont .dont ul > li::before { background: var(--red); }
.do-dont .do ul > li::before { background: var(--green); }

/* ---------- Legal ---------- */
.legal { padding: calc(var(--nav-h) + 70px) 0 100px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 12px; }
.legal .updated { color: var(--text-3); font: 500 .9rem/1 var(--font-mono); margin-bottom: 34px; }
.legal .summary { padding: 22px 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong); border-left: 3px solid var(--orange); color: var(--text-2); margin-bottom: 44px; }
.legal .summary b { color: var(--text); }
.legal h2 { font-size: 1.35rem; margin: 44px 0 14px; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--text-2); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .caps { font-size: .92rem; letter-spacing: .01em; }
.legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(109, 178, 255, .4); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 70px 0 40px; background: linear-gradient(180deg, var(--bg), #03050a); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand img.wm { width: 220px; margin-bottom: 16px; }
.footer-brand p { color: var(--text-3); font-size: .92rem; max-width: 26rem; }
.footer h4 { font: 600 .76rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--text-2); font-size: .95rem; }
.footer ul a:hover { color: var(--text); }
.footer-base { margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; color: var(--text-3); font-size: .85rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .term-line { opacity: 1; transform: none; }
}

/* ---------- 404 ---------- */
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: var(--nav-h) var(--gutter) 60px; position: relative; overflow: hidden; isolation: isolate; }
.nf .code { font: 800 clamp(6rem, 22vw, 13rem)/1 var(--font-display); letter-spacing: -.06em; }

/* ---------- Utilities ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tiers.stack { grid-template-columns: 1fr; }
.tiers.stack .tier + .tier { border-left: 0; border-top: 1px solid var(--line); }
code.mono { font-size: .88em; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--text); }
.compare.simple td, .compare.simple tbody th { width: auto; }
.compare.simple td:last-child { color: var(--text-2); }

/* ---------- Learn panel (Studio page) ---------- */
.lp {
  border-radius: 18px; overflow: hidden; background: #0a0e17; border: 1px solid var(--line-strong);
  box-shadow: 0 50px 120px -50px rgba(46, 139, 255, .35), 0 40px 100px -60px rgba(255, 154, 31, .35);
  font-size: 14px; color: var(--text-2);
}
.lp svg { width: 16px; height: 16px; flex: none; }
.lp .lp-game { width: 100%; height: auto; display: block; }
.lp-bar { display: flex; align-items: center; gap: 16px; height: 46px; padding: 0 16px; background: #0d121d; border-bottom: 1px solid var(--line); }
.lp-search {
  flex: 1; max-width: 420px; margin-left: auto; display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 10px;
  border-radius: 8px; background: #080b13; border: 1px solid var(--line); color: var(--text-3); font-size: 12.5px;
}
.lp-search kbd { margin-left: auto; font: 500 11px/1 var(--font-mono); color: var(--text-3); border: 1px solid var(--line); border-radius: 5px; padding: 3px 6px; }
.lp-offline { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--green); white-space: nowrap; }
.lp-offline i, .lp-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.lp-body { display: grid; grid-template-columns: 248px minmax(0, 1fr) 330px; }
.lp-kicker { display: block; font: 600 10.5px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--orange-2); }

.lp-side { background: #0b1019; border-right: 1px solid var(--line); padding: 20px 0; }
.lp-course { padding: 0 20px 18px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.lp-course b { display: block; font: 600 1.05rem/1.3 var(--font-display); color: var(--text); margin: 6px 0 12px; }
.lp-progress { height: 5px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.lp-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--orange)); border-radius: 5px; }
.lp-meta { display: block; margin-top: 8px; font-size: 12px; color: var(--text-3); }
.lp-steps { list-style: none; margin: 0; padding: 0 10px; display: grid; gap: 2px; }
.lp-steps li { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 9px; font-size: 13px; line-height: 1.3; }
.lp-mark, .lp-steps .ls-mark {
  width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font: 600 11px/1 var(--font-mono); border: 1.5px solid var(--line-strong); color: var(--text-3);
}
.lp-steps .ls-done { color: var(--text-2); }
.lp-steps .ls-done .ls-mark { border-color: transparent; background: rgba(79, 209, 165, .16); color: var(--green); }
.lp-steps .ls-done .ls-mark svg { width: 13px; height: 13px; }
.lp-steps .ls-now { background: rgba(255, 154, 31, .1); color: var(--text); font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255, 154, 31, .28); }
.lp-steps .ls-now .ls-mark { border-color: var(--orange); color: #1a0d00; background: var(--orange); box-shadow: 0 0 12px rgba(255, 154, 31, .5); }
.lp-steps .ls-todo { color: var(--text-3); }

.lp-main { padding: 26px 30px 28px; min-width: 0; }
.lp-main h3 { font-size: 1.45rem; margin: 6px 0 10px; }
.lp-main > p { color: var(--text-2); font-size: 14.5px; line-height: 1.65; margin-bottom: 18px; }
.lp-code { border-radius: 12px; border: 1px solid var(--line); background: #080b13; overflow: hidden; }
.lp-code-h { display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; background: #0d121d; border-bottom: 1px solid var(--line); font: 500 11.5px/1 var(--font-mono); color: var(--text-3); }
.lp-code-h .file { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.lp-code-h .file::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); }
.lp-code pre { margin: 0; padding: 10px 0; font: 400 12.5px/1.75 var(--font-mono); color: #c9d4e8; overflow-x: auto; }
.lp-code pre > span, .lp-code pre { white-space: pre; }
.lp-code .ln { display: inline-block; width: 34px; padding-right: 10px; text-align: right; color: #3a4560; }
.lp-code .add { display: block; background: rgba(79, 209, 165, .09); box-shadow: inset 2px 0 0 var(--green); color: #d9f7ea; }
.lp-code .add .ln { color: #3f8f72; }

.lp-checks { margin-top: 18px; border-radius: 12px; border: 1px solid var(--line); background: #0b1019; padding: 6px 0; }
.lp-checks-h { display: flex; justify-content: space-between; padding: 8px 14px 6px; font: 600 10.5px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.lp-checks-h span { letter-spacing: 0; text-transform: none; font-family: var(--font-text); font-weight: 500; font-size: 11.5px; }
.lp-check { display: flex; align-items: center; gap: 11px; padding: 9px 14px; font-size: 13.5px; color: var(--text); }
.lp-check + .lp-check { border-top: 1px solid var(--line); }
.lp-check em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--orange-2); white-space: nowrap; }
.lp-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.lp-check.ok .lp-dot { background: rgba(79, 209, 165, .16); color: var(--green); }
.lp-check.ok .lp-dot svg { width: 13px; height: 13px; }
.lp-check.wait { color: var(--text-2); }
.lp-check.wait .lp-dot i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 154, 31, .25); border-top-color: var(--orange); animation: lp-spin 1s linear infinite; }
@keyframes lp-spin { to { transform: rotate(360deg); } }
.lp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.lp-btn { min-height: 38px; padding: 0 16px; font-size: 13.5px; border-radius: 10px; cursor: default; }
.lp-btn:hover { transform: none; }
.lp-hint { margin-left: auto; font-size: 13px; color: var(--blue-2); }

.lp-preview { border-left: 1px solid var(--line); background: #0b1019; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.lp-preview-h { display: flex; justify-content: space-between; align-items: center; font: 600 10.5px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.lp-live { display: inline-flex; align-items: center; gap: 7px; color: var(--green); letter-spacing: .06em; }
.lp-preview .lp-game { border-radius: 10px; border: 1px solid var(--line); }
.lp-ring { transform-origin: 186px 112px; animation: lp-pulse 1.8s ease-in-out infinite; }
@keyframes lp-pulse { 50% { transform: scale(1.18); opacity: .55; } }
.lp-coin { animation: lp-bob 1.6s ease-in-out infinite; }
.lp-coin-2 { animation-delay: .3s; } .lp-coin-3 { animation-delay: .6s; }
@keyframes lp-bob { 50% { transform: translateY(-3px); } }
.lp-callout {
  position: relative; padding: 12px 14px; border-radius: 10px; font-size: 12.5px; line-height: 1.55; color: var(--text-2);
  background: rgba(255, 154, 31, .08); border: 1px solid rgba(255, 154, 31, .3);
}
.lp-callout b { display: block; margin-bottom: 3px; color: var(--orange-2); font-size: 12px; letter-spacing: .02em; }

@media (max-width: 1100px) {
  .lp-body { grid-template-columns: 220px minmax(0, 1fr); }
  .lp-preview { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .lp-preview-h { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .lp-body { grid-template-columns: 1fr; }
  .lp-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 0 6px; }
  .lp-steps { display: none; }
  .lp-course { border-bottom: 0; margin-bottom: 0; }
  .lp-main { padding: 20px 18px 22px; }
  .lp-preview { grid-template-columns: 1fr; }
  .lp-search span, .lp-offline { display: none; }
  .lp-search { max-width: 120px; }
  .lp-hint { margin-left: 0; }
  .lp-check em { display: none; }
}
.lp-code .add { display: inline-block; width: 100%; }
.lp-insp { border-radius: 10px; border: 1px solid var(--line); background: #0a0e17; overflow: hidden; font-size: 12.5px; }
.lp-insp-h { display: flex; justify-content: space-between; padding: 9px 12px; border-bottom: 1px solid var(--line); font: 600 10.5px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.lp-insp-h span:last-child { letter-spacing: 0; text-transform: none; font-family: var(--font-text); color: var(--text-2); }
.lp-insp-c { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #111827; color: var(--text); font-weight: 600; }
.lp-insp-c i { width: 9px; height: 9px; border-radius: 2px; background: var(--blue); }
.lp-insp-c i.o { background: var(--orange); }
.lp-insp-c.hl { box-shadow: inset 0 0 0 1px rgba(255, 154, 31, .45); background: rgba(255, 154, 31, .1); }
.lp-hl { margin-left: auto; font: 600 10px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--orange-2); }
.lp-insp-r { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 6px 12px; color: var(--text-2); }
.lp-insp-r .val { min-width: 64px; padding: 3px 8px; border-radius: 5px; background: #0d1320; border: 1px solid var(--line); color: var(--text); font: 400 11px/1.4 var(--font-mono); text-align: right; }
@media (max-width: 1100px) { .lp-insp { display: none; } }

/* ---------- Director demo ---------- */
.dir, .cast {
  border-radius: 18px; overflow: hidden; background: #0a0e17; border: 1px solid var(--line-strong);
  box-shadow: 0 50px 120px -50px rgba(255, 154, 31, .35), 0 40px 100px -60px rgba(46, 139, 255, .35);
  color: var(--text-2); font-size: 13px;
}
.dir svg, .cast svg { width: 14px; height: 14px; flex: none; }
.dir-bar { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 16px; background: #0d121d; border-bottom: 1px solid var(--line); }
.dir-rec { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font: 600 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.dir-rec i { width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 10px #ff4d4d; animation: pulse-rec 1.4s ease-in-out infinite; }
@keyframes pulse-rec { 50% { opacity: .35; } }
.dir-view { background: #020306; padding: 0; }
.dir-frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #0a1230 0%, #1d2350 28%, #4a2c55 40%, #c2582e 49.5%, #2a1c2c 56%);
}
.dir-layer { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; transform-origin: 50% 50%; will-change: transform, filter; }
.dir-layer.bg { inset: -30%; width: 160%; height: 160%; }
.dir-bokeh i { position: absolute; display: block; width: 8px; height: 8px; border-radius: 50%; transform: translate(-50%, -50%); mix-blend-mode: screen; }
.dir-bokeh i.o { background: radial-gradient(closest-side, rgba(255, 196, 120, .5), rgba(255, 190, 110, .72) 82%, rgba(255, 225, 170, .95) 93%, transparent 100%); box-shadow: 0 0 12px rgba(255, 170, 70, .35); }
.dir-bokeh i.b { background: radial-gradient(closest-side, rgba(120, 180, 255, .4), rgba(120, 180, 255, .62) 82%, rgba(180, 215, 255, .9) 93%, transparent 100%); box-shadow: 0 0 12px rgba(46, 139, 255, .3); }
.dir-flare { position: absolute; left: 0; right: 0; top: 0; height: 0; opacity: 0; transition: opacity .5s ease; pointer-events: none; mix-blend-mode: screen; }
.dir-flare::before { content: ""; position: absolute; left: 0; right: 0; top: -1.5px; height: 3px;
  background: radial-gradient(ellipse 60% 100% at var(--fx, 50%) 50%, rgba(225, 238, 255, 1), rgba(120, 175, 255, .7) 30%, rgba(80, 140, 255, .18) 70%, transparent 100%); }
.dir-flare::after { content: ""; position: absolute; left: var(--fx, 50%); top: -9px; width: 90px; height: 18px; margin-left: -45px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200, 225, 255, .55), rgba(90, 150, 255, .18) 60%, transparent); filter: blur(2px); }
.dir-flare.on { opacity: 1; }
.dir-wires { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.dir-bokeh i.sharp.o { background: radial-gradient(closest-side, #fff4dc, #ffc56e 45%, rgba(255, 170, 70, .5) 70%, transparent); box-shadow: 0 0 8px 2px rgba(255, 170, 70, .55); }
.dir-bokeh i.sharp.b { background: radial-gradient(closest-side, #eef6ff, #8cc4ff 45%, rgba(46, 139, 255, .5) 70%, transparent); box-shadow: 0 0 8px 2px rgba(46, 139, 255, .5); }
.dir-bars { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(#000 0 12.8%, transparent 12.8% 87.2%, #000 87.2% 100%); }
.dir-hud { position: absolute; inset: 12.8% 0; pointer-events: none; font: 600 clamp(9px, 1.15vw, 11.5px)/1 var(--font-mono); letter-spacing: .06em; color: rgba(240, 244, 252, .9); text-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
.hud { position: absolute; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.hud b { color: var(--orange-2); font-weight: 700; }
.hud.tl { left: 4%; top: 7%; } .hud.tr { right: 4%; top: 7%; } .hud.bl { left: 4%; bottom: 7%; } .hud.br { right: 4%; bottom: 7%; }
.hud.tr i { width: 7px; height: 7px; border-radius: 50%; background: #ff4d4d; }
.dir-corner { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(255, 255, 255, .7); }
.dir-corner.c1 { left: 2%; top: 3%; border-left-width: 2px; border-top-width: 2px; }
.dir-corner.c2 { right: 2%; top: 3%; border-right-width: 2px; border-top-width: 2px; }
.dir-corner.c3 { left: 2%; bottom: 3%; border-left-width: 2px; border-bottom-width: 2px; }
.dir-corner.c4 { right: 2%; bottom: 3%; border-right-width: 2px; border-bottom-width: 2px; }
.dir-focus { position: absolute; left: 0; top: 0; pointer-events: none; width: 46px; height: 46px; margin: -23px 0 0 -23px; border: 1.5px solid var(--orange); border-radius: 4px; box-shadow: 0 0 12px rgba(255, 154, 31, .5); transition: transform .9s cubic-bezier(.4, 0, .2, 1); }
.dir-focus::before, .dir-focus::after { content: ""; position: absolute; background: var(--orange); }
.dir-focus::before { left: 50%; top: -7px; width: 1.5px; height: 6px; margin-left: -.75px; }
.dir-focus::after { left: 50%; bottom: -7px; width: 1.5px; height: 6px; margin-left: -.75px; }
.dir-controls { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px 26px; align-items: center; padding: 16px 18px; background: #0b1019; border-top: 1px solid var(--line); }
.ctl { display: grid; gap: 8px; min-width: 0; }
.ctl-l { font: 600 10.5px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.ctl-l b { color: var(--orange-2); margin-left: 6px; letter-spacing: .04em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: baseline; gap: 2px; height: 32px; padding: 0 12px; align-items: center; border-radius: 8px; cursor: pointer;
  font: 600 13px/1 var(--font-text); color: var(--text-2); background: #111827; border: 1px solid var(--line-strong); transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chip small { font-size: 10px; color: var(--text-3); margin-left: 2px; }
.chip:hover { color: var(--text); border-color: rgba(148, 170, 214, .4); }
.chip[aria-pressed="true"] { color: #1a0d00; background: linear-gradient(180deg, #ffbb5c, var(--orange)); border-color: transparent; }
.chip[aria-pressed="true"] small { color: rgba(26, 13, 0, .7); }
.dir input[type="range"], .cast input[type="range"] { width: 100%; accent-color: var(--orange); height: 22px; }
.dir-tl { position: relative; padding: 12px 18px 16px; border-top: 1px solid var(--line); background: #090d15; overflow: hidden; }
.tl-ruler { display: flex; justify-content: space-between; margin-left: 96px; padding-bottom: 6px; font: 500 10px/1 var(--font-mono); color: var(--text-3); border-bottom: 1px solid var(--line); }
.tl-row { display: grid; grid-template-columns: 96px 1fr; align-items: center; height: 30px; border-bottom: 1px solid rgba(148, 170, 214, .06); }
.tl-row b { font: 600 11px/1 var(--font-text); color: var(--text-3); }
.tl-lane { position: relative; height: 22px; }
.tl-lane svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.clip { position: absolute; top: 0; height: 22px; display: flex; align-items: center; padding: 0 8px; border-radius: 5px; font: 500 10.5px/1 var(--font-text); font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #e8edf6; }
.clip.cam { background: rgba(255, 154, 31, .22); border: 1px solid rgba(255, 154, 31, .5); }
.clip.cam.alt { background: rgba(46, 139, 255, .22); border-color: rgba(46, 139, 255, .5); }
.clip.anim { background: rgba(79, 209, 165, .16); border: 1px solid rgba(79, 209, 165, .4); }
.clip.line { background: rgba(196, 155, 255, .16); border: 1px solid rgba(196, 155, 255, .4); }
.clip.wave { background: repeating-linear-gradient(90deg, rgba(109, 178, 255, .5) 0 2px, transparent 2px 5px); -webkit-mask: linear-gradient(transparent 20%, #000 20% 80%, transparent 80%); mask: linear-gradient(transparent 20%, #000 20% 80%, transparent 80%); opacity: .7; }
.key { position: absolute; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--blue-2); transform: rotate(45deg); }
.cue { position: absolute; top: 3px; padding-left: 10px; font: 500 10px/16px var(--font-mono); font-style: normal; color: var(--orange-2); white-space: nowrap; }
.cue::before { content: ""; position: absolute; left: 0; top: 2px; width: 2px; height: 14px; background: var(--orange); }
.tl-head { position: absolute; top: 8px; bottom: 10px; left: calc(18px + 96px); width: 2px; background: #ff4d4d; box-shadow: 0 0 10px rgba(255, 77, 77, .6); animation: tl-play 16s linear infinite; }
.tl-head::before { content: ""; position: absolute; top: -2px; left: -5px; border: 6px solid transparent; border-top-color: #ff4d4d; }
@keyframes tl-play { from { transform: translateX(0); } to { transform: translateX(calc(100cqw - 132px)); } }
.dir-tl { container-type: inline-size; }
@media (max-width: 900px) { .dir-controls { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .dir-controls { grid-template-columns: 1fr; }
  .dir-tl { display: none; }
  .dir-focus { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
  .dir-corner { width: 12px; height: 12px; }
  .hud.tl .extra { display: none; }
}

/* ---------- Cast demo ---------- */
.cast .seg-chips { margin-left: auto; }
.cast .seg-chips .chip { height: 28px; font-size: 12px; }
.cast-body { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 440px; }
.cast-panel { display: grid; align-content: start; gap: 16px; padding: 20px; background: #0b1019; border-right: 1px solid var(--line); }
.sws { display: flex; gap: 8px; }
.sw { width: 30px; height: 30px; border-radius: 9px; background: var(--c); border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); cursor: pointer; }
.sw[aria-pressed="true"] { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 154, 31, .25), inset 0 0 0 1px rgba(255, 255, 255, .2); }
.cast-stage { position: relative; background: radial-gradient(80% 70% at 50% 35%, #15213d, #0a0e17 75%); min-height: 360px; }
.cast-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cast-foot { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; font-size: 12px; color: var(--text-2); }
.cast-foot span { display: inline-flex; align-items: center; gap: 6px; }
.cast-foot svg { color: var(--green); }
@media (max-width: 860px) {
  .cast-body { grid-template-columns: 1fr; }
  .cast-panel { border-right: 0; border-bottom: 1px solid var(--line); grid-template-columns: 1fr 1fr; }
  .cast-panel .ctl:nth-child(n+3) { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .cast-panel { grid-template-columns: 1fr; } .cast .seg-chips .chip { padding: 0 9px; } }
.dir-bar .st-title { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) {
  .dir-rec span, .hud.tl .extra { display: none; }
  .dir-hud { font-size: 9px; }
  .hud.tl, .hud.tr { top: 5%; } .hud.bl, .hud.br { bottom: 5%; }
}

/* ---------- Trademark marks ---------- */
.tm { font-family: var(--font-text); font-weight: 600; line-height: 0; color: var(--silver-2); letter-spacing: 0; }
.brand-word .tm { font-size: .42em; vertical-align: super; margin-left: 2px; position: relative; top: -.15em; }
.wm-wrap { position: relative; display: inline-block; margin-bottom: 16px; }
.footer-brand .wm-wrap img.wm { margin-bottom: 0; }
.wm-wrap .tm { position: absolute; left: 87%; top: 57%; font-size: 10px; }

/* ---------- Blog ---------- */
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.topic-chips .chip { height: 36px; padding: 0 16px; font-size: 14px; }
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 760px) { .posts { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); transition: border-color .25s ease, transform .25s ease; }
.post-card:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-2px); }
.post-card[hidden] { display: none; }
.post-card .thumb { aspect-ratio: 1200 / 630; background: #070a12; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .thumb img { transform: scale(1.03); }
.post-card .body { padding: 22px 24px 26px; display: grid; gap: 10px; }
.post-card h2, .post-card h3 { font-size: 1.32rem; line-height: 1.25; letter-spacing: -.015em; }
.post-card p { color: var(--text-2); font-size: .97rem; margin: 0; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font: 500 .8rem/1.4 var(--font-mono); color: var(--text-3); }
.post-meta .tag { height: 22px; }
.post-meta a { color: inherit; }
.post-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
.post-card.featured .thumb { aspect-ratio: auto; min-height: 100%; }
.post-card.featured .body { align-content: center; padding: 34px; }
.post-card.featured h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
@media (max-width: 860px) { .post-card.featured { grid-template-columns: 1fr; } .post-card.featured .thumb { aspect-ratio: 1200 / 630; } .post-card.featured .body { padding: 22px 24px 26px; } }

.upnext { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 960px) { .upnext { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .upnext { grid-template-columns: 1fr; } }
.upnext li { list-style: none; padding: 20px; border-radius: 14px; border: 1px dashed var(--line-strong); background: rgba(13, 18, 30, .6); }
.upnext { padding: 0; margin: 0; }
.upnext .when { font: 600 .72rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--orange-2); }
.upnext b { display: block; margin: 10px 0 6px; font: 600 1.02rem/1.35 var(--font-display); color: var(--text); }
.upnext span { color: var(--text-2); font-size: .9rem; }

.post { padding: calc(var(--nav-h) + clamp(50px, 7vw, 90px)) 0 40px; }
.post-head { max-width: 780px; margin: 0 auto 34px; }
.post-head .post-meta { margin-bottom: 18px; }
.post-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.03em; margin-bottom: 18px; }
.post-head .lede { margin: 0; }
.post-cover { max-width: 1040px; margin: 0 auto 46px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.post-cover img { width: 100%; }
.prose { max-width: 720px; margin: 0 auto; font-size: 1.08rem; line-height: 1.8; color: var(--text-2); }
.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.1em; font-size: clamp(1.5rem, 2.6vw, 1.9rem); color: var(--text); }
.prose h3 { margin-top: 1.7em; font-size: 1.2rem; color: var(--text); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(109, 178, 255, .45); }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 0; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--orange); }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 18px 22px; border-left: 3px solid var(--orange); background: var(--surface); border-radius: 0 12px 12px 0; color: var(--text); }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figcaption { margin-top: 10px; font-size: .88rem; color: var(--text-3); text-align: center; }
.prose .wide { width: min(1040px, calc(100vw - 2 * var(--gutter))); margin-left: 50%; transform: translateX(-50%); }
.prose .note { padding: 16px 20px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); font-size: .97rem; }
.prose .note b { color: var(--orange-2); }
.prose .logo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.prose .logo-pair img { border-radius: 14px; border: 1px solid var(--line); }
.post-foot { max-width: 720px; margin: 56px auto 0; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 22px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.post-nav a { display: grid; gap: 4px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font-weight: 600; }
.post-nav a:hover { border-color: var(--line-strong); color: var(--text); }
.post-nav a small { font: 500 .72rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.post-nav .next { text-align: right; grid-column: 2; }
.follow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding: 20px 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong); }
.follow p { margin: 0; color: var(--text-2); }
.follow p b { color: var(--text); }
.follow .btn-row { gap: 10px; }
.follow .btn { min-height: 40px; padding: 0 16px; font-size: .92rem; }
