:root {
    color-scheme: dark;
    --bg: #071426;
    --bg-deep: #030b17;
    --ink: #f5f9ff;
    --muted: #aabbd0;
    --line: rgba(255, 255, 255, 0.14);
    --panel: rgba(10, 29, 52, 0.62);
    --panel-strong: rgba(11, 31, 55, 0.9);
    --cyan: #6de7ff;
    --cyan-strong: #22c9ee;
    --blue: #7b9cff;
    --green: #79e6b5;
    --danger: #ffb1b1;
    --shadow: 0 24px 70px rgba(1, 8, 20, 0.34);
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --content: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--ink);
}

body {
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 76% 8%, rgba(43, 161, 222, 0.22), transparent 27rem),
        radial-gradient(circle at 15% 45%, rgba(81, 74, 196, 0.18), transparent 28rem),
        linear-gradient(145deg, var(--bg-deep) 0%, var(--bg) 48%, #0a2340 100%);
}

body.app-surface {
    color-scheme: light;
    --bg: #eef4f8;
    --ink: #132337;
    --muted: #5c6b7c;
    --line: rgba(19, 35, 55, 0.12);
    --panel: rgba(255, 255, 255, 0.72);
    --panel-strong: rgba(255, 255, 255, 0.94);
    --cyan: #087f9e;
    --cyan-strong: #087f9e;
    --blue: #315fae;
    --green: #167556;
    --danger: #8d2f38;
    --shadow: 0 24px 60px rgba(32, 60, 85, 0.12);
    background:
        radial-gradient(circle at 82% 5%, rgba(58, 184, 217, 0.17), transparent 25rem),
        radial-gradient(circle at 10% 48%, rgba(108, 116, 216, 0.1), transparent 28rem),
        linear-gradient(145deg, #f7fafc, #eaf2f7);
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -3;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, black, transparent 72%);
    content: "";
    pointer-events: none;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

svg {
    display: block;
}

:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff;
    color: #071426;
    font-weight: 800;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.ambient {
    position: fixed;
    z-index: -2;
    width: 18rem;
    aspect-ratio: 1;
    border: 1px solid rgba(126, 225, 255, 0.12);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 32%, rgba(126, 225, 255, 0.18), rgba(53, 80, 153, 0.02) 65%);
    box-shadow: inset 0 0 55px rgba(112, 220, 255, 0.08);
    pointer-events: none;
}

.ambient-one {
    top: 12%;
    right: -8rem;
}

.ambient-two {
    bottom: 5%;
    left: -12rem;
    width: 25rem;
}

.app-surface .ambient {
    opacity: 0.38;
}

.shell {
    width: min(var(--content), calc(100% - 40px));
    margin: 0 auto;
    padding: 22px 0 0;
}

.topbar {
    position: sticky;
    top: 16px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 68px;
    padding: 11px 12px 11px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
    box-shadow: 0 14px 48px rgba(1, 8, 20, 0.16);
    backdrop-filter: blur(18px) saturate(130%);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 820;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand-mark {
    position: relative;
    display: block;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(109, 231, 255, 0.35);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(109, 231, 255, 0.18), rgba(123, 156, 255, 0.08));
}

.brand-mark span {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
}

.brand-mark span:nth-child(1) { top: 8px; left: 14px; }
.brand-mark span:nth-child(2) { top: 19px; left: 8px; }
.brand-mark span:nth-child(3) { top: 19px; right: 8px; }

.brand-mark::before,
.brand-mark::after {
    position: absolute;
    top: 14px;
    width: 10px;
    height: 1px;
    background: rgba(109, 231, 255, 0.65);
    content: "";
}

.brand-mark::before {
    left: 9px;
    transform: rotate(55deg);
}

.brand-mark::after {
    right: 9px;
    transform: rotate(-55deg);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.nav a,
.nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 15px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 720;
    text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
    background: rgba(109, 231, 255, 0.09);
    color: var(--ink);
}

.nav a[aria-current="page"] {
    color: var(--ink);
}

.nav-login,
.nav-button {
    border-color: rgba(109, 231, 255, 0.22) !important;
    background: linear-gradient(135deg, rgba(109, 231, 255, 0.15), rgba(123, 156, 255, 0.12));
    color: var(--ink) !important;
}

.nav-form {
    margin: 0;
}

.nav-button {
    cursor: pointer;
}

