:root {
    --ink: #12141a;
    --ink-soft: #262a33;
    --paper: #f1f2f4;
    --paper-strong: #f7f7f9;
    --paper-muted: #d9dbe1;
    --line: #aeb2bc;
    --line-dark: #565c6a;
    --signal: #df6a57;
    --signal-dark: #9f4638;
    --lime: #7f72ae;
    --cyan: #6faeb4;
    --amber: #d6a85c;
    --white: #ffffff;
    --black: #090a0e;
    --header-height: 68px;
    --container: 1380px;
    --radius: 6px;
    --font-sans: "IBM Plex Sans", "Segoe UI", sans-serif;
    --font-mono: "IBM Plex Mono", "Cascadia Mono", monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--ink);
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.is-locked {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    color: inherit;
    font: inherit;
    letter-spacing: 0;
}

button,
a,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--signal);
    outline-offset: 3px;
}

::selection {
    background: var(--lime);
    color: var(--paper);
}

.site-shell {
    overflow: clip;
}

.container {
    width: min(calc(100% - 48px), var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    height: var(--header-height);
    border-bottom: 1px solid rgba(241, 242, 244, 0.18);
    background: rgba(18, 20, 26, 0.94);
    color: var(--paper);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
    align-items: center;
    height: 100%;
    gap: 24px;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    min-width: 0;
}

.brand-mark {
    position: relative;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 1px solid var(--paper);
}

.brand-mark::before,
.brand-mark::after {
    content: "";
    position: absolute;
    background: var(--paper);
}

.brand-mark::before {
    left: 5px;
    right: 5px;
    top: 8px;
    height: 1px;
    box-shadow: 0 6px 0 var(--paper), 0 12px 0 var(--paper);
}

.brand-mark::after {
    top: 5px;
    bottom: 5px;
    left: 13px;
    width: 1px;
}

.brand-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.05;
}

.brand-name {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.brand-division {
    margin-top: 4px;
    color: rgba(241, 242, 244, 0.52);
    font-family: var(--font-mono);
    font-size: 9px;
    white-space: nowrap;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.primary-nav a {
    position: relative;
    color: rgba(241, 242, 244, 0.66);
    font-size: 12px;
    font-weight: 500;
}

.primary-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 1px;
    background: var(--lime);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
    color: var(--paper);
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.header-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: 10px;
}

.status-light {
    width: 7px;
    height: 7px;
    background: var(--lime);
    box-shadow: 0 0 0 4px rgba(127, 114, 174, 0.12);
}

.status-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.status-copy span:last-child {
    margin-top: 3px;
    color: rgba(241, 242, 244, 0.44);
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(241, 242, 244, 0.24);
    border-radius: 2px;
    background: transparent;
    color: var(--paper);
    cursor: pointer;
}

.hero {
    position: relative;
    min-height: min(78svh, 850px);
    overflow: hidden;
    background: var(--ink);
    color: var(--paper);
    isolation: isolate;
}

.field-canvas {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(5, 6, 4, 0.38);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    align-items: end;
    min-height: min(78svh, 850px);
    padding-top: 76px;
    padding-bottom: 46px;
    gap: 64px;
}

.classification {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: var(--lime);
    font-family: var(--font-mono);
    font-size: 11px;
}

.classification::before {
    content: "";
    width: 34px;
    height: 1px;
    background: var(--lime);
}

.hero-title {
    max-width: 900px;
    margin: 0;
    font-size: clamp(64px, 10vw, 158px);
    font-weight: 600;
    line-height: 0.82;
}

.hero-title span {
    display: block;
    margin-top: 16px;
    color: rgba(241, 242, 244, 0.56);
    font-family: var(--font-mono);
    font-size: clamp(14px, 1.7vw, 22px);
    font-weight: 400;
    line-height: 1.35;
}

.hero-summary {
    max-width: 650px;
    margin: 34px 0 0;
    color: rgba(241, 242, 244, 0.72);
    font-size: clamp(17px, 1.5vw, 23px);
    line-height: 1.48;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 3px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--lime);
    color: var(--paper);
}

