/* ============================================
   SCHOLARSHIP MAGNET — STYLES
   Rebrand: Electric Blue + Neon Mint
   ============================================ */

/* Root Variables */
:root {
    --color-primary: #007BFF;
    --color-primary-dark: #0062cc;
    --color-primary-light: #3d9bff;
    --color-accent: #00FFC3;
    --color-charcoal: #2E3440;
    --color-bg: #ffffff;
    --color-bg-subtle: #f8fafb;
    --color-bg-muted: #E5E9F0;
    --color-text: #2E3440;
    --color-text-muted: #5a6270;
    --color-text-light: #8a919c;
    --color-border: #dce1e8;
    --color-card-bg: #ffffff;

    --font-heading: 'Montserrat', 'Inter', system-ui, sans-serif;
    --font: 'Inter', system-ui, sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: 0.2s ease;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);

    --glow-mint: 0 0 16px rgba(0, 255, 195, 0.4), 0 0 32px rgba(0, 255, 195, 0.2);
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

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

/* ============================================
   LAYOUT
   ============================================ */

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    box-shadow: 0 4px 20px rgba(0, 255, 195, 0.35), 0 2px 8px rgba(0, 123, 255, 0.3);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-muted);
}

.btn-ghost:hover {
    color: var(--color-text);
    background-color: var(--color-bg-muted);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-outline-white {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-outline-white:hover {
    background: #ffffff;
    color: var(--color-charcoal);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    border-radius: var(--radius);
}

/* ============================================
   HEADER & NAV
   ============================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-charcoal);
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 0.75rem;
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--color-primary);
    background-color: var(--color-bg-muted);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text);
    padding: 0.25rem;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid var(--color-border);
    background: #fff;
}

.mobile-menu.open {
    display: flex;
}

.mobile-link {
    display: block;
    padding: 0.75rem 0;
    color: var(--color-text-muted);
    font-weight: 500;
    border-bottom: 1px solid var(--color-border);
}

.mobile-link:last-of-type {
    border-bottom: none;
}

.mobile-cta {
    margin-top: 0.5rem;
    text-align: center;
}

/* ============================================
   HERO
   ============================================ */

.hero {
    position: relative;
    padding: 10rem 0;
    background-image: url('hero-lifestyle.jpg');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(46, 52, 64, 0.9) 30%, rgba(46, 52, 64, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 255, 195, 0.15);
    color: var(--color-accent);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.375rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 255, 195, 0.4);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    max-width: 600px;
    margin-bottom: 2.5rem;
    font-size: clamp(1.0625rem, 2.5vw, 1.1875rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.hero-note {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   STATS BAR
   ============================================ */

.stats-bar {
    background: var(--color-charcoal);
    padding: 2.5rem 0;
}

.stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 3.5rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-accent);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-align: center;
}

.stat-divider {
    width: 1px;
    height: 3rem;
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================
   FEATURES
   ============================================ */

.features {
    padding: 6rem 0;
    background: var(--color-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.feature-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.25s ease;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 123, 255, 0.25);
    transform: translateY(-2px);
}

.feature-card--primary {
    background: var(--color-card-bg);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 123, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 650;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.65;
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.how-it-works {
    padding: 6rem 0;
    background: var(--color-bg-subtle);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.how-it-works::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 80px 200px at 10% 50%, rgba(0, 255, 195, 0.04) 0%, transparent 100%),
        radial-gradient(ellipse 80px 200px at 90% 30%, rgba(0, 255, 195, 0.04) 0%, transparent 100%);
    pointer-events: none;
}

.steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    max-width: 860px;
    margin: 0 auto;
    position: relative;
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1.5rem;
}

.step-number {
    width: 3rem;
    height: 3rem;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.step-content h3 {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 650;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.step-content p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.65;
}

.step-connector {
    flex-shrink: 0;
    width: 60px;
    height: 2px;
    background: var(--color-primary);
    margin-top: 1.4rem;
    position: relative;
    opacity: 0.3;
}

.step-connector::after {
    content: '';
    position: absolute;
    right: -5px;
    top: -4px;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--color-primary);
    border-right: 2px solid var(--color-primary);
    transform: rotate(45deg);
    opacity: 0.5;
}

/* ============================================
   COMPARISON SECTION
   ============================================ */

.comparison {
    padding: 6rem 0;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.comparison-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.25s ease;
}

.comparison-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: rgba(0, 123, 255, 0.2);
}

.comparison-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.comparison-card p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.65;
}

.comparison-card strong {
    color: var(--color-text);
    font-weight: 600;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: 6rem 0;
    background: var(--color-bg);
}

.cta-card {
    background: linear-gradient(135deg, var(--color-primary), #0056b8);
    border-radius: var(--radius-lg);
    padding: 4rem 3rem;
    text-align: center;
    color: #ffffff;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 400px 200px at 10% 90%, rgba(0, 255, 195, 0.15) 0%, transparent 100%),
        radial-gradient(ellipse 400px 200px at 90% 10%, rgba(0, 255, 195, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.cta-card h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    position: relative;
}

.cta-card p {
    font-size: 1.0625rem;
    opacity: 0.85;
    max-width: 500px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    position: relative;
}

.cta-card .btn-primary {
    background: #ffffff;
    color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.cta-card .btn-primary:hover {
    background: #e0f2ff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25), var(--glow-mint);
    transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--color-charcoal);
    padding: 2.5rem 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.footer-tagline {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.footer-meta {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: right;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
    .features-grid,
    .comparison-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 6rem 0;
        text-align: center;
    }

    .hero-overlay {
        background: rgba(46, 52, 64, 0.75);
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .stats-bar {
        padding: 2rem 0;
    }

    .stat {
        padding: 0.75rem 2rem;
    }

    .stat-divider {
        display: none;
    }

    .stats-grid {
        gap: 0.5rem;
    }

    .steps {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .step-connector {
        display: none;
    }

    .cta-card {
        padding: 3rem 1.5rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .features-grid,
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        text-align: center;
        justify-content: center;
    }
}
