:root {
    --bg: #05080c;
    --bg-soft: #081019;
    --panel: rgba(13, 23, 34, 0.82);
    --panel-solid: #0c1722;
    --line: rgba(144, 194, 218, 0.19);
    --line-strong: rgba(144, 194, 218, 0.38);
    --text: #f3f7fa;
    --muted: #9dafbb;
    --cyan: #67d9ff;
    --cyan-strong: #31b9eb;
    --amber: #ffba66;
    --red: #ef6b6b;
    --green: #80d99d;
    --radius: 18px;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.46);
    --shell: min(1460px, calc(100% - 64px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: Inter, "Segoe UI", Arial, sans-serif; line-height: 1.6; }
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
::selection { color: #001018; background: var(--cyan); }

.skip-link { position: fixed; z-index: 999; left: 16px; top: -80px; padding: 11px 15px; color: #001018; background: var(--cyan); border-radius: 8px; font-weight: 800; transition: top 160ms ease; }
.skip-link:focus { top: 16px; }
.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; }

.site-atmosphere { position: fixed; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.site-atmosphere::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 17% 20%, rgba(66, 181, 224, 0.12), transparent 30%), radial-gradient(circle at 84% 36%, rgba(236, 131, 72, 0.09), transparent 28%), linear-gradient(180deg, #05080c 0%, #060b11 48%, #030608 100%); }
.atmosphere-grid { position: absolute; inset: 0; opacity: 0.25; background-image: linear-gradient(rgba(90, 159, 190, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(90, 159, 190, 0.06) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, black 0%, transparent 82%); }
.cursor-light { position: absolute; width: 650px; height: 650px; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(74, 190, 235, 0.07), transparent 66%); opacity: 0; transition: opacity 240ms ease; }
body:hover .cursor-light { opacity: 1; }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(130, 195, 223, 0.14); background: rgba(3, 7, 11, 0.89); backdrop-filter: blur(18px); }
.header-inner { width: var(--shell); min-height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 235px; }
.brand-mark { position: relative; width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: 9px; background: linear-gradient(145deg, rgba(39, 104, 134, 0.38), rgba(7, 13, 20, 0.9)); box-shadow: inset 0 0 20px rgba(80, 210, 255, 0.08); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; left: 8px; right: 8px; height: 1px; background: var(--cyan); box-shadow: 0 0 12px rgba(103, 217, 255, 0.65); }
.brand-mark::before { top: 13px; transform: rotate(32deg); }
.brand-mark::after { bottom: 13px; transform: rotate(-32deg); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { font-size: 0.88rem; letter-spacing: 0.2em; text-transform: uppercase; }
.brand-copy span { margin-top: 6px; color: var(--muted); font-size: 0.63rem; letter-spacing: 0.15em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav > a, .site-switcher summary { position: relative; padding: 29px 0 24px; color: #bdcbd4; font-size: 13px; font-weight: 400; letter-spacing: 0.045em; white-space: nowrap; }

.site-nav > a::after, .site-switcher summary::before { content: ""; position: absolute; left: 0; right: 100%; bottom: 18px; height: 1px; background: var(--cyan); transition: right 180ms ease; }
.site-nav > a:hover, .site-nav > a.is-active, .site-switcher summary:hover { color: #fff; }
.site-nav > a:hover::after, .site-nav > a.is-active::after, .site-switcher[open] summary::before { right: 0; }
.site-switcher { position: relative; }
.site-switcher summary { display: flex; align-items: center; gap: 7px; color: var(--cyan); cursor: pointer; list-style: none; }
.site-switcher summary::-webkit-details-marker { display: none; }
.site-switcher summary::after { content: "+"; font-size: 15px; line-height: 1; transition: transform 160ms ease; }
.site-switcher[open] summary::after { transform: rotate(45deg); }

.site-switcher-menu { position: absolute; top: calc(100% + 8px); right: 0; width: 220px; padding: 9px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(5, 11, 17, 0.98); box-shadow: var(--shadow); }
.site-switcher-menu a { display: block; padding: 10px 12px; border-radius: 8px; color: #b9c8d1; }

.site-switcher-menu a:hover { color: #fff; background: rgba(103, 217, 255, 0.08); }
.site-switcher-menu a.is-current { color: var(--cyan); background: rgba(103, 217, 255, 0.1); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(12, 22, 33, 0.9); }
.nav-toggle span:not(.sr-only) { display: block; height: 1px; margin: 5px 0; background: #eaf6fb; transition: transform 180ms ease, opacity 180ms ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.section-shell { width: var(--shell); margin: 0 auto; }
.section { position: relative; padding: 112px 0; }
.section-compact { padding: 84px 0; }
.section-dark { border-top: 1px solid rgba(136, 202, 231, 0.1); border-bottom: 1px solid rgba(136, 202, 231, 0.1); background: linear-gradient(180deg, rgba(8, 16, 24, 0.88), rgba(4, 8, 12, 0.94)); }
.eyebrow { margin: 0 0 16px; color: var(--cyan); font-size: 0.68rem; font-weight: 850; letter-spacing: 0.18em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.05; }
h1 { max-width: 960px; margin-bottom: 24px; font-size: clamp(3.3rem, 7vw, 7.6rem); letter-spacing: -0.062em; }
h2 { margin-bottom: 20px; font-size: clamp(2.25rem, 4.5vw, 4.8rem); letter-spacing: -0.048em; }
h3 { margin-bottom: 13px; font-size: clamp(1.4rem, 2.2vw, 2.1rem); letter-spacing: -0.025em; }
p { color: var(--muted); }
.section-heading { max-width: 850px; margin-bottom: 48px; }
.section-heading.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-heading > p:last-child { max-width: 730px; font-size: 1.08rem; }
.section-heading.centered > p:last-child { margin-left: auto; margin-right: auto; }

.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 12px 19px; border: 1px solid transparent; border-radius: 10px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.075em; text-transform: uppercase; transition: transform 170ms ease, border-color 170ms ease, background 170ms ease, box-shadow 170ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #00141d; background: linear-gradient(135deg, #79e4ff, #36b8ef); box-shadow: 0 14px 28px rgba(37, 173, 226, 0.2); }
.button-primary:hover { box-shadow: 0 18px 34px rgba(37, 173, 226, 0.3); }
.button-ghost { color: #d8e8ef; border-color: var(--line-strong); background: rgba(10, 20, 29, 0.55); }
.button-ghost:hover { border-color: rgba(103, 217, 255, 0.66); background: rgba(20, 42, 57, 0.66); }
.button-amber { color: #201000; background: linear-gradient(135deg, #ffd38f, #f2a146); box-shadow: 0 14px 28px rgba(244, 154, 66, 0.18); }
.button-buy { color: #00141d; background: linear-gradient(135deg, #9feaff, #54c8f5); box-shadow: 0 14px 28px rgba(60, 190, 238, 0.22); }
.button-green { color: #05180d; background: linear-gradient(135deg, #a9ebbd, #70d494); box-shadow: 0 14px 28px rgba(83, 190, 122, 0.2); }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--cyan); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.075em; text-transform: uppercase; }
.text-link span { transition: transform 170ms ease; }
.text-link:hover span { transform: translateX(4px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.home-hero { position: relative; min-height: 760px; display: flex; align-items: center; padding: 96px 0 76px; overflow: hidden; }
.home-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 190px; background: linear-gradient(transparent, rgba(2, 5, 8, 0.96)); pointer-events: none; }
.home-hero-layout { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(430px, 0.82fr) minmax(620px, 1.18fr); align-items: center; gap: 72px; }
.home-hero-copy h1 span { color: transparent; -webkit-text-stroke: 1px rgba(139, 217, 246, 0.76); text-shadow: 0 0 45px rgba(78, 202, 247, 0.11); }
.hero-summary { max-width: 690px; font-size: 1.13rem; }
.hero-status { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-status span { padding: 7px 11px; border: 1px solid var(--line); border-radius: 99px; color: #b7c9d2; background: rgba(8, 18, 27, 0.68); font-size: 0.66rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-stage { position: relative; min-height: 540px; }
.hero-stage::before { content: ""; position: absolute; inset: 8% 4% 4% 5%; border-radius: 50%; background: radial-gradient(circle, rgba(60, 181, 227, 0.2), transparent 65%); filter: blur(28px); }
.hero-main-image { position: absolute; z-index: 2; inset: 8% 0 auto 3%; width: 94%; border: 1px solid var(--line-strong); border-radius: 17px; background: #070d13; box-shadow: var(--shadow); overflow: hidden; transform: perspective(1500px) rotateY(-6deg) rotateX(2deg); }
.hero-main-image img { width: 100%; }
.hero-mini-panel { position: absolute; z-index: 4; right: -2%; bottom: 0; width: 40%; padding: 13px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(7, 14, 21, 0.96); box-shadow: 0 22px 48px rgba(0, 0, 0, 0.48); }
.hero-mini-panel img { width: 100%; border-radius: 8px; }
.hero-mini-panel span { display: block; margin-top: 9px; color: var(--cyan); font-size: 0.62rem; font-weight: 850; letter-spacing: 0.13em; text-transform: uppercase; }
.hero-legion-mark { position: absolute; z-index: 1; left: -8%; bottom: -8%; width: 45%; opacity: 0.17; mix-blend-mode: screen; filter: contrast(1.2); }
.capability-rail { position: relative; z-index: 4; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(6, 12, 18, 0.75); overflow: hidden; }
.capability-rail > div { width: var(--shell); min-height: 58px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 20px; color: #9db3bf; font-size: 0.68rem; font-weight: 750; letter-spacing: 0.11em; text-transform: uppercase; }
.capability-rail i { width: 3px; height: 3px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card { position: relative; min-height: 480px; display: flex; flex-direction: column; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, rgba(15, 29, 42, 0.9), rgba(5, 11, 17, 0.9)); overflow: hidden; box-shadow: 0 20px 52px rgba(0, 0, 0, 0.2); transition: transform 210ms ease, border-color 210ms ease, box-shadow 210ms ease; }
.product-card:hover { transform: translateY(-5px); border-color: rgba(103, 217, 255, 0.46); box-shadow: 0 28px 64px rgba(0, 0, 0, 0.34); }
.product-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 5%, rgba(103, 217, 255, 0.13), transparent 37%); pointer-events: none; }
.product-card-ec::before { background: radial-gradient(circle at 85% 5%, rgba(255, 186, 102, 0.14), transparent 37%); }
.product-card-avkey::before { background: radial-gradient(circle at 85% 5%, rgba(128, 217, 157, 0.12), transparent 37%); }
.product-index { position: relative; color: var(--cyan); font-size: 0.67rem; font-weight: 850; letter-spacing: 0.14em; }
.product-card-ec .product-index { color: var(--amber); }
.product-card-avkey .product-index { color: var(--green); }
.product-card h3 { position: relative; margin-top: 40px; font-size: clamp(2rem, 3vw, 3.45rem); }
.product-card p { position: relative; }
.product-card .product-action { position: relative; margin-top: auto; padding-top: 32px; }
.product-card .product-action strong { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.product-card-ec .product-action strong { color: var(--amber); }
.product-card-avkey .product-action strong { color: var(--green); }
.product-card .product-action strong::after { content: "→"; }
.product-card-art { position: absolute; right: -9%; bottom: 5%; width: 64%; opacity: 0.13; filter: grayscale(1) contrast(1.35); }

.split-feature { display: grid; grid-template-columns: minmax(430px, 0.84fr) minmax(620px, 1.16fr); align-items: center; gap: 70px; }
.split-feature.reverse { grid-template-columns: minmax(620px, 1.16fr) minmax(430px, 0.84fr); }
.split-feature.reverse .split-copy { order: 2; }
.split-copy > p { font-size: 1.04rem; }
.feature-list { list-style: none; display: grid; gap: 11px; margin: 28px 0; padding: 0; }
.feature-list li { position: relative; padding-left: 27px; color: #c4d2da; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 0.73em; width: 12px; height: 1px; background: var(--cyan); box-shadow: 0 0 11px rgba(103, 217, 255, 0.7); }
.feature-list.amber li::before { background: var(--amber); box-shadow: 0 0 11px rgba(255, 186, 102, 0.6); }
.feature-list.green li::before { background: var(--green); box-shadow: 0 0 11px rgba(128, 217, 157, 0.6); }
.image-frame { position: relative; border: 1px solid var(--line-strong); border-radius: 16px; background: #071019; box-shadow: var(--shadow); overflow: hidden; }
.image-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.025), inset 0 -58px 85px rgba(0,0,0,0.18); pointer-events: none; }
.image-frame img { width: 100%; }
.image-caption { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 16px; border-top: 1px solid var(--line); color: #a9bcc6; background: rgba(6, 13, 20, 0.92); font-size: 0.66rem; letter-spacing: 0.09em; text-transform: uppercase; }
.image-caption span:first-child { color: var(--cyan); font-weight: 800; }

.feature-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card { min-height: 260px; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, rgba(15, 28, 40, 0.78), rgba(7, 13, 20, 0.8)); }
.feature-card > span { color: var(--cyan); font-size: 0.65rem; font-weight: 850; letter-spacing: 0.14em; }
.feature-card h3 { margin: 46px 0 12px; font-size: 1.4rem; }
.feature-card p { margin-bottom: 0; font-size: 0.93rem; }

.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.compare-card { position: relative; padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(11, 22, 32, 0.76); }
.compare-card.featured { border-color: rgba(103, 217, 255, 0.42); background: linear-gradient(145deg, rgba(20, 48, 64, 0.72), rgba(9, 20, 31, 0.88)); }
.compare-card.ec { border-color: rgba(255, 186, 102, 0.34); background: linear-gradient(145deg, rgba(55, 38, 20, 0.45), rgba(11, 20, 29, 0.88)); }
.compare-label { display: inline-flex; padding: 6px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--cyan); font-size: 0.62rem; font-weight: 850; letter-spacing: 0.11em; text-transform: uppercase; }
.compare-card.ec .compare-label { color: var(--amber); }
.compare-card h3 { margin-top: 25px; font-size: 2.35rem; }
.compare-card .feature-list { margin-bottom: 35px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.purchase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.purchase-card { display: flex; min-height: 340px; flex-direction: column; padding: 34px; border: 1px solid rgba(103, 217, 255, 0.38); border-radius: var(--radius); background: linear-gradient(145deg, rgba(20, 48, 64, 0.66), rgba(9, 20, 31, 0.88)); }
.purchase-card-ec { border-color: rgba(255, 186, 102, 0.38); background: linear-gradient(145deg, rgba(55, 38, 20, 0.48), rgba(11, 20, 29, 0.88)); }
.purchase-card-avkey { border-color: rgba(128, 217, 157, 0.4); background: linear-gradient(145deg, rgba(25, 60, 44, 0.48), rgba(8, 20, 24, 0.9)); }
.purchase-card-ec .product-index { color: var(--amber); }
.purchase-card-avkey .product-index { color: var(--green); }
.purchase-card h3 { margin: 32px 0 15px; font-size: 2.25rem; }
.purchase-card p { margin-bottom: 28px; }
.purchase-card .button { align-self: flex-start; margin-top: auto; }

.gallery-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; grid-template-rows: repeat(2, minmax(280px, 1fr)); gap: 18px; }
.gallery-tile { position: relative; min-height: 290px; border: 1px solid var(--line); border-radius: 15px; background: #061019; overflow: hidden; }
.gallery-tile-large { grid-row: 1 / span 2; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; }
.gallery-tile > div { position: absolute; inset: auto 0 0; padding: 78px 24px 23px; background: linear-gradient(0deg, rgba(2, 6, 10, 0.97), transparent); }
.gallery-tile span { display: block; margin-bottom: 5px; color: var(--cyan); font-size: 0.62rem; font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase; }
.gallery-tile strong { font-size: 1.12rem; }

.page-hero { position: relative; min-height: 600px; display: flex; align-items: center; padding: 88px 0; overflow: hidden; }
.page-hero-layout { display: grid; grid-template-columns: minmax(430px, 0.8fr) minmax(620px, 1.2fr); align-items: center; gap: 70px; }
.page-hero h1 { font-size: clamp(3.4rem, 6.2vw, 6.6rem); }
.page-hero-visual { position: relative; }
.page-hero-visual .image-frame { transform: perspective(1400px) rotateY(-5deg); }
.page-hero-mark { position: absolute; z-index: -1; width: 50%; right: -15%; top: -25%; opacity: 0.12; mix-blend-mode: screen; }

.avkey-hero .page-hero-visual .image-frame { transform: none; }
.protocol-flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; margin-top: 50px; }
.protocol-node { min-height: 130px; display: flex; align-items: center; justify-content: center; padding: 22px; border: 1px solid var(--line); border-radius: 13px; text-align: center; background: rgba(11, 22, 32, 0.78); }
.protocol-node strong { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.protocol-arrow { color: var(--cyan); text-align: center; font-size: 1.4rem; }
.avkey-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.avkey-panel { min-height: 340px; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: rgba(11, 22, 32, 0.76); }
.avkey-panel-image { min-height: 220px; display: flex; align-items: center; justify-content: center; padding: 18px; border-radius: 10px; background: #f0f2f4; overflow: hidden; }
.avkey-panel h3 { margin: 22px 0 8px; font-size: 1.35rem; }
.avkey-panel p { margin-bottom: 0; font-size: 0.92rem; }
.edition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.edition-card { padding: 36px; border: 1px solid var(--line); border-radius: 17px; background: rgba(11, 22, 32, 0.75); }
.edition-card.plus { border-color: rgba(128, 217, 157, 0.45); background: linear-gradient(145deg, rgba(25, 60, 44, 0.5), rgba(8, 20, 24, 0.9)); }
.edition-card h3 { font-size: 2.2rem; }
.edition-card .compare-label { color: var(--green); }

.cta-section { padding: 92px 0; }
.cta-panel { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 50px; padding: 54px; border: 1px solid rgba(103, 217, 255, 0.36); border-radius: 20px; background: radial-gradient(circle at 90% 10%, rgba(103, 217, 255, 0.14), transparent 35%), linear-gradient(145deg, rgba(17, 37, 51, 0.9), rgba(7, 14, 21, 0.94)); box-shadow: var(--shadow); }
.cta-panel h2 { margin-bottom: 12px; font-size: clamp(2.1rem, 4vw, 4.1rem); }
.cta-panel p { max-width: 790px; margin-bottom: 0; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }

.site-footer { border-top: 1px solid var(--line); background: #030609; }
.footer-main { width: var(--shell); display: grid; grid-template-columns: 1.3fr repeat(3, 0.7fr); gap: 50px; margin: 0 auto; padding: 64px 0 52px; }
.footer-brand p { max-width: 470px; margin-top: 20px; }
.footer-column strong { display: block; margin-bottom: 16px; font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase; }
.footer-column a { display: block; margin: 9px 0; color: var(--muted); font-size: 0.9rem; }
.footer-column a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid rgba(140, 198, 224, 0.11); }
.footer-bottom > div { width: var(--shell); min-height: 58px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #7f949f; font-size: 0.72rem; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 650ms ease, transform 650ms ease; }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.js .reveal-delay { transition-delay: 120ms; }

@media (max-width: 1240px) {
    :root { --shell: min(100% - 42px, 1240px); }
    .site-nav { gap: 15px; }
    .home-hero-layout, .page-hero-layout { grid-template-columns: minmax(370px, 0.85fr) minmax(510px, 1.15fr); gap: 44px; }
    .home-hero { min-height: 680px; }
    .hero-stage { min-height: 450px; }
    .feature-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1040px) {
    .nav-toggle { display: block; }
    .site-nav { position: fixed; inset: 76px 0 auto; max-height: calc(100vh - 76px); display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 18px 25px 32px; overflow-y: auto; border-bottom: 1px solid var(--line); background: rgba(4, 9, 14, 0.985); }
    .site-nav.is-open { display: flex; }
    
    .site-nav > a, .site-switcher summary { padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 13px; }

    .site-nav > a::after, .site-switcher summary::before { display: none; }
    .site-switcher-menu { position: absolute; top: calc(100% + 8px); right: 0; width: 220px; padding: 9px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(5, 11, 17, 0.98); box-shadow: var(--shadow); }
    .site-switcher-menu a { display: block; padding: 10px 12px; border-radius: 8px; color: #b9c8d1; }

    .home-hero-layout, .page-hero-layout, .split-feature, .split-feature.reverse { grid-template-columns: 1fr; }
    .split-feature.reverse .split-copy { order: 0; }
    .home-hero { padding-top: 78px; }
    .hero-stage { min-height: 520px; }
    .product-grid { grid-template-columns: 1fr; }
    .product-card { min-height: 360px; }
    .compare-grid, .edition-grid, .purchase-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .gallery-tile-large { grid-row: auto; min-height: 440px; }
    .gallery-tile { min-height: 330px; }
    .avkey-gallery { grid-template-columns: 1fr; }
    .protocol-flow { grid-template-columns: 1fr; }
    .protocol-arrow { transform: rotate(90deg); }
    .cta-panel { grid-template-columns: 1fr; }
    .cta-actions { justify-content: flex-start; }
    .footer-main { grid-template-columns: 1.2fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    :root { --shell: calc(100% - 30px); }
    .header-inner { min-height: 68px; }
    .brand { min-width: 0; }
    .brand-copy span { display: none; }
    .site-nav { top: 68px; max-height: calc(100vh - 68px); }
    .section { padding: 82px 0; }
    .section-compact { padding: 66px 0; }
    .home-hero { min-height: auto; padding: 72px 0 54px; }
    h1 { font-size: clamp(3rem, 16vw, 5.1rem); }
    h2 { font-size: clamp(2.15rem, 11vw, 3.6rem); }
    .hero-stage { min-height: 370px; margin-top: 8px; }
    .hero-main-image { left: 0; width: 100%; transform: none; }
    .hero-mini-panel { right: 0; width: 48%; }
    .capability-rail > div { justify-content: flex-start; padding: 0 8px; overflow-x: auto; }
    .product-card { min-height: 390px; padding: 28px; }
    .feature-card-grid { grid-template-columns: 1fr; }
    .feature-card { min-height: 220px; }
    .image-caption { align-items: flex-start; flex-direction: column; gap: 3px; }
    .gallery-tile-large { min-height: 320px; }
    .gallery-tile { min-height: 280px; }
    .compare-card, .edition-card { padding: 28px; }
    .cta-panel { padding: 34px 26px; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 34px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom > div { min-height: 76px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 4px; padding: 15px 0; }
}

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