@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@500;600&display=swap');

:root {
    --bg: #0d1224;
    --panel: rgba(15, 23, 42, 0.74);
    --card: #0f172a;
    --muted: #cbd5e1;
    --text: #e2e8f0;
    --accent: #38bdf8;
    --accent-2: #f59e0b;
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(255, 255, 255, 0.06);
    --radius: 14px;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

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

body {
    margin: 0;
    background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.08), transparent 20%),
                radial-gradient(circle at 80% 0%, rgba(245, 158, 11, 0.08), transparent 25%),
                var(--bg);
    color: var(--text);
    font-family: 'Inter', 'Helvetica Neue', Arial, system-ui, sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Inter', 'Helvetica Neue', Arial, system-ui, sans-serif;
    font-weight: 750;
    margin: 0;
    letter-spacing: -0.015em;
}

p {
    margin: 0;
    color: var(--muted);
}

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

.page {
    width: 100%;
    min-height: 100vh;
}

/* NAV */
.nav {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    backdrop-filter: blur(14px);
    background: rgba(13, 18, 36, 0.8);
    border-bottom: 1px solid var(--border);
}

.hero.full-height {
    position: relative;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: #e2e8f0;
    padding: 8px 10px;
    font-weight: 700;
    cursor: pointer;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, #38bdf8, #ec4899);
    color: #0b1224;
    font-weight: 800;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(14, 165, 233, 0.18);
    letter-spacing: -0.04em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-links a {
    padding: 10px 12px;
    color: var(--muted);
    border-radius: 10px;
    border: 1px solid transparent;
    transition: 0.2s ease;
    font-weight: 600;
}

.nav-links a:hover {
    color: #fff;
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.nav-links .pill {
    background: linear-gradient(120deg, #38bdf8, #0ea5e9);
    color: #0b1224;
    border: none;
    padding: 10px 16px;
    box-shadow: 0 12px 32px rgba(56, 189, 248, 0.3);
}

/* HERO */
.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 24px 72px;
    animation: fadePage 0.6s ease forwards;
}

.full-height {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orb {
    position: absolute;
    width: 360px;
    height: 360px;
    filter: blur(120px);
    opacity: 0.6;
    z-index: 0;
}

.orb-left {
    background: #0ea5e9;
    left: -120px;
    top: -60px;
}

.orb-right {
    background: #ec4899;
    right: -160px;
    bottom: -80px;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.hero-copy h1 {
    font-size: clamp(2.2rem, 3.6vw, 3.1rem);
    margin: 6px 0 10px;
    line-height: 1.05;
}

.hero .lede {
    font-size: 1.05rem;
    margin-bottom: 26px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
    color: #8bd9ff;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta.primary {
    background: linear-gradient(120deg, #38bdf8, #0ea5e9);
    color: #0b1224;
    box-shadow: 0 18px 46px rgba(56, 189, 248, 0.35);
}

.cta.primary.dark {
    color: #06111f;
}

.cta.ghost {
    border-color: var(--border);
    color: #dbeafe;
    background: transparent;
}

.cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 50px rgba(56, 189, 248, 0.2);
}

.hero-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-tags span {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: #e2e8f0;
}

.hero-panel {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(14, 165, 233, 0.08));
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

.panel-header h3 {
    margin-top: 4px;
}

.tiny {
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    color: #9db2ce;
    text-transform: uppercase;
}

.badge {
    background: rgba(56, 189, 248, 0.16);
    color: #e0f2fe;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 700;
    border: 1px solid rgba(56, 189, 248, 0.4);
}

.throb {
    animation: throb 1.1s ease-in-out infinite;
}

.badge.throb {
    background: rgba(236, 72, 153, 0.18);
    border-color: rgba(236, 72, 153, 0.5);
    color: #ffe4f1;
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.35);
}
.badge.ghost {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border);
}

.panel-chat,
.experience-chat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 220px;
}

.panel-chat {
    height: 240px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.lang-switch label {
    font-size: 0.9rem;
    color: #cbd5e1;
}

.lang-switch select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: #e2e8f0;
    border-radius: 10px;
    padding: 6px 10px;
}

.panel-chat::-webkit-scrollbar {
    width: 8px;
}

.panel-chat::-webkit-scrollbar-track {
    background: transparent;
}

.panel-chat::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 12px;
}