.button-primary:hover {
    background: var(--paper);
    color: var(--ink);
}

.button-secondary {
    border-color: rgba(241, 242, 244, 0.34);
    background: rgba(18, 20, 26, 0.58);
    color: var(--paper);
}

.button-secondary:hover {
    border-color: var(--paper);
    background: var(--paper);
    color: var(--ink);
}

.button-danger {
    border-color: var(--signal);
    background: transparent;
    color: var(--signal);
}

.button-danger:hover {
    background: var(--signal);
    color: var(--white);
}

.button-icon {
    width: 42px;
    min-height: 42px;
    padding: 0;
}

.button[disabled] {
    cursor: not-allowed;
    opacity: 0.42;
    transform: none;
}

.hero-dossier {
    align-self: end;
    border-top: 1px solid rgba(241, 242, 244, 0.45);
    border-bottom: 1px solid rgba(241, 242, 244, 0.18);
}

.dossier-row {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(241, 242, 244, 0.12);
}

.dossier-row:last-child {
    border-bottom: 0;
}

.dossier-row dt,
.dossier-row dd {
    margin: 0;
}

.dossier-row dt {
    color: rgba(241, 242, 244, 0.42);
    font-family: var(--font-mono);
    font-size: 9px;
}

.dossier-row dd {
    color: var(--paper);
    font-family: var(--font-mono);
    font-size: 11px;
    text-align: right;
}

.telemetry-band {
    border-bottom: 1px solid var(--line);
    background: var(--paper-strong);
}

.telemetry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.telemetry-item {
    min-height: 118px;
    padding: 24px 28px;
    border-right: 1px solid var(--line);
}

.telemetry-item:first-child {
    border-left: 1px solid var(--line);
}

.telemetry-label {
    color: #666b77;
    font-family: var(--font-mono);
    font-size: 10px;
}

.telemetry-value {
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: clamp(18px, 1.8vw, 28px);
    font-weight: 500;
    overflow-wrap: anywhere;
}

.telemetry-value small {
    color: #6c717d;
    font-size: 11px;
    font-weight: 400;
}

.section {
    padding: 112px 0;
}

.section-dark {
    background: var(--ink);
    color: var(--paper);
}

.section-black {
    background: var(--black);
    color: var(--paper);
}

.section-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--signal);
    font-family: var(--font-mono);
    font-size: 10px;
}

.section-kicker::before {
    content: "";
    width: 22px;
    height: 7px;
    background: var(--signal);
}

.section-dark .section-kicker,
.section-black .section-kicker {
    color: var(--lime);
}

.section-dark .section-kicker::before,
.section-black .section-kicker::before {
    background: var(--lime);
}

.section-heading {
    max-width: 980px;
    margin: 0;
    font-size: clamp(40px, 6vw, 92px);
    font-weight: 500;
    line-height: 0.98;
}

.section-intro {
    max-width: 760px;
    margin: 30px 0 0;
    color: #626773;
    font-size: clamp(17px, 1.4vw, 21px);
    line-height: 1.65;
}

.section-dark .section-intro,
.section-black .section-intro {
    color: rgba(241, 242, 244, 0.62);
}

.directive-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: 96px;
    align-items: start;
}

.directive-quote {
    position: sticky;
    top: calc(var(--header-height) + 36px);
    margin: 0;
    padding: 0 0 0 28px;
    border-left: 7px solid var(--signal);
    font-size: clamp(26px, 3vw, 46px);
    font-weight: 500;
    line-height: 1.22;
}

.directive-quote cite {
    display: block;
    margin-top: 28px;
    color: #6c717d;
    font-family: var(--font-mono);
    font-size: 10px;
    font-style: normal;
}

.directive-copy {
    display: grid;
    gap: 44px;
}

.directive-block {
    padding-bottom: 36px;
    border-bottom: 1px solid var(--line);
}

.directive-block h3 {
    margin: 0 0 14px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
}

