@import url('https://fonts.googleapis.com/css2?family=Libre+Caslon+Display&display=swap');

:root {
    --background: #101813;
    --surface: #19251D;
    --text: #F5EEDD;
    --muted: #BBC1BE;
    --gold: #E3C888;
    --border: #515957;
    --heading-font: 'Libre Caslon Display', Georgia, serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 150px;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: var(--heading-font);
    font-weight: 400;
    line-height: 1.08;
}

h2 {
    font-size: 52px;
}

h3 {
    font-size: 34px;
}

h1 span, h2 span {
    color: var(--gold);
}

a {
    color: inherit;
}

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

::selection {
    background-color: var(--gold);
    color: var(--background);
}

.container {
    width: 88%;
    max-width: 1180px;
    margin: 0 auto;
}

a:focus-visible, button:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 6px;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    background: var(--gold);
    color: var(--background);
    padding: 12px 20px;
    z-index: 200;
}

.skip-link:focus {
    top: 12px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(16, 24, 19, 0.96);
    border-bottom: 1px solid rgba(227, 200, 136, 0.18);
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    border-bottom-color: rgba(227, 200, 136, 0.3);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

@supports ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
    .site-header {
        background-color: rgba(16, 24, 19, 0.55);
        -webkit-backdrop-filter: blur(20px) saturate(150%);
        backdrop-filter: blur(20px) saturate(150%);
    }

    .site-header.is-scrolled {
        background-color: rgba(16, 24, 19, 0.68);
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 22px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--heading-font);
    font-size: 29px;
    text-decoration: none;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.logo-img {
    width: 34px;
    height: auto;
}

.logo-text span {
    color: var(--gold);
}

.logo:hover {
    color: var(--gold);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    display: inline-block;
    padding: 8px 0;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.eyebrow {
    color: var(--gold);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.intro {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    display: flex;
    align-items: center;
    padding: 90px 0;
    background-color: var(--background);
}

.intro::before {
    content: "";
    position: absolute;
    inset: -100px;
    background-image:
        linear-gradient(
            to right,
            rgba(10, 18, 14, 0.85),
            rgba(10, 18, 14, 0.45)
        ),
        url("../images/home-background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(40px);
}

.intro > .container {
    position: relative;
    z-index: 1;
}

.intro-copy {
    max-width: 580px;
    animation: fade-up 0.8s ease;
}

.intro .eyebrow {
    color: var(--gold);
}

.intro h1 {
    font-size: 100px;
    line-height: 0.98;
    letter-spacing: -2px;
    margin-bottom: 28px;
}

.intro-text {
    max-width: 460px;
    color: var(--text);
    font-size: 17px;
    margin-bottom: 32px;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-block;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.button-primary {
    background-color: rgba(227, 200, 136, 0.18);
    border-color: var(--gold);
    color: var(--text);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

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

.button-secondary {
    background-color: rgba(16, 24, 19, 0.35);
    border-color: rgba(227, 200, 136, 0.5);
    color: var(--text);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.button-secondary:hover {
    background-color: rgba(227, 200, 136, 0.12);
    border-color: var(--gold);
}

.button:active {
    transform: scale(0.98);
}

.intro-note {
    color: var(--text);
    font-size: 12px;
    margin-top: 28px;
}

.chapter-strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.strip-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px 0;
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section {
    padding: 90px 0;
}

.story-layout {
    display: flex;
    gap: 80px;
}

.story-layout > div {
    flex: 1;
    min-width: 0;
}

.story-copy p {
    color: var(--muted);
    margin-bottom: 20px;
}

.text-link {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 5px;
    font-size: 14px;
    transition: color 0.2s ease;
}

.text-link:hover {
    color: var(--text);
}

.problem-section {
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.problem-text {
    max-width: 640px;
    color: var(--muted);
    margin: 28px 0 44px;
}

.stat-row {
    display: flex;
    gap: 22px;
}

.stat-card {
    flex: 1;
    min-width: 0;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background-color: rgba(16, 24, 19, 0.35);
}

.stat-number {
    display: block;
    font-family: var(--heading-font);
    font-size: 56px;
    line-height: 1;
    color: var(--gold);
    margin-bottom: 14px;
}

.stat-card p {
    color: var(--muted);
    font-size: 14px;
}

.stat-note {
    color: var(--muted);
    font-size: 12px;
    font-style: italic;
    margin-top: 24px;
}

.features-preview {
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 70px;
    margin-top: 50px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 60px;
}

.feature:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-img {
    flex: 1.2;
    min-width: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background-color: var(--background);
}

.feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-copy {
    flex: 1;
    min-width: 0;
}

.feature-copy .card-number {
    display: block;
    margin-bottom: 18px;
}

.feature-copy h3 {
    margin-bottom: 16px;
}

.feature-copy p {
    color: var(--muted);
}

.grades-section {
    background-image:
        linear-gradient(
            rgba(16, 24, 19, 0.88),
            rgba(16, 24, 19, 0.92)
        ),
        url("../images/home-background.jpg");
    background-size: cover;
    background-position: center;
    border-top: 1px solid var(--border);
}

.center {
    text-align: center;
}

.grade-row {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-top: 44px;
}

.grade-card {
    flex: 1;
    max-width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 34px 20px;
    text-align: center;
    text-decoration: none;
    border: 1px solid rgba(227, 200, 136, 0.35);
    border-radius: 18px;
    background-color: rgba(227, 200, 136, 0.08);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background-color 0.3s ease,
        box-shadow 0.3s ease;
}

.grade-card:hover, .grade-card:focus-visible {
    border-color: var(--gold);
    background-color: rgba(227, 200, 136, 0.14);
    box-shadow: 0 0 30px rgba(227, 200, 136, 0.25);
}

.grade-label {
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.grade-number {
    font-family: var(--heading-font);
    font-size: 72px;
    line-height: 1;
}

.grade-chapter {
    color: var(--muted);
    font-size: 13px;
}

.waitlist-section {
    background:
        radial-gradient(
            circle at center,
            rgba(227, 200, 136, 0.12),
            transparent 60%
        ),
        var(--background);
    border-top: 1px solid var(--border);
}

.waitlist-box {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.waitlist-text {
    color: var(--muted);
    margin: 20px 0 32px;
}

.button-glow {
    animation: glow 2.5s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 0 rgba(227, 200, 136, 0);
    }

    50% {
        box-shadow: 0 0 24px rgba(227, 200, 136, 0.45);
    }
}

.privacy-note {
    max-width: 480px;
    margin: 28px auto 0;
    color: var(--muted);
    font-size: 12px;
}

.explore-section {
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.card-row {
    display: flex;
    gap: 22px;
    margin-top: 40px;
}

.explore-card {
    flex: 1;
    min-width: 0;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    background-color: rgba(16, 24, 19, 0.25);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

.explore-card:hover {
    border-color: var(--gold);
    background-color: var(--background);
}

.card-number {
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 1.5px;
    margin-bottom: 32px;
}

.explore-card h3 {
    margin-bottom: 20px;
}

.explore-card p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 32px;
}

.card-link {
    color: var(--gold);
    font-size: 13px;
    margin-top: auto;
}

.card-link span {
    display: inline-block;
    margin-left: 6px;
    transition: transform 0.25s ease;
}

.site-footer {
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    padding: 56px 0 40px;
}

.footer-brand {
    flex: 1.5;
    min-width: 0;
}

.footer-brand p {
    max-width: 280px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
}

.footer-col {
    flex: 1;
    min-width: 0;
}

.footer-col h4 {
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--muted);
    font-size: 12px;
}

.can-reveal .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

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

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@media (hover: hover) {
    .button:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
    }

    .button:active {
        transform: scale(0.98);
    }

    .explore-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
    }

    .explore-card:hover .card-link span {
        transform: translate(3px, -3px);
    }

    .feature:hover .feature-img img {
        transform: scale(1.04);
    }

    .grade-card:hover {
        transform: translateY(-6px);
    }
}

@media (max-width: 1000px) {
    .header-content {
        flex-wrap: wrap;
    }

    .intro h1 {
        font-size: 80px;
    }

    .story-layout {
        gap: 40px;
    }

    .card-row {
        flex-wrap: wrap;
    }

    .explore-card {
        flex-basis: 280px;
    }

    .feature {
        gap: 36px;
    }

    .stat-number {
        font-size: 46px;
    }

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

    .footer-brand {
        flex-basis: 100%;
    }
}

@media (max-width: 700px) {
    .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px 0 10px;
    }

    .logo {
        font-size: 25px;
    }

    .header-content > .logo {
        max-width: 100%;
        justify-content: center;
        text-align: center;
    }

    .logo-img {
        width: 28px;
    }

    .button-group {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        padding: 14px 22px;
    }

    #main-nav {
        display: block;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
    }

    #main-nav::-webkit-scrollbar {
        display: none;
    }

    .nav-links {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 20px;
        width: max-content;
        min-width: 100%;
        padding: 8px 6px;
    }

    .nav-links li {
        flex-shrink: 0;
    }

    .nav-links a {
        display: block;
        padding: 8px 0;
        font-size: 13px;
        white-space: nowrap;
    }

    .intro {
        min-height: 600px;
        padding: 64px 0;
    }

    .intro::before {
        background-position: 65% center;
        background-image:
            linear-gradient(
                rgba(10, 18, 14, 0.65),
                rgba(10, 18, 14, 0.85)
            ),
            url("../images/home-background.jpg");
    }

    .intro h1 {
        font-size: 64px;
    }

    .intro-text {
        font-size: 16px;
    }

    .strip-content {
        flex-direction: column;
        gap: 10px;
        padding: 24px 0;
    }

    .strip-content span[aria-hidden] {
        display: none;
    }

    .section {
        padding: 56px 0;
    }

    h2 {
        font-size: 42px;
    }

    .story-layout {
        flex-direction: column;
        gap: 28px;
    }

    .card-row {
        flex-direction: column;
    }

    .explore-card {
        flex-basis: auto;
    }

    .footer-grid {
        flex-direction: column;
        gap: 32px;
        padding: 44px 0 28px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .stat-row {
        flex-direction: column;
    }

    .feature-list {
        gap: 48px;
    }

    .feature, .feature:nth-child(even) {
        flex-direction: column;
        align-items: stretch;
        gap: 22px;
    }

    .feature-img {
        flex: none;
    }

    .grade-row {
        flex-direction: column;
        align-items: center;
    }

    .grade-card {
        width: 100%;
        max-width: 320px;
    }

    .waitlist-box .button {
        display: block;
    }
}

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

    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }

    .button:hover, .button:active, .explore-card:hover {
        transform: none;
    }

    .explore-card:hover .card-link span {
        transform: none;
    }

    .feature:hover .feature-img img, .grade-card:hover {
        transform: none;
    }
}