.panel-chat::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.24);
}

.thinking .dots {
    display: inline-flex;
    gap: 4px;
}

.thinking .dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e5e7eb;
    animation: bounce 1s infinite ease-in-out;
}

.thinking .dots span:nth-child(2) { animation-delay: 0.15s; }
.thinking .dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

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

@keyframes fadePage {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bubble {
    padding: 12px 14px;
    border-radius: 12px;
    line-height: 1.5;
    font-size: 0.97rem;
    opacity: 0;
    transform: translateY(6px);
    animation: fadeSlide 0.35s ease forwards;
}

.bubble code,
.bubble pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Courier New", monospace;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    display: block;
    color: #e5e7eb;
    margin: 10px 0 4px;
    white-space: pre;
    overflow-x: auto;
}

.bubble pre {
    margin: 12px 0 6px;
}

.rating-bubble {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
}

.rating-title {
    font-weight: 700;
    margin-bottom: 8px;
    color: #e5e7eb;
}

.rating-scale {
    display: inline-flex;
    gap: 8px;
    font-size: 1.1rem;
    user-select: none;
}

.rating-scale span {
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* TABLE / DASHBOARD */
.carousel-nav {
    display: inline-flex;
    gap: 10px;
    margin-bottom: 16px;
}

.dash-tab {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #e5e7eb;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.dash-tab.active {
    background: rgba(56, 189, 248, 0.16);
    border-color: rgba(56, 189, 248, 0.5);
    color: #0f172a;
}

.view-toggle {
    display: flex;
    gap: 10px;
    margin: 10px auto 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 6px;
    justify-content: center;
    width: fit-content;
}

.view-btn {
    border: none;
    background: transparent;
    color: #cbd5e1;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.view-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.dash-view {
    display: none;
}

.dash-view.active {
    display: block;
}

.carousel {
    position: relative;
}

.carousel-pane {
    display: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.carousel-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.table-card {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.table-head,
.table-row {
    display: grid;
    grid-template-columns: 2fr 1.6fr 1.2fr;
    padding: 14px 16px;
    align-items: center;
    gap: 10px;
}

.table-head {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.01em;
}

.table-row {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    color: #d9e2f1;
}

.table-row:nth-child(odd) {
    background: rgba(255, 255, 255, 0.04);
}

.viva-cell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.viva-status {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    display: inline-block;
}

.viva-status.yes {
    background: #22d3ee;
}

.viva-status.no {
    background: #f87171;
}

.pill.yes,
.pill.no {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid transparent;
}

.pill.yes {
    background: rgba(56, 189, 248, 0.16);
    color: #e0f2fe;
    border-color: rgba(56, 189, 248, 0.35);
}

.pill.no {
    background: rgba(248, 113, 113, 0.16);
    color: #fee2e2;
    border-color: rgba(248, 113, 113, 0.35);
}

.link {
    color: #a5d8ff;
    text-decoration: none;
    font-weight: 700;
}

.link.disabled {
    color: #8a9bb5;
    cursor: not-allowed;
}

.flag {
    font-weight: 700;
}

.flag.none {
    color: #c8e6c9;
}

.flag.warn {
    color: #f59e0b;
}

.flag.mild {
    color: #f59e0b;
}

.flag.watch {
    color: #fda4af;
}

.table-note {
    color: #9fb5cf;
    margin: 12px auto 0;
    font-size: 0.9rem;
    text-align: center;
}

.transcript-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.transcript-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.transcript-head h4 {
    margin: 4px 0 0;
}

.transcript-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.icon-btn {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    border-radius: 10px;
    padding: 6px 10px;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.transcript-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #cfd8e3;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.transcript-chat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    max-height: 320px;
    overflow-y: auto;
}

.transcript-chat .bubble {
    opacity: 1;
    transform: none;
    animation: none;
}

.msg-flag {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.78rem;
    padding: 4px 6px;
    border-radius: 8px;
    background: rgba(248, 113, 113, 0.18);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fee2e2;
}

.transcript-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.link.ghost-link {
    color: #e5e7eb;
    border: 1px solid var(--border);
    padding: 6px 10px;
    border-radius: 8px;
}

.divider {
    border: 0;
    border-top: 1px solid var(--border);
    opacity: 0.6;
    width: 100%;
    margin: 24px 0 0;
}

.transcript-layout {
    display: grid;
    gap: 14px;
    grid-template-columns: 2fr 1fr;
    align-items: start;
}

.transcript-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.event-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: grid;
    gap: 8px;
    color: #dbeafe;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.dot.ok {
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
}

.dot.warn {
    background: #f59e0b;
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.12);
}

.feedback-block {
    margin-top: 6px;
    color: #e5e7eb;
    display: grid;
    gap: 6px;
}

.feedback-block strong {
    color: #c7d2fe;
}

@media (max-width: 900px) {
    .transcript-layout {
        grid-template-columns: 1fr;
    }

    .table-head,
    .table-row {
        grid-template-columns: 1.4fr 1.2fr 1fr;
        font-size: 0.9rem;
    }

    .table-card {
        padding: 0 6px;
    }

    .transcript-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .transcript-head {
        align-items: flex-start;
    }

    .settings-row.split {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

.section.spotlight#dashboard {
    margin-top: 40px;
}
.bubble.ai {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
}

.bubble.user {
    align-self: flex-end;
    background: rgba(14, 165, 233, 0.16);
    border: 1px solid rgba(14, 165, 233, 0.4);
    color: #e0f2fe;
}

.bubble.user.alt {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.36);
}

.bubble.system {
    background: rgba(234, 179, 8, 0.14);
    border: 1px dashed rgba(234, 179, 8, 0.5);
    color: #facc15;
    font-style: italic;
}

.msg-ts {
    margin-left: auto;
    color: #94a3b8;
    font-size: 0.8rem;
    padding-left: 8px;
}

.key-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
    color: #cfd8e3;
    font-size: 0.95rem;
}