.directive-block p {
    margin: 0;
    color: #535864;
    font-size: 17px;
    line-height: 1.75;
}

.subsystem-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 64px;
    border-top: 1px solid rgba(241, 242, 244, 0.24);
    border-left: 1px solid rgba(241, 242, 244, 0.24);
}

.subsystem {
    position: relative;
    min-height: 330px;
    padding: 32px;
    overflow: hidden;
    border-right: 1px solid rgba(241, 242, 244, 0.24);
    border-bottom: 1px solid rgba(241, 242, 244, 0.24);
    transition: background-color 180ms ease;
}

.subsystem:hover {
    background: rgba(241, 242, 244, 0.055);
}

.subsystem-index {
    color: rgba(241, 242, 244, 0.38);
    font-family: var(--font-mono);
    font-size: 10px;
}

.subsystem h3 {
    margin: 58px 0 12px;
    font-size: clamp(25px, 3vw, 42px);
    font-weight: 500;
}

.subsystem p {
    max-width: 500px;
    margin: 0;
    color: rgba(241, 242, 244, 0.58);
    font-size: 15px;
    line-height: 1.65;
}

.subsystem-status {
    position: absolute;
    right: 24px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--lime);
    font-family: var(--font-mono);
    font-size: 9px;
}

.subsystem-status::before {
    content: "";
    width: 6px;
    height: 6px;
    background: currentColor;
}

.subsystem[data-state="restricted"] .subsystem-status {
    color: var(--amber);
}

.subsystem[data-state="volatile"] .subsystem-status {
    color: var(--signal);
}

.timeline {
    position: relative;
    margin-top: 72px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 162px;
    width: 1px;
    background: var(--line);
}

.timeline-item {
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 68px;
    min-height: 160px;
    padding: 10px 0 54px;
}

.timeline-year {
    color: var(--signal-dark);
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 600;
    text-align: right;
}

.timeline-copy {
    position: relative;
    max-width: 760px;
}

.timeline-copy::before {
    content: "";
    position: absolute;
    top: 5px;
    left: -39px;
    width: 11px;
    height: 11px;
    border: 2px solid var(--paper);
    background: var(--signal);
    box-shadow: 0 0 0 6px var(--paper);
}

.timeline-copy h3 {
    margin: 0 0 10px;
    font-size: 25px;
    font-weight: 500;
}

.timeline-copy p {
    margin: 0;
    color: #616672;
    line-height: 1.7;
}

.access-layout {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 84px;
    align-items: start;
}

.access-list {
    border-top: 1px solid rgba(241, 242, 244, 0.3);
}

.access-link {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    min-height: 112px;
    gap: 22px;
    border-bottom: 1px solid rgba(241, 242, 244, 0.18);
    transition: color 160ms ease, background-color 160ms ease;
}

.access-link:hover {
    background: rgba(241, 242, 244, 0.05);
    color: var(--lime);
}

.access-icon {
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(241, 242, 244, 0.28);
}

.access-link h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 500;
}

.access-link p {
    margin: 6px 0 0;
    color: rgba(241, 242, 244, 0.48);
    font-size: 13px;
}

.access-arrow {
    margin-right: 18px;
}

.corporate-structure {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 74px;
    border-top: 1px solid rgba(241, 242, 244, 0.22);
}

.corporate-unit {
    min-height: 160px;
    padding: 24px 24px 0 0;
    border-right: 1px solid rgba(241, 242, 244, 0.22);
}

.corporate-unit:last-child {
    border-right: 0;
    padding-left: 24px;
}

.corporate-unit:nth-child(2) {
    padding-left: 24px;
}

.corporate-unit span {
    color: var(--lime);
    font-family: var(--font-mono);
    font-size: 9px;
}

.corporate-unit strong {
    display: block;
    margin-top: 18px;
    font-size: 19px;
    font-weight: 500;
}

.corporate-unit p {
    margin: 8px 0 0;
    color: rgba(241, 242, 244, 0.48);
    font-size: 13px;
}

