/* YumoTab homepage and ecosystem page: a dark, cinematic layout. The reading
   pages (privacy, format, credits) keep site.css. */
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-opsz-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-ext-opsz-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #050608; --bg-2: #0b0d12; --panel: #10131a; --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .16);
  --ink: #f5f6f8; --ink-2: #a8adb8; --ink-3: #6b717d;
  --blue: #4f8cff; --violet: #8b5cf6; --coral: #ff7a59;
  --grad: linear-gradient(100deg, #8fb8ff 0%, #b69cff 45%, #ff9a7a 100%);
  --wrap: 1200px; --gutter: clamp(20px, 5vw, 48px);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.025em; line-height: 1.08; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
html[lang^="zh"] .eyebrow { letter-spacing: .2em; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 640px; }
.h-xl { font-size: clamp(44px, 7.4vw, 104px); }
.h-lg { font-size: clamp(36px, 5.2vw, 72px); }
.h-md { font-size: clamp(28px, 3.4vw, 44px); }
html[lang^="zh"] h1, html[lang^="zh"] h2 { letter-spacing: -.01em; line-height: 1.15; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 26px; border-radius: 999px; font-size: 16px; font-weight: 600;
  background: #fff; color: #050608; transition: transform .2s, background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 40px rgba(143, 184, 255, .25); }
.btn svg { width: 16px; height: 16px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.btn.small { height: 36px; padding: 0 16px; font-size: 14px; }
.link { color: #9ec0ff; font-weight: 600; }
.link:hover { text-decoration: underline; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(5, 6, 8, .72); -webkit-backdrop-filter: saturate(160%) blur(20px); backdrop-filter: saturate(160%) blur(20px); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.logo img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-2); }
.nav-links a { transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-end { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }
.lang { height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .08); color: var(--ink); font: 500 13px var(--font); cursor: pointer; }
.lang:hover { background: rgba(255, 255, 255, .14); }

/* Hero */
.hero { position: relative; padding: 160px var(--gutter) 0; text-align: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 900px; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 40%, rgba(79, 140, 255, .28), transparent 70%), radial-gradient(35% 40% at 75% 55%, rgba(139, 92, 246, .22), transparent 70%), radial-gradient(30% 35% at 25% 60%, rgba(255, 122, 89, .14), transparent 70%); }
.hero > * { position: relative; }
.hero h1 { margin: 22px auto 24px; max-width: 14ch; }
html[lang^="zh"] .hero h1 { max-width: 12em; }
.hero .lede { margin: 0 auto; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 38px; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 26px; font-size: 13px; color: var(--ink-3); }
.badges > span { display: block; }
.badges i { display: inline-block; vertical-align: 2px; margin-inline-end: 8px; }
.badges i { width: 6px; height: 6px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 10px #3ddc97; }
.stage { perspective: 1800px; margin-top: 72px; }
.screen { width: min(1180px, 100%); margin: 0 auto; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: #000;
  box-shadow: 0 60px 160px -40px rgba(79, 140, 255, .45), 0 30px 80px rgba(0, 0, 0, .6);
  transform: rotateX(calc(var(--tilt, 1) * 14deg)) scale(calc(.94 + (1 - var(--tilt, 1)) * .06)); transform-origin: 50% 0; transition: transform .1s linear; }
.screen-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: #15181f; border-bottom: 1px solid var(--line); }
.screen-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3f4a; }
.screen-bar span { margin-inline-start: 14px; font-size: 12px; color: var(--ink-2); }
.hero-fade { height: 160px; margin-top: -160px; position: relative; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); margin-top: 40px; }
.stat { padding: 44px 24px; text-align: center; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(36px, 4.4vw, 60px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.stat span { display: block; margin-top: 12px; font-size: 14px; color: var(--ink-2); }

/* Sections */
.section { padding: clamp(96px, 13vw, 168px) 0; }
.head { max-width: 820px; }
.head.center { margin-inline: auto; text-align: center; }
.head.center .lede { margin-inline: auto; }
.head h2 { margin: 18px 0 22px; }

/* Feature chapters */
.chapters { display: grid; gap: 24px; margin-top: 72px; grid-template-columns: repeat(6, 1fr); }
.chapter { position: relative; grid-column: span 3; min-height: 440px; border-radius: 28px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; }
.chapter.wide { grid-column: span 6; flex-direction: row; min-height: 480px; }
.chapter.third { grid-column: span 2; min-height: 380px; }
.chapter-text { padding: 40px 40px 0; }
.chapter.wide .chapter-text { flex: 0 0 38%; padding: 56px; align-self: center; }
.chapter h3 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 14px; }
.chapter p { color: var(--ink-2); font-size: 16px; }
.chapter-media { margin-top: auto; padding: 32px 0 0 40px; }
.chapter-media img { border-radius: 14px 0 0 0; border: 1px solid var(--line-2); border-width: 1px 0 0 1px; }
.chapter.wide .chapter-media { flex: 1; padding: 56px 0 0; align-self: flex-end; }
.chapter.glow-blue { background: radial-gradient(80% 70% at 100% 100%, rgba(79, 140, 255, .22), transparent 70%), var(--panel); }
.chapter.glow-violet { background: radial-gradient(80% 70% at 0% 100%, rgba(139, 92, 246, .24), transparent 70%), var(--panel); }
.walls { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 32px 40px 40px; margin-top: auto; }
.walls img { aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; width: 100%; }
.kbd-demo { margin: auto 40px 40px; padding: 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 15px; }
.kbd-demo kbd { margin-inline-start: auto; min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .1); color: var(--ink); font: 600 14px var(--font); }
.kbd-demo i { width: 2px; height: 18px; background: #8fb8ff; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.mini-list { margin: auto 40px 40px; display: grid; gap: 10px; }
.mini-list div { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font-size: 14px; }
.mini-list b { width: 22px; color: var(--coral); font-weight: 700; }
.mini-list span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-list small { color: var(--ink-3); }

/* Full-bleed night */
.night { position: relative; padding: clamp(96px, 13vw, 168px) 0 0; overflow: hidden; background: #020205; }
.night::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 70%, rgba(139, 92, 246, .3), transparent 70%); pointer-events: none; }
.night > * { position: relative; }
.night-shot { width: min(1280px, 100% - 2 * var(--gutter)); margin: 72px auto 0; border-radius: 22px 22px 0 0; overflow: hidden; border: 1px solid var(--line-2); border-bottom: 0;
  box-shadow: 0 -40px 140px -30px rgba(139, 92, 246, .55); }

/* Sources marquee */
.marquee { margin-top: 64px; display: grid; gap: 14px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; gap: 14px; width: max-content; animation: slide 60s linear infinite; }
.track.rev { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .track { animation-play-state: paused; }
.pill { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px 0 16px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 15px; font-weight: 500; white-space: nowrap; }
.pill i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
@keyframes slide { to { transform: translateX(-50%); } }
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 72px; align-items: center; }
.split-shot { border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 40px 120px -30px rgba(79, 140, 255, .35); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.chips li { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); }

/* YumoKit icon wall */
.kit { position: relative; overflow: hidden; }
.kit::before { content: ""; position: absolute; inset: 20% -10% auto; height: 700px; background: radial-gradient(45% 50% at 50% 50%, rgba(255, 122, 89, .16), transparent 70%); pointer-events: none; }
.kit > * { position: relative; }
.icon-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 10px; margin-top: 64px; }
.icon-wall .tool { width: 100px; }
.tool { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-2); text-align: center; transition: transform .25s; }
.tool:hover { transform: translateY(-4px); color: var(--ink); }
.tool-ic { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: var(--c); box-shadow: 0 12px 30px -10px var(--c); }
.tool-ic svg { width: 40px; height: 40px; }
.kit-cta { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Import */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 64px 0 0; padding: 0; list-style: none; }
.steps li { padding: 36px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); }
.steps b { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(143, 184, 255, .12); color: #9ec0ff; font-size: 17px; margin-bottom: 22px; }
.steps h3 { font-size: 21px; margin-bottom: 10px; }
.steps p { color: var(--ink-2); font-size: 15px; }
.ai { display: flex; align-items: center; gap: 28px; margin-top: 24px; padding: 32px 36px; border-radius: 24px; background: linear-gradient(110deg, rgba(79, 140, 255, .14), rgba(139, 92, 246, .14) 50%, rgba(255, 122, 89, .1)); border: 1px solid var(--line-2); }
.ai h3 { font-size: 21px; margin-bottom: 8px; }
.ai p { color: var(--ink-2); font-size: 15px; }
.ai-actions { margin-inline-start: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; flex: none; }
.ai-actions .link { font-size: 14px; }

/* Privacy */
.privacy { background: var(--bg-2); border-block: 1px solid var(--line); }
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 64px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.pgrid div { padding: 40px 32px; background: var(--bg-2); }
.pgrid svg { width: 30px; height: 30px; color: #9ec0ff; margin-bottom: 22px; }
.pgrid h3 { font-size: 19px; margin-bottom: 10px; }
.pgrid p { font-size: 15px; color: var(--ink-2); }

/* Ecosystem teaser and final CTA */
.eco-band { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding: 64px; border-radius: 32px; border: 1px solid var(--line-2);
  background: radial-gradient(70% 90% at 100% 0%, rgba(139, 92, 246, .28), transparent 70%), radial-gradient(60% 80% at 0% 100%, rgba(79, 140, 255, .22), transparent 70%), var(--panel); }
.eco-band h2 { margin: 16px 0 20px; }
.eco-band .btn { margin-top: 32px; }
.eco-orbit { position: relative; aspect-ratio: 1; max-width: 420px; margin-inline: auto; width: 100%; }
.eco-orbit .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .14); }
.eco-orbit .ring.r2 { inset: 18%; }
.eco-orbit .core { position: absolute; inset: 38%; border-radius: 28%; display: grid; place-items: center; background: #0b0d12; border: 1px solid var(--line-2); box-shadow: 0 0 80px rgba(143, 184, 255, .35); }
.eco-orbit .core img { width: 62%; }
.eco-orbit .sat { position: absolute; width: 18%; aspect-ratio: 1; border-radius: 26%; display: grid; place-items: center; background: var(--c); box-shadow: 0 10px 30px -8px var(--c); }
.eco-orbit .sat svg { width: 64%; height: 64%; }
.final { text-align: center; }
.final img { width: 96px; height: 96px; margin: 0 auto 32px; filter: drop-shadow(0 20px 50px rgba(143, 184, 255, .4)); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 72px 0 40px; font-size: 14px; color: var(--ink-2); }
.fcols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.fcols h4 { margin: 0 0 16px; font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: .04em; }
.fcols ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.fcols a:hover { color: var(--ink); }
.fbrand p { margin-top: 16px; max-width: 320px; }
.fine { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }

/* Ecosystem page */
.eco-hero { padding: 168px 0 72px; text-align: center; position: relative; overflow: hidden; }
.eco-hero::before { content: ""; position: absolute; inset: -30% 0 auto; height: 800px; background: radial-gradient(40% 50% at 50% 50%, rgba(139, 92, 246, .3), transparent 70%), radial-gradient(30% 40% at 30% 60%, rgba(79, 140, 255, .2), transparent 70%); pointer-events: none; }
.eco-hero > * { position: relative; }
.eco-hero h1 { margin: 20px 0 22px; }
.eco-hero .lede { margin-inline: auto; }
.filters { position: sticky; top: 64px; z-index: 10; display: flex; justify-content: center; gap: 8px; padding: 14px 0; background: rgba(5, 6, 8, .8); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.filters button { height: 38px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font: 500 14px var(--font); cursor: pointer; }
.filters button[aria-pressed="true"] { background: #fff; color: #050608; border-color: #fff; }
.eco-sec { padding: 72px 0 24px; }
.eco-sec[hidden] { display: none; }
.eco-sec > h2 { font-size: clamp(26px, 3vw, 36px); }
.eco-sec > p { color: var(--ink-2); margin-top: 10px; }
.featured { display: grid; grid-template-columns: 1fr 1.2fr; margin-top: 36px; border-radius: 32px; overflow: hidden; border: 1px solid var(--line-2);
  background: radial-gradient(80% 80% at 0% 0%, rgba(79, 140, 255, .2), transparent 70%), var(--panel); }
.featured-text { padding: 56px; display: flex; flex-direction: column; }
.featured-text img.app-ic { width: 72px; height: 72px; margin-bottom: 26px; }
.featured-text h3 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 14px; }
.featured-text p { color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: 12.5px; color: var(--ink-2); }
.tag.ok { background: rgba(61, 220, 151, .12); color: #6ee7b7; }
.tag.soon { background: rgba(255, 196, 87, .12); color: #fcd34d; }
.featured-text .cta-row { justify-content: flex-start; margin-top: auto; padding-top: 34px; }
.featured-media { align-self: end; padding: 56px 0 0; }
.featured-media img { border-radius: 16px 0 0 0; border: 1px solid var(--line-2); border-width: 1px 0 0 1px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 36px; }
.card { padding: 28px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card-top { display: flex; align-items: center; gap: 14px; }
.card-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--c, #222); flex: none; color: #fff; }
.card-ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 18px; letter-spacing: -.01em; }
.card small { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 3px; }
.card p { color: var(--ink-2); font-size: 14.5px; }
.card .tags { margin-top: auto; }
.partner { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; margin-top: 36px; padding: 40px; border-radius: 28px; background: var(--panel); border: 1px solid var(--line-2); }
.partner-ic { width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(135deg, #ff6b5b, #7c3aed); }
.partner-ic svg { width: 46px; height: 46px; }
.partner h3 { font-size: 26px; margin-bottom: 8px; }
.partner p { color: var(--ink-2); }
.dev { margin: 72px 0 0; padding: 64px; border-radius: 32px; text-align: center; border: 1px dashed rgba(255, 255, 255, .22);
  background: radial-gradient(60% 100% at 50% 0%, rgba(139, 92, 246, .2), transparent 70%); }
.dev h2 { margin: 14px 0 16px; }
.dev .lede { margin-inline: auto; }
.dev .cta-row { margin-top: 30px; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); padding: 12px 20px; border-radius: 999px; background: #fff; color: #050608; font-size: 14px; font-weight: 600; z-index: 60; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .track { animation: none; } .screen { transform: none; } html { scroll-behavior: auto; }
}

/* Narrow screens */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .chapters { grid-template-columns: 1fr; }
  .chapter, .chapter.third, .chapter.wide { grid-column: auto; min-height: 0; }
  .chapter.wide { flex-direction: column; }
  .chapter.wide .chapter-text { padding: 40px 32px 0; }
  .chapter-text { padding: 32px 32px 0; }
  .chapter-media, .chapter.wide .chapter-media { padding: 28px 0 0 32px; }
  .walls { padding: 28px 32px 32px; }
  .kbd-demo, .mini-list { margin: 28px 32px 32px; }
  .split, .eco-band, .featured { grid-template-columns: 1fr; gap: 40px; }
  .steps, .pgrid { grid-template-columns: 1fr; }
  .ai { flex-direction: column; align-items: flex-start; }
  .ai-actions { margin-inline-start: 0; align-items: flex-start; }
  .eco-band { padding: 40px 28px; }
  .featured-text { padding: 36px 28px; }
  .featured-media { padding: 0 0 0 28px; }
  .partner { grid-template-columns: 1fr; padding: 32px 28px; }
  .dev { padding: 44px 24px; }
  .fcols { grid-template-columns: 1fr 1fr; }
  .fbrand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .hero { padding-top: 120px; }
  .btn { height: 46px; padding: 0 20px; font-size: 15px; }
  .nav-end .btn { display: none; }
  .icon-wall { gap: 22px 4px; }
  .icon-wall .tool { width: 80px; }
  .tool-ic { width: 56px; height: 56px; }
  .tool-ic svg { width: 34px; height: 34px; }
}

/* ───────── Light theme (html[data-theme="light"]) ─────────
   Paper-white surfaces with soft colour auras; the night section stays dark on purpose. */
.theme { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .08); color: var(--ink); cursor: pointer; }
.theme:hover { background: rgba(255, 255, 255, .14); }
.theme svg { width: 18px; height: 18px; }
.theme .sun, html[data-theme="light"] .theme .moon { display: none; }
html[data-theme="light"] .theme .sun { display: block; }
html[data-theme="light"] {
  --bg: #fbfbfd; --bg-2: #f3f4f8; --panel: #ffffff; --line: rgba(16, 22, 38, .08); --line-2: rgba(16, 22, 38, .14);
  --ink: #0b0d12; --ink-2: #4a5160; --ink-3: #8b919c;
  --grad: linear-gradient(100deg, #2f6bff 0%, #7a4dff 48%, #ff5a36 100%);
  --shadow: 0 1px 2px rgba(16, 22, 38, .04), 0 12px 40px -12px rgba(16, 22, 38, .12);
  color-scheme: light;
}
html[data-theme="light"] .btn { background: #0b0d12; color: #fff; }
html[data-theme="light"] .btn:hover { box-shadow: 0 12px 34px -8px rgba(47, 107, 255, .45); }
html[data-theme="light"] .btn.ghost { background: rgba(255, 255, 255, .7); color: var(--ink); }
html[data-theme="light"] .btn.ghost:hover { background: #fff; box-shadow: inset 0 0 0 1px rgba(16, 22, 38, .28); }
html[data-theme="light"] .link { color: #2f6bff; }
html[data-theme="light"] .nav.scrolled { background: rgba(251, 251, 253, .78); }
html[data-theme="light"] .lang, html[data-theme="light"] .theme { background: rgba(16, 22, 38, .06); }
html[data-theme="light"] .lang:hover, html[data-theme="light"] .theme:hover { background: rgba(16, 22, 38, .1); }
html[data-theme="light"] .hero::before { background: radial-gradient(50% 50% at 50% 40%, rgba(47, 107, 255, .16), transparent 70%), radial-gradient(35% 40% at 78% 50%, rgba(122, 77, 255, .14), transparent 70%), radial-gradient(30% 35% at 22% 58%, rgba(255, 90, 54, .12), transparent 70%); }
html[data-theme="light"] .badges i { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, .6); }
html[data-theme="light"] .screen { border-color: rgba(16, 22, 38, .1); box-shadow: 0 50px 120px -40px rgba(47, 107, 255, .35), 0 24px 60px -20px rgba(16, 22, 38, .25); }
html[data-theme="light"] .screen-bar { background: #eef0f4; }
html[data-theme="light"] .screen-bar i { background: #d3d7df; }
html[data-theme="light"] .screen-bar i:nth-child(1) { background: #ff5f57; } html[data-theme="light"] .screen-bar i:nth-child(2) { background: #febc2e; } html[data-theme="light"] .screen-bar i:nth-child(3) { background: #28c840; }
html[data-theme="light"] .stat b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="light"] :is(.chapter, .steps li, .card, .partner, .featured, .pill, .eco-band) { box-shadow: var(--shadow); border-color: rgba(16, 22, 38, .06); }
html[data-theme="light"] .chapter.glow-blue { background: radial-gradient(80% 70% at 100% 100%, rgba(47, 107, 255, .1), transparent 70%), #fff; }
html[data-theme="light"] .chapter.glow-violet { background: radial-gradient(80% 70% at 0% 100%, rgba(122, 77, 255, .1), transparent 70%), #fff; }
html[data-theme="light"] .chapter-media img, html[data-theme="light"] .featured-media img { border-color: rgba(16, 22, 38, .1); }
html[data-theme="light"] .kbd-demo, html[data-theme="light"] .mini-list div { background: #f6f7fa; }
html[data-theme="light"] .kbd-demo kbd { background: #fff; box-shadow: 0 1px 2px rgba(16, 22, 38, .12); }
html[data-theme="light"] .kbd-demo i { background: #2f6bff; }
html[data-theme="light"] .pill i { box-shadow: none; }
html[data-theme="light"] .split-shot { box-shadow: 0 40px 100px -30px rgba(47, 107, 255, .3), 0 20px 50px -20px rgba(16, 22, 38, .2); border-color: rgba(16, 22, 38, .08); }
html[data-theme="light"] .chips li { background: #fff; }
html[data-theme="light"] .kit::before { background: radial-gradient(45% 50% at 50% 50%, rgba(255, 90, 54, .1), transparent 70%); }
html[data-theme="light"] .tool-ic { box-shadow: 0 10px 24px -10px var(--c); }
html[data-theme="light"] .steps b { background: rgba(47, 107, 255, .1); color: #2f6bff; }
html[data-theme="light"] .ai { background: linear-gradient(110deg, rgba(47, 107, 255, .08), rgba(122, 77, 255, .08) 50%, rgba(255, 90, 54, .07)); border-color: rgba(16, 22, 38, .08); }
html[data-theme="light"] .pgrid div { background: #fff; }
html[data-theme="light"] .pgrid svg { color: #2f6bff; }
html[data-theme="light"] .eco-band { background: radial-gradient(70% 90% at 100% 0%, rgba(122, 77, 255, .14), transparent 70%), radial-gradient(60% 80% at 0% 100%, rgba(47, 107, 255, .12), transparent 70%), #fff; }
html[data-theme="light"] .eco-orbit .ring { border-color: rgba(16, 22, 38, .14); }
html[data-theme="light"] .eco-orbit .core { background: #fff; box-shadow: 0 20px 60px -10px rgba(47, 107, 255, .35); }
html[data-theme="light"] .final img { filter: drop-shadow(0 20px 40px rgba(47, 107, 255, .35)); }
html[data-theme="light"] .eco-hero::before { background: radial-gradient(40% 50% at 50% 50%, rgba(122, 77, 255, .14), transparent 70%), radial-gradient(30% 40% at 30% 60%, rgba(47, 107, 255, .12), transparent 70%); }
html[data-theme="light"] .filters { background: rgba(251, 251, 253, .82); }
html[data-theme="light"] .filters button { background: #fff; }
html[data-theme="light"] .filters button[aria-pressed="true"] { background: #0b0d12; color: #fff; border-color: #0b0d12; }
html[data-theme="light"] .featured { background: radial-gradient(80% 80% at 0% 0%, rgba(47, 107, 255, .1), transparent 70%), #fff; }
html[data-theme="light"] .tag { background: rgba(16, 22, 38, .05); }
html[data-theme="light"] .tag.ok { background: rgba(16, 185, 129, .12); color: #047857; }
html[data-theme="light"] .tag.soon { background: rgba(245, 158, 11, .14); color: #b45309; }
html[data-theme="light"] .dev { border-color: rgba(16, 22, 38, .18); background: radial-gradient(60% 100% at 50% 0%, rgba(122, 77, 255, .1), transparent 70%); }
html[data-theme="light"] .toast { background: #0b0d12; color: #fff; }
/* The night band keeps the dark palette. */
html[data-theme="light"] .night { --ink: #f5f6f8; --ink-2: #a8adb8; --line-2: rgba(255, 255, 255, .16); color: var(--ink); }

/* Language menu */
select.lang { appearance: none; -webkit-appearance: none; padding: 0 30px 0 14px; text-align: start;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 12px; background-position: right 11px center; }
select.lang option { color: #0b0d12; background: #fff; }
/* Right to left (Arabic) */
[dir="rtl"] select.lang { padding: 0 14px 0 30px; background-position: left 11px center; }
[dir="rtl"] .btn svg { transform: scaleX(-1); }
[dir="rtl"] .chapter-media { padding: 32px 40px 0 0; }
[dir="rtl"] .chapter-media img, [dir="rtl"] .featured-media img { border-radius: 0 14px 0 0; border-width: 1px 1px 0 0; }
[dir="rtl"] .featured-media { padding-inline: 0; }
[dir="rtl"] .eyebrow { letter-spacing: 0; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.25; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ko"] h1, html[lang="ko"] h2 { letter-spacing: -.01em; line-height: 1.18; }
@media (max-width: 960px) { [dir="rtl"] .chapter-media, [dir="rtl"] .chapter.wide .chapter-media { padding: 28px 32px 0 0; } }