.key-list li {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.transcript-key {
    margin-top: 12px;
    max-width: 620px;
}

.subhead {
    text-align: center;
    margin: 28px auto 18px;
}

.panel-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-top: 6px;
    gap: 12px;
}

.simulation-note {
    color: #9fb5cf;
    font-size: 0.9rem;
    margin: 6px 0 10px;
}

.controls {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.controls-inner {
    display: inline-flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.control-btn {
    padding: 8px 12px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #dbeafe;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.8rem;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.control-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.14);
}

.control-btn.ghost {
    background: rgba(255, 255, 255, 0.02);
}

.meta {
    font-size: 0.9rem;
    color: #9fb5cf;
}

.ghost-btn {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    padding: 10px 14px;
    border-radius: 10px;
}

.input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-shell {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    min-width: 0;
}

.input-shell input {
    flex: 1;
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-size: 0.95rem;
    outline: none;
}

.input-shell.disabled,
.input-shell input:disabled {
    opacity: 0.4;
}

.input-shell.disabled .input-caret {
    display: none;
}

.disabled input {
    cursor: not-allowed;
}

.input-caret {
    width: 10px;
    height: 18px;
    border-left: 2px solid transparent;
}

.send-btn {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    cursor: not-allowed;
}

.send-btn.throb {
    background: linear-gradient(120deg, #ec4899, #f472b6);
    color: #0b1224;
    border-color: rgba(236, 72, 153, 0.6);
    cursor: pointer;
}

/* Loader state */
.loader-row {
    display: none !important; /* hide footer loader; loader bubble is shown in chat instead */
}

.loader-dots {
    display: inline-flex;
    gap: 4px;
}

.loader-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f9a8d4;
    animation: pulse 1.1s infinite ease-in-out;
}

.loader-dots span:nth-child(2) { animation-delay: 0.14s; }
.loader-dots span:nth-child(3) { animation-delay: 0.28s; }

.loader-text {
    color: #e8ecf5;
    letter-spacing: 0.01em;
}

.fade-out {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

@keyframes throb {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.3); }
    50% { transform: scale(1.04); box-shadow: 0 0 0 8px rgba(236, 72, 153, 0.12); }
}

@keyframes pulse {
    0%, 100% { transform: scale(0.8); opacity: 0.6; }
    50% { transform: scale(1); opacity: 1; }
}

@keyframes blink {
    to { visibility: hidden; }
}

/* SECTIONS */
.section {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-head {
    max-width: 860px;
    margin: 0 auto 40px;
    text-align: center;
}

.section-head h2 {
    margin: 8px 0 8px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.section-head .lede {
    color: var(--muted);
    margin: 0 auto;
}

.alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.spotlight {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 90px 32px;
    margin: 60px auto;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.flow-grid,
.pillar-grid,
.trust-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.flow-card,
.pillar-card,
.trust-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: left;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    height: 100%;
}

.flow-streams {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: stretch;
}

.flow-stream {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
}

.flow-label {
    color: #9fb5cf;
    margin-bottom: 8px;
}

.flow-label.student {
    color: #67e8f9;
}

.flow-label.teacher {
    color: #f9a8d4;
}

.flow-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    grid-auto-rows: 1fr;
    flex: 1;
}

.flow-stream:nth-child(1) .flow-card {
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.08), rgba(14, 165, 233, 0.02));
    border-color: rgba(14, 165, 233, 0.25);
}