.site-footer {
    border-top: 1px solid rgba(241, 242, 244, 0.16);
    background: var(--ink);
    color: var(--paper);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    padding: 36px 0 42px;
}

.footer-copy {
    color: rgba(241, 242, 244, 0.46);
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    font-size: 12px;
}

.footer-links a:hover {
    color: var(--lime);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 620ms ease, transform 620ms ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Access page */
.access-page {
    min-height: 100svh;
    background: var(--ink);
    color: var(--paper);
}

.access-main {
    position: relative;
    overflow: hidden;
    padding-bottom: 90px;
}

.access-main > .field-canvas {
    position: absolute;
    height: 680px;
    opacity: 0.72;
    pointer-events: none;
}

.access-hero {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 610px;
    align-items: center;
    padding-top: 70px;
    padding-bottom: 70px;
}

.access-hero-grid {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    align-items: end;
    gap: 76px;
}

.access-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(54px, 7.2vw, 110px);
    font-weight: 500;
    line-height: 0.96;
}

.access-hero p {
    max-width: 680px;
    margin: 28px 0 0;
    color: rgba(241, 242, 244, 0.68);
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.6;
}

.access-channel-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(241, 242, 244, 0.24);
    border-left: 1px solid rgba(241, 242, 244, 0.24);
}

.access-channel {
    position: relative;
    display: flex;
    min-height: 330px;
    flex-direction: column;
    padding: 30px;
    border-right: 1px solid rgba(241, 242, 244, 0.24);
    border-bottom: 1px solid rgba(241, 242, 244, 0.24);
    transition: background-color 180ms ease, color 180ms ease;
}

.access-channel:hover {
    background: rgba(241, 242, 244, 0.055);
    color: var(--lime);
}

.access-channel-index {
    color: rgba(241, 242, 244, 0.42);
    font-family: var(--font-mono);
    font-size: 9px;
}

.access-channel > svg {
    width: 32px;
    height: 32px;
    margin-top: 54px;
}

.access-channel h2 {
    margin: 22px 0 8px;
    font-size: 25px;
    font-weight: 500;
}

.access-channel p {
    margin: 0;
    color: rgba(241, 242, 244, 0.55);
    font-size: 14px;
    line-height: 1.65;
}

.access-channel-action {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 28px;
    font-family: var(--font-mono);
    font-size: 10px;
}

.access-channel-action svg {
    width: 15px;
    height: 15px;
}

/* Legacy link tools */
.legacy-main > .field-canvas {
    height: 660px;
}

.legacy-hero {
    min-height: 590px;
}

.legacy-tools-section {
    position: relative;
    z-index: 2;
    background: var(--paper);
    color: var(--ink);
}

.legacy-section-head {
    margin-bottom: 52px;
}

.legacy-section-head .section-heading {
    max-width: 1040px;
}

.legacy-tool-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    border-top: 1px solid var(--line-dark);
    border-left: 1px solid var(--line-dark);
}

.legacy-panel {
    min-width: 0;
    padding: 30px;
    border-right: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
    background: var(--ink);
    color: var(--paper);
}

.legacy-panel .panel-heading h3,
.legacy-validator .panel-heading h3 {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
}

.legacy-prompt-input {
    min-height: 160px;
}

.legacy-control-grid {
    align-items: start;
}

.legacy-options .storage-option {
    margin-top: 8px;
}

.legacy-submit {
    width: 100%;
    margin-top: 28px;
}

.legacy-output-panel {
    display: flex;
    min-height: 560px;
    flex-direction: column;
}

.legacy-result-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(241, 242, 244, 0.56);
    font-family: var(--font-mono);
    font-size: 10px;
}

.legacy-result-status[data-state="valid"] .output-status-dot {
    background: var(--lime);
}

.legacy-result-status[data-state="error"] .output-status-dot {
    background: var(--signal);
}

