:root {
    --stone-0: #fffdf8;
    --stone-50: #f8f5ee;
    --stone-100: #f2ede3;
    --stone-150: #ebe4d6;
    --stone-200: #ddd5c6;
    --stone-400: #8f8778;
    --stone-700: #37322b;
    --stone-900: #221f1a;
    --green-300: #9ad45f;
    --green-500: #78b92c;
    --green-700: #4e7c13;
    --navy-800: #1f2a44;
    --navy-900: #121b2f;
    --radius-xl: 36px;
    --radius-lg: 26px;
    --radius-md: 18px;
    --shadow-soft: 0 18px 40px rgba(34, 31, 26, 0.05);
    --content-width: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(120, 185, 44, 0.09), transparent 28%),
        linear-gradient(180deg, #fbf9f4 0%, var(--stone-50) 100%);
    color: var(--stone-900);
    font-family: "IBM Plex Sans", sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.28)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='rgba(34,31,26,0.05)' stroke-width='1'%3E%3Cpath d='M0 40h160M0 80h160M0 120h160'/%3E%3Cpath d='M40 0v160M80 0v160M120 0v160'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

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

.site-shell {
    padding: 0 20px 36px;
}

.site-frame {
    max-width: var(--content-width);
    margin: 0 auto;
    background: rgba(248, 245, 238, 0.9);
    border-left: 1px solid var(--stone-200);
    border-right: 1px solid var(--stone-200);
}

.masthead {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    min-height: 78px;
    padding: 14px 28px;
    border-bottom: 1px solid var(--stone-200);
    backdrop-filter: blur(18px);
    background: rgba(248, 245, 238, 0.88);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
}

.brand-word {
    font-family: "Fraunces", serif;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.brand-mark {
    position: relative;
    display: inline-flex;
    width: 42px;
    height: 32px;
}

.brand-mark span {
    position: absolute;
    width: 20px;
    height: 27px;
    border-radius: 8px;
    border: 1px solid rgba(34, 31, 26, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #eef6e2 100%);
    box-shadow: 0 2px 6px rgba(34, 31, 26, 0.08);
}

.brand-mark span:nth-child(1) {
    left: 0;
    bottom: 0;
    transform: rotate(-16deg);
}

.brand-mark span:nth-child(2) {
    left: 11px;
    bottom: 3px;
}

.brand-mark span:nth-child(3) {
    left: 22px;
    bottom: 0;
    transform: rotate(16deg);
}

.masthead-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    justify-self: center;
    width: fit-content;
    padding: 6px;
    border: 1px solid var(--stone-200);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.92);
}

.masthead-nav a,
.header-cta,
.chip,
.window-pill,
.signal-label,
.process-number,
.feature-eyebrow,
.screen-label,
.curriculum-levels,
.footer-label,
.section-kicker,
.metric-label,
.asset-placeholder-label {
    font-family: "IBM Plex Mono", monospace;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.masthead-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--stone-700);
    font-size: 0.79rem;
}

.masthead-nav a:hover {
    background: var(--stone-100);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(120, 185, 44, 0.25);
    background: rgba(120, 185, 44, 0.16);
    color: var(--green-700);
    font-size: 0.78rem;
    font-weight: 600;
}

main {
    display: block;
}

.hero-grid,
.section-block,
.signal-bar,
.final-call,
.footer {
    border-bottom: 1px solid var(--stone-200);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
    gap: 0;
}

.hero-copy,
.hero-stage,
.section-block,
.signal-bar,
.final-call,
.footer {
    padding: 34px 28px;
}

.hero-copy {
    border-right: 1px solid var(--stone-200);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 720px;
}

.section-kicker {
    color: var(--green-700);
    font-size: 0.78rem;
    font-weight: 600;
}