.flow-stream:nth-child(2) .flow-card {
    background: linear-gradient(145deg, rgba(236, 72, 153, 0.08), rgba(236, 72, 153, 0.02));
    border-color: rgba(236, 72, 153, 0.25);
}

@media (max-width: 900px) {
    .flow-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

.flow-card h3,
.pillar-card h3,
.trust-card h3 {
    margin: 8px 0 10px;
    color: #e5e7eb;
}

.step {
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.1em;
    font-size: 0.85rem;
}

.pillar-grid {
    margin-top: 24px;
}

.challenge-grid .pillar-card {
    position: relative;
    overflow: hidden;
}

.icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.challenge-grid .pillar-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.challenge-grid .pillar-card .muted {
    color: #9fb5cf;
    margin-top: 6px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 20px;
    align-items: stretch;
}

.price-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
}

.price-card.highlight {
    border-color: rgba(246, 96, 164, 0.6);
    box-shadow: 0 14px 32px rgba(246, 96, 164, 0.25);
}

.price-top h3 {
    font-size: 2rem;
    margin: 2px 0;
}

.price-sub {
    color: #9fb5cf;
    margin: 0;
}

.price-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.price-points li {
    color: #dbeafe;
    font-size: 0.95rem;
}

.price-card .cta {
    margin-top: auto;
    align-self: flex-start;
}

.price-footnote {
    margin-top: 12px;
    color: #94a3b8;
    font-size: 0.9rem;
}

.logo-strip {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    padding: 12px 0;
    position: relative;
}

.logo-track {
    display: flex;
    gap: 24px;
    align-items: center;
    animation: logo-marquee 28s linear infinite;
    padding-left: 12px;
}

.logo-card {
    flex: 0 0 auto;
    min-width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
}

.logo-img {
    max-height: 70px;
    max-width: 140px;
    object-fit: contain;
}

@keyframes logo-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.price-compare {
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px;
}

.price-compare ul {
    list-style: disc;
    padding-left: 18px;
    margin: 6px 0 0;
    color: #cbd5e1;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 12, 23, 0.65);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 40;
}

.modal-overlay.open {
    display: flex;
}

