:root {
    --tone-1: #0c0f2b;
    --tone-2: #10163b;
    --tone-3: #1b1f46;
    --accent: #6ad7ff;
    --accent-2: #ffa157;
    --muted: #b2b8cf;
    --surface: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.08);
    --radius: 1.25rem;
    --surpac-teal: #35858E;
    --surpac-sage: #7DA78C;
    --surpac-moss: #C2D099;
    --surpac-cream: #E6EEC9;
    --surpac-ink: #102a30;
    color: #eef2ff;
}

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

body {
    margin: 0;
    font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
    background: #050713;
    color: #f5f7ff;
    min-height: 100vh;
}

.access-gate {
    flex: 1;
    border: 1px solid rgba(53, 133, 142, 0.28);
    border-radius: 8px;
    overflow: visible;
    background: var(--surpac-cream);
    color: #172033;
    box-shadow: 0 24px 70px rgba(16, 42, 48, 0.32);
}

.access-landing {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    align-items: start;
}

.access-landing__story {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: clamp(1.25rem, 3vw, 3rem);
    border-radius: 8px 0 0 8px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.72) 0%, rgba(230, 238, 201, 0.56) 54%, rgba(194, 208, 153, 0.28) 100%),
        url("/images/access-topo.svg"),
        linear-gradient(135deg, #ffffff 0%, #E6EEC9 60%, #C2D099 100%);
    background-size: auto, min(920px, 122%) auto, auto;
    background-position: center, 50% top, center;
    background-repeat: no-repeat, repeat-y, no-repeat;
}

.access-landing__story::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 6%, rgba(230, 238, 201, 0.24), transparent 28%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.14), transparent 48%);
    pointer-events: none;
}

.access-landing__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.72rem;
    position: relative;
    z-index: 1;
}

.access-landing__mark,
.access-gate__mark {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 8px;
    background: #1f5646;
    color: #fff;
    font-weight: 800;
    font-size: 1.7rem;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.16);
}

