:root {
    --bg: #ffffff;
    --bg-soft: #f6f4ff;
    --bg-tint: #efeaff;
    --ink: #1f1a3d;
    --ink-soft: #625d84;
    --line: rgba(122, 106, 216, 0.16);
    --panel: rgba(255, 255, 255, 0.96);
    --brand: #7a6ad8;
    --brand-deep: #5f4dc6;
    --accent: #9387e8;
    --dark: #7a6ad8;
    --success-bg: #eef7ee;
    --success-text: #1f6b37;
    --error: #b91c1c;
    --shadow: 0 22px 60px rgba(122, 106, 216, 0.14);
    --font-sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-serif: Cambria, Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(122, 106, 216, 0.15), transparent 32%),
        radial-gradient(circle at right 20%, rgba(147, 135, 232, 0.14), transparent 28%),
        var(--bg);
}
a { color: inherit; text-decoration: none; }
.shell { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.site-header {
    position: sticky; top: 0; z-index: 20; backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.9); border-bottom: 1px solid var(--line);
}
.nav-shell {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0;
}
.brand { display: inline-flex; align-items: center; gap: 0.9rem; }
.brand strong, .brand small { display: block; }
.brand small { color: var(--ink-soft); font-size: 0.82rem; }
.brand-text {
    min-width: 0;
}
.brand-logo {
    width: 150px;
    max-width: 100%;
    height: auto;
    display: block;
}
.brand-mark {
    display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 0.9rem;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: white; font-weight: 800;
}
.main-nav { display: flex; gap: 1.2rem; color: var(--ink-soft); font-weight: 600; }
.main-nav a {
    white-space: nowrap;
}
.main-nav a:hover,
.admin-nav a:hover,
.actions-cell a:hover,
.link-button:hover { color: var(--brand-deep); }
.hero, .section { padding: 5rem 0; }
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.22), transparent 26%),
        radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.2), transparent 28%),
        linear-gradient(135deg, #7a6ad8 0%, #8977e1 45%, #9b8bed 100%);
    color: white;
    border-bottom-left-radius: 4rem;
}
.hero .eyebrow,
.hero h1,
.hero .hero-copy,
.hero .stat-card span,
.hero .stat-card strong { color: white; }
.hero .hero-copy { opacity: 0.94; }
.hero-grid, .contact-grid, .split-section {
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: start;
}
.eyebrow {
    margin: 0 0 1rem; color: var(--brand); text-transform: uppercase; letter-spacing: 0.12em;
    font-size: 0.78rem; font-weight: 800;
}
h1, h2, h3, h4 { margin: 0; }
h1, .section-intro h2 { font-family: var(--font-serif); line-height: 1; letter-spacing: -0.03em; }
h1 { font-size: clamp(3rem, 6vw, 5.4rem); max-width: 11ch; }
.hero-copy, .section-intro p, .info-card p, .program-card p, .proof-card p, .timeline-item p, .contact-list p {
    color: var(--ink-soft); line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.button {
    display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem;
    padding: 0 1.25rem; border-radius: 999px; font-weight: 700;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    color: white; box-shadow: 0 18px 40px rgba(122, 106, 216, 0.28);
}
.button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.14);
    color: white;
}
.full-width { width: 100%; }
.hero-panel, .info-card, .program-card, .proof-card, .form-card, .stat-card {
    border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow);
}
.hero-panel, .form-card { padding: 2rem; border-radius: 1.5rem; }
.hero-panel {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
    color: white;
    backdrop-filter: blur(6px);
}
.hero-panel .panel-kicker,
.hero-panel h2,
.hero-panel li { color: white; }
.hero-panel li::before { background: white; }
.panel-kicker, .program-tag {
    margin: 0 0 0.75rem; color: var(--accent); font-size: 0.82rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.08em;
}
.hero-panel h2 { font-size: 1.8rem; line-height: 1.1; margin-bottom: 1rem; }
.check-list, .meta-block ul { padding: 0; margin: 1rem 0 0; list-style: none; }
.check-list li, .meta-block li {
    position: relative; padding-left: 1.2rem; margin-top: 0.75rem; color: var(--ink-soft);
}
.check-list li::before, .meta-block li::before {
    content: ''; position: absolute; left: 0; top: 0.72rem; width: 0.45rem; height: 0.45rem;
    border-radius: 999px; background: var(--brand);
}
.stats-grid, .cards-grid, .programs-grid, .proof-grid { display: grid; gap: 1.25rem; }
.stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2rem; }
.cards-grid, .proof-grid, .programs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-card, .info-card, .proof-card { padding: 1.5rem; border-radius: 1.3rem; }
.hero .stat-card {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
}
.stat-card strong { display: block; font-size: 2rem; margin-bottom: 0.4rem; }
.stat-card span { color: var(--ink-soft); }
.section-intro { margin-bottom: 2rem; }
.section-intro h2 { font-size: clamp(2rem, 4vw, 3.4rem); max-width: 13ch; }
.section-intro.compact h2 { max-width: none; }
.section-alt {
    background:
        radial-gradient(circle at top right, rgba(122, 106, 216, 0.07), transparent 24%),
        var(--bg-soft);
}
.program-card { padding: 1.75rem; border-radius: 1.5rem; }
.program-card, .info-card, .form-card, .table-card { background: white; }
.program-card h3 { margin-bottom: 0.8rem; font-size: 1.35rem; line-height: 1.25; }
.meta-block { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.meta-block h4 { margin-bottom: 0.65rem; font-size: 0.95rem; }
.timeline { display: grid; gap: 1rem; }
.timeline-item {
    display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--line);
}
.timeline-item span { color: var(--brand); font-weight: 800; font-size: 1.25rem; }
.timeline-item h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.section-dark {
    background:
        radial-gradient(circle at left bottom, rgba(255, 255, 255, 0.12), transparent 22%),
        linear-gradient(135deg, #7a6ad8 0%, #8d7de5 100%);
    color: white;
}
.section-dark .eyebrow, .section-dark .proof-card h3 { color: #f2ecff; }
.section-dark .section-intro h2, .section-dark .proof-card p { color: white; }
.proof-card { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.16); }
.contact-list strong { color: var(--ink); }
.lead-form { display: grid; gap: 1rem; }
.lead-form label { display: grid; gap: 0.5rem; font-weight: 700; }
.lead-form input, .lead-form select, .lead-form textarea {
    width: 100%; border: 1px solid var(--line); border-radius: 1rem; padding: 0.95rem 1rem;
    font: inherit; background: rgba(255, 255, 255, 0.96);
}
.lead-form small { color: var(--error); font-weight: 600; }
.flash-success {
    margin-bottom: 1rem; padding: 0.95rem 1rem; border-radius: 1rem;
    background: var(--success-bg); color: var(--success-text); font-weight: 700;
}
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.admin-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}
.admin-sidebar {
    padding: 1.5rem;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, #7a6ad8 0%, #8a7ae3 100%);
    display: grid;
    align-content: start;
    gap: 1.5rem;
}
.admin-sidebar .brand strong,
.admin-sidebar .brand small,
.admin-sidebar .admin-nav a { color: white; }
.admin-nav {
    display: grid;
    gap: 0.6rem;
}
.admin-nav a {
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-weight: 700;
}
.admin-content {
    padding: 2rem;
    background: linear-gradient(180deg, #faf9ff 0%, #f3f0ff 100%);
}
.page-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.table-card {
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.92);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th,
.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
.actions-cell {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.link-button {
    border: 0;
    background: transparent;
    color: var(--brand);
    font: inherit;
    font-weight: 700;
    padding: 0;
    cursor: pointer;
}
.stack-grid {
    display: grid;
    gap: 1rem;
}
.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.2rem;
    padding: 0 0.9rem;
    border-radius: 999px;
    background: rgba(122, 106, 216, 0.14);
    color: var(--brand-deep);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
}
@media (max-width: 960px) {
    .hero-grid, .contact-grid, .split-section, .cards-grid, .programs-grid, .proof-grid, .stats-grid {
        grid-template-columns: 1fr;
    }
    .nav-shell {
        flex-direction: column;
        align-items: stretch;
        gap: 0.9rem;
        padding: 0.85rem 0;
    }
    .brand {
        justify-content: space-between;
        width: 100%;
    }
    .brand-text {
        text-align: right;
    }
    .main-nav {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 0.65rem;
        padding: 0.1rem 0 0.4rem;
        scrollbar-width: none;
    }
    .main-nav::-webkit-scrollbar {
        display: none;
    }
    .main-nav a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 2.55rem;
        padding: 0 0.95rem;
        border-radius: 999px;
        background: rgba(122, 106, 216, 0.1);
        border: 1px solid rgba(122, 106, 216, 0.14);
    }
    .hero {
        border-bottom-left-radius: 3rem;
    }
    .hero-grid {
        gap: 1.5rem;
    }
    .hero-panel,
    .form-card,
    .program-card,
    .info-card,
    .proof-card,
    .stat-card {
        padding: 1.35rem;
    }
    .section-intro h2 {
        max-width: none;
    }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
    .hero, .section { padding: 4rem 0; }
    .hero {
        padding-top: 3rem;
        border-bottom-left-radius: 2.25rem;
    }
    .shell {
        width: min(1120px, calc(100% - 1.5rem));
    }
    .brand {
        gap: 0.7rem;
        align-items: center;
    }
    .button { width: 100%; }
    .page-head { flex-direction: column; }
    .brand-logo { width: 92px; }
    .brand strong {
        font-size: 0.82rem;
        line-height: 1.1;
    }
    .brand small {
        display: none;
    }
    h1 {
        font-size: clamp(1.95rem, 8.8vw, 2.55rem);
        line-height: 0.96;
        max-width: none;
    }
    .hero-copy {
        font-size: 0.96rem;
        line-height: 1.6;
        max-width: 32ch;
    }
    .hero-actions {
        gap: 0.75rem;
    }
    .eyebrow {
        font-size: 0.72rem;
        letter-spacing: 0.1em;
    }
    .hero-panel h2 {
        font-size: 1.35rem;
    }
    .main-nav a {
        min-height: 2.25rem;
        padding: 0 0.8rem;
        font-size: 0.92rem;
    }
    .stats-grid {
        gap: 0.85rem;
    }
    .stat-card strong {
        font-size: 1.55rem;
    }
    .section-intro h2 {
        font-size: clamp(1.7rem, 8vw, 2.25rem);
    }
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }
    .timeline-item span {
        font-size: 1rem;
    }
    .lead-form input,
    .lead-form select,
    .lead-form textarea {
        padding: 0.88rem 0.95rem;
    }
}
@media (max-width: 420px) {
    .nav-shell {
        gap: 0.75rem;
    }
    .brand strong {
        font-size: 0.76rem;
    }
    .main-nav a {
        min-height: 2.15rem;
        padding: 0 0.72rem;
        font-size: 0.86rem;
    }
    .hero-panel h2 {
        font-size: 1.22rem;
    }
    .stat-card strong {
        font-size: 1.4rem;
    }
    h1 {
        font-size: clamp(1.75rem, 8.2vw, 2.15rem);
    }
    .hero-copy {
        font-size: 0.92rem;
    }
}