.modal {
    background: #0b1727;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    max-width: 720px;
    width: 100%;
    padding: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.modal-close {
    background: none;
    border: none;
    color: #e2e8f0;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
}

.modal-sub {
    color: #9fb5cf;
    margin-top: 6px;
}

.modal-form,
.modal-success {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-success {
    display: none;
}

.modal-success.visible {
    display: flex;
}

.modal-overlay.holiday .modal {
    max-width: 520px;
}

.modal-overlay.holiday.open {
    display: flex;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-row.split {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.modal-form label span {
    display: block;
    color: #cbd5e1;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
    color: #e2e8f0;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
}

.form-note {
    color: #94a3b8;
    font-size: 0.9rem;
}

.modal-success p {
    color: #e2e8f0;
    margin: 0;
}

.floating-cta {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 45;
    background: linear-gradient(120deg, #38bdf8, #0ea5e9);
    color: #0b1224;
    border: none;
    border-radius: 14px;
    padding: 16px 22px;
    font-weight: 750;
    box-shadow: 0 20px 50px rgba(56, 189, 248, 0.38);
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    min-width: 220px;
    text-align: left;
}

.floating-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 56px rgba(56, 189, 248, 0.5);
}

.floating-cta:active {
    transform: translateY(0);
}

.floating-cta.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    animation: pop-in 0.4s ease;
}

.floating-cta small {
    display: block;
    font-weight: 600;
    font-size: 0.78rem;
    color: #0b1224;
    opacity: 0.9;
}

.floating-cta-close {
    position: absolute;
    right: 10px;
    top: 8px;
    font-size: 1.1rem;
    color: rgba(6, 17, 31, 0.7);
    cursor: pointer;
    padding: 4px;
}

.floating-cta.hidden {
    display: none;
}

@keyframes pop-in {
    0% { transform: translateY(10px) scale(0.96); opacity: 0; }
    60% { transform: translateY(-2px) scale(1.02); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* EXPERIENCE */
.experience {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: stretch;
}

.experience-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(14, 165, 233, 0.06));
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.experience-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.experience-foot {
    margin-top: 16px;
    display: grid;
    gap: 8px;
}

.meta-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.1);
}

.experience-list {
    display: grid;
    gap: 12px;
}

.list-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.pill {
    display: inline-block;
    background: rgba(56, 189, 248, 0.14);
    color: #e0f2fe;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    margin-bottom: 6px;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

/* TRUST */
.trust-grid {
    margin-top: 14px;
}

/* CTA */
.cta {
    text-align: left;
}

.cta-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    border-radius: 22px;
    color: #03101f;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-shadow: 0 25px 60px rgba(56, 189, 248, 0.45);
}

.cta-inner h2 {
    color: #03101f;
    margin: 4px 0 10px;
}

.cta-inner .lede {
    color: #072031;
}

.cta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cta.light,
.cta .light {
    color: #dceeff;
}

.cta .ghost.light {
    border-color: rgba(3, 16, 31, 0.2);
    color: #072031;
    background: rgba(255, 255, 255, 0.16);
}

/* FOOTER */
.footer {
    padding: 40px 24px 50px;
    text-align: center;
    color: #9fb5cf;
    font-size: 0.95rem;
    border-top: 1px solid var(--border);
    margin-top: 50px;
}

.fade {
    opacity: 0;
    transition: opacity 0.8s ease;
}

@media (max-width: 768px) {
    .nav {
        position: sticky;
        flex-wrap: wrap;
        gap: 10px;
        padding: 14px 16px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 0 4px;
        border-top: 1px solid var(--border);
        display: none;
    }

    .nav-links.open {
        display: flex;
    }

    .hero {
        padding-top: 70px;
    }

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

    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .controls {
        justify-content: center;
    }
}
.settings-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.settings-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.settings-card h3 {
    margin: 0 0 10px;
}

.settings-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
    color: #dbeafe;
}

.settings-form-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    display: grid;
    gap: 12px;
}

.settings-row {
    display: grid;
    gap: 6px;
}

.settings-row.split {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.settings-row label {
    font-weight: 700;
    color: #e5e7eb;
}

.settings-row input,
.settings-row select,
.settings-row textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: #e5e7eb;
    font-size: 0.95rem;
}

.settings-row textarea {
    resize: vertical;
}

.resource-table {
    margin-top: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    color: #e5e7eb;
}

.resource-head,
.resource-row {
    display: grid;
    grid-template-columns: 2fr 1fr 0.8fr;
    padding: 10px 12px;
    align-items: center;
}

.resource-head {
    background: rgba(255, 255, 255, 0.06);
    font-weight: 700;
}

.resource-row {
    border-top: 1px solid var(--border);
}

.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .2s;
    border-radius: 24px;
    border: 1px solid var(--border);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 2px;
    background-color: #0ea5e9;
    transition: .2s;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.switch input:checked + .slider {
    background-color: rgba(56, 189, 248, 0.25);
}

.switch input:checked + .slider:before {
    transform: translateX(20px);
}
.settings-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.upload-hint {
    margin: 8px 0 4px;
    color: #cfd8e3;
    font-size: 0.95rem;
}
