:root {
    color-scheme: dark;

    --background: #050a09;
    --background-soft: #09110f;
    --surface: rgba(13, 23, 20, .82);
    --surface-strong: #101b18;
    --surface-light: rgba(255, 255, 255, .055);

    --border: rgba(235, 217, 155, .16);
    --border-strong: rgba(235, 217, 155, .34);

    --gold: #e2c46d;
    --gold-light: #f4dda0;
    --gold-dark: #99752d;

    --green: #65c0a1;
    --green-dark: #174b3c;

    --blue: #8abed2;
    --pink: #d89eae;
    --violet: #a99bd3;

    --text: #f6f2e8;
    --text-soft: #bcc6c1;
    --text-faint: #7e8c87;

    --shadow:
        0 28px 90px rgba(0, 0, 0, .42);

    --radius-large: 30px;
    --radius-medium: 20px;
    --radius-small: 13px;

    --content: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background:
        linear-gradient(
            140deg,
            rgba(255, 255, 255, .018),
            transparent 28%
        ),
        radial-gradient(
            circle at 86% 3%,
            rgba(226, 196, 109, .11),
            transparent 29%
        ),
        radial-gradient(
            circle at 8% 42%,
            rgba(53, 137, 108, .12),
            transparent 27%
        ),
        var(--background);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

body::before {
    content: "";
    position: fixed;
    z-index: -3;
    inset: 0;
    opacity: .28;
    pointer-events: none;
    background-image:
        linear-gradient(
            115deg,
            transparent 47%,
            rgba(226, 196, 109, .07) 49%,
            transparent 51%
        ),
        linear-gradient(
            25deg,
            transparent 44%,
            rgba(255, 255, 255, .025) 46%,
            transparent 49%
        );
    background-size:
        620px 620px,
        430px 430px;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

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

.ambient {
    position: fixed;
    z-index: -2;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(7px);
}

.ambient-one {
    width: 520px;
    height: 520px;
    top: -260px;
    right: -180px;
    background:
        radial-gradient(
            circle,
            rgba(226, 196, 109, .18),
            transparent 67%
        );
    animation:
        ambient-float-one 12s ease-in-out infinite;
}

.ambient-two {
    width: 460px;
    height: 460px;
    bottom: -250px;
    left: -190px;
    background:
        radial-gradient(
            circle,
            rgba(65, 160, 126, .17),
            transparent 68%
        );
    animation:
        ambient-float-two 14s ease-in-out infinite;
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    display: grid;
    grid-template-columns:
        minmax(220px, 1fr)
        auto
        minmax(220px, 1fr);
    width: min(
        var(--content),
        calc(100% - 34px)
    );
    min-height: 84px;
    margin: 18px auto 0;
    padding: 12px 14px 12px 18px;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(12, 21, 19, .92),
            rgba(6, 12, 11, .88)
        );
    box-shadow:
        0 18px 55px rgba(0, 0, 0, .25);
    backdrop-filter: blur(18px);
}

.header-brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.portal-logo-fallback {
    display: grid;
    place-items: center;
    border: 1px solid var(--border-strong);
    color: var(--gold);
    background:
        linear-gradient(
            145deg,
            rgba(226, 196, 109, .12),
            rgba(255, 255, 255, .025)
        );
    font-weight: 900;
}

.header-brand-copy,
.footer-brand span {
    display: grid;
    gap: 2px;
}

.header-brand-copy strong,
.footer-brand strong {
    color: var(--gold-light);
    font-size: 15px;
    letter-spacing: .13em;
}

.header-brand-copy small,
.footer-brand small {
    color: var(--text-faint);
    font-size: 11px;
}

.header-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.header-navigation a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition:
        color .2s ease;
}

.header-navigation a:hover {
    color: var(--gold-light);
}

.header-account-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
}

.button {
    display: inline-flex;
    min-height: 44px;
    padding: 11px 17px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 11px;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 850;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease,
        background .2s ease;
}

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

.button-gold {
    position: relative;
    overflow: hidden;
    color: #171309;
    background:
        linear-gradient(
            135deg,
            var(--gold-light),
            var(--gold)
        );
    box-shadow:
        0 13px 32px rgba(226, 196, 109, .16);
}

.button-gold::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            105deg,
            transparent 25%,
            rgba(255, 255, 255, .38),
            transparent 75%
        );
    transform: translateX(-130%);
    transition:
        transform .6s ease;
}

.button-gold:hover::after {
    transform: translateX(130%);
}

.button-ghost,
.button-glass {
    color: var(--text);
    border-color:
        rgba(255, 255, 255, .11);
    background:
        rgba(255, 255, 255, .035);
}