.hero-copy h1,
.section-head h2,
.final-call h2 {
    margin: 18px 0 0;
    font-family: "Fraunces", serif;
    font-size: clamp(3.3rem, 6vw, 5.9rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    font-weight: 700;
    max-width: 12ch;
}

.hero-copy h1 em {
    font-style: italic;
    font-weight: 500;
    color: var(--green-700);
}

.hero-text,
.section-head p,
.feature-card p,
.process-card p,
.metric-card p,
.spotlight-card p,
.final-call p,
.asset-placeholder p,
.screen-card p {
    color: var(--stone-400);
    line-height: 1.7;
}

.hero-text {
    max-width: 60ch;
    margin: 22px 0 0;
    font-size: 1.06rem;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button-primary {
    background: var(--green-500);
    color: white;
}

.button-secondary {
    border: 1px solid var(--stone-200);
    background: rgba(255, 253, 248, 0.88);
    color: var(--stone-900);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--stone-200);
    background: rgba(255, 253, 248, 0.88);
    color: var(--stone-700);
    font-size: 0.72rem;
}

.hero-stage {
    display: flex;
    align-items: stretch;
}

.stage-window {
    width: 100%;
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(242, 237, 227, 0.94));
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.stage-window-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--stone-200);
}

.window-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: white;
    border: 1px solid var(--stone-200);
    color: var(--stone-700);
    font-size: 0.7rem;
}

.window-pill-muted {
    color: var(--stone-400);
}

.stage-canvas {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.65fr);
    min-height: 620px;
}

.phone-placeholder {
    padding: 26px;
    border-right: 1px solid var(--stone-200);
    background:
        radial-gradient(circle at top right, rgba(120, 185, 44, 0.12), transparent 32%),
        linear-gradient(180deg, #f5f0e8 0%, #ebe5da 100%);
}

.phone-notch {
    width: 110px;
    height: 20px;
    margin: 0 auto -10px;
    border-radius: 0 0 18px 18px;
    background: var(--stone-900);
}

.phone-screen {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: min(100%, 360px);
    min-height: 520px;
    margin: 0 auto;
    padding: 28px 22px 22px;
    border-radius: 40px;
    border: 1px solid rgba(18, 27, 47, 0.08);
    background: rgba(255, 253, 248, 0.96);
    box-shadow: 0 24px 46px rgba(34, 31, 26, 0.12);
}

.screen-card {
    padding: 18px;
    border-radius: 24px;
    border: 1px solid var(--stone-200);
    background: rgba(255, 255, 255, 0.88);
}

.screen-card strong {
    display: block;
    margin-top: 10px;
    font-size: 1.08rem;
    line-height: 1.2;
}

.screen-card-dark {
    background: linear-gradient(140deg, var(--navy-900), var(--navy-800));
    border-color: transparent;
    color: white;
}

.screen-card-dark .screen-label,
.screen-card-dark p {
    color: rgba(255, 255, 255, 0.7);
}

.screen-stack {
    display: grid;
    gap: 14px;
}

.screen-label,
.metric-label,
.signal-label,
.feature-eyebrow,
.curriculum-levels,
.footer-label,
.asset-placeholder-label {
    font-size: 0.7rem;
    color: var(--stone-400);
}

.placeholder-banner {
    margin-top: auto;
    padding: 16px;
    border-radius: 22px;
    border: 1px dashed rgba(120, 185, 44, 0.45);
    background: rgba(120, 185, 44, 0.11);
    color: var(--green-700);
    font-weight: 600;
    line-height: 1.5;
}

.stage-sidebar {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 22px;
    background: rgba(255, 253, 248, 0.65);
}

.metric-card,
.feature-card,
.process-card,
.curriculum-card,
.spotlight-card,
.asset-placeholder,
.signal-item {
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-lg);
    background: var(--stone-0);
    box-shadow: var(--shadow-soft);
}

.metric-card {
    padding: 18px;
}