main {
    padding-top: clamp(40px, 6vw, 78px);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    letter-spacing: -0.035em;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 14px;
    color: var(--cyan);
    font-size: 0.76rem;
    font-weight: 820;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    align-items: center;
    gap: clamp(40px, 7vw, 92px);
    min-height: min(720px, calc(100vh - 112px));
    padding: clamp(38px, 6vw, 78px) 0 clamp(70px, 10vw, 126px);
}

.hero-copy h1 {
    max-width: 12ch;
    margin-bottom: 24px;
    font-size: clamp(2.8rem, 6.6vw, 5.65rem);
    line-height: 0.96;
    text-wrap: balance;
}

.hero-copy h1 span,
.auth-story h1 span {
    background: linear-gradient(100deg, var(--cyan), #c2f6ff 48%, var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    max-width: 640px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: clamp(1.06rem, 1.7vw, 1.27rem);
    line-height: 1.7;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 50px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-weight: 780;
    text-decoration: none;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

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

.button.primary {
    background: linear-gradient(120deg, #77e9ff, #7c9eff);
    box-shadow: 0 14px 34px rgba(61, 189, 224, 0.22);
    color: #061321;
}

.button.secondary {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.065);
    color: var(--ink);
}

.app-surface .button.secondary {
    background: rgba(255, 255, 255, 0.75);
}

.button-full {
    width: 100%;
}

.trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin: 27px 0 0;
    padding: 0;
    color: var(--muted);
    font-size: 0.89rem;
    list-style: none;
}

.trust-list span {
    color: var(--green);
}

.hero-visual {
    position: relative;
    min-height: 490px;
}

.portal-core {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 220px;
    aspect-ratio: 1;
    border: 1px solid rgba(132, 234, 255, 0.3);
    border-radius: 50%;
    background:
        radial-gradient(circle at 36% 28%, rgba(170, 244, 255, 0.23), transparent 30%),
        linear-gradient(145deg, rgba(26, 82, 119, 0.75), rgba(10, 27, 55, 0.78));
    box-shadow:
        inset 0 0 55px rgba(116, 226, 255, 0.14),
        0 30px 90px rgba(0, 10, 27, 0.5),
        0 0 70px rgba(47, 184, 226, 0.12);
    transform: translate(-50%, -50%);
    backdrop-filter: blur(16px);
}

.portal-core strong {
    position: absolute;
    top: 58%;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.portal-core small {
    position: absolute;
    top: 70%;
    color: var(--muted);
}

.core-mark {
    position: absolute;
    top: 25%;
    width: 66px;
    height: 58px;
}

.core-mark i {
    position: absolute;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 24px rgba(109, 231, 255, 0.8);
}

.core-mark i:nth-child(1) { top: 0; left: 27px; }
.core-mark i:nth-child(2) { bottom: 0; left: 0; }
.core-mark i:nth-child(3) { right: 0; bottom: 0; }

.core-mark::before,
.core-mark::after {
    position: absolute;
    top: 25px;
    width: 37px;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), transparent);
    content: "";
}

.core-mark::before { left: 7px; transform: rotate(58deg); }
.core-mark::after { right: 7px; transform: rotate(122deg); }

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    aspect-ratio: 1;
    border: 1px solid rgba(123, 191, 255, 0.17);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit::after {
    position: absolute;
    inset: 48px;
    border: 1px dashed rgba(123, 191, 255, 0.1);
    border-radius: inherit;
    content: "";
}

.orbit-node {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(122, 226, 255, 0.22);
    border-radius: 50%;
    background: rgba(10, 31, 57, 0.82);
    box-shadow: var(--shadow);
    color: var(--cyan);
    font-size: 1.4rem;
    backdrop-filter: blur(12px);
}

.node-photo { top: 10px; left: 94px; }
.node-file { top: 128px; right: -18px; }
.node-home { bottom: 20px; left: 64px; }

.glass-chip {
    position: absolute;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    background: rgba(8, 27, 51, 0.7);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 750;
    backdrop-filter: blur(12px);
}

.chip-one { top: 21%; left: 3%; }
.chip-two { top: 59%; right: 0; }
.chip-three { bottom: 11%; left: 30%; }

.section {
    padding: clamp(62px, 9vw, 112px) 0;
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.75fr);
    align-items: end;
    gap: 40px;
    margin-bottom: 36px;
}

.section-heading h2,
.security-band h2 {
    max-width: 16ch;
    margin-bottom: 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.04;
}

.section-heading > p,
.security-band > div > p:last-child {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.7;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}

.feature-card,
.module-card,
.auth-panel,
.empty-state,
.table-wrap,
.media-stage,
.security-band {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px) saturate(125%);
}

