:root {
  color-scheme: dark;
  scroll-behavior: smooth;
  --bg: #030914;
  --surface: rgba(24, 111, 255, .055);
  --surface-strong: rgba(24, 111, 255, .1);
  --text: #f4f8ff;
  --soft: #dfeaff;
  --muted: #91a5c4;
  --dim: #52647f;
  --border: rgba(113, 173, 255, .22);
  --border-soft: rgba(113, 173, 255, .11);
  --violet: #1687ff;
  --lavender: #7cc7ff;
  --max: 1200px;
  font-family: Oxanium, "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { min-width: 320px; margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.55; }
body > :not(.ambient-backdrop):not(.site-header) { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.shell { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ambient-backdrop { position: fixed; z-index: 0; inset: 0; overflow: hidden; background: #030914; pointer-events: none; }
.ambient-backdrop::before { position: absolute; inset: -5%; background: url("/assets/hero-earth.webp") center top / cover no-repeat; content: ""; filter: saturate(.9) contrast(1.08); transform: translate3d(var(--earth-shift-x, 0), var(--earth-shift-y, 0), 0) scale(1.06); transition: transform 180ms linear; will-change: transform; }
.ambient-backdrop::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3, 9, 20, .78) 0%, rgba(3, 9, 20, .42) 48%, rgba(3, 9, 20, .12) 100%), linear-gradient(180deg, rgba(3, 9, 20, .04) 0%, rgba(3, 9, 20, .18) 48%, #030914 92%); content: ""; }
.ambient-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; will-change: transform; }
.ambient-orb-one { top: -20rem; right: -14rem; width: 58rem; height: 42rem; background: radial-gradient(circle, rgba(22, 135, 255, .22), rgba(8, 57, 132, .08) 48%, transparent 72%); animation: orb-drift 18s ease-in-out infinite alternate; }
.ambient-orb-two { top: 34rem; left: -24rem; width: 50rem; height: 34rem; background: radial-gradient(circle, rgba(124, 199, 255, .1), rgba(22, 135, 255, .04) 45%, transparent 70%); animation: orb-drift-two 22s ease-in-out infinite alternate; }
.ambient-grid { position: absolute; inset: 0; opacity: .11; background-image: linear-gradient(rgba(105, 174, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(105, 174, 255, .055) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, black, transparent 66%); }
.ambient-beam { position: absolute; top: 8%; right: 16%; width: 1px; height: 38vh; background: linear-gradient(transparent, rgba(124, 199, 255, .72), transparent); box-shadow: 0 0 24px 3px rgba(22, 135, 255, .4); animation: beam-pulse 5s ease-in-out infinite; }
@keyframes orb-drift { to { transform: translate(-8vw, 7vh) scale(1.08); } }
@keyframes orb-drift-two { to { transform: translate(11vw, -5vh) scale(.92); } }
@keyframes beam-pulse { 0%, 100% { opacity: .25; transform: scaleY(.8); } 50% { opacity: .75; transform: scaleY(1.08); } }
.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(72, 152, 255, .24); background: rgba(3, 9, 20, .78); backdrop-filter: blur(18px) saturate(125%); }
.nav { display: flex; min-height: 68px; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: Oxanium, "Space Grotesk", sans-serif; font-weight: 650; letter-spacing: .015em; }
.brand img, .footer-brand img, .experiment-table tbody th img { filter: drop-shadow(0 0 12px rgba(22, 135, 255, .5)); }
.nav-links { display: flex; align-items: center; gap: 15px; margin-left: auto; }
.nav-links a, .footer-link { display: inline-flex; align-items: center; gap: 7px; color: #b1b1b4; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.nav-links a { padding-block: 12px; }
.nav-links a:hover, .footer-link:hover { color: white; text-decoration: underline; text-underline-offset: 6px; }
.nav-links i { font-size: 10px; }
.language-control { display: inline-flex; align-items: center; gap: 8px; color: var(--lavender); }
.language-control select { min-height: 36px; padding: 0 28px 0 10px; border: 1px solid var(--border); border-radius: 2px; background: rgba(3, 9, 20, .82); color: var(--text); cursor: pointer; font-size: 11px; font-weight: 600; }

.hero { display: grid; min-height: calc(100vh - 68px); scroll-margin-top: 68px; align-items: center; grid-template-columns: minmax(0, 850px); padding-block: 88px 104px; }
.hero-copy { position: relative; max-width: 850px; }
.hero-copy::before { position: absolute; top: -50px; left: -28px; width: 2px; height: 100px; background: linear-gradient(transparent, var(--violet)); box-shadow: 0 0 16px rgba(22, 135, 255, .45); content: ""; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--soft); font: 500 10px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow i { color: var(--lavender); }
.eyebrow-purple { color: var(--soft); }
h1, h2, h3 { margin-top: 0; font-family: Oxanium, "Space Grotesk", sans-serif; font-weight: 540; line-height: 1.08; }
h1 { margin-bottom: 26px; font-size: clamp(52px, 6.25vw, 84px); letter-spacing: -.035em; }
h1 span, h1 em { display: block; }
h1 span { font-size: clamp(30px, 3vw, 42px); white-space: nowrap; }
h1 em { margin-left: clamp(28px, 4vw, 64px); color: var(--lavender); font-family: inherit; font-style: normal; font-weight: 560; letter-spacing: -.035em; text-shadow: 0 0 28px rgba(22, 135, 255, .2); }
h2 { margin-bottom: 18px; font-size: clamp(38px, 5vw, 62px); letter-spacing: -.045em; }
h3 { letter-spacing: -.025em; }
.hero-lead { max-width: 610px; margin: 0; color: #b7b7ba; font-size: clamp(17px, 1.8vw, 20px); font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; padding: 0 20px; border: 1px solid rgba(139, 193, 255, .72); border-radius: 2px; background: rgba(3, 9, 20, .82); color: white; font-size: 12px; font-weight: 650; letter-spacing: .035em; transition: transform 160ms ease, background 160ms ease, border-color 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { border-color: var(--violet); background: var(--violet); }
.button-primary:hover { background: #35a0ff; box-shadow: 0 0 24px rgba(22, 135, 255, .25); }
.button-secondary:hover { border-color: white; background: rgba(247, 249, 250, .08); }
.hero-notes { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid var(--border-soft); list-style: none; color: var(--muted); font-size: 12px; }
.hero-notes li { display: inline-flex; align-items: center; gap: 8px; }
.hero-notes i { color: var(--lavender); }

.demo-section { scroll-margin-top: 68px; padding-block: 88px; border-block: 1px solid var(--border-soft); background: linear-gradient(180deg, rgba(5, 20, 43, .72), rgba(3, 11, 25, .76)); }
.demo-shell { position: relative; }
.demo-shell::before { position: absolute; top: 10px; right: 4%; width: 360px; height: 360px; border-radius: 50%; background: rgba(22, 135, 255, .1); filter: blur(90px); content: ""; pointer-events: none; }
.demo-stack { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.module-column { display: contents; }
.module-column:first-child > .demo-card { grid-column: 1; grid-row: 1; }
.module-column:nth-child(2) > .demo-card { grid-column: 2; grid-row: 1; }

.demo-card { position: relative; padding: 20px; overflow: hidden; border: 1px solid rgba(105, 174, 255, .36); border-radius: 3px; background: linear-gradient(145deg, rgba(9, 37, 78, .82), rgba(3, 12, 27, .9)); box-shadow: inset 0 1px rgba(169, 214, 255, .08), 0 24px 64px rgba(0, 13, 34, .3); backdrop-filter: blur(16px); clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px)); }
.demo-card::before { position: absolute; top: -150px; right: -110px; width: 280px; height: 280px; border-radius: 50%; background: rgba(22, 135, 255, .18); filter: blur(66px); content: ""; pointer-events: none; }
.gravity-card { border-color: rgba(180, 105, 255, .42); background: linear-gradient(145deg, rgba(47, 20, 78, .78), rgba(8, 5, 20, .94)); }
.gravity-card::before { background: rgba(165, 75, 255, .2); }
.demo-route { position: relative; display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 11px; border-bottom: 1px solid var(--border-soft); color: #a5a5a8; font: 500 9px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .2em; }
.demo-route i { color: var(--lavender); }
.card-heading { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.card-heading h3 { margin-bottom: 0; font-size: 30px; }
.card-help { position: relative; margin: 10px 0 18px; color: var(--muted); font-size: 13px; }
.module-demo-link { position: relative; display: inline-flex; align-items: center; gap: 8px; margin: -5px 0 16px; color: #90c8ff; font: 600 11px Oxanium, sans-serif; letter-spacing: .02em; text-decoration: none; }
.module-demo-link:hover { color: white; }
.module-demo-link i { font-size: 10px; }
.live-pill { display: inline-flex; height: 29px; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid var(--border-soft); border-radius: 2px; background: rgba(22, 135, 255, .08); color: #c7ddf7; font-size: 10px; }
.live-pill > span:first-child { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 12px var(--violet); }
.nexa-captcha { position: relative; min-height: 346px; }
.nexacaptcha-frame { display: block; width: 100%; border: 0; }
.demo-output { display: flex; min-height: 40px; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 13px; border-top: 1px solid var(--border-soft); color: var(--muted); font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.demo-output.is-success { color: var(--lavender); }
.demo-integration-button { position: relative; display: grid; min-height: 96px; grid-column: 1 / -1; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 20px 24px; overflow: hidden; border: 1px solid rgba(105, 174, 255, .48); border-radius: 3px; background: linear-gradient(115deg, rgba(15, 70, 137, .76), rgba(33, 29, 91, .8)); color: white; box-shadow: 0 20px 60px rgba(2, 21, 52, .34), inset 0 1px rgba(196, 226, 255, .13); }
.demo-integration-button::before { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(65, 166, 255, .14), transparent 42%, rgba(174, 98, 255, .12)); content: ""; pointer-events: none; }
.demo-integration-button:hover { border-color: #84c6ff; background: linear-gradient(115deg, rgba(20, 86, 166, .84), rgba(48, 37, 124, .88)); transform: translateY(-2px); }
.demo-integration-button > * { position: relative; }
.demo-integration-icon { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(164, 213, 255, .42); border-radius: 2px; background: rgba(3, 12, 27, .44); color: #9cd1ff; font-size: 17px; }
.demo-integration-copy { display: grid; gap: 4px; }
.demo-integration-copy strong { font: 560 22px Oxanium, "Space Grotesk", sans-serif; letter-spacing: -.01em; }
.demo-integration-copy small { color: #b8cce5; font-size: 13px; }
.demo-integration-button > i { color: #9cd1ff; }

.section { padding-block: 120px; }
.section-heading { max-width: 900px; margin-bottom: 56px; }
.section-heading > p:last-child { max-width: 700px; margin: 0; color: var(--muted); font-size: 17px; }
.experiment-panel { scroll-margin-top: 88px; position: relative; padding: 42px; overflow: hidden; border: 1px solid var(--border); border-radius: 3px; background: linear-gradient(135deg, rgba(5, 21, 47, .94), rgba(2, 9, 20, .94)); clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
.experiment-panel::after { position: absolute; top: -160px; right: -100px; width: 420px; height: 300px; border-radius: 50%; background: rgba(22, 135, 255, .13); filter: blur(72px); content: ""; pointer-events: none; }
.experiment-heading { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.experiment-heading h3 { margin: 0; font-size: clamp(30px, 4vw, 48px); }
.experiment-lead { max-width: 700px; margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.experiment-version { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 2px; background: rgba(22, 135, 255, .08); color: var(--lavender); font-size: 10px; font-weight: 600; }
.experiment-table-wrap { position: relative; z-index: 1; margin-top: 30px; overflow-x: auto; border-block: 1px solid var(--border); }
.experiment-table { width: 100%; min-width: 720px; border-collapse: collapse; text-align: left; }
.experiment-table th, .experiment-table td { padding: 20px; border-bottom: 1px solid var(--border-soft); }
.experiment-table tr:last-child th, .experiment-table tr:last-child td { border-bottom: 0; }
.experiment-table thead th { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.experiment-table thead th:not(:first-child) { width: 31%; }
.experiment-table thead i { margin-right: 8px; color: var(--lavender); }
.experiment-table tbody th { color: var(--text); font: 600 15px Oxanium, sans-serif; }
.experiment-table tbody th img, .experiment-table tbody th i { width: 24px; margin-right: 10px; color: var(--lavender); text-align: center; vertical-align: middle; }
.experiment-table td { color: var(--muted); font-size: 12px; }
.experiment-table td strong { margin-right: 4px; color: var(--text); font: 550 23px Oxanium, sans-serif; }
.experiment-table .nexa-result { background: linear-gradient(90deg, rgba(22, 135, 255, .14), transparent 75%); }
.experiment-table .nexa-result th { color: var(--lavender); font-size: 18px; }
.experiment-table .nexa-result td:last-child strong { color: var(--lavender); }
.experiment-table .gravity-result { background: linear-gradient(90deg, rgba(38, 181, 187, .11), transparent 75%); }
.experiment-table .gravity-result th, .experiment-table .gravity-result td:last-child strong { color: #80e5e6; }
.experiment-note { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 9px; margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.experiment-note i { margin-top: 4px; color: var(--lavender); }

.docs-section { border-block: 1px solid var(--border-soft); background: rgba(5, 20, 43, .48); }
.callback-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 22px; align-items: start; }
.callback-code, .callback-parameters { min-width: 0; }
.callback-code-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.callback-code-heading h3 { margin: 2px 0 6px; font-size: 22px; }
.callback-code-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.callback-code .code-window + .code-window { margin-top: 12px; }
.callback-name { padding: 0; background: transparent; color: #c9a7ff; font: inherit; text-shadow: 0 0 14px rgba(166, 116, 255, .38); }
.callback-name-note { display: flex; align-items: flex-start; gap: 9px; margin: 10px 0 12px; color: #bda9de; font-size: 12px; }
.callback-name-note i { margin-top: 4px; color: #a674ff; }
.callback-security { display: flex; align-items: flex-start; gap: 9px; margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.callback-security i { margin-top: 4px; color: var(--lavender); }
.setup-row { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); gap: 46px; align-items: start; padding-block: 34px; }
.setup-row + .setup-row { border-top: 1px solid var(--border); }
.setup-copy { display: flex; gap: 16px; }
.step-number { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border: 1px solid var(--border); border-radius: 2px; background: rgba(22, 135, 255, .07); color: var(--lavender); font: 11px Oxanium, ui-monospace, monospace; }
.setup-copy h3 { display: flex; align-items: center; gap: 8px; margin: 3px 0 8px; font-size: 21px; }
.setup-copy h3 i { color: var(--lavender); font-size: 14px; }
.setup-copy p { margin: 0; color: var(--muted); }
.code-window, .backend-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 2px; background: #020811; box-shadow: inset 0 1px rgba(124, 199, 255, .04); }
.code-toolbar { display: flex; min-height: 46px; align-items: center; justify-content: space-between; padding: 0 11px 0 16px; border-bottom: 1px solid var(--border-soft); background: rgba(247, 249, 250, .045); color: var(--muted); font-size: 11px; font-weight: 600; }
.code-toolbar > span { display: inline-flex; align-items: center; gap: 7px; }
.code-toolbar-actions { display: flex; align-items: center; gap: 8px; }
.code-toolbar-actions label { color: #8e9bad; font: 600 9px Oxanium, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.code-toolbar-actions select { min-height: 32px; padding: 0 28px 0 10px; border: 1px solid rgba(105, 174, 255, .34); border-radius: 2px; background: #061326; color: #dbeeff; cursor: pointer; font: 600 11px Oxanium, sans-serif; }
.module-loader-name { padding: 0; background: transparent; color: #78c3ff; font: inherit; text-shadow: 0 0 14px rgba(71, 165, 255, .36); }
.module-loader-list { display: grid; gap: 10px; margin-bottom: 12px; padding: 16px; border: 1px solid var(--border); border-left: 2px solid #4ea7ff; background: linear-gradient(110deg, rgba(9, 42, 82, .62), rgba(5, 20, 43, .72)); color: var(--muted); font-size: 12px; }
.module-loader-list strong { color: var(--text); font: 600 12px Oxanium, sans-serif; letter-spacing: .03em; }
.module-loader-list > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.module-loader-list span { color: var(--lavender); font: 600 11px Oxanium, sans-serif; }
.module-loader-list code { color: #badcff; overflow-wrap: anywhere; }
.copy-button { display: inline-flex; min-height: 32px; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid transparent; border-radius: 2px; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 600; }
.copy-button:hover { border-color: var(--border); color: var(--text); }
.copy-button.is-copied { color: var(--lavender); }
pre { margin: 0; padding: 20px; overflow-x: auto; color: #badcff; font: 13px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; }
.parameter-card { max-width: 720px; margin: 30px 0 0 auto; padding: 24px; border: 1px solid var(--border); border-left: 2px solid var(--violet); background: rgba(22, 135, 255, .055); }
.parameter-card h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 18px; }
.parameter-card h3 i { color: var(--lavender); }
.callback-parameters { max-width: none; margin: 0; padding: 24px; border-left-color: var(--lavender); background: linear-gradient(145deg, rgba(12, 46, 94, .54), rgba(3, 13, 29, .82)); }
.parameter-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.parameter-heading h3 { margin: 0; }
.callback-parameters > p { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.callback-parameters dl div { grid-template-columns: 180px 1fr; }
dl { margin: 0; }
dl div { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 13px 0; border-top: 1px solid var(--border-soft); }
dt { color: var(--text); font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; }
dd { margin: 0; color: var(--muted); font-size: 13px; }

.verify-layout { display: grid; grid-template-columns: minmax(330px, .82fr) minmax(0, 1.18fr); gap: 22px; align-items: start; }
.endpoint-card { overflow: hidden; border: 1px solid var(--border); border-radius: 2px; background: rgba(3, 12, 27, .9); }
.endpoint-card > header { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.endpoint-card > header code { font: 600 13px ui-monospace, SFMono-Regular, Consolas, monospace; }
.method { padding: 5px 8px; border-radius: 1px; background: var(--violet); color: white; font: 700 10px Oxanium, ui-monospace, monospace; }
.endpoint-part { padding: 18px; }
.endpoint-part + .endpoint-part { border-top: 1px solid var(--border-soft); }
.endpoint-part h3 { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.endpoint-part h3 i { color: var(--lavender); }
.endpoint-part pre { padding: 14px; background: #050505; }
.important-note { display: flex; align-items: flex-start; gap: 13px; margin-top: 20px; padding: 18px 20px; border: 1px solid var(--border); border-left: 2px solid var(--violet); background: rgba(22, 135, 255, .055); }
.important-note i { margin-top: 4px; color: var(--lavender); }
.important-note p { margin: 0; color: var(--muted); }

.site-footer { border-top: 1px solid var(--border); background: rgba(2, 7, 16, .94); }
.footer-grid { display: flex; min-height: 150px; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand div { display: grid; }
.footer-brand span { color: var(--muted); font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 20px; }
.footer-coordinate { display: inline-flex; align-items: center; gap: 7px; color: var(--dim); font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .05em; }
.footer-link i, .footer-coordinate i { color: var(--lavender); }
.button:focus-visible, a:focus-visible, button:focus-visible, select:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; }
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 650ms ease, transform 650ms cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .nav-links { display: none; }
  .language-control { margin-left: auto; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-block: 78px 90px; }
  .hero-copy { max-width: 760px; }
  .demo-stack { grid-template-columns: 1fr; max-width: 720px; }
  .module-column { display: grid; min-width: 0; align-content: start; gap: 16px; }
  .module-column > .demo-card { grid-column: auto; grid-row: auto; }
  .demo-card { max-width: 720px; }
  .demo-integration-button { grid-column: auto; }
  .setup-row, .callback-layout, .verify-layout { grid-template-columns: 1fr; }
  .parameter-card { max-width: none; }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .nav { min-height: 62px; }
  .language-control > i { display: none; }
  .language-control select { max-width: 118px; }
  .hero { padding-block: 58px 76px; gap: 48px; }
  .ambient-backdrop::before { background-position: 62% top; }
  h1 { font-size: clamp(40px, 11.5vw, 52px); }
  h1 span { font-size: clamp(27px, 8vw, 36px); white-space: normal; }
  h1 em { margin-left: clamp(18px, 7vw, 32px); }
  html[lang="zh-Hant"] h1 { font-size: clamp(32px, 8.9vw, 40px); }
  html[lang="ja"] h1 { font-size: clamp(32px, 9.5vw, 42px); }
  h2 { font-size: clamp(34px, 10vw, 48px); }
  html[lang="zh-Hant"] h2 { font-size: clamp(31px, 8.8vw, 38px); }
  .hero-lead { font-size: 17px; }
  .hero-notes { align-items: flex-start; flex-direction: column; }
  .demo-card { padding: 18px; }
  .demo-integration-button { min-height: 88px; gap: 13px; padding: 17px 16px; }
  .demo-integration-copy strong { font-size: 18px; }
  .demo-integration-copy small { font-size: 12px; }
  .demo-integration-icon { width: 42px; height: 42px; }
  .nexa-captcha { min-height: 390px; }
  .section { padding-block: 84px; }
  .demo-section { padding-block: 72px; }
  .section-heading { margin-bottom: 40px; }
  .experiment-panel { padding: 24px 18px; }
  .experiment-heading { align-items: flex-start; flex-direction: column; }
  .setup-row { gap: 20px; }
  .callback-parameters dl div { grid-template-columns: 1fr; }
  .callback-html-window .code-toolbar { align-items: flex-start; flex-direction: column; gap: 9px; padding-block: 10px; }
  .callback-html-window .code-toolbar-actions { width: 100%; }
  .callback-html-window .copy-button { margin-left: auto; }
  .module-loader-list > div { grid-template-columns: 1fr; gap: 4px; }
  dl div { grid-template-columns: 1fr; gap: 5px; }
  .footer-grid { min-height: 190px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 20px; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