.button-ghost:hover,
.button-glass:hover {
    border-color: var(--border-strong);
    background:
        rgba(226, 196, 109, .06);
}

.button-large {
    min-height: 54px;
    padding-inline: 23px;
    border-radius: 13px;
    font-size: 15px;
}

.button-full {
    width: 100%;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background:
        rgba(255, 255, 255, .04);
}

.mobile-menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    background: var(--text);
}

.mobile-menu {
    position: sticky;
    z-index: 99;
    top: 98px;
    display: grid;
    width: min(
        calc(100% - 32px),
        520px
    );
    margin: 10px auto 0;
    padding: 16px;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #0d1714;
    box-shadow: var(--shadow);
}

.mobile-menu a:not(.button) {
    padding: 12px;
    color: var(--text-soft);
    text-decoration: none;
}

main {
    width: min(
        var(--content),
        calc(100% - 34px)
    );
    margin: auto;
}

.hero {
    display: grid;
    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(350px, .8fr);
    min-height: calc(100vh - 130px);
    padding: clamp(70px, 10vw, 130px) 0;
    align-items: center;
    gap: clamp(45px, 7vw, 95px);
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.section-eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
}

.hero h1 {
    max-width: 760px;
    margin: 18px 0 23px;
    color: var(--text);
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: clamp(62px, 8.7vw, 128px);
    font-weight: 500;
    line-height: .84;
    letter-spacing: -.065em;
}

.hero h1 em {
    display: block;
    color: var(--gold-light);
    font-weight: 500;
}

.hero-description {
    max-width: 680px;
    margin: 0;
    color: var(--text-soft);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.68;
}

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

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 45px;
}

.hero-trust span {
    display: flex;
    max-width: 160px;
    align-items: flex-start;
    gap: 9px;
    color: var(--text-faint);
    font-size: 12px;
    line-height: 1.45;
}

.hero-trust b {
    color: var(--gold);
    font-size: 10px;
    letter-spacing: .08em;
}

.account-card {
    position: relative;
    overflow: hidden;
    padding:
        clamp(28px, 4vw, 46px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-large);
    background:
        radial-gradient(
            circle at 88% 6%,
            rgba(226, 196, 109, .16),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            rgba(18, 31, 27, .96),
            rgba(7, 14, 12, .97)
        );
    box-shadow: var(--shadow);
    transition:
        transform .25s ease,
        border-color .25s ease;
}

.account-card:hover {
    transform: translateY(-5px);
    border-color:
        rgba(226, 196, 109, .5);
}

.account-card-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    top: -130px;
    right: -90px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(226, 196, 109, .22),
            transparent 70%
        );
    animation:
        card-glow 7s ease-in-out infinite;
}

.account-brand {
    position: relative;
    min-height: 74px;
    margin-bottom: 23px;
}

.account-brand .brand-logo {
    width: min(210px, 68%);
    height: 74px;
    object-position: left center;
}

.account-card h2 {
    position: relative;
    margin: 15px 0 12px;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: clamp(34px, 4vw, 51px);
    font-weight: 500;
    letter-spacing: -.035em;
}

.account-card > p {
    position: relative;
    margin: 0;
    color: var(--text-soft);
    line-height: 1.65;
}

.account-actions {
    position: relative;
    display: grid;
    gap: 10px;
    margin-top: 27px;
}

.account-note {
    position: relative;
    display: flex;
    margin-top: 22px;
    padding-top: 18px;
    align-items: flex-start;
    gap: 10px;
    border-top:
        1px solid rgba(255, 255, 255, .075);
}

.account-note span {
    color: var(--gold);
}

.account-note p {
    margin: 0;
    color: var(--text-faint);
    font-size: 12px;
    line-height: 1.5;
}

.purpose-section {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(300px, .72fr);
    margin: 30px 0 130px;
    padding:
        clamp(34px, 6vw, 74px);
    align-items: end;
    gap: 55px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, .018),
            transparent
        );
}

.purpose-section h2,
.section-heading h2,
.final-call h2 {
    margin: 17px 0 0;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: clamp(40px, 5.4vw, 76px);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -.045em;
}

.purpose-section > p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.75;
}

.portal-section {
    padding-bottom: 140px;
}

.section-heading {
    max-width: 800px;
    margin-bottom: 48px;
}

.section-heading p {
    max-width: 650px;
    margin: 19px 0 0;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.7;
}

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

.portal-card {
    position: relative;
    overflow: hidden;
    min-height: 330px;
    padding:
        clamp(24px, 4vw, 39px);
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background:
        radial-gradient(
            circle at 100% 0,
            var(--portal-glow),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            rgba(17, 28, 25, .95),
            rgba(7, 14, 12, .97)
        );
    transition:
        transform .28s ease,
        border-color .28s ease,
        box-shadow .28s ease;
}