.access-landing__logo {
    display: block;
    width: min(22rem, 100%);
    height: auto;
    max-height: 4rem;
    border-radius: 0;
    object-fit: contain;
    object-position: left center;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.access-landing__brand h1 {
    margin: 0;
    color: var(--surpac-ink);
    font-size: clamp(2.4rem, 5vw, 4.9rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.access-landing__brand p:last-child {
    margin: 0.15rem 0 0;
    color: #39555c;
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    font-weight: 650;
}

.access-hero,
.access-section,
.access-landing__tagline {
    position: relative;
    z-index: 1;
}

.access-hero {
    max-width: 820px;
}

.access-hero .eyebrow,
.access-section .eyebrow,
.access-gate__panel .eyebrow {
    color: var(--surpac-teal);
    font-weight: 800;
}

.access-hero h2 {
    margin: 0.55rem 0 0;
    max-width: 780px;
    color: var(--surpac-ink);
    font-size: clamp(2rem, 3.4vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.access-hero p,
.access-section p {
    max-width: 780px;
    margin: 1rem 0 0;
    color: #40585e;
    font-size: 1rem;
    line-height: 1.7;
}

.access-hero p {
    margin-top: 0.75rem;
    line-height: 1.55;
}

.access-section {
    border: 1px solid rgba(125, 167, 140, 0.34);
    border-radius: 8px;
    padding: clamp(1rem, 2.4vw, 1.6rem);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 34px rgba(53, 133, 142, 0.08);
}

.access-section h2 {
    max-width: 820px;
    margin: 0.35rem 0 0;
    color: var(--surpac-ink);
    font-size: clamp(1.45rem, 2.8vw, 2.55rem);
    line-height: 1.12;
    letter-spacing: 0;
}

.access-section h3 {
    margin: 1.2rem 0 0;
    color: var(--surpac-ink);
    font-size: 1.05rem;
    letter-spacing: 0;
}

.access-section--risk {
    background: linear-gradient(135deg, #35858E 0%, #2f737b 100%);
    border-color: rgba(230, 238, 201, 0.28);
    box-shadow: 0 18px 42px rgba(53, 133, 142, 0.24);
}

.access-section--risk h2,
.access-section--risk p {
    color: #faffee;
}

.access-section--risk p {
    color: #E6EEC9;
}

.access-risk-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 1.1rem 0;
    padding: 0;
    list-style: none;
}

.access-risk-list li {
    border: 1px solid rgba(230, 238, 201, 0.26);
    border-radius: 8px;
    padding: 0.75rem 0.85rem;
    background: rgba(230, 238, 201, 0.12);
    color: #ffffff;
    font-weight: 700;
}

.access-capability-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.access-capability-list li {
    border: 1px solid rgba(125, 167, 140, 0.34);
    border-radius: 8px;
    padding: 0.7rem 0.8rem;
    background: rgba(255, 255, 255, 0.72);
    color: #284750;
    font-weight: 650;
}

.access-module-grid,
.access-reason-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.access-module-grid article,
.access-reason-grid article {
    min-height: 134px;
    border: 1px solid rgba(125, 167, 140, 0.32);
    border-radius: 8px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.82);
}

.access-module-grid h3,
.access-reason-grid h3 {
    margin: 0;
    color: var(--surpac-teal);
    font-size: 1rem;
    letter-spacing: 0;
}

.access-module-grid p,
.access-reason-grid p {
    margin-top: 0.45rem;
    color: #516563;
    font-size: 0.92rem;
    line-height: 1.5;
}

.access-landing__tagline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: baseline;
    margin: 0;
    border-top: 1px solid rgba(53, 133, 142, 0.2);
    padding-top: 1.2rem;
    color: #40585e;
    font-size: 1.05rem;
}

.access-landing__tagline strong {
    color: var(--surpac-ink);
    font-size: 1.2rem;
    font-weight: 700;
}

.access-gate__panel {
    position: sticky;
    top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    border-left: 1px solid rgba(53, 133, 142, 0.18);
    border-radius: 0 8px 8px 0;
    padding: clamp(1.5rem, 3.4vw, 3rem);
    background: #ffffff;
    box-shadow: -18px 0 60px rgba(53, 133, 142, 0.1);
}

.access-gate__brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
}

.access-gate__mark {
    width: 2.8rem;
    height: 2.8rem;
    background: #a7651f;
    font-size: 1.35rem;
}

.access-gate__logo {
    display: block;
    flex: 0 0 auto;
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
    border: 1px solid rgba(53, 133, 142, 0.2);
    box-shadow: 0 10px 22px rgba(53, 133, 142, 0.14);
}

.access-gate__brand h2 {
    margin: 0;
    color: var(--surpac-ink);
    font-size: 1.55rem;
    letter-spacing: 0;
}

.access-gate__brand p,
.access-gate__panel > .eyebrow {
    margin: 0;
}

.access-gate__copy {
    color: #536866;
    margin-bottom: 1.5rem !important;
}

.access-gate__form {
    display: grid;
    gap: 0.75rem;
}

.access-gate__form label {
    color: #284750;
    font-weight: 600;
}

.access-gate__form input {
    width: 100%;
    border: 1px solid rgba(125, 167, 140, 0.52);
    border-radius: 8px;
    background: #fbfdf5;
    color: #172033;
    padding: 0.8rem 0.9rem;
    font: inherit;
}

.access-gate__form input:focus {
    border-color: var(--surpac-teal);
    outline: 3px solid rgba(53, 133, 142, 0.18);
}

.access-gate__form button {
    border: 0;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    background: var(--surpac-teal);
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.access-gate__form button:hover {
    background: #2f737b;
}

.access-gate__error {
    border: 1px solid rgba(255, 125, 125, 0.45);
    border-radius: 8px;
    padding: 0.7rem 0.8rem;
    background: rgba(255, 64, 64, 0.12);
    color: #9a1f1f;
}

.access-gate__support {
    display: grid;
    gap: 0.35rem;
    border-top: 1px solid rgba(125, 167, 140, 0.3);
    padding-top: 1rem;
    color: #536866;
    font-size: 0.92rem;
}

.access-gate__support a {
    color: var(--surpac-teal);
    font-weight: 700;
    text-decoration: none;
}

.access-gate__support a:hover {
    text-decoration: underline;
}

.access-gate__compatibility {
    display: grid;
    gap: 0.35rem;
    border: 1px solid rgba(125, 167, 140, 0.34);
    border-radius: 8px;
    padding: 0.9rem 1rem;
    background: rgba(230, 238, 201, 0.28);
    color: #284750;
    font-size: 0.92rem;
}

.access-gate__compatibility strong {
    color: var(--surpac-ink);
}

.access-gate__compatibility span {
    color: #536866;
}

.access-gate__hint {
    margin-top: 1.4rem !important;
    color: #61746f;
    font-size: 0.86rem;
    line-height: 1.55;
}

.app-shell {
    min-height: 100vh;
    padding: 2rem;
    background: radial-gradient(circle at top left, rgba(106, 215, 255, 0.2), transparent 40%),
        radial-gradient(circle at 20% 20%, rgba(255, 161, 87, 0.17), transparent 35%),
        linear-gradient(180deg, #050713 0%, #090e23 40%, #050713 120%);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.app-shell--access {
    background:
        radial-gradient(circle at 12% 0%, rgba(230, 238, 201, 0.2), transparent 32%),
        linear-gradient(135deg, rgba(53, 133, 142, 0.38), transparent 34%),
        linear-gradient(180deg, #102a30 0%, #173f45 48%, #071215 120%);
}

.app-shell--access .app-header {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.app-shell--access .app-header__brand p {
    color: #d8e3e5;
}

.app-header {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    background: var(--surface);
    backdrop-filter: blur(10px);
}

.app-header__brand {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.app-header__logo {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
}

.hero h1 {
    margin: 0.25rem 0 0;
    font-size: clamp(2.2rem, 3vw, 3.4rem);
    line-height: 1.2;
}

.hero__lead {
    max-width: 42rem;
    color: var(--muted);
    margin-top: 0;
}

.hero__badge {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    text-transform: uppercase;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    align-items: flex-start;
}

.hero__badge strong {
    font-size: 1.35rem;
}

.eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
}

.panel {
    border-radius: var(--radius);
    padding: 1.25rem;
    background: rgba(12, 15, 43, 0.75);
    border: 1px solid var(--border);
    backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

.panel--secondary {
    background: rgba(255, 255, 255, 0.02);
}

.panel__header h2 {
    margin: 0.35rem 0;
    font-size: 1.5rem;
}

.panel__header p {
    margin: 0;
    color: var(--muted);
}

.panel__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.panel__body--stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 620px;
    overflow-y: auto;
}

.calc-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.01);
    box-shadow: 0 20px 40px rgba(5, 7, 19, 0.75);
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
    transform: translateY(12px);
    animation-delay: var(--delay);
}

.calc-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.calc-card__description {
    margin: 0.35rem 0 0.75rem;
    color: var(--muted);
}

.calc-card__input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.35);
    color: #fdfdff;
    padding: 0.85rem;
    font-family: "Space Grotesk", monospace;
    font-size: 0.9rem;
    resize: vertical;
}

.calc-card__actions {
    display: flex;
    justify-content: flex-end;
}

.calc-card__actions button {
    border: none;
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    background: linear-gradient(130deg, var(--accent), var(--accent-2));
    color: #050713;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

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

.calc-card__result {
    margin: 1rem 0 0;
    white-space: pre-wrap;
    font-family: "Space Grotesk", monospace;
    font-size: 0.85rem;
    padding: 0.8rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-card__result--error {
    border-color: #ff7d7d;
    color: #ffb6b6;
}

.chip {
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.chip--secondary {
    background: rgba(255, 255, 255, 0.04);
}

.workflow-module {
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 1.2rem;
    background: rgba(3, 5, 17, 0.6);
}

.workflow-module header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.85rem;
}

.workflow-module__purpose {
    margin: 0.4rem 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.workflow-module__group {
    margin: 0.15rem 0;
    font-size: 0.85rem;
    color: #d7dbff;
}

.muted {
    color: var(--muted);
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .access-gate {
        border-radius: 0;
        min-height: auto;
        overflow: hidden;
    }

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

    .access-landing__story {
        gap: 1rem;
        padding: 1.5rem;
        border-radius: 0;
    }

    .access-landing__brand h1 {
        font-size: 2.15rem;
    }

    .access-landing__brand p:last-child {
        font-size: 0.95rem;
    }

    .access-landing__logo {
        width: min(17rem, 100%);
        max-height: 3rem;
    }

    .access-hero h2 {
        font-size: 2rem;
    }

    .access-hero p,
    .access-section p {
        font-size: 0.92rem;
        line-height: 1.5;
    }

    .access-section {
        padding: 1rem;
    }

    .access-section h2 {
        font-size: 1.35rem;
    }

    .access-risk-list,
    .access-capability-list,
    .access-module-grid,
    .access-reason-grid {
        grid-template-columns: 1fr;
    }

    .access-module-grid article,
    .access-reason-grid article {
        min-height: auto;
    }

    .access-landing__tagline {
        display: grid;
        gap: 0.35rem;
    }

    .access-gate__panel {
        position: static;
        padding: 1.5rem;
        border-left: 0;
        border-radius: 0;
    }

    .panel {
        padding: 1rem;
    }
}