.feature-card {
    position: relative;
    min-height: 330px;
    padding: 28px;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.feature-card::after {
    position: absolute;
    right: -60px;
    bottom: -80px;
    width: 180px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(109, 231, 255, 0.11), transparent 68%);
    content: "";
}

.feature-card.featured {
    background: linear-gradient(145deg, rgba(18, 58, 89, 0.8), rgba(13, 31, 58, 0.62));
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 46px;
    border: 1px solid rgba(109, 231, 255, 0.2);
    border-radius: 16px;
    background: rgba(109, 231, 255, 0.08);
    color: var(--cyan);
}

.feature-icon svg,
.security-mark svg,
.auth-lock svg {
    width: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.card-kicker {
    margin-bottom: 8px;
    color: var(--cyan);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.45rem;
}

.feature-card > p:not(.card-kicker) {
    color: var(--muted);
    line-height: 1.65;
}

.card-state {
    position: absolute;
    bottom: 27px;
    left: 28px;
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 760;
}

.future-section {
    padding-top: 50px;
}

.section-heading.compact {
    margin-bottom: 28px;
}

.future-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.future-grid article {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 92px;
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.035);
}

.future-grid article > span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 14px;
    background: rgba(109, 231, 255, 0.08);
    color: var(--cyan);
    font-size: 1.3rem;
}

.future-grid h3 {
    margin-bottom: 4px;
    font-size: 1rem;
}

.future-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.security-band {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    margin: clamp(50px, 8vw, 100px) 0;
    padding: clamp(28px, 4vw, 46px);
    border-radius: var(--radius-lg);
}

.security-mark {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    border: 1px solid rgba(109, 231, 255, 0.2);
    border-radius: 22px;
    background: rgba(109, 231, 255, 0.08);
    color: var(--cyan);
}

.security-mark svg {
    width: 34px;
}

.security-band h2 {
    max-width: 23ch;
    margin-bottom: 12px;
    font-size: clamp(1.55rem, 3vw, 2.45rem);
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 470px);
    gap: clamp(35px, 7vw, 90px);
    align-items: center;
    min-height: 650px;
    padding: 35px 0 85px;
}

.auth-story {
    position: relative;
    min-height: 520px;
    padding-top: 60px;
}

.auth-story h1 {
    margin-bottom: 22px;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 0.98;
}

.auth-story > p:not(.eyebrow) {
    max-width: 480px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.auth-orbit {
    position: absolute;
    right: 5%;
    bottom: -10px;
    width: 270px;
    aspect-ratio: 1;
    border: 1px solid rgba(109, 231, 255, 0.13);
    border-radius: 50%;
}

.auth-orbit > span {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(109, 231, 255, 0.3);
    border-radius: 50%;
    background: #153a60;
}

.auth-orbit > span:nth-child(1) { top: 12%; left: 18%; }
.auth-orbit > span:nth-child(2) { top: 46%; right: -3%; }
.auth-orbit > span:nth-child(3) { bottom: 8%; left: 25%; }

.auth-lock {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 118px;
    height: 118px;
    border: 1px solid rgba(109, 231, 255, 0.25);
    border-radius: 50%;
    background: rgba(14, 48, 79, 0.76);
    box-shadow: 0 25px 65px rgba(0, 10, 25, 0.4);
    color: var(--cyan);
    transform: translate(-50%, -50%);
    backdrop-filter: blur(16px);
}

.auth-lock svg {
    width: 38px;
}

.auth-panel {
    padding: clamp(26px, 4vw, 42px);
    border-radius: var(--radius-lg);
    background: rgba(9, 26, 48, 0.82);
}

.auth-heading {
    margin-bottom: 28px;
}

.auth-heading h2 {
    margin-bottom: 9px;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.auth-heading > p:last-child {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.6;
}

.form {
    display: grid;
    gap: 18px;
}

.form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 720;
}

.form input {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 13px;
    background: rgba(2, 12, 25, 0.55);
    color: var(--ink);
}

.form input:focus {
    border-color: rgba(109, 231, 255, 0.6);
}

.app-surface .form input {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.9);
}

.password-field {
    position: relative;
    display: block;
}

.password-field input {
    padding-right: 92px;
}

.password-toggle {
    position: absolute;
    top: 5px;
    right: 5px;
    min-height: 40px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 780;
    cursor: pointer;
}

.text-link {
    width: max-content;
    color: var(--cyan);
    font-weight: 720;
}

.alert {
    margin: 0;
    padding: 13px 15px;
    border-radius: 13px;
    font-weight: 680;
    line-height: 1.5;
}

