@font-face {
    font-family: "IBM VGA 8x16";
    src:
        url("/app/fonts/PxPlus_IBM_VGA8.ttf") format("truetype"),
        url("/app/fonts/WebPlus_IBM_VGA_8x16.woff") format("woff");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --landing-radius-xl: 32px;
    --landing-radius-lg: 24px;
    --landing-radius-md: 18px;
    --landing-radius-sm: 14px;
    --landing-shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
    --landing-font-ui: "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, sans-serif;
    --landing-font-display: "Segoe UI Variable Display", "Segoe UI", Inter, system-ui, sans-serif;
    --landing-font-retro: "IBM VGA 8x16", "PxPlus IBM VGA8", Consolas, monospace;
    --landing-panel: rgba(11, 18, 30, 0.82);
    --landing-line: rgba(138, 166, 228, 0.16);
    --landing-line-strong: rgba(140, 180, 255, 0.34);
    --landing-text: #eef3ff;
    --landing-muted: #9aa8c8;
    --landing-accent: #8bb4ff;
    --landing-accent-strong: #c7d8ff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

html {
    background: #05070d;
}

body,
button,
input,
textarea,
select {
    font-family: var(--landing-font-ui);
}

body {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    color: var(--landing-text);
    background:
        radial-gradient(circle at 12% 10%, rgba(107, 138, 255, 0.16), transparent 24%),
        radial-gradient(circle at 84% 16%, rgba(78, 191, 255, 0.14), transparent 24%),
        linear-gradient(180deg, #05070d 0%, #0a1019 54%, #0f1624 100%);
}

body.landing-choice-open {
    overflow-x: hidden;
    overflow-y: auto;
}

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

button {
    border: 0;
    color: inherit;
}

#matrix-rain,
.matrix-grid,
.matrix-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

#matrix-rain {
    z-index: 0;
    width: 100%;
    height: 100%;
    opacity: 0.54;
    transition: opacity 180ms ease;
}

.matrix-grid,
.matrix-glow {
    z-index: 0;
    transition: opacity 180ms ease;
}

.matrix-grid {
    background:
        linear-gradient(rgba(120, 255, 138, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 255, 138, 0.02) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.54;
}

.matrix-glow {
    background:
        radial-gradient(circle at 18% 16%, rgba(120, 255, 138, 0.12), transparent 24%),
        radial-gradient(circle at 78% 12%, rgba(120, 255, 138, 0.1), transparent 22%),
        radial-gradient(circle at 50% 48%, rgba(120, 255, 138, 0.06), transparent 28%);
    opacity: 0.68;
}

.landing-page,
.page {
    position: relative;
    z-index: 1;
}

.landing-page {
    min-height: 100vh;
    display: grid;
    align-items: center;
}

.landing-shell,
.terms-shell {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 36px 28px 30px;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(310px, 0.84fr);
    gap: 20px;
    align-items: stretch;
}

.landing-hero__main,
.landing-feature-card,
.terms-hero,
.legal-card {
    border: 1px solid var(--landing-line);
    background: var(--landing-panel);
    box-shadow: var(--landing-shadow);
    backdrop-filter: blur(18px);
}

.landing-hero__main,
.terms-hero,
.legal-card {
    border-radius: var(--landing-radius-xl);
}

.landing-feature-card {
    border-radius: var(--landing-radius-lg);
}

.landing-hero__main,
.terms-hero {
    padding: 32px;
}

.landing-hero__side {
    display: grid;
    gap: 16px;
}

.landing-topline,
.topline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-status-dot,
.status-pill {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--landing-accent);
    box-shadow: 0 0 18px rgba(139, 180, 255, 0.34);
}

.landing-shell-tag,
.shell-tag,
.landing-eyebrow,
.eyebrow,
.landing-feature-card__index,
.landing-terminal-box__tag,
.landing-kicker,
.landing-theme-mode-label,
.legal-badge {
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.landing-shell-tag,
.shell-tag,
.landing-kicker {
    margin: 0;
    color: var(--landing-accent);
    font-size: 12px;
    font-weight: 600;
}

.landing-eyebrow,
.eyebrow {
    margin: 18px 0 0;
    color: var(--landing-accent);
    font-size: 12px;
    font-weight: 700;
}

.landing-hero__main h1,
.landing-hero__main h2,
.terms-hero h1 {
    margin: 14px 0 16px;
    font-family: var(--landing-font-display);
    font-size: clamp(52px, 8vw, 92px);
    line-height: 0.92;
    letter-spacing: -0.06em;
}

.landing-lead,
.lead {
    margin: 0;
    max-width: 58ch;
    color: var(--landing-muted);
    line-height: 1.75;
    font-size: 16px;
}

.landing-terminal-box {
    display: grid;
    gap: 10px;
    margin-top: 26px;
    padding: 18px 20px;
    border-radius: 24px;
    border: 1px solid var(--landing-line);
    background: rgba(6, 10, 18, 0.86);
}

.landing-terminal-box__tag {
    color: var(--landing-accent);
    font-size: 12px;
}

.landing-terminal-box__line {
    color: rgba(228, 236, 255, 0.76);
    line-height: 1.6;
}

.landing-actions,
.actions.terms-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.landing-action,
.action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 20px;
    border-radius: 18px;
    border: 1px solid var(--landing-line);
    background: rgba(255, 255, 255, 0.035);
    color: var(--landing-text);
    font-size: 15px;
    font-weight: 600;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.landing-action:hover,
.landing-action:focus-visible,
.action:hover,
.action:focus-visible {
    transform: translateY(-2px);
    border-color: var(--landing-line-strong);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.landing-action--primary,
.action--primary {
    background: linear-gradient(135deg, var(--landing-accent-strong) 0%, #8fb8ff 100%);
    border-color: transparent;
    color: #08101c;
    box-shadow: 0 18px 48px rgba(99, 139, 255, 0.26);
}

.landing-footer-note {
    margin-top: 18px;
    color: rgba(231, 237, 255, 0.48);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 12px;
}

.landing-feature-card {
    padding: 24px;
}

.landing-feature-card__index {
    margin-bottom: 16px;
    color: var(--landing-accent);
    font-size: 12px;
    font-weight: 700;
}

.landing-feature-card h3,
.legal-title {
    margin: 0 0 12px;
    font-family: var(--landing-font-display);
    font-size: 28px;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.landing-feature-card p,
.terms-section p,
.legal-note {
    margin: 0;
    color: var(--landing-muted);
    line-height: 1.72;
}

.landing-meta-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 20px;
    padding: 20px 8px 8px;
    color: rgba(226, 234, 255, 0.64);
}

.landing-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.landing-meta-link {
    color: rgba(226, 234, 255, 0.86);
}

.landing-meta-link:hover,
.landing-credit__copy a:hover {
    color: var(--landing-accent-strong);
}

.landing-meta-separator {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.14);
}

.landing-credit__copy a {
    color: inherit;
}

.landing-credit__meta {
    color: rgba(226, 234, 255, 0.46);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 11px;
}

.landing-theme-gate {
    position: fixed;
    inset: 0;
    z-index: 12;
    display: grid;
    place-items: center;
    padding: 28px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.landing-choice-open .landing-theme-gate {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.landing-theme-gate__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 76, 89, 0.12), transparent 22%),
        radial-gradient(circle at 82% 12%, rgba(79, 124, 255, 0.16), transparent 24%),
        rgba(3, 5, 10, 0.7);
    backdrop-filter: blur(18px);
}

.landing-theme-gate__card {
    position: relative;
    width: min(1080px, 100%);
    display: grid;
    gap: 24px;
    padding: 28px;
    border-radius: 34px;
    border: 1px solid rgba(160, 177, 218, 0.18);
    background: linear-gradient(180deg, rgba(14, 19, 31, 0.92), rgba(8, 12, 21, 0.94));
    box-shadow: 0 44px 120px rgba(0, 0, 0, 0.42);
}

.landing-theme-gate__hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.landing-theme-gate__hero h1,
.landing-theme-summary h2 {
    margin: 8px 0 0;
    font-family: var(--landing-font-display);
    font-size: clamp(42px, 6vw, 66px);
    line-height: 0.94;
    letter-spacing: -0.05em;
}

.landing-gate-copy,
.landing-theme-summary__copy p:last-child {
    margin: 0;
    max-width: 60ch;
    color: rgba(225, 232, 255, 0.72);
    line-height: 1.7;
}

.landing-theme-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.landing-theme-card {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0;
    min-height: 136px;
    padding: 18px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
    cursor: pointer;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.landing-theme-card:hover,
.landing-theme-card:focus-visible,
.landing-theme-card.is-selected {
    transform: translateY(-3px);
}

.landing-theme-card strong {
    font-size: 24px;
    font-weight: 700;
}

.landing-theme-card span:last-child {
    color: rgba(227, 233, 255, 0.7);
    line-height: 1.45;
}

.landing-theme-card__pill {
    position: relative;
    width: 148px;
    height: 52px;
    border-radius: 999px;
    box-shadow:
        inset 0 -8px 18px rgba(0, 0, 0, 0.18),
        inset 0 8px 18px rgba(255, 255, 255, 0.18),
        0 14px 24px rgba(0, 0, 0, 0.18);
    animation: landing-pill-float 9s ease-in-out infinite;
    transform-origin: center;
}

.landing-theme-card__pill::before,
.landing-theme-card__pill::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.landing-theme-card__pill::before {
    inset: 6px 12px auto 12px;
    height: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0));
}

.landing-theme-card__pill::after {
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.landing-theme-card__pill--red {
    background: linear-gradient(180deg, #ff969d 0%, #ff4c59 100%);
}

.landing-theme-card__pill--blue {
    background: linear-gradient(180deg, #9cb8ff 0%, #4f7cff 100%);
}

.landing-theme-card--red.is-selected {
    border-color: rgba(255, 76, 89, 0.48);
    background: rgba(255, 76, 89, 0.08);
    box-shadow: 0 24px 60px rgba(255, 76, 89, 0.18);
}

.landing-theme-card--blue.is-selected {
    border-color: rgba(79, 124, 255, 0.44);
    background: rgba(79, 124, 255, 0.08);
    box-shadow: 0 24px 60px rgba(79, 124, 255, 0.18);
}

.landing-theme-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) auto;
    gap: 22px;
    align-items: end;
}

.landing-theme-summary h2 {
    font-size: 34px;
}

.landing-theme-continue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 220px;
    min-height: 60px;
    padding: 0 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f2f6ff 0%, #d5dfff 100%);
    color: #09101b;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.landing-theme-continue:hover,
.landing-theme-continue:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(126, 154, 255, 0.26);
}

@keyframes landing-pill-float {
    0% {
        transform: perspective(600px) rotateX(10deg) rotateY(-12deg) translateY(0);
    }
    50% {
        transform: perspective(600px) rotateX(10deg) rotateY(12deg) translateY(-3px);
    }
    100% {
        transform: perspective(600px) rotateX(10deg) rotateY(-12deg) translateY(0);
    }
}

.landing-choice-open .landing-page {
    filter: blur(16px);
    pointer-events: none;
    user-select: none;
}

.page--terms {
    min-height: 100vh;
}

.terms-shell {
    width: min(1040px, 100%);
}

.terms-hero {
    margin-bottom: 18px;
}

.terms-hero .lead {
    max-width: none;
}

.legal-card {
    padding: 28px;
}

.legal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.legal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--landing-line);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(228, 235, 255, 0.76);
    font-size: 11px;
    font-weight: 700;
}