.legacy-url-output {
    display: block;
    min-height: 188px;
    margin-top: 24px;
    padding: 20px;
    border: 1px solid rgba(241, 242, 244, 0.22);
    background: #0f1117;
    color: rgba(241, 242, 244, 0.82);
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.legacy-output-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.legacy-note {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 12px;
    margin-top: auto;
    padding-top: 30px;
    color: rgba(241, 242, 244, 0.52);
}

.legacy-note svg {
    width: 18px;
    height: 18px;
    color: var(--cyan);
}

.legacy-note p {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
}

.legacy-validator {
    margin-top: 24px;
    padding: 28px;
    border: 1px solid var(--line-dark);
    background: var(--ink);
    color: var(--paper);
}

.legacy-validator-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.legacy-validation-result {
    margin-top: 16px;
    padding-left: 14px;
    border-left: 3px solid var(--line-dark);
    color: rgba(241, 242, 244, 0.54);
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1.7;
    white-space: pre-line;
}

.legacy-validation-result[data-state="valid"] {
    border-color: var(--lime);
    color: var(--paper);
}

.legacy-validation-result[data-state="warning"] {
    border-color: var(--amber);
    color: var(--paper);
}

.legacy-validation-result[data-state="error"] {
    border-color: var(--signal);
    color: var(--paper);
}

.plans-section {
    position: relative;
    z-index: 1;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 58px;
    border-top: 1px solid rgba(241, 242, 244, 0.24);
    border-left: 1px solid rgba(241, 242, 244, 0.24);
}

.plan-card {
    min-height: 390px;
    padding: 30px;
    border-right: 1px solid rgba(241, 242, 244, 0.24);
    border-bottom: 1px solid rgba(241, 242, 244, 0.24);
}

.plan-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.plan-card-code {
    color: var(--lime);
    font-family: var(--font-mono);
    font-size: 9px;
}

.plan-card h3 {
    margin: 20px 0 0;
    font-size: 30px;
    font-weight: 500;
}

.plan-price {
    text-align: right;
}

.plan-price strong {
    display: block;
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 500;
}

.plan-price span {
    color: rgba(241, 242, 244, 0.46);
    font-family: var(--font-mono);
    font-size: 9px;
}

.plan-features {
    display: grid;
    margin: 38px 0 0;
    padding: 0;
    list-style: none;
}

.plan-feature {
    display: grid;
    grid-template-columns: minmax(100px, 0.42fr) minmax(0, 0.58fr);
    gap: 18px;
    padding: 12px 0;
    border-top: 1px solid rgba(241, 242, 244, 0.14);
    font-size: 12px;
}

.plan-feature span:first-child {
    color: rgba(241, 242, 244, 0.48);
}

.plan-feature span:last-child {
    text-align: right;
}

.plans-loading {
    grid-column: 1 / -1;
    min-height: 180px;
    padding: 30px;
    border-right: 1px solid rgba(241, 242, 244, 0.24);
    border-bottom: 1px solid rgba(241, 242, 244, 0.24);
    color: rgba(241, 242, 244, 0.5);
    font-family: var(--font-mono);
    font-size: 11px;
}

.legacy-channels {
    margin-top: 80px;
    margin-bottom: 80px;
}

/* Terminal */
.terminal-page {
    min-height: 100svh;
    background: var(--ink);
    color: var(--paper);
}

.terminal-main {
    position: relative;
    min-height: calc(100svh - var(--header-height));
    padding: 38px 0 80px;
}

.terminal-main .field-canvas {
    position: fixed;
    opacity: 0.38;
    pointer-events: none;
}

.terminal-head {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: end;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(241, 242, 244, 0.24);
}

.terminal-code {
    color: var(--lime);
    font-family: var(--font-mono);
    font-size: 10px;
}

.terminal-title {
    margin: 10px 0 0;
    font-size: clamp(38px, 5vw, 72px);
    font-weight: 500;
    line-height: 1;
}

.terminal-subtitle {
    max-width: 680px;
    margin: 16px 0 0;
    color: rgba(241, 242, 244, 0.58);
    font-size: 15px;
}

.terminal-clock {
    min-width: 180px;
    text-align: right;
}

.terminal-clock strong {
    display: block;
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 500;
}

.terminal-clock span {
    color: rgba(241, 242, 244, 0.42);
    font-family: var(--font-mono);
    font-size: 9px;
}

.terminal-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    min-height: 700px;
    margin-top: 28px;
    border: 1px solid rgba(241, 242, 244, 0.26);
    background: rgba(10, 12, 9, 0.9);
}