.alert.error {
    border: 1px solid rgba(255, 140, 150, 0.3);
    background: rgba(115, 26, 39, 0.3);
    color: var(--danger);
}

.alert.notice {
    border: 1px solid rgba(121, 230, 181, 0.24);
    background: rgba(31, 106, 77, 0.25);
    color: var(--green);
}

.auth-note {
    display: flex;
    gap: 9px;
    margin: 24px 0 0;
    padding-top: 21px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.auth-note span {
    color: var(--green);
}

.page-head {
    max-width: 760px;
    margin-bottom: 30px;
}

.page-head h1 {
    margin-bottom: 15px;
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    line-height: 1.05;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}

.module-card,
.empty-state,
.table-wrap,
.media-stage {
    border-radius: var(--radius-md);
}

.module-card {
    min-height: 175px;
    padding: 24px;
}

.module-card h2 {
    margin-bottom: 10px;
    font-size: 1.28rem;
}

.module-card p,
.empty-state p {
    color: var(--muted);
    line-height: 1.65;
}

.link-card {
    display: block;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease;
}

.link-card:hover,
.link-card:focus-visible {
    border-color: rgba(8, 127, 158, 0.32);
    transform: translateY(-3px);
}

.empty-state,
.table-wrap,
.media-stage {
    padding: 28px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

th {
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.media-placeholder {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    border: 1px dashed var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.35);
    color: var(--muted);
    font-weight: 780;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding: 28px 4px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.82rem;
}

.site-footer p {
    margin: 0;
}

@supports not (backdrop-filter: blur(1px)) {
    .topbar,
    .feature-card,
    .module-card,
    .auth-panel,
    .empty-state,
    .table-wrap,
    .media-stage,
    .security-band {
        background: var(--panel-strong);
    }
}

@media (max-width: 920px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-copy {
        max-width: 720px;
    }

    .hero-visual {
        width: min(100%, 550px);
        min-height: 430px;
        margin: -15px auto 0;
    }

    .section-heading {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 16px;
    }

    .section-heading > p {
        max-width: 630px;
    }

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

    .feature-card:first-child {
        grid-column: 1 / -1;
    }

    .future-grid,
    .module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-shell {
        grid-template-columns: 1fr;
        max-width: 590px;
        margin: 0 auto;
    }

    .auth-story {
        min-height: auto;
        padding: 24px 0 0;
    }

    .auth-story > p:not(.eyebrow) {
        margin-bottom: 0;
    }

    .auth-orbit {
        display: none;
    }
}

@media (max-width: 660px) {
    .shell {
        width: min(100% - 20px, var(--content));
        padding-top: 10px;
    }

    .topbar {
        position: relative;
        top: 0;
        min-height: 62px;
        padding: 9px 9px 9px 13px;
        border-radius: 17px;
    }

    .brand {
        font-size: 0.9rem;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
    }

    .nav a,
    .nav-button {
        min-height: 44px;
        padding: 9px 12px;
        font-size: 0.84rem;
    }

    .nav a:not(.nav-login) {
        display: none;
    }

    main {
        padding-top: 28px;
    }

    .hero {
        gap: 10px;
        padding: 34px 0 70px;
    }

    .hero-copy h1 {
        font-size: clamp(2.7rem, 14vw, 4.3rem);
    }

    .hero-visual {
        min-height: 340px;
        transform: scale(0.82);
    }

    .orbit {
        width: 360px;
    }

    .portal-core {
        width: 195px;
    }

    .feature-grid,
    .future-grid,
    .module-grid {
        grid-template-columns: 1fr;
    }

    .feature-card:first-child {
        grid-column: auto;
    }

    .section {
        padding: 62px 0;
    }

    .section-heading h2 {
        font-size: 2.15rem;
    }

    .future-grid article {
        min-height: 82px;
    }

    .security-band {
        grid-template-columns: 1fr;
        gap: 20px;
        align-items: start;
    }

    .security-mark {
        width: 58px;
        height: 58px;
    }

    .auth-shell {
        display: block;
        padding: 15px 0 65px;
    }

    .auth-story {
        display: none;
    }

    .auth-panel {
        padding: 25px 20px;
        border-radius: 22px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: more) {
    :root {
        --line: rgba(255, 255, 255, 0.38);
        --muted: #d1dcea;
    }

    .app-surface {
        --line: rgba(19, 35, 55, 0.32);
        --muted: #34465b;
    }
}

@media (forced-colors: active) {
    .brand-mark,
    .feature-icon,
    .security-mark,
    .portal-core,
    .orbit-node {
        forced-color-adjust: none;
    }
}
