:root {
    /* Minimalist color palette */
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --text: #0f172a;
    --text-soft: #64748b;
    --text-muted: #94a3b8;

    /* Brand Accents */
    --brand: #ba0c2f; /* WashU Red */
    --brand-hover: #9e0a28;

    /* Geometry */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --container: 1200px;

    /* Shadows - Flat & Subtle */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
    font: inherit;
}

/* Material Icons Setup */
.material-symbols-outlined {
    flex-shrink: 0;
    font-size: 1.25rem;
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* Common Layout Constraints */
.nav__inner,
.hero,
.stats-bar__inner,
.features,
.section-block,
.cta-band,
.footer__inner,
.footer__bar {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

/* Navigation - Clean & Sticky */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav__logo {
    height: 24px;
    width: auto;
}

.nav__sep {
    width: 1px;
    height: 1.5rem;
    background: var(--border);
}

.nav__name {
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}

.nav__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.nav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-soft);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav__link .material-symbols-outlined {
    font-size: 1rem;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn--nav {
    background: var(--bg-soft);
    color: var(--text);
    border-color: var(--border);
}

.btn--nav:hover {
    background: var(--border);
}

.btn--primary {
    background: var(--brand);
    color: white;
}

.btn--primary:hover {
    background: var(--brand-hover);
    transform: translateY(-1px);
}

.btn--ghost {
    background: white;
    color: var(--text);
    border-color: var(--border);
}

.btn--ghost:hover {
    background: var(--bg-soft);
    border-color: var(--border-hover);
}

.btn--cta {
    background: white;
    color: var(--text);
}

.btn--cta:hover {
    background: var(--bg-soft);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
    animation: fade-in 0.6s ease-out;
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-soft);
    margin-bottom: 1.5rem;
}

.hero__badge .material-symbols-outlined {
    font-size: 1rem;
    color: var(--brand);
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin: 0 0 1.25rem 0;
    color: var(--text);
}

.hero__accent {
    color: var(--brand);
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-soft);
    max-width: 480px;
    margin: 0 0 2rem 0;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero__trust {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.hero__trust img {
    height: 24px;
    opacity: 0.6;
    filter: grayscale(100%);
}

/* Chat Demo Visuals */
.hero__visual {
    position: relative;
    width: 100%;
}

.chat-demo {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.chat-demo__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--bg-soft);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.chat-demo__dots {
    display: flex;
    gap: 0.35rem;
}

.chat-demo__dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-hover);
}

.chat-demo__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.chat-demo__title img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.chat-demo__status {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #10b981;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
}

.chat-demo__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.chat-msg {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.chat-msg--user {
    justify-content: flex-end;
}

.chat-msg__av img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.chat-msg__bubble {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    max-width: 85%;
    line-height: 1.5;
}

.chat-msg--bot .chat-msg__bubble {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-bottom-left-radius: 2px;
}

.chat-msg--user .chat-msg__bubble {
    background: var(--text);
    color: white;
    border-bottom-right-radius: 2px;
}

.chat-typing {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.chat-typing__dots {
    display: flex;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    border-bottom-left-radius: 2px;
}

.chat-typing__dots span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typing 1.4s infinite ease-in-out both;
}

.chat-typing__dots span:nth-child(1) {
    animation-delay: -0.32s;
}
.chat-typing__dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.chat-demo__input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.chat-demo__input button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--text);
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-demo__input button:hover {
    background: var(--brand);
}

.chat-demo__input button .material-symbols-outlined {
    font-size: 1.25rem;
}

/* Floating Elements */
.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    z-index: 3;
}

.float-card .material-symbols-outlined {
    font-size: 1.25rem;
    color: var(--brand);
}

.float-card--1 {
    top: -20px;
    right: -20px;
    animation: float 6s ease-in-out infinite;
}

.float-card--2 {
    bottom: -20px;
    left: -20px;
    animation: float 6s ease-in-out infinite reverse;
}

/* Stats Bar */
.stats-bar {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
    padding: 2.5rem 0;
}

.stats-bar__inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-item__n {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.stat-item__l {
    font-size: 0.875rem;
    color: var(--text-soft);
    font-weight: 500;
    margin-top: 0.25rem;
}

.stat-item__sep {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Generic Section Styles */
.section-block {
    padding-top: 6rem;
}

.section-hd {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.section-hd__tag {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.5rem 0;
}

.section-hd h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.03em;
}

/* Features Bento */
.features {
    padding-top: 6rem;
}

.features__hd {
    margin-bottom: 3rem;
}

.features__hd h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0.5rem 0 0 0;
    letter-spacing: -0.03em;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feat-card__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feat-card__pills span {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
    background: white;
    color: var(--text-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-weight: 500;
}

.feat-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.feat-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
}

.feat-card--wide {
    grid-column: span 2;
    background: var(--bg-soft);
}

.feat-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    margin-bottom: 2rem;
}

.feat-card--wide .feat-card__icon {
    background: var(--bg);
}

.feat-card__tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.feat-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
}

.feat-card p {
    color: var(--text-soft);
    margin: 0 0 2rem 0;
    flex-grow: 1;
}

