@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #202632;
  --bg-deep: #171d28;
  --panel: #282f3d;
  --panel-raised: #303848;
  --line: #3c4658;
  --line-soft: rgba(194, 182, 232, 0.12);
  --text: #f7f4ee;
  --muted: #b6c1d2;
  --accent: #c2b6e8;
  --accent-deep: #a99adc;
  --success: #c4d995;
  --ink: #171825;
  --radius-card: 24px;
  --radius-control: 999px;
  --shadow: 0 28px 70px rgba(8, 12, 20, 0.38);
  --shell: min(1180px, calc(100% - 48px));
  --ease-spring: cubic-bezier(.16, 1, .3, 1);
  --accent-glow: rgba(194, 182, 232, 0.3);
  --success-glow: rgba(196, 217, 149, 0.22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; transform: translateY(-150%); padding: 10px 16px; border-radius: 12px; background: var(--accent); color: var(--ink); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.scrolled {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(32, 38, 50, 0.84);
  backdrop-filter: blur(18px);
}

.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Space Grotesk", sans-serif; font-size: 18px; font-weight: 700; letter-spacing: -0.03em; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 30px; color: var(--muted); font-size: 14px; font-weight: 600; }
.site-nav a { transition: color 160ms ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--text); }
.site-nav a.active { color: var(--text); }
.nav-cta { padding: 9px 16px; border: 1px solid var(--line); border-radius: var(--radius-control); color: var(--text) !important; }
.language-control { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius-control); background: rgba(23, 29, 40, .56); }
.language-control button { min-width: 30px; height: 26px; padding: 0 7px; border: 0; border-radius: var(--radius-control); background: transparent; color: #8591a3; font-size: 10px; font-weight: 800; cursor: pointer; }
.language-control button.active { background: var(--accent); color: var(--ink); }
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: var(--text); }
.menu-line { display: block; width: 18px; height: 1px; margin: 5px auto; background: currentColor; }

.grid-surface {
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 128px 128px;
}

