:root {
    --dark: black;
    --code: #615c58;
    --light-purple: #f2e6fb;
    --bg-gray: white;
    --border-gray: #b7b7b7;
    --light-cream: white;
    --light-grey: #d8d8d8;
    --blueish-grey: #bec6d2;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-gray);
    font-family: 'Jost', sans-serif;
}

/* ══════════════════════════════════════════
   SPLIT LAYOUT
   ══════════════════════════════════════════ */
.split {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 60% 40%;
    max-width: 100vw;
    /* add this */
    overflow-x: hidden;
    /* add this */
    background: ...
}

.left {
    padding: 70px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    /* add this */
}

.left-inner {
    width: 100%;
    max-width: 900px;
    min-width: 0;
    /* change overflow: hidden to this */
}

.right {
    padding: 60px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(900px 600px at 40% 20%, rgba(0, 0, 0, 0.05), transparent 60%),
        linear-gradient(180deg, #fbfbfb, #ffffff);
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    height: 100vh;
}

/* ══════════════════════════════════════════
   LEFT — BRAND / STORY
   ══════════════════════════════════════════ */
.brand-title {
    margin: 0 0 18px 0;
    font-size: 2.4em;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.story-box {
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    margin-bottom: 34px;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-wrap: break-word;
}

.story-box.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ══════════════════════════════════════════
   IMPACT SECTION — ANIMATED
   ══════════════════════════════════════════ */
.section-head {
    margin: 0 0 14px 0;
    font-size: 2.0em;
    font-weight: 750;
    letter-spacing: -0.2px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-head.visible {
    opacity: 1;
    transform: translateY(0);
}

.impact-lines {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin-bottom: 44px;
}

.impact-line {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 14px;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-width: 0;
    flex-wrap: wrap;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s ease;
}

.impact-line.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.impact-line:nth-child(1) {
    transition-delay: 0.08s;
}

.impact-line:nth-child(2) {
    transition-delay: 0.22s;
}

.impact-line:hover {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.10);
}

/* ── ROLLING ODOMETER ── */
.impact-num {
    font-size: 3.5em;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
    display: flex;
    align-items: baseline;
    flex-shrink: 0;
}

.odometer-digit-wrapper {
    display: inline-block;
    height: 1em;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to bottom,
            transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom,
            transparent 0%, black 15%, black 85%, transparent 100%);
}

.odometer-strip {
    display: flex;
    flex-direction: column;
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.odometer-strip span {
    display: block;
    height: 1em;
    line-height: 1;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.odometer-static {
    display: inline-block;
}

.impact-text {
    font-size: 1.15em;
    opacity: 0.85;
}

/* ── ASSIST LINE ── */
.assist-line {
    font-weight: 800;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s;
}

.assist-line.visible {
    opacity: 0.92;
    transform: translateY(0);
}

/* ══════════════════════════════════════════
   COURSE CAROUSEL
   ══════════════════════════════════════════ */
.carousel-viewport {
    max-width: 100%;

    overflow-x: auto;
    /* overflow-x: hidden; */
    /* ← was: overflow-x: auto */
    /* was: overflow: hidden */
    overflow-y: hidden;
    position: relative;
    flex: 1;
    min-width: 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    cursor: grab;
    scrollbar-width: none;
    /* hide scrollbar Firefox */
}

.carousel-viewport::-webkit-scrollbar {
    display: none;
}

/* hide scrollbar Chrome */
.carousel-track {
    display: flex;
    gap: 20px;
    width: max-content;
    /* animation: carousel-scroll var(--carousel-duration, 30s) linear infinite; */
}



.carousel-card {
    flex-shrink: 0;
    font-weight: 400;
    font-size: 0.85em;
    padding: 14px 24px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.05);
    white-space: normal;
    width: 140px;
    line-height: 1.4;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    min-height: 3.2em;
    user-select: none;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.carousel-card strong {
    font-weight: 800;
}

.carousel-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
    transform: translateY(-2px);
}

@keyframes carousel-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.carousel-btn {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    opacity: 0.7;
    line-height: 1;
    padding: 0;
}

.carousel-btn:hover {
    background: white;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.13);
    opacity: 1;
}

.carousel-btn:active {
    transform: scale(0.93);
}

/* ══════════════════════════════════════════
   RIGHT — AUTH CARD
   ══════════════════════════════════════════ */
.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.auth-box {
    background-color: var(--light-cream);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.auth-box h1 {
    text-align: center;
    color: var(--dark);
    margin: 0 0 30px 0;
    font-weight: 600;
    font-size: 30px;
}

.auth-logo {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: grayscale(100%) brightness(0%);
}

.inst-select {
    width: 100%;
    padding: 12px;
    border: 3px solid var(--dark);
    border-radius: 12px;
    outline: none;
    background-color: var(--light-cream);
    font-size: 1em;
    font-family: 'Jost', sans-serif;
    margin-bottom: 15px;
    margin-top: 10px;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: box-shadow 0.2s;
}

.auth-button {
    padding: 12px;
    background-color: var(--dark);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1.1em;
    font-family: 'Jost', sans-serif;
    transition: background-color 0.2s;
    margin-top: 10px;
}

.auth-button:hover {
    background-color: #4d4945;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-form input {
    padding: 12px;
    border: 2px solid var(--dark);
    border-radius: 20px;
    outline: none;
    background-color: var(--light-cream);
    font-size: 1em;
    font-family: 'Jost', sans-serif;
}

.auth-form input:focus {
    box-shadow: 0 0 0 2px var(--light-purple);
}

.tab-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.tab-button {
    background: none;
    border: none;
    color: var(--dark);
    font-family: 'Jost', sans-serif;
    font-size: 1.2em;
    cursor: pointer;
    padding: 5px 15px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-button.active {
    border-bottom: 2px solid var(--dark);
    font-weight: 500;
}

.error-message {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    padding: 10px;
    margin-top: 10px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.success-message {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* ══════════════════════════════════════════
   BOTTOM ROW (assist + scroll indicator)
   ══════════════════════════════════════════ */
.bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    overflow: hidden;
    min-width: 0;
}

/* ══════════════════════════════════════════
   SCROLL INDICATOR
   ══════════════════════════════════════════ */
.scroll-indicator {
    font-size: 1.2em;
    font-weight: 700;
    letter-spacing: -0.3px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.85;
    cursor: pointer;
    transition: opacity 0.25s ease, transform 0.25s ease;
    flex-shrink: 0;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-arrow-img {
    width: 28px;
    height: 28px;
    animation: bounceDown 2.2s infinite;
}

@keyframes bounceDown {
    0% {
        transform: translateY(0);
    }

    20% {
        transform: translateY(10px);
    }

    30% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(5px);
    }

    50%,
    100% {
        transform: translateY(0);
    }
}

/* ══════════════════════════════════════════
   FEATURE SHOWCASE SECTION
   ══════════════════════════════════════════ */
.features-section {
    padding: 100px 20px 120px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background:
        radial-gradient(1200px 600px at 90% 20%, rgba(0, 0, 0, 0.05), transparent 60%),
        linear-gradient(180deg, #ffffff, #fafafa);
}

.features-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.features-title {
    margin: 0 0 40px 0;
    font-size: 2.4em;
    font-weight: 900;
    letter-spacing: -1px;
}

/* ── TABS ── */
/* .features-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
} */

.features-tab {
    background: none;
    border: none;
    font-family: 'Jost', sans-serif;
    font-size: 1.1em;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.45);
    padding: 8px 20px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.features-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--dark);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.features-tab:hover {
    color: rgba(0, 0, 0, 0.7);
}

.features-tab.active {
    color: var(--dark);
    font-weight: 600;
}

.features-tab.active::after {
    transform: scaleX(1);
}

/* ── STAGE (video panels) ── */
.features-stage {
    position: relative;
    width: 100%;
    min-height: 200px;
}

.feature-panel {
    display: none;
    flex-direction: column;
    align-items: center;
    animation: featureFadeIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-panel.active {
    display: flex;
}

@keyframes featureFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

.feature-panel video {
    width: 100%;
    max-width: 820px;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
    background: #000;
    display: block;
}

.feature-caption {
    margin: 24px 0 0 0;
    font-size: 1.1em;
    opacity: 0.7;
    max-width: 520px;
    line-height: 1.5;
}

.features-tabs {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-bottom: 48px;
    /* flex-wrap: wrap; */
}

.features-tab-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 48px;
    /* was: 24px */
}

.features-tab-divider {
    width: 1px;
    background: rgba(0, 0, 0, 0.10);
    align-self: center;
    height: 60px;
    margin: 0 8px;
}

.features-tab-subgroup {
    display: flex;
    flex-wrap: nowrap;
    /* stay on one line */
    justify-content: center;
    gap: 4px;
}

.features-tab-label {
    font-size: 1.4em;
    font-weight: 800;
    letter-spacing: 0px;
    opacity: 1;
    color: black;
}

/* ══════════════════════════════════════════
   CONTACT FOOTER
   ══════════════════════════════════════════ */
.contact-section {
    padding: 80px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(180deg, #f5f5f3, #eeede9);
    color: #1a1a1a;
    text-align: center;
}

.contact-inner {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-title {
    margin: 0;
    font-size: 2em;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #1a1a1a;
}

.contact-text {
    margin: 0;
    font-size: 1.05em;
    opacity: 0.6;
    line-height: 1.6;
}

/* ── FORM ── */
.demo-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.demo-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.demo-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.demo-field label {
    font-size: 0.85em;
    font-weight: 600;
    opacity: 0.6;
    letter-spacing: 0.3px;
}

.demo-field input,
.demo-field textarea {
    padding: 11px 14px;
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    font-family: 'Jost', sans-serif;
    font-size: 1em;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: none;
}

.demo-field input:focus,
.demo-field textarea:focus {
    border-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.demo-submit {
    margin-top: 4px;
    padding: 13px;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Jost', sans-serif;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.demo-submit:hover {
    background: #333;
    transform: translateY(-1px);
}

.demo-submit:active {
    transform: translateY(0);
}

.demo-note {
    margin: 0;
    text-align: center;
    font-size: 0.85em;
    opacity: 0.45;
}

/* ── CONTACT TOGGLE ── */
.contact-toggle {
    display: flex;
    justify-content: center;
    gap: 0;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 4px;
    width: fit-content;
    margin: 0 auto;
}

.contact-toggle-btn {
    background: none;
    border: none;
    font-family: 'Jost', sans-serif;
    font-size: 1em;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.45);
    padding: 10px 28px;
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.contact-toggle-btn.active {
    background: white;
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ── FORM PANELS ── */
.contact-form-panel {
    display: none;
    flex-direction: column;
    gap: 28px;
    animation: featureFadeIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-form-panel.active {
    display: flex;
}

/* ── REASON CHIPS ── */
.contact-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.reason-chip {
    display: flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
}

.reason-chip input[type="checkbox"] {
    display: none;
}

.reason-chip span {
    padding: 8px 16px;
    border-radius: 50px;
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.8);
    font-family: 'Jost', sans-serif;
    font-size: 0.9em;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.55);
    transition: all 0.2s ease;
    user-select: none;
}

.reason-chip input:checked+span {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

.reason-chip:hover span {
    border-color: rgba(0, 0, 0, 0.35);
    color: rgba(0, 0, 0, 0.8);
}

@media (max-width: 600px) {
    .demo-form-row {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════
   MOBILE
   ══════════════════════════════════════════ */
/* @media (max-width: 900px) {
    .split {
        grid-template-columns: 1fr;
    }

    .left {
        padding: 42px 18px;
    }

    .right {
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        position: relative;
        height: auto;
    }

    .impact-num {
        font-size: 3.2em;
    }

    .section-head {
        font-size: 1.6em;
    }

    .impact-lines {
        flex-direction: column;
    }

    .features-tabs {
        gap: 4px;
    }

    .features-tab {
        font-size: 0.95em;
        padding: 8px 12px;
    }
} */
@media (max-width: 900px) {
    .split {
        grid-template-columns: 1fr;
        /* stack left/right vertically */
    }

    .right {
        position: relative;
        /* remove sticky */
        height: auto;
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        padding: 16px 18px;
    }

    .auth-box {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        align-items: center;
        gap: 10px 16px;
        padding: 20px;
    }

    .auth-logo {
        grid-column: 1;
        grid-row: 1 / 3;
        /* spans both rows, sits left */
        width: 80px;
        margin: 0;
    }

    .auth-box h2 {
        display: none;
        /* hide the "Login" text, logo says it all */
    }

    .inst-select {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
        width: 100%;
    }

    .auth-button {
        grid-column: 2;
        grid-row: 2;
        border-radius: 8px;
        margin-top: 0 !important;
        width: 100% !important;
    }

    .features-tab-subgroup {
        flex-wrap: wrap;
        /* allow wrapping only on narrow screens */
    }
}