.inline-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 500;
    color: var(--text);
    font-size: 0.95rem;
    transition: gap 0.2s;
    margin-top: auto;
}

.inline-link:hover {
    gap: 0.6rem;
    color: var(--brand);
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-soft);
}

/* CTA Band */
.cta-band {
    padding-top: 6rem;
}

.cta-band__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--text);
    color: white;
    border-radius: var(--radius-lg);
    padding: 3.5rem 4rem;
}

.cta-band__inner h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.cta-band__inner p {
    color: #94a3b8;
    margin: 0;
    font-size: 1.125rem;
    max-width: 500px;
}

/* Footer */
.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    margin-top: 6rem;
    padding-top: 4rem;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer__brand {
    max-width: 320px;
}

.footer__logo {
    height: 28px;
    margin-bottom: 1.5rem;
    filter: grayscale(100%) opacity(0.8);
}

.footer__brand p {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer__brand p a,
.hero__trust a {
    color: var(--text-soft);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.footer__brand p a:hover,
.hero__trust a:hover {
    color: var(--brand);
}

.footer__cols {
    display: flex;
    gap: 4rem;
}

.footer__col h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 1.25rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer__col a {
    display: block;
    color: var(--text-soft);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

.footer__col a:hover {
    color: var(--brand);
}

.footer__bar {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Chatbot Launcher */
.chat-launcher {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1000001;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.chat-launcher__fab,
.chat-launcher__option {
    appearance: none;
    border: none;
    cursor: pointer;
    font: inherit;
}

.chat-launcher__fab {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--brand);
    color: white;
    box-shadow: 0 16px 40px rgb(15 23 42 / 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.chat-launcher__fab:hover {
    background: var(--brand-hover);
    transform: translateY(-2px);
    box-shadow: 0 20px 48px rgb(15 23 42 / 0.26);
}

.chat-launcher__fab:focus-visible,
.chat-launcher__option:focus-visible {
    outline: 3px solid rgb(186 12 47 / 0.28);
    outline-offset: 3px;
}

.chat-launcher__fab:disabled,
.chat-launcher__option:disabled {
    cursor: wait;
    opacity: 0.72;
}

.chat-launcher__spinner {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid rgb(255 255 255 / 0.45);
    border-top-color: white;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.85);
    animation: chat-launcher-spin 0.75s linear infinite;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.chat-launcher.is-loading .chat-launcher__spinner {
    opacity: 1;
    transform: scale(1);
}

.chat-launcher.is-loading .chat-launcher__icon {
    opacity: 0;
    transform: scale(0.75);
}

.chat-launcher__icon {
    position: absolute;
    font-size: 1.85rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.chat-launcher__icon--chat {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.chat-launcher__icon--close {
    opacity: 0;
    transform: rotate(-90deg) scale(0.75);
}

.chat-launcher.is-open .chat-launcher__icon--chat,
.chat-launcher.is-chat-open .chat-launcher__icon--chat {
    opacity: 0;
    transform: rotate(90deg) scale(0.75);
}

.chat-launcher.is-open .chat-launcher__icon--close,
.chat-launcher.is-chat-open .chat-launcher__icon--close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.chat-launcher__menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.625rem;
    opacity: 0;
    transform: translateY(0.75rem) scale(0.96);
    transform-origin: bottom right;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.chat-launcher.is-open .chat-launcher__menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.chat-launcher__option {
    min-width: 168px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    font-weight: 700;
    line-height: 1.1;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-launcher__option:hover {
    color: var(--brand);
    border-color: rgb(186 12 47 / 0.34);
    transform: translateX(-2px);
    box-shadow: 0 12px 26px rgb(15 23 42 / 0.12);
}

.chat-launcher__option .material-symbols-outlined {
    width: 1.25rem;
    color: var(--brand);
    font-size: 1.25rem;
}

.chat-launcher__status {
    display: none;
    max-width: min(260px, calc(100vw - 3rem));
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    background: var(--text);
    color: white;
    box-shadow: var(--shadow-md);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
}

.chat-launcher.has-status .chat-launcher__status {
    display: block;
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typing {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes chat-launcher-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive constraints */
@media (max-width: 1024px) {
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .feat-card--wide {
        grid-column: span 2;
    }
    .cta-band__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        padding: 3rem 2.5rem;
    }
    .footer__inner {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .features__grid {
        grid-template-columns: 1fr;
    }
    .feat-card--wide {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .nav__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    .hero__content {
        align-items: center;
        text-align: center;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero__actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }
    .hero__trust {
        justify-content: center;
    }
    .nav__actions {
        width: 100%;
        justify-content: space-between;
    }
    .stats-bar__inner {
        flex-direction: column;
        gap: 2rem;
    }
    .stat-item__sep {
        width: 60%;
        height: 1px;
    }
    .section-hd {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .footer__cols {
        flex-direction: column;
        gap: 2rem;
    }
    .footer__bar {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    .chat-launcher {
        right: 1rem;
        bottom: 1rem;
    }
    .chat-launcher__fab {
        width: 58px;
        height: 58px;
    }
    .chat-launcher__option {
        min-width: min(190px, calc(100vw - 2rem));
    }
}
