@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* ── 1. Modern Design Tokens ────────────────────────────────────────── */
:root {
    /* Brand Palette */
    --primary: #0a55cd;
    --primary-hover: #0843a8;
    --primary-light: #E8EAF6;
    --primary-subtle: #f0f5ff;

    --secondary: #180c83;
    --secondary-hover: #5107da;
    --secondary-light: #ecfdf5;

    /* Neutral Spectrum */
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;

    /* Semantic Roles */
    --bg-body: #ffffff;
    --bg-surface: var(--slate-50);
    --text-main: var(--slate-800);
    --text-muted: var(--slate-500);
    --border-subtle: var(--slate-200);

    /* Elevation Systems */
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);

    /* Animation Tokens */
    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 150ms var(--ease-smooth);
    --transition-base: 250ms var(--ease-smooth);
}

/* ── 2. Base Reset & Global Styles ────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    font-size: 0.95rem;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', Georgia, serif;
    color: var(--slate-900);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

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

/* ── 3. Navigation Bar ──────────────────────────────────────────────── */
.pub-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.20rem 0;
    transition: border-color var(--transition-fast);
}

.pub-nav .nav-link {
    color: var(--slate-700);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.5rem 0.5rem;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.pub-nav .nav-link:hover {
    color: var(--primary);
    background: var(--primary-subtle);
}

.pub-nav .btn-demo {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(10, 85, 205, 0.2);
}

.pub-nav .btn-demo:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(10, 85, 205, 0.3);
}

/* ── 4. Hero Section ───────────────────────────────────────────────── */
.hero {
    background: linear-gradient(45deg, #0c1c3e, #0a55cd), url('../images/auth/schoolmoo.jpg') !important;
    background-position: left center !important;
    background-blend-mode: multiply;
    color: #fff;
    padding: clamp(80px, 12vw, 128px) 0 clamp(64px, 8vw, 96px);
    position: relative;
    overflow: hidden;
}

.hero_two {
    background: radial-gradient(100% 100% at 50% 0%, #0c1c3e 0%, #0a55cd 100%) !important;
    background-position: center center !important;
    background-blend-mode: overlay;
    background-size: cover !important;
    color: #fff;
    padding: clamp(80px, 12vw, 128px) 0 clamp(64px, 8vw, 96px);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.4;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.hero p.lead {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--slate-400);
    max-width: 580px;
    margin-bottom: 2rem;
}

.hero .btn-primary-hero {
    background: var(--secondary);
    color: #fff;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 700;
    font-size: 0.9375rem;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.hero .btn-primary-hero:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
}

.hero .btn-outline-hero {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 0.9375rem;
    backdrop-filter: blur(4px);
    transition: all var(--transition-base);
}

.hero .btn-outline-hero:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ── 5. Stats Section ─────────────────────────────────────────────── */
.stats-bar {
    background: #fff;
    border-bottom: 1px solid var(--border-subtle);
    padding: 2.5rem 0;
}

.stat-item .num {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--primary);
    font-family: 'Roboto Slab', serif;
    line-height: 1;
}

.stat-item .lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-top: 8px;
}

/* ── 6. Modular Features Section ───────────────────────────────────── */
section {
    padding: clamp(64px, 8vw, 96px) 0;
}

.section-label {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 100px;
    padding: 6px 14px;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-sub {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 580px;
    margin: 0 auto;
}

.feat-card {
    background: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    height: 100%;
}

.feat-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.feat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-subtle);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.feat-card h5 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feat-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── 7. Interactive Module Pills ──────────────────────────────────── */
.module-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    padding: 8px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-700);
    margin: 4px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.module-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.module-pill i {
    color: var(--primary);
}

/* ── 8. Testimonials & Social Proof ─────────────────────────────── */
.testi-card {
    background: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.testi-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    transform: translateY(-2px);
}

.testi-card .stars {
    color: #f59e0b;
    /* Warm amber stars */
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.testi-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-subtle);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9375rem;
}

/* ── 9. Conversion CTA Card ────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--slate-900) 100%);
    color: #fff;
    text-align: center;
    border-radius: 24px;
    padding: clamp(48px, 6vw, 80px) 24px;
    margin: 0 auto;
    max-width: 960px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    color: #fff;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

.btn-cta {
    background: var(--secondary);
    color: #fff;
    border-radius: 12px;
    padding: 0.875rem 2.25rem;
    font-weight: 700;
    font-size: 0.9375rem;
    display: inline-block;
    transition: all var(--transition-base);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-cta:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.45);
}

/* ── 10. Modern Footer ─────────────────────────────────────────────── */
.pub-footer {
    background-color: var(--slate-900);
    color: var(--slate-400);
    padding: 64px 0 32px;
    font-size: 0.875rem;
}

.pub-footer h6 {
    color: #fff;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.pub-footer a {
    color: var(--slate-400);
    transition: color var(--transition-fast);
    display: block;
    margin-bottom: 0.75rem;
}

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

.pub-footer .divider {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 40px 0 24px;
}

/* ── 11. Accessibility Adjustments ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