.terms-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.terms-section {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--landing-line);
    background: rgba(255, 255, 255, 0.025);
}

.terms-section strong {
    display: block;
    margin-bottom: 10px;
    font-family: var(--landing-font-display);
    font-size: 18px;
    letter-spacing: -0.02em;
}

.legal-note {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--landing-line);
}

.landing-meta-shell--terms {
    padding-top: 12px;
}

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

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

body.theme-matrix {
    --landing-font-ui: "IBM VGA 8x16", "PxPlus IBM VGA8", Consolas, monospace;
    --landing-font-display: "IBM VGA 8x16", "PxPlus IBM VGA8", Consolas, monospace;
    --landing-panel: rgba(4, 10, 7, 0.86);
    --landing-line: rgba(69, 167, 94, 0.18);
    --landing-line-strong: rgba(88, 214, 120, 0.38);
    --landing-text: #d8ffe2;
    --landing-muted: #78a182;
    --landing-accent: #78ff8a;
    --landing-accent-strong: #9dffab;
    background:
        radial-gradient(circle at 20% 10%, rgba(120, 255, 138, 0.08), transparent 26%),
        radial-gradient(circle at 82% 18%, rgba(120, 255, 138, 0.04), transparent 24%),
        linear-gradient(180deg, #010201 0%, #020503 50%, #041008 100%);
}

body.theme-matrix .landing-shell-tag,
body.theme-matrix .shell-tag,
body.theme-matrix .landing-eyebrow,
body.theme-matrix .eyebrow,
body.theme-matrix .landing-feature-card__index,
body.theme-matrix .landing-terminal-box__tag,
body.theme-matrix .landing-kicker,
body.theme-matrix .legal-badge,
body.theme-matrix .landing-credit__meta {
    font-family: var(--landing-font-retro);
}

html.theme-matrix body .landing-shell-tag,
html.theme-matrix body .shell-tag,
html.theme-matrix body .landing-eyebrow,
html.theme-matrix body .eyebrow,
html.theme-matrix body .landing-feature-card__index,
html.theme-matrix body .landing-terminal-box__tag,
html.theme-matrix body .landing-kicker,
html.theme-matrix body .landing-credit__meta,
html.theme-matrix body .landing-theme-gate__card,
html.theme-matrix body .landing-theme-gate__card *,
html.theme-matrix body .landing-theme-card,
html.theme-matrix body .landing-theme-card *,
html.theme-matrix body .landing-theme-summary,
html.theme-matrix body .landing-theme-summary *,
html.theme-matrix body .landing-theme-continue {
    font-family: var(--landing-font-retro);
}

html.theme-matrix body .landing-theme-gate [class^="fa-"],
html.theme-matrix body .landing-theme-gate [class*=" fa-"] {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

html.theme-matrix body .landing-theme-gate .fa-solid::before,
html.theme-matrix body .landing-theme-gate .fa-regular::before,
html.theme-matrix body .landing-theme-gate .fa-brands::before,
html.theme-matrix body .landing-theme-gate [class^="fa-"]::before,
html.theme-matrix body .landing-theme-gate [class*=" fa-"]::before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-shadow: none !important;
}

body.theme-matrix .landing-action,
body.theme-matrix .action,
body.theme-matrix .landing-hero__main,
body.theme-matrix .landing-feature-card,
body.theme-matrix .legal-card,
body.theme-matrix .terms-hero,
body.theme-matrix .landing-theme-card,
body.theme-matrix .landing-theme-gate__card,
body.theme-matrix .landing-terminal-box,
body.theme-matrix .terms-section {
    border-radius: 0;
}

body.theme-matrix .landing-hero__main,
body.theme-matrix .landing-feature-card,
body.theme-matrix .legal-card,
body.theme-matrix .terms-hero {
    border-color: rgba(88, 214, 120, 0.2);
    background: linear-gradient(180deg, rgba(3, 8, 5, 0.92), rgba(1, 4, 2, 0.96));
    box-shadow:
        0 34px 90px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(120, 255, 138, 0.04);
}

body.theme-matrix .landing-theme-gate__backdrop {
    background:
        radial-gradient(circle at 18% 12%, rgba(120, 255, 138, 0.08), transparent 24%),
        radial-gradient(circle at 82% 12%, rgba(120, 255, 138, 0.05), transparent 24%),
        rgba(1, 4, 2, 0.82);
}

body.theme-matrix .landing-theme-gate__card {
    border-color: rgba(88, 214, 120, 0.24);
    background: linear-gradient(180deg, rgba(3, 8, 5, 0.96), rgba(1, 4, 2, 0.98));
    box-shadow:
        0 44px 120px rgba(0, 0, 0, 0.52),
        0 0 0 1px rgba(120, 255, 138, 0.04);
}

body.theme-matrix .landing-gate-copy,
body.theme-matrix .landing-theme-summary__copy p:last-child,
body.theme-matrix .landing-theme-card span:last-child {
    color: rgba(148, 198, 157, 0.78);
}

body.theme-matrix .landing-theme-card {
    border: 0;
    background: rgba(5, 12, 8, 0.84);
    box-shadow: none;
}

html.theme-matrix body .landing-theme-gate__backdrop {
    background:
        radial-gradient(circle at 18% 12%, rgba(120, 255, 138, 0.08), transparent 24%),
        radial-gradient(circle at 82% 12%, rgba(120, 255, 138, 0.05), transparent 24%),
        rgba(1, 4, 2, 0.82);
}

html.theme-matrix body .landing-theme-gate__card,
html.theme-matrix body .landing-theme-card,
html.theme-matrix body .landing-theme-continue {
    border-radius: 0;
}

html.theme-matrix body .landing-theme-gate__card {
    border-color: rgba(88, 214, 120, 0.24);
    background: linear-gradient(180deg, rgba(3, 8, 5, 0.96), rgba(1, 4, 2, 0.98));
    box-shadow:
        0 44px 120px rgba(0, 0, 0, 0.52),
        0 0 0 1px rgba(120, 255, 138, 0.04);
}

html.theme-matrix body .landing-gate-copy,
html.theme-matrix body .landing-theme-summary__copy p:last-child,
html.theme-matrix body .landing-theme-card span:last-child {
    color: rgba(148, 198, 157, 0.78);
}

html.theme-matrix body .landing-theme-card {
    border: 0;
    background: rgba(5, 12, 8, 0.84);
    box-shadow: none;
}

html.theme-matrix body .landing-theme-card:hover,
html.theme-matrix body .landing-theme-card:focus-visible,
html.theme-matrix body .landing-theme-card.is-selected {
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

html.theme-matrix body .landing-theme-card--red.is-selected {
    border: 0;
    background: rgba(10, 26, 14, 0.98);
    box-shadow: 0 24px 56px rgba(18, 68, 28, 0.28);
}

html.theme-matrix body .landing-theme-card--blue.is-selected {
    border: 0;
    background: rgba(7, 18, 11, 0.98);
    box-shadow: 0 22px 52px rgba(12, 44, 20, 0.24);
}

body.theme-matrix .landing-theme-card:hover,
body.theme-matrix .landing-theme-card:focus-visible,
body.theme-matrix .landing-theme-card.is-selected {
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

body.theme-matrix .landing-theme-card--red.is-selected {
    border: 0;
    background: rgba(10, 26, 14, 0.98);
    box-shadow: 0 24px 56px rgba(18, 68, 28, 0.28);
}

body.theme-matrix .landing-theme-card--blue.is-selected {
    border: 0;
    background: rgba(7, 18, 11, 0.98);
    box-shadow: 0 22px 52px rgba(12, 44, 20, 0.24);
}

body.theme-matrix .landing-theme-continue {
    border: 1px solid rgba(88, 214, 120, 0.3);
    border-radius: 0;
    background: linear-gradient(180deg, rgba(13, 32, 18, 0.98), rgba(8, 20, 11, 0.98));
    color: #d8ffe2;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
}

body.theme-matrix .landing-theme-continue:hover,
body.theme-matrix .landing-theme-continue:focus-visible {
    box-shadow: 0 22px 48px rgba(7, 38, 14, 0.4);
}

body.theme-matrix .landing-action,
body.theme-matrix .action {
    border: 1px solid rgba(88, 214, 120, 0.28);
    background: linear-gradient(180deg, rgba(9, 22, 12, 0.96), rgba(5, 14, 8, 0.98));
    color: #d8ffe2;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

body.theme-matrix .landing-action:hover,
body.theme-matrix .landing-action:focus-visible,
body.theme-matrix .action:hover,
body.theme-matrix .action:focus-visible {
    border-color: rgba(120, 255, 138, 0.38);
    background: linear-gradient(180deg, rgba(12, 28, 16, 0.98), rgba(7, 18, 10, 0.98));
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(120, 255, 138, 0.08);
}

body.theme-matrix .landing-action--primary,
body.theme-matrix .action--primary {
    border-color: rgba(120, 255, 138, 0.34);
    background: linear-gradient(180deg, rgba(16, 36, 20, 0.98), rgba(10, 24, 13, 0.98));
    color: #e5ffe9;
    box-shadow:
        0 20px 54px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(120, 255, 138, 0.1);
}

body.theme-matrix .landing-action--primary:hover,
body.theme-matrix .landing-action--primary:focus-visible,
body.theme-matrix .action--primary:hover,
body.theme-matrix .action--primary:focus-visible {
    border-color: rgba(157, 255, 171, 0.42);
    background: linear-gradient(180deg, rgba(20, 42, 24, 0.98), rgba(12, 28, 16, 0.98));
    color: #effff2;
}

body.theme-modern {
    background:
        radial-gradient(circle at 10% 10%, rgba(99, 136, 255, 0.18), transparent 24%),
        radial-gradient(circle at 86% 14%, rgba(61, 204, 255, 0.12), transparent 20%),
        linear-gradient(180deg, #050912 0%, #0a1220 52%, #0e1728 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.theme-modern #matrix-rain,
body.theme-modern .matrix-grid,
body.theme-modern .matrix-glow {
    opacity: 0;
}

body.theme-modern .landing-shell-tag,
body.theme-modern .shell-tag,
body.theme-modern .landing-eyebrow,
body.theme-modern .eyebrow,
body.theme-modern .landing-feature-card__index,
body.theme-modern .landing-terminal-box__tag,
body.theme-modern .landing-kicker,
body.theme-modern .legal-badge,
body.theme-modern .landing-credit__meta {
    font-family: var(--landing-font-ui);
    letter-spacing: 0.16em;
}

body.theme-modern .landing-hero__main,
body.theme-modern .landing-feature-card,
body.theme-modern .terms-hero,
body.theme-modern .legal-card {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.26);
}

body.theme-modern .landing-terminal-box {
    background: rgba(8, 14, 24, 0.8);
}

body.theme-modern .landing-theme-gate__backdrop {
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 76, 89, 0.08), transparent 22%),
        radial-gradient(circle at 82% 12%, rgba(79, 124, 255, 0.16), transparent 24%),
        rgba(3, 5, 10, 0.7);
}

body.theme-modern .landing-theme-gate__card {
    border-color: rgba(160, 177, 218, 0.18);
    background: linear-gradient(180deg, rgba(14, 19, 31, 0.92), rgba(8, 12, 21, 0.94));
    box-shadow: 0 44px 120px rgba(0, 0, 0, 0.42);
}

body.theme-modern .landing-theme-card {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

body.theme-modern .landing-theme-continue {
    background: linear-gradient(135deg, #f2f6ff 0%, #d5dfff 100%);
    color: #09101b;
}

body.theme-modern .landing-action,
body.theme-modern .action {
    border-color: rgba(132, 166, 234, 0.18);
    background: linear-gradient(180deg, rgba(20, 28, 43, 0.88), rgba(12, 18, 31, 0.92));
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.theme-modern .landing-action:hover,
body.theme-modern .landing-action:focus-visible,
body.theme-modern .action:hover,
body.theme-modern .action:focus-visible {
    border-color: rgba(153, 185, 255, 0.28);
    background: linear-gradient(180deg, rgba(28, 38, 57, 0.94), rgba(16, 24, 40, 0.96));
    box-shadow:
        0 20px 44px rgba(0, 0, 0, 0.22),
        0 0 0 1px rgba(139, 180, 255, 0.06);
}

body.theme-modern .landing-action--primary,
body.theme-modern .action--primary {
    border-color: rgba(178, 205, 255, 0.24);
    background:
        linear-gradient(135deg, rgba(248, 251, 255, 0.98) 0%, rgba(221, 231, 255, 0.98) 34%, rgba(154, 186, 255, 0.98) 100%);
    color: #08111d;
    box-shadow:
        0 18px 46px rgba(76, 118, 214, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

body.theme-modern .landing-action--primary i,
body.theme-modern .action--primary i {
    transition: transform 220ms ease, opacity 220ms ease;
}

body.theme-modern .landing-action--primary:hover,
body.theme-modern .landing-action--primary:focus-visible,
body.theme-modern .action--primary:hover,
body.theme-modern .action--primary:focus-visible {
    border-color: rgba(208, 224, 255, 0.26);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.99) 0%, rgba(232, 239, 255, 0.99) 38%, rgba(170, 198, 255, 0.99) 100%);
    color: #07101b;
    box-shadow:
        0 24px 60px rgba(74, 120, 233, 0.28),
        0 0 0 1px rgba(191, 214, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.theme-modern .landing-action--primary:hover i,
body.theme-modern .landing-action--primary:focus-visible i,
body.theme-modern .action--primary:hover i,
body.theme-modern .action--primary:focus-visible i {
    transform: translateX(3px);
}

@media (max-width: 980px) {
    .landing-hero {
        grid-template-columns: 1fr;
    }

    .landing-theme-gate__hero,
    .landing-theme-summary {
        grid-template-columns: 1fr;
        display: grid;
    }

    .landing-theme-grid,
    .terms-grid {
        grid-template-columns: 1fr;
    }

    .landing-meta-shell {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .landing-shell,
    .terms-shell {
        padding: 22px 16px 22px;
    }

    .landing-hero__main,
    .terms-hero,
    .legal-card,
    .landing-feature-card,
    .landing-theme-gate__card {
        padding: 22px;
    }

    .landing-hero__main h2,
    .terms-hero h1 {
        font-size: clamp(38px, 14vw, 62px);
    }

    .landing-theme-continue {
        width: 100%;
    }

    .landing-actions,
    .actions.terms-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .landing-action,
    .action {
        width: 100%;
    }
}

html.platform-windows.theme-matrix body .landing-shell-tag,
html.platform-windows.theme-matrix body .shell-tag,
html.platform-windows.theme-matrix body .landing-eyebrow,
html.platform-windows.theme-matrix body .eyebrow,
html.platform-windows.theme-matrix body .landing-feature-card__index,
html.platform-windows.theme-matrix body .landing-terminal-box__tag,
html.platform-windows.theme-matrix body .landing-kicker,
html.platform-windows.theme-matrix body .legal-badge,
html.platform-windows.theme-matrix body .landing-credit__meta,
html.platform-windows.theme-matrix body .landing-hero__main h1,
html.platform-windows.theme-matrix body .landing-hero__main h2,
html.platform-windows.theme-matrix body .terms-hero h1,
html.platform-windows.theme-matrix body .landing-feature-card h3,
html.platform-windows.theme-matrix body .legal-title,
html.platform-windows.theme-matrix body .landing-action,
html.platform-windows.theme-matrix body .action,
html.platform-windows.theme-matrix body .landing-theme-gate__card,
html.platform-windows.theme-matrix body .landing-theme-gate__card *,
html.platform-windows.theme-matrix body .landing-theme-card,
html.platform-windows.theme-matrix body .landing-theme-card *,
html.platform-windows.theme-matrix body .landing-theme-summary,
html.platform-windows.theme-matrix body .landing-theme-summary *,
html.platform-windows.theme-matrix body .landing-theme-continue {
    font-weight: 400 !important;
    text-shadow: none !important;
    font-synthesis: none;
}