.metric-value,
.curriculum-count {
    font-family: "Fraunces", serif;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.metric-label {
    margin-top: 10px;
}

.metric-card p {
    margin: 10px 0 0;
    font-size: 0.95rem;
}

.asset-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    padding: 22px;
    border-style: dashed;
    background:
        linear-gradient(180deg, rgba(255, 253, 248, 0.88), rgba(242, 237, 227, 0.9));
}

.asset-placeholder-large {
    min-height: 100%;
}

.signal-grid,
.process-grid,
.feature-grid,
.curriculum-grid,
.footer {
    display: grid;
    gap: 18px;
}

.signal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.signal-item {
    padding: 18px 20px;
}

.signal-item strong {
    display: block;
    margin-top: 10px;
    font-size: 1rem;
    line-height: 1.45;
    font-weight: 600;
}

.section-block,
.signal-bar,
.final-call {
    background: rgba(248, 245, 238, 0.85);
}

.section-block-alt {
    background: rgba(242, 237, 227, 0.7);
}

.section-head {
    max-width: 860px;
}

.section-head h2,
.final-call h2 {
    font-size: clamp(2.5rem, 5vw, 4.35rem);
    line-height: 0.98;
    max-width: 15ch;
}

.section-head p,
.final-call p {
    margin: 18px 0 0;
    max-width: 64ch;
    font-size: 1.02rem;
}

.process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
}

.process-card {
    padding: 22px;
}

.process-number {
    color: var(--green-700);
    font-size: 0.86rem;
    font-weight: 600;
}

.process-card h3,
.feature-card h3,
.spotlight-card h3,
.curriculum-language {
    margin: 16px 0 0;
    font-size: 1.45rem;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
    gap: 18px;
    margin-top: 28px;
}

.spotlight-card {
    padding: 24px;
}

.spotlight-card-strong {
    background: linear-gradient(180deg, #fffdf8 0%, #f1ecdf 100%);
}

.cluster-list {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.cluster-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--stone-200);
    background: rgba(255, 255, 255, 0.8);
}

.cluster-term {
    font-size: 1.18rem;
    font-weight: 600;
}

.cluster-meaning {
    color: var(--stone-400);
}

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
}

.feature-card {
    padding: 22px;
}

.feature-card p,
.process-card p,
.spotlight-card p {
    margin: 14px 0 0;
}

.screenshot-strip .placeholder-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 18px;
    margin-top: 28px;
}

.asset-placeholder-wide {
    min-height: 280px;
}

.curriculum-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
}

.curriculum-card {
    padding: 22px;
}

.curriculum-levels {
    margin-top: 10px;
}

.curriculum-count {
    margin-top: 20px;
}

.final-call {
    text-align: left;
}

.final-call h2 {
    max-width: 15ch;
}

.footer {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
}

.footer-brand-block {
    display: grid;
    gap: 14px;
}

.footer-note {
    margin: 0;
    color: var(--stone-400);
}

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

.footer-links div {
    display: grid;
    gap: 10px;
}

.footer-links a,
.footer-links span:not(.footer-label) {
    color: var(--stone-700);
}

@media (max-width: 1080px) {
    .hero-grid,
    .stage-canvas,
    .spotlight-grid,
    .screenshot-strip .placeholder-grid,
    .footer,
    .feature-grid,
    .curriculum-grid,
    .signal-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--stone-200);
    }

    .phone-placeholder {
        border-right: 0;
        border-bottom: 1px solid var(--stone-200);
    }

    .section-head h2,
    .final-call h2,
    .hero-copy h1 {
        max-width: none;
    }
}

@media (max-width: 820px) {
    .site-shell {
        padding: 0;
    }

    .site-frame {
        border-left: 0;
        border-right: 0;
    }

    .masthead {
        grid-template-columns: auto auto;
        padding: 14px 18px;
    }

    .masthead-nav {
        display: none;
    }

    .hero-copy,
    .hero-stage,
    .section-block,
    .signal-bar,
    .final-call,
    .footer {
        padding: 26px 18px;
    }

    .phone-screen {
        width: 100%;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}
