/* =========================================================
   CollegeLive Support - public site
   ========================================================= */

:root {
    --brand: #4f46e5;
    --brand-dark: #3730a3;
    --brand-light: #818cf8;
    --accent: #06b6d4;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #f6f8fc;
    --card: #ffffff;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --shadow: 0 20px 50px rgba(15, 23, 42, .08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Segoe UI', 'Inter', 'Roboto', Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
}

a {
    color: var(--brand);
    text-decoration: none;
}

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

h1, h2, h3, h4 {
    margin: 0 0 12px;
    line-height: 1.2;
    color: var(--ink);
    font-weight: 800;
    letter-spacing: -.02em;
}

p {
    margin: 0 0 14px;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 22px;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, .8);
}

.header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
}

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

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .5px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    box-shadow: 0 8px 18px rgba(79, 70, 229, .3);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.brand-text small {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.site-nav a {
    color: #334155;
    font-size: 14.5px;
    font-weight: 600;
    transition: color .18s ease;
}

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

.site-nav .nav-admin {
    padding: 9px 16px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 8px 18px rgba(79, 70, 229, .24);
}

.site-nav .nav-admin:hover {
    color: #fff;
    transform: translateY(-1px);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 22px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 12px 26px rgba(79, 70, 229, .28);
}

.btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(79, 70, 229, .34);
}

.btn-ghost {
    color: var(--ink);
    background: #fff;
    border-color: var(--line);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
}

.btn-ghost:hover {
    color: var(--brand);
    border-color: var(--brand-light);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    min-height: 36px;
    padding: 7px 13px;
    font-size: 12.5px;
    border-radius: 9px;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0 74px;
    background:
        radial-gradient(circle at 12% 12%, rgba(79, 70, 229, .12), transparent 34%),
        radial-gradient(circle at 88% 8%, rgba(6, 182, 212, .14), transparent 34%),
        #f6f8fc;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 58px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(79, 70, 229, .1);
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.hero h1 {
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.06;
    margin-bottom: 22px;
}

.hero h1 span {
    background: linear-gradient(90deg, var(--brand), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    max-width: 540px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 26px;
}

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

.hero-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.hero-points li {
    position: relative;
    padding-left: 28px;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
}

.hero-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    box-shadow: 0 4px 10px rgba(79, 70, 229, .25);
}

.hero-panel {
    display: flex;
    justify-content: center;
}

.preview-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 22px;
    box-shadow: 0 30px 70px rgba(30, 41, 59, .16);
    overflow: hidden;
    transform: rotate(1.4deg);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand) 58%, var(--accent));
}

.preview-header strong {
    display: block;
    font-size: 14.5px;
}

.preview-header small {
    display: block;
    font-size: 11px;
    opacity: .85;
}

.preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, .2);
}

.preview-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f8fafc;
}

.preview-bubble {
    max-width: 84%;
    padding: 10px 13px;
    border-radius: 14px;
    font-size: 12.5px;
    line-height: 1.5;
}

.preview-bot {
    background: #eef2ff;
    color: #3730a3;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.preview-user {
    background: #fff;
    color: #334155;
    border: 1px solid var(--line);
    border-bottom-left-radius: 4px;
}

.preview-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 4px;
}

.preview-chips span {
    padding: 6px 11px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--brand-dark);
    font-size: 11.5px;
    font-weight: 700;
}

/* ---------- Sections ---------- */

.section {
    padding: 78px 0;
}

.section-alt {
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

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

.section-head h2 {
    font-size: clamp(27px, 3.4vw, 38px);
    margin-bottom: 12px;
}

.section-head p {
    color: var(--muted);
    font-size: 15.5px;
    margin: 0;
}

.college-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}

.college-card {
    display: flex;
    flex-direction: column;
    padding: 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.college-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 70, 229, .3);
    box-shadow: 0 22px 44px rgba(15, 23, 42, .1);
}

.college-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-width: 58px;
    height: 44px;
    padding: 0 13px;
    margin-bottom: 18px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    box-shadow: 0 8px 18px rgba(79, 70, 229, .25);
}

.college-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.college-tagline {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.college-meta {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: grid;
    gap: 8px;
    color: #475569;
    font-size: 13px;
}

.college-meta li {
    padding-left: 18px;
    position: relative;
    word-break: break-word;
}

.college-meta li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.college-card .btn {
    margin-top: auto;
}

/* ---------- Steps ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.step {
    padding: 28px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.step-number {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.04em;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.step h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.step p {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

/* ---------- CTA band ---------- */

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 42px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, #312e81, var(--brand) 56%, var(--accent));
    box-shadow: 0 26px 60px rgba(49, 46, 129, .28);
}

.cta-band h2 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 8px;
}

.cta-band p {
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 15px;
}

.cta-band .btn-primary {
    background: #fff;
    color: var(--brand-dark);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .18);
    white-space: nowrap;
}

.cta-band .btn-primary:hover {
    color: var(--brand-dark);
}

/* ---------- Footer ---------- */

.site-footer {
    padding: 34px 0;
    background: #0b1020;
    color: #cbd5e1;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-inner strong {
    display: block;
    color: #fff;
    font-size: 16px;
    margin-bottom: 4px;
}

.footer-inner p {
    margin: 0;
    color: #94a3b8;
    font-size: 13.5px;
}

.footer-links {
    display: flex;
    gap: 20px;
    font-size: 13.5px;
    font-weight: 600;
}

.footer-links a {
    color: #cbd5e1;
}

.footer-links a:hover {
    color: #fff;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .hero-panel {
        justify-content: flex-start;
    }

    .preview-card {
        transform: none;
    }

    .cta-band {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px;
    }
}

@media (max-width: 720px) {
    .header-inner {
        height: auto;
        padding: 14px 0;
        flex-wrap: wrap;
    }

    .site-nav {
        width: 100%;
        gap: 16px;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .site-nav .nav-admin {
        margin-left: auto;
    }

    .hero {
        padding: 58px 0 52px;
    }

    .section {
        padding: 58px 0;
    }

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