.hero { min-height: 790px; padding: 138px 0 96px; }
.hero::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 180px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero-glow { position: absolute; top: 100px; left: 47%; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(194, 182, 232, 0.19), transparent 68%); filter: blur(2px); }
.hero-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .92fr) minmax(560px, 1.08fr); align-items: center; gap: 68px; }
.hero-layout > *, .practice-grid > * { min-width: 0; }
.hero-copy { padding-top: 2px; }
.eyebrow, .kicker { margin: 0 0 22px; color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--radius-control); background: rgba(40, 47, 61, .72); }
.eyebrow > span:first-child { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(196, 217, 149, .1); }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2, h3, .button { font-family: "Space Grotesk", sans-serif; }
h1 { margin: 0; max-width: 660px; font-size: clamp(52px, 5.3vw, 76px); line-height: .99; letter-spacing: -.065em; }
h1 strong, h2 strong { color: var(--accent); font-weight: inherit; }
.hero-intro { max-width: 520px; margin: 26px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid transparent; border-radius: var(--radius-control); font-size: 14px; font-weight: 750; transition: transform 160ms ease, background 160ms ease, border-color 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, button:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid rgba(194, 182, 232, .42); outline-offset: 3px; }
.button-primary { background: var(--accent); color: var(--ink); box-shadow: 0 10px 34px rgba(194, 182, 232, .16); }
.button-primary:hover { background: #d0c7ef; }
.button-quiet { border-color: var(--line); background: rgba(40, 47, 61, .6); }
.button-quiet:hover { border-color: #59667c; background: var(--panel); }
.availability { margin: 16px 0 0; color: #8f9bad; font-size: 12px; }

.product-stage { position: relative; }
.product-stage::before { content: ""; position: absolute; inset: 11% 7% -8%; border: 1px solid rgba(194, 182, 232, .2); border-radius: 40px; transform: rotate(4deg); }
.pencil-preview { position: relative; z-index: 1; overflow: hidden; margin: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 24px; background: #151c2b; box-shadow: var(--shadow); }
.pencil-preview img { width: 100%; height: auto; }
.wave { flex: 1; height: 30px; display: flex; align-items: center; gap: 3px; }
.wave i { flex: 1; min-width: 2px; height: 30%; border-radius: 3px; background: var(--accent); }
.wave i:nth-child(2n) { height: 64%; }
.wave i:nth-child(3n) { height: 88%; }
.wave i:nth-child(5n) { height: 42%; }

.practice-strip { overflow: hidden; border-block: 1px solid rgba(255,255,255,.07); background: var(--bg-deep); }
.strip-track { width: max-content; min-height: 58px; display: flex; align-items: center; color: #909bac; font: 700 11px ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.strip-track i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.section { padding: 120px 0; }
.section-heading h2, .practice-copy h2, .faq-intro h2, .closing h2 { margin: 0; font-size: clamp(38px, 4vw, 58px); line-height: 1.08; letter-spacing: -.055em; }
.section-heading.compact { max-width: 760px; }
.why-section { background: #232a36; }
.why-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 120px; align-items: start; }
.reason-list { border-top: 1px solid var(--line); }
.reason-list article { display: grid; grid-template-columns: 54px 1fr; gap: 22px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.reason-list article > span { color: var(--accent); font: 700 12px "JetBrains Mono", monospace; }
.reason-list h3 { margin: -4px 0 5px; font-size: 20px; letter-spacing: -.025em; }
.reason-list p { margin: 0; color: var(--muted); font-size: 15px; }

.workflow-section { background: var(--bg-deep); }
.steps { display: grid; grid-template-columns: 1.1fr .9fr .9fr; gap: 18px; margin-top: 58px; }
.step { min-height: 430px; display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--panel); }
.step-speak { transform: translateY(42px); background: var(--accent); color: var(--ink); }
.step-number { align-self: flex-end; color: #8994a7; font: 700 12px "JetBrains Mono", monospace; }
.step-speak .step-number, .step-speak .step-label, .step-speak > p { color: rgba(23,24,37,.68); }
.step-label { margin: 50px 0 10px; color: var(--accent); font: 700 11px "JetBrains Mono", monospace; letter-spacing: .12em; }
.step h3 { margin: 0; font-size: 28px; line-height: 1.1; letter-spacing: -.045em; }
.step > p:not(.step-label) { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.signal-panel { margin-top: auto; padding: 14px; border-radius: 14px; background: #202838; color: #aeb8c8; font-size: 10px; }
.wave.large { margin-top: 8px; }
.record-orbit { width: 118px; height: 118px; display: grid; place-items: center; margin: auto; border: 1px solid rgba(23,24,37,.26); border-radius: 50%; box-shadow: 0 0 0 24px rgba(255,255,255,.1), 0 0 0 48px rgba(255,255,255,.08); }
.compare-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: auto; padding: 5px; border-radius: var(--radius-control); background: #1f2735; color: #8e99aa; font-size: 11px; text-align: center; }
.compare-switch span { padding: 9px 8px; border-radius: var(--radius-control); }
.compare-switch .selected { background: var(--accent); color: var(--ink); font-weight: 800; }

.practice-section { background: #242b38; }
.practice-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 90px; align-items: center; }
.practice-copy > p:not(.kicker) { max-width: 560px; margin: 24px 0; color: var(--muted); }
.practice-copy ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.practice-copy li { display: flex; align-items: center; gap: 10px; color: #d8dde7; font-size: 14px; }
.practice-copy li::before { content: "✓"; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(196,217,149,.12); color: var(--success); font-size: 12px; }
.review-preview { transform: rotate(1.2deg); }

.download-section { background: #242b38; }
.download-card { display: grid; grid-template-columns: 1fr auto; gap: 72px; align-items: center; padding: 54px; border: 1px solid rgba(194, 182, 232, .22); border-radius: var(--radius-card); background: linear-gradient(135deg, #2b3342, #242b38); box-shadow: var(--shadow); }
.download-card h2 { max-width: 680px; margin: 0; font-size: clamp(36px, 4vw, 54px); line-height: 1.06; letter-spacing: -.055em; }
.download-card > div:first-child > p:last-child { max-width: 650px; margin: 20px 0 0; color: var(--muted); }
.download-action { min-width: 240px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.download-button:disabled { cursor: not-allowed; filter: saturate(.7); opacity: .72; transform: none; }
.release-status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.release-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(196, 217, 149, .1); }
.download-action small { max-width: 230px; color: #8490a2; line-height: 1.5; }

.products-section { background: var(--bg-deep); }
.product-family { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 48px; }
.studio-product { position: relative; min-height: 210px; display: grid; grid-template-columns: 72px 1fr auto; gap: 22px; align-items: center; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--panel); transition: transform 180ms ease, border-color 180ms ease, background 180ms ease; }
.studio-product:hover { transform: translateY(-4px); border-color: #5a667b; background: #2c3443; }
.studio-product.current { border-color: rgba(194, 182, 232, .3); }
.studio-product > img { width: 72px; height: 72px; object-fit: contain; }
.studio-product > img.tonot-logo { padding: 4px; }
.studio-product h3 { margin: 2px 0 8px; font-size: 28px; letter-spacing: -.045em; }
.studio-product p { margin: 0; color: var(--muted); font-size: 14px; }
.studio-product .product-type { color: var(--accent); font: 700 9px "JetBrains Mono", monospace; letter-spacing: .12em; }
.product-arrow { align-self: start; color: var(--accent); font-size: 20px; }
.studio-link { display: inline-block; margin-top: 24px; color: var(--accent); font: 700 12px "JetBrains Mono", monospace; }
.inline-link { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(194, 182, 232, .35); text-underline-offset: 3px; }

.faq-section { background: var(--bg-deep); }
.faq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 110px; }
.faq-intro h2 { max-width: 380px; }
.logo-tile { width: 76px; height: 76px; display: grid; place-items: center; margin-top: 38px; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); }
.logo-tile img { width: 62px; height: 62px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 25px 48px 25px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 700; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; top: 22px; right: 4px; color: var(--accent); font-size: 22px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 680px; margin: -6px 46px 24px 0; color: var(--muted); font-size: 14px; }

.closing { padding: 88px 0; text-align: center; }
.closing-glow { position: absolute; top: 50%; left: 50%; width: 520px; height: 280px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(194,182,232,.28), transparent 68%); }
.closing-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.closing-content img { margin-bottom: 16px; filter: drop-shadow(0 14px 30px rgba(9,13,22,.28)); }
.closing h2 { font-size: clamp(34px, 4vw, 52px); }
.closing p { margin: 12px 0 22px; color: var(--muted); }
.site-footer { border-top: 1px solid rgba(255,255,255,.08); background: var(--bg-deep); }
.footer-wrap { min-height: 96px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; color: #8792a4; font-size: 12px; }
.footer-wrap .brand { color: var(--text); font-size: 16px; }
.footer-wrap .brand img { width: 36px; height: 36px; }
.footer-wrap p { margin: 0; }
.footer-wrap p:last-child { justify-self: end; }

.wiki-page { background: var(--bg-deep); }
.wiki-main { min-height: calc(100vh - 96px); }
.wiki-hero { padding: 154px 0 82px; }
.wiki-hero .shell { position: relative; z-index: 1; }
.wiki-hero h1 { max-width: 820px; font-size: clamp(48px, 6vw, 78px); }
.wiki-hero > .shell > p:last-child { max-width: 680px; margin: 24px 0 0; color: var(--muted); font-size: 18px; }
.wiki-layout { display: grid; grid-template-columns: 230px minmax(0, 760px); justify-content: space-between; gap: 90px; padding-block: 78px 120px; }
.wiki-sidebar { position: sticky; top: 108px; align-self: start; display: grid; gap: 6px; }
.wiki-sidebar p { margin: 0 0 12px; color: #7e899c; font: 700 10px "JetBrains Mono", monospace; letter-spacing: .12em; }
.wiki-sidebar a { padding: 9px 12px; border-left: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.wiki-sidebar a:hover { border-color: var(--accent); color: var(--text); }
.wiki-article section { scroll-margin-top: 110px; padding: 0 0 72px; margin: 0 0 72px; border-bottom: 1px solid var(--line); }
.wiki-article section:last-child { margin-bottom: 0; border-bottom: 0; }
.wiki-index { margin: 0 0 14px; color: var(--accent); font: 700 11px "JetBrains Mono", monospace; }
.wiki-article h2 { margin: 0; font-size: clamp(32px, 4vw, 46px); line-height: 1.08; letter-spacing: -.045em; }
.wiki-article section > p:not(.wiki-index) { margin: 22px 0 0; color: var(--muted); font-size: 17px; }
.wiki-article ol { display: grid; gap: 12px; margin: 26px 0 0; padding-left: 22px; color: #d5dbe5; }
.wiki-note { display: grid; grid-template-columns: 80px 1fr; gap: 18px; margin-top: 28px; padding: 20px; border: 1px solid rgba(194, 182, 232, .22); border-radius: 16px; background: rgba(194, 182, 232, .07); color: var(--muted); }
.wiki-note strong { color: var(--accent); }
.wiki-article .button { margin-top: 28px; }

/* ---- Motion system (spring reveals + ambient effects) ---- */
.reveal { opacity: 0; translate: 0 22px; scale: .985; transition: opacity 720ms var(--ease-spring), translate 720ms var(--ease-spring), scale 720ms var(--ease-spring); }
.reveal.visible { opacity: 1; translate: 0 0; scale: 1; }

/* Staggered cascades within groups */
.reason-list article, .steps .step, .product-family a, .practice-copy li { transition-delay: 0ms; }
.reason-list article:nth-child(2) { transition-delay: 90ms; }
.reason-list article:nth-child(3) { transition-delay: 180ms; }
.steps .step:nth-child(2) { transition-delay: 110ms; }
.steps .step:nth-child(3) { transition-delay: 220ms; }
.product-family a:nth-child(2) { transition-delay: 110ms; }

/* Hero headline: per-character spring reveal (chars wrapped by script.js) */
.hero-title-word { display: inline-block; }
.hero-title-char { display: inline-block; opacity: 0; transform: translateY(0.5em); animation: charIn .58s var(--ease-spring) forwards; }

/* Accent-word highlight marker that wipes in under emphasized words */
h1 strong, h2 strong {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 0.09em;
  padding-bottom: 0.06em;
  transition: background-size .72s var(--ease-spring) .2s;
}
.reveal.visible h2 strong, .ready .hero h1 strong, .ready .closing h2 strong { background-size: 100% 0.09em; }

/* Ambient drifting orbs behind grid surfaces */
.ambient-orb { position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; filter: blur(6px); }
.hero .ambient-orb.orb-a { top: 4%; right: 8%; width: 320px; height: 320px; background: radial-gradient(circle, rgba(194,182,232,.16), transparent 70%); animation: drift 18s ease-in-out infinite; }
.hero .ambient-orb.orb-b { bottom: 2%; left: 4%; width: 260px; height: 260px; background: radial-gradient(circle, rgba(196,217,149,.1), transparent 70%); animation: drift 22s ease-in-out infinite reverse; }
.hero-glow { animation: floatY 12s ease-in-out infinite; }
.closing-glow { animation: floatY 9s ease-in-out infinite; }

/* Soft sheen that drifts across device screenshots (subtle, no striping) */
.pencil-preview .scanline {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, transparent 0%, rgba(194,182,232,.05) 50%, transparent 100%);
  background-size: 100% 42%; background-repeat: no-repeat;
  animation: scanSweep 9s ease-in-out infinite; opacity: .55;
}

/* Pulsing rings around the record focal point */
.record-orbit { position: relative; }
.rec-ring { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; border: 1.5px solid rgba(23,24,37,.42); border-radius: 50%; opacity: 0; transform: translate(-50%,-50%) scale(.5); animation: ringPulse 2.6s var(--ease-spring) infinite; }
.rec-ring:nth-child(2) { animation-delay: .85s; }
.rec-ring:nth-child(3) { animation-delay: 1.7s; }
.rec-core { position: relative; z-index: 1; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--text); font-size: 28px; font-weight: 800; }

/* Live waveform bars */
.wave i { transform-origin: bottom; animation: waveBar 1.15s ease-in-out infinite; }
.wave i:nth-child(2n) { animation-delay: .12s; }
.wave i:nth-child(3n) { animation-delay: .26s; }
.wave i:nth-child(4n) { animation-delay: .4s; }
.wave i:nth-child(5n) { animation-delay: .56s; }
.wave.large i { animation-duration: 1.35s; }

/* Flowing practice strip (marquee) */
.strip-track { animation: marquee 30s linear infinite; }
.practice-strip:hover .strip-track { animation-play-state: paused; }
.strip-group { flex: 0 0 auto; display: flex; align-items: center; gap: 28px; padding: 0 14px; }

/* Featured-surface glow highlight */
.download-card { animation: glowPulse 5.5s ease-in-out 1.5s infinite; }
.step-speak { position: relative; }

/* Hover highlight on interactive cards */
.studio-product { will-change: transform; }
.studio-product:hover { box-shadow: 0 18px 46px rgba(8,12,20,.4), 0 0 0 1px var(--accent-glow); }

@keyframes charIn { to { opacity: 1; transform: translateY(0); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(34px, -26px) scale(1.12); } }
@keyframes ringPulse { 0% { opacity: .5; transform: translate(-50%,-50%) scale(.5); } 70% { opacity: .1; } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1.55); } }
@keyframes waveBar { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@keyframes scanSweep { 0% { background-position: 0 -100%; } 100% { background-position: 0 220%; } }
@keyframes glowPulse { 0%, 100% { box-shadow: var(--shadow); } 50% { box-shadow: var(--shadow), 0 0 60px var(--accent-glow); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 1040px) {
  :root { --shell: min(100% - 40px, 820px); }
  .hero { min-height: auto; }
  .hero-layout, .why-layout, .practice-layout, .faq-layout { grid-template-columns: 1fr; }
  .hero-layout { gap: 58px; }
  .hero-copy { max-width: 670px; }
  .why-layout, .practice-layout, .faq-layout { gap: 58px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step-speak { transform: none; }
  .step-compare { grid-column: 1 / -1; min-height: 350px; }
  .footer-wrap { grid-template-columns: 1fr auto; }
  .footer-wrap > p:first-of-type { display: none; }
  .download-card { grid-template-columns: 1fr; gap: 38px; }
  .wiki-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 48px; }
}

@media (max-width: 720px) {
  :root { --shell: calc(100% - 32px); }
  .site-header { background: rgba(32, 38, 50, .92); backdrop-filter: blur(18px); }
  .nav-wrap { min-height: 68px; }
  .menu-button { display: block; }
  .site-nav { position: absolute; top: 68px; right: 16px; left: 16px; display: none; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: #242c39; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px 12px; }
  .language-control { margin: 6px 8px; align-self: flex-start; }
  .nav-cta { margin-top: 4px; text-align: center; }
  .hero { padding: 116px 0 72px; }
  .hero-glow { top: 330px; left: 20%; width: 430px; height: 430px; }
  h1 { max-width: 100%; font-size: clamp(40px, 10vw, 54px); letter-spacing: -.07em; }
  .hero-intro { font-size: 16px; }
  .product-stage::before { display: none; }
  .product-stage, .pencil-preview { width: 100%; min-width: 0; }
  .pencil-preview { border-radius: 18px; }
  .section { padding: 88px 0; }
  .steps { grid-template-columns: 1fr; }
  .step, .step-compare { min-height: 390px; grid-column: auto; }
  .review-preview { transform: none; }
  .download-card { padding: 30px 24px; }
  .product-family { grid-template-columns: 1fr; }
  .studio-product { grid-template-columns: 58px 1fr auto; padding: 24px; }
  .studio-product > img { width: 58px; height: 58px; }
  .wiki-hero { padding: 130px 0 68px; }
  .wiki-layout { grid-template-columns: 1fr; gap: 52px; padding-top: 48px; }
  .wiki-sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .wiki-sidebar p { grid-column: 1 / -1; }
  .wiki-sidebar a { padding: 8px 10px; }
  .wiki-note { grid-template-columns: 1fr; gap: 6px; }
  .footer-wrap { min-height: 120px; grid-template-columns: 1fr; justify-items: start; padding: 24px 0; }
  .footer-wrap p:last-child { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; translate: none; scale: 1; }
  .hero-title-char { opacity: 1; transform: none; }
  h1 strong, h2 strong { background-size: 100% 0.09em; }
  .rec-ring { opacity: .28; transform: translate(-50%,-50%) scale(1); }
  .pencil-preview .scanline { display: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header, .site-header.scrolled, .eyebrow { background: var(--bg); backdrop-filter: none; }
}