.portal-card::after {
    content: "";
    position: absolute;
    inset: auto -40px -80px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border:
        1px solid rgba(255, 255, 255, .055);
}

.portal-card:hover {
    transform: translateY(-7px);
    border-color:
        rgba(226, 196, 109, .35);
    box-shadow:
        0 26px 70px rgba(0, 0, 0, .27);
}

.portal-school {
    --portal-glow:
        rgba(91, 158, 192, .16);
}

.portal-language {
    --portal-glow:
        rgba(75, 173, 137, .17);
}

.portal-fans {
    --portal-glow:
        rgba(216, 112, 145, .15);
}

.portal-inkspace {
    --portal-glow:
        rgba(152, 124, 205, .16);
}

.portal-card-top {
    display: flex;
    min-height: 72px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.portal-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.portal-access-label {
    padding: 7px 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-faint);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.portal-card h3 {
    margin: 24px 0 8px;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 38px;
    font-weight: 500;
}

.portal-card strong {
    color: var(--gold-light);
    font-size: 14px;
}

.portal-card p {
    max-width: 520px;
    margin: 15px 0 27px;
    color: var(--text-soft);
    line-height: 1.65;
}

.portal-link,
.text-link {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--gold-light);
    text-decoration: none;
    font-size: 13px;
    font-weight: 850;
}

.portal-link span,
.text-link span {
    transition:
        transform .2s ease;
}

.portal-link:hover span,
.text-link:hover span {
    transform: translateX(4px);
}

.final-call {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    margin-bottom: 110px;
    padding:
        clamp(34px, 6vw, 70px);
    align-items: center;
    gap: 55px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-large);
    background:
        radial-gradient(
            circle at 93% 7%,
            rgba(226, 196, 109, .16),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            rgba(19, 33, 28, .96),
            rgba(7, 14, 12, .96)
        );
    box-shadow: var(--shadow);
}

.final-call h2 {
    max-width: 760px;
}

.final-call-actions {
    display: grid;
    min-width: 190px;
    gap: 17px;
    justify-items: center;
}

.site-footer {
    display: grid;
    grid-template-columns:
        1fr auto 1fr;
    width: min(
        var(--content),
        calc(100% - 34px)
    );
    margin: auto;
    padding: 30px 0 42px;
    align-items: center;
    gap: 25px;
    border-top: 1px solid var(--border);
}

.footer-brand .brand-logo {
    width: 45px;
    height: 45px;
}

.site-footer > p {
    margin: 0;
    color: var(--text-faint);
    font-size: 12px;
}

.site-footer nav {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
}

.site-footer nav a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 12px;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(27px);
    transition:
        opacity .75s ease,
        transform .75s
        cubic-bezier(.2, .75, .24, 1);
}

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

@keyframes ambient-float-one {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(-30px, 35px, 0);
    }
}

@keyframes ambient-float-two {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(35px, -30px, 0);
    }
}

@keyframes card-glow {
    0%,
    100% {
        transform: scale(1);
        opacity: .75;
    }

    50% {
        transform: scale(1.13);
        opacity: 1;
    }
}

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

    .header-navigation,
    .header-account-actions {
        display: none;
    }

    .mobile-menu-button {
        display: block;
        justify-self: end;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

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

    .account-card {
        max-width: 680px;
    }
}

@media (max-width: 760px) {
    .site-header,
    main,
    .site-footer {
        width: min(
            100% - 22px,
            var(--content)
        );
    }

    .site-header {
        min-height: 70px;
        margin-top: 10px;
    }

    .brand-logo {
        width: 44px;
        height: 44px;
    }

    .header-brand-copy small {
        display: none;
    }

    .hero {
        padding: 75px 0 95px;
        gap: 45px;
    }

    .hero h1 {
        font-size: clamp(57px, 18vw, 84px);
    }

    .hero-actions {
        display: grid;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-trust {
        display: grid;
        grid-template-columns:
            repeat(3, 1fr);
        gap: 12px;
    }

    .hero-trust span {
        display: grid;
        max-width: none;
    }

    .purpose-section {
        grid-template-columns: 1fr;
        margin-bottom: 95px;
        padding-inline: 12px;
        gap: 28px;
    }

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

    .portal-card {
        min-height: 300px;
    }

    .final-call {
        grid-template-columns: 1fr;
    }

    .final-call-actions {
        justify-items: stretch;
    }

    .site-footer {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .site-footer nav {
        justify-content: center;
    }
}

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

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

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