.terminal-controls,
.terminal-output {
    min-width: 0;
}

.terminal-controls {
    padding: 28px;
    border-right: 1px solid rgba(241, 242, 244, 0.22);
}

.terminal-output {
    display: flex;
    flex-direction: column;
    min-height: 700px;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.panel-heading h2 {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
}

.panel-index {
    color: rgba(241, 242, 244, 0.32);
    font-family: var(--font-mono);
    font-size: 9px;
}

.field-group {
    margin-top: 24px;
}

.field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 9px;
    color: rgba(241, 242, 244, 0.55);
    font-family: var(--font-mono);
    font-size: 9px;
}

.field-label strong {
    color: var(--paper);
    font-weight: 500;
}

.field-input,
.field-textarea,
.field-select {
    width: 100%;
    border: 1px solid rgba(241, 242, 244, 0.25);
    border-radius: 3px;
    background: #10121a;
    color: var(--paper);
    transition: border-color 160ms ease, background-color 160ms ease;
}

.field-input,
.field-select {
    height: 46px;
    padding: 0 13px;
}

.field-textarea {
    min-height: 190px;
    resize: vertical;
    padding: 13px;
    line-height: 1.55;
}

.field-input:hover,
.field-textarea:hover,
.field-select:hover,
.field-input:focus,
.field-textarea:focus,
.field-select:focus {
    border-color: var(--lime);
    background: #171a22;
    outline: none;
}

.token-field {
    position: relative;
}

.token-field .field-input {
    padding-right: 48px;
    font-family: var(--font-mono);
    font-size: 12px;
}

.token-toggle {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: rgba(241, 242, 244, 0.48);
    cursor: pointer;
}

.token-toggle:hover {
    color: var(--paper);
}

.segmented {
    display: grid;
    grid-template-columns: repeat(var(--segments, 3), minmax(0, 1fr));
    border: 1px solid rgba(241, 242, 244, 0.25);
    border-radius: 3px;
    overflow: hidden;
}

.segment {
    min-height: 42px;
    border: 0;
    border-right: 1px solid rgba(241, 242, 244, 0.2);
    background: transparent;
    color: rgba(241, 242, 244, 0.52);
    font-family: var(--font-mono);
    font-size: 10px;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease;
}

.segment:last-child {
    border-right: 0;
}

.segment:hover {
    color: var(--paper);
}

.segment.is-active {
    background: var(--lime);
    color: var(--paper);
}

.control-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.storage-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    color: rgba(241, 242, 244, 0.48);
    font-size: 11px;
}

.storage-option input {
    width: 16px;
    height: 16px;
    accent-color: var(--lime);
}

.command-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(241, 242, 244, 0.18);
}

.command-bar .button-primary {
    flex: 1 1 180px;
}

.preview-frame {
    position: relative;
    display: grid;
    flex: 1;
    min-height: 470px;
    place-items: center;
    overflow: hidden;
    background: #0c0d12;
}

.preview-frame::before,
.preview-frame::after {
    content: "";
    position: absolute;
    z-index: 0;
    background: rgba(241, 242, 244, 0.14);
}

.preview-frame::before {
    top: 50%;
    right: 0;
    left: 0;
    height: 1px;
}

.preview-frame::after {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
}

.preview-placeholder {
    position: relative;
    z-index: 1;
    max-width: 360px;
    padding: 30px;
    color: rgba(241, 242, 244, 0.4);
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1.8;
    text-align: center;
}

.preview-placeholder i {
    display: block;
    width: 36px;
    height: 36px;
    margin: 0 auto 18px;
    color: var(--lime);
}

.preview-media {
    position: relative;
    z-index: 2;
    display: none;
    max-width: 100%;
    max-height: 620px;
    object-fit: contain;
}

.preview-media.is-visible {
    display: block;
}

.scan-line {
    position: absolute;
    z-index: 3;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--lime);
    opacity: 0;
}

.preview-frame.is-processing .scan-line {
    opacity: 0.8;
    animation: scan 2.4s linear infinite;
}

@keyframes scan {
    from { transform: translateY(0); }
    to { transform: translateY(468px); }
}

.output-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 60px;
    padding: 10px 16px;
    border-top: 1px solid rgba(241, 242, 244, 0.22);
}

.output-status {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    color: rgba(241, 242, 244, 0.52);
    font-family: var(--font-mono);
    font-size: 9px;
}

.output-status-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    background: var(--line);
}

.output-status[data-state="running"] .output-status-dot {
    background: var(--amber);
    animation: blink 0.8s steps(2, end) infinite;
}

.output-status[data-state="success"] .output-status-dot {
    background: var(--lime);
}

.output-status[data-state="error"] .output-status-dot {
    background: var(--signal);
}

@keyframes blink {
    50% { opacity: 0.25; }
}

.output-actions {
    display: flex;
    gap: 8px;
}

.output-actions .button-icon {
    border-color: rgba(241, 242, 244, 0.2);
    background: transparent;
    color: var(--paper);
}

.output-actions .button-icon:hover {
    border-color: var(--lime);
    color: var(--lime);
}

.request-readout {
    padding: 18px;
    border-top: 1px solid rgba(241, 242, 244, 0.18);
    background: #0f1117;
}

.request-readout label {
    display: block;
    margin-bottom: 8px;
    color: rgba(241, 242, 244, 0.4);
    font-family: var(--font-mono);
    font-size: 9px;
}

.request-url {
    display: block;
    overflow: hidden;
    color: rgba(241, 242, 244, 0.68);
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.event-log {
    display: grid;
    max-height: 154px;
    overflow: auto;
    border-top: 1px solid rgba(241, 242, 244, 0.18);
}

.log-line {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(241, 242, 244, 0.08);
    color: rgba(241, 242, 244, 0.46);
    font-family: var(--font-mono);
    font-size: 9px;
}

.log-line span:first-child {
    color: var(--cyan);
}

.terminal-docs {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
    border-top: 1px solid rgba(241, 242, 244, 0.2);
    border-left: 1px solid rgba(241, 242, 244, 0.2);
}

.terminal-doc {
    min-height: 190px;
    padding: 24px;
    border-right: 1px solid rgba(241, 242, 244, 0.2);
    border-bottom: 1px solid rgba(241, 242, 244, 0.2);
}

.terminal-doc span {
    color: var(--lime);
    font-family: var(--font-mono);
    font-size: 9px;
}

.terminal-doc h3 {
    margin: 28px 0 10px;
    font-size: 18px;
    font-weight: 500;
}

.terminal-doc p {
    margin: 0;
    color: rgba(241, 242, 244, 0.5);
    font-size: 13px;
    line-height: 1.65;
}

@media (max-width: 1040px) {
    .header-inner {
        grid-template-columns: 1fr auto;
    }

    .primary-nav {
        position: fixed;
        top: var(--header-height);
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 20px 24px 28px;
        border-bottom: 1px solid rgba(241, 242, 244, 0.2);
        background: var(--ink);
    }

    .primary-nav.is-open {
        display: flex;
    }

    .primary-nav a {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid rgba(241, 242, 244, 0.1);
        font-size: 14px;
    }

    .header-status {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .hero-dossier {
        max-width: 620px;
    }

    .directive-layout,
    .access-layout {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .directive-quote {
        position: static;
    }

    .terminal-layout {
        grid-template-columns: 1fr;
    }

    .access-hero-grid {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .access-hero .hero-dossier {
        max-width: 620px;
    }

    .access-channel-grid {
        grid-template-columns: 1fr;
    }

    .legacy-tool-grid {
        grid-template-columns: 1fr;
    }

    .legacy-output-panel {
        min-height: 430px;
    }

    .terminal-controls {
        border-right: 0;
        border-bottom: 1px solid rgba(241, 242, 244, 0.22);
    }
}

@media (max-width: 760px) {
    :root {
        --header-height: 62px;
    }

    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .brand-division {
        display: none;
    }

    .hero,
    .hero-inner {
        min-height: 72svh;
    }

    .hero-inner {
        padding-top: 48px;
        padding-bottom: 34px;
    }

    .hero-title {
        font-size: clamp(54px, 18vw, 92px);
        overflow-wrap: anywhere;
    }

    .hero-title span {
        font-size: 12px;
    }

    .hero-summary {
        margin-top: 24px;
        font-size: 16px;
    }

    .hero-actions .button {
        flex: 1 1 100%;
    }

    .dossier-row {
        grid-template-columns: 92px 1fr;
    }

    .telemetry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .telemetry-item:nth-child(odd) {
        border-left: 1px solid var(--line);
    }

    .telemetry-item {
        min-height: 100px;
        padding: 18px;
        border-bottom: 1px solid var(--line);
    }

    .section {
        padding: 78px 0;
    }

    .subsystem-grid {
        grid-template-columns: 1fr;
    }

    .subsystem {
        min-height: 290px;
        padding: 24px;
    }

    .timeline::before {
        left: 76px;
    }

    .timeline-item {
        grid-template-columns: 54px 1fr;
        gap: 44px;
    }

    .timeline-year {
        font-size: 12px;
    }

    .timeline-copy::before {
        left: -28px;
    }

    .corporate-structure {
        grid-template-columns: 1fr;
    }

    .corporate-unit,
    .corporate-unit:nth-child(2),
    .corporate-unit:last-child {
        min-height: 130px;
        padding: 22px 0;
        border-right: 0;
        border-bottom: 1px solid rgba(241, 242, 244, 0.2);
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .terminal-main {
        padding-top: 26px;
    }

    .access-main {
        padding-bottom: 58px;
    }

    .access-main > .field-canvas {
        height: 620px;
    }

    .access-hero {
        min-height: 570px;
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .access-hero h1 {
        font-size: clamp(46px, 13vw, 68px);
    }

    .access-channel {
        min-height: 280px;
        padding: 24px;
    }

    .legacy-main > .field-canvas {
        height: 600px;
    }

    .legacy-hero {
        min-height: 540px;
    }

    .legacy-panel,
    .legacy-validator {
        padding: 20px 14px;
    }

    .legacy-tool-grid {
        margin-right: -14px;
        margin-left: -14px;
        border-right: 0;
        border-left: 0;
    }

    .legacy-validator-row {
        grid-template-columns: 1fr;
    }

    .legacy-validator-row .button {
        width: 100%;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }

    .plan-card {
        min-height: 350px;
        padding: 24px;
    }

    .plan-card-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .plan-price {
        text-align: left;
    }

    .plan-feature {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .plan-feature span:last-child {
        text-align: left;
    }

    .terminal-head {
        grid-template-columns: 1fr;
    }

    .terminal-clock {
        display: none;
    }

    .terminal-layout {
        margin-right: -14px;
        margin-left: -14px;
        border-right: 0;
        border-left: 0;
    }

    .terminal-controls {
        padding: 20px 14px;
    }

    .control-grid {
        grid-template-columns: 1fr;
    }

    .segmented {
        grid-template-columns: 1fr;
    }

    .segment {
        border-right: 0;
        border-bottom: 1px solid rgba(241, 242, 244, 0.2);
    }

    .segment:last-child {
        border-bottom: 0;
    }

    .terminal-output,
    .terminal-layout {
        min-height: 600px;
    }

    .preview-frame {
        min-height: 380px;
    }

    .terminal-docs {
        grid-template-columns: 1fr;
    }

    .output-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .output-actions {
        width: 100%;
    }

    .output-actions .button-icon {
        flex: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
