:root {
    --blue-950: #0f172a;
    --blue-900: #172554;
    --blue-800: #1e3a8a;
    --indigo-600: #4f46e5;
    --emerald-500: #10b981;
    --emerald-100: #d1fae5;
    --amber-500: #f59e0b;
    --amber-100: #fef3c7;
    --slate-700: #334155;
    --slate-500: #64748b;
    --slate-100: #f1f5f9;
    --paper: #ffffff;
    --line: #dbe3ef;
    --radius: 8px;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, sans-serif;
    color: var(--blue-950);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.navbar-brand,
.footer-brand {
    font-family: "Manrope", "Inter", sans-serif;
    letter-spacing: 0;
}

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

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--emerald-500);
    outline-offset: 3px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.nav-edupredict {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 18px rgba(15, 23, 42, 0.08);
}

.navbar-brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--blue-900);
    font-weight: 800;
}

.logo-mark {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--blue-800), var(--indigo-600));
}

.nav-link {
    color: var(--slate-700);
    font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
    color: var(--indigo-600);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: var(--radius);
    font-weight: 700;
}

.btn-login {
    color: #fff;
    background: var(--blue-900);
    border: 1px solid var(--blue-900);
}

.btn-login:hover {
    color: #fff;
    background: var(--indigo-600);
    border-color: var(--indigo-600);
}

.btn-register {
    color: var(--blue-900);
    border: 1px solid var(--line);
    background: #fff;
}

.btn-register:hover {
    color: var(--blue-900);
    background: var(--slate-100);
}

.hero-section {
    min-height: 84vh;
    display: flex;
    align-items: center;
    color: #fff;
    background-image:
        linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(30, 58, 138, 0.72), rgba(79, 70, 229, 0.42)),
        url("../assets/img/hero-learning-analytics.png");
    background-size: cover;
    background-position: center;
    padding: clamp(4rem, 9vw, 7rem) 0;
}

.hero-content {
    max-width: 980px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--emerald-500);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow.light {
    color: #9ff2d2;
}

.hero-section h1 {
    margin: 1rem 0 0.7rem;
    max-width: 820px;
    color: #fff;
    font-size: clamp(3rem, 9vw, 6.2rem);
    line-height: 0.95;
    font-weight: 800;
}

.hero-copy {
    max-width: 670px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.btn-hero-primary {
    color: #fff;
    background: var(--emerald-500);
    border: 1px solid var(--emerald-500);
    padding: 0.85rem 1.2rem;
}

.btn-hero-primary:hover {
    color: #fff;
    background: #059669;
    border-color: #059669;
}

.btn-hero-secondary {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.85rem 1.2rem;
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.btn-hero-secondary.dark {
    color: var(--blue-950);
    border-color: var(--line);
    background: #fff;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    max-width: 760px;
    margin-top: 3rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.hero-metrics div {
    padding: 1rem;
}

.hero-metrics strong {
    display: block;
    font-size: 1.55rem;
}

.hero-metrics span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
}

.section-pad {
    padding: 5rem 0;
}

.bg-soft {
    background: var(--slate-100);
}

.section-intro {
    max-width: 760px;
    margin-bottom: 2rem;
}

.section-intro h2,
.cta-section h2,
.bg-ink h2 {
    margin-top: 0.65rem;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 800;
}

.section-intro p,
.bg-ink p,
.cta-section p {
    color: var(--slate-500);
    font-size: 1.02rem;
}

.feature-card,
.role-panel {
    height: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.35rem;
    background: var(--paper);
    box-shadow: 0 1px 1px rgba(15, 23, 42, 0.04);
}

.feature-icon,
.role-panel i {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: rgba(79, 70, 229, 0.12);
    color: var(--indigo-600);
    font-size: 1.25rem;
}

.feature-card.tone-emerald .feature-icon {
    background: var(--emerald-100);
    color: #047857;
}

.feature-card.tone-amber .feature-icon {
    background: var(--amber-100);
    color: #b45309;
}

.feature-card.tone-indigo .feature-icon {
    background: #e0e7ff;
    color: var(--indigo-600);
}

.feature-card h3,
.role-panel h3 {
    margin: 1rem 0 0.45rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.feature-card p,
.role-panel p {
    margin: 0;
    color: var(--slate-500);
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.bg-ink {
    background: var(--blue-950);
    color: #fff;
}

.bg-ink p {
    color: #cbd5e1;
}

.insight-list {
    display: grid;
    gap: 0.8rem;
}

.insight-list div {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
}

.insight-list i {
    color: var(--emerald-500);
    font-size: 1.25rem;
}

.stats-band {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.stats-band div {
    padding: 1.35rem;
    background: #fff;
    border-right: 1px solid var(--line);
}

.stats-band div:last-child {
    border-right: 0;
}

.stats-band strong {
    display: block;
    color: var(--blue-900);
    font-size: 1.35rem;
}

.stats-band span {
    color: var(--slate-500);
}

.cta-section {
    padding: 5rem 0;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, var(--blue-900), var(--indigo-600));
}

.cta-section p {
    color: rgba(255, 255, 255, 0.78);
}

.site-footer {
    padding: 4rem 0 1.5rem;
    color: #cbd5e1;
    background: #09111f;
}

.site-footer p {
    max-width: 520px;
    margin-top: 1rem;
}

.site-footer h3 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
}

.site-footer a,
.site-footer span {
    display: block;
    margin: 0.35rem 0;
    color: #cbd5e1;
}

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

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    font-size: 0.9rem;
}

@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
    }

    .role-grid,
    .stats-band {
        grid-template-columns: 1fr;
    }

    .stats-band div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .stats-band div:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 575.98px) {
    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .section-pad,
    .cta-section {
        padding: 3.5rem 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
