:root {
    --primary: #1E3A8A; /* Eton Navy Blue */
    --primary-hover: #172554;
    --primary-soft: #EFF6FF;
    --accent: #B91C1C; /* Eton Red */
    --accent-hover: #991B1B;
    --bg-light: #F9FAFB;
    --text-dark: #111827;
    --text-gray: #4B5563;
    --text-muted: #9CA3AF;
    --white: #FFFFFF;
    --border: #E5E7EB;
    --dark-slate: #0F172A;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: var(--bg-light);
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

/* Typography */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; }
.text-primary { color: var(--primary); }
.text-gray { color: var(--text-gray); }
.text-center { text-align: center; }
.leading-relaxed { line-height: 1.8; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}
.btn-primary { background-color: var(--primary); color: var(--white); box-shadow: 0 10px 15px -3px rgba(91, 33, 182, 0.3); }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); }
.btn-accent { background-color: var(--accent); color: var(--white); box-shadow: 0 10px 15px -3px rgba(185, 28, 28, 0.3); }
.btn-accent:hover { background-color: var(--accent-hover); transform: translateY(-2px); }
.btn-outline { background-color: var(--white); border: 2px solid var(--border); color: var(--text-dark); }
.btn-outline:hover { background-color: var(--bg-light); }

/* Navigation */
nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    transition: all 0.3s ease;
}
nav.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; font-weight: 700; text-decoration: none; color: inherit; }
.nav-links { display: none; gap: 2rem; }

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    padding: 0.5rem;
    border-radius: 0.5rem;
}
.menu-toggle:hover { background-color: var(--bg-light); }

.desktop-cta { display: none; }

@media (min-width: 768px) {
    .nav-links { display: flex; }
    .menu-toggle { display: none; }
    .desktop-cta { display: block; }
}

.nav-links a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding: 0.5rem 0;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.active { font-weight: 700; }

/* Mobile Menu Active State */
.nav-links.nav-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 40;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s ease;
}
.nav-links.nav-active.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.nav-active .mobile-only { display: block; margin-top: 1rem; }
.mobile-only { display: none; }

/* Layout Components */
.section-padding { padding: 6rem 0; position: relative; }
.bg-white { background-color: var(--primary-soft); }
.bg-light { background: linear-gradient(135deg, var(--bg-light) 0%, #F1F5F9 100%); }
.bg-dark { background-color: var(--dark-slate); color: var(--white); }
.bg-dark .text-gray { color: var(--text-muted); }
.bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--white); }

header { padding: 5rem 0; background-color: var(--white); position: relative; overflow: hidden; }
.page-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(to bottom, var(--white), var(--bg-light));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; position: relative; z-index: 1; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; } }

.badge {
    display: inline-flex;
    align-items: center;
    background-color: #F5F3FF;
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title { font-size: 3rem; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .hero-title { font-size: 4rem; } }
.hero-desc { font-size: 1.25rem; color: var(--text-gray); margin-bottom: 2.5rem; max-width: 32rem; }
.hero-btns { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) { .hero-btns { flex-direction: row; } }

/* Cards & Mockups */
.card {
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 1.5rem;
    transition: all 0.3s;
    border: 1px solid var(--border);
}
.card-large {
    padding: 3rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 2rem;
    border: 1px solid var(--border);
}
.card:hover { background-color: var(--white); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); border-color: var(--border); }

.icon-circle {
    width: 4rem;
    height: 4rem;
    background-color: var(--white);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    transition: all 0.3s;
}
.card:hover .icon-circle { background-color: var(--primary); color: var(--white); }

.mockup {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--white);
    padding: 1.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.mockup-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.mockup-line { height: 1rem; background: var(--border); border-radius: 0.25rem; }
.mockup-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.stat-box { height: 6rem; border-radius: 1rem; padding: 1rem; }
.stat-purple { background: #F5F3FF; }
.stat-blue { background: #EFF6FF; }
.mockup-chart { height: 12rem; background: var(--bg-light); border-radius: 1rem; display: flex; align-items: flex-end; padding: 1rem; gap: 1rem; }
.chart-bar { width: 100%; border-radius: 0.5rem 0.5rem 0 0; }

/* Grid Utilities */
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Stats */
.stats-section { background-color: var(--bg-light); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 3rem 0; }
.stat-item { text-align: center; }
.stat-val { font-size: 2.25rem; font-weight: 800; color: var(--primary); }

/* Apply Form */
.apply-container { max-width: 1000px; background-color: var(--white); color: var(--text-dark); border-radius: 2rem; overflow: hidden; display: flex; flex-direction: column; margin: 0 auto; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); }
@media (min-width: 768px) { .apply-container { flex-direction: row; } }
.apply-sidebar { background-color: #111827; color: var(--white); padding: 3rem; flex: 1; }
.apply-main { padding: 3rem; flex: 2; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-weight: 700; font-size: 0.875rem; }
.form-group input, .form-group select, .form-group textarea {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    background-color: var(--bg-light);
    font-family: inherit;
}
.form-group input:focus { outline: 2px solid var(--primary); border-color: transparent; }

/* Footer */
footer { padding: 6rem 0 3rem; background-color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 4rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.footer-links a { text-decoration: none; color: var(--text-gray); transition: color 0.3s; }
.footer-links a:hover { color: var(--primary); }

/* Utils */
.icon { width: 1.5rem; height: 1.5rem; display: inline-block; vertical-align: middle; }
.icon-lg { width: 2.5rem; height: 2.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.hidden { display: none; }

/* Animations */
@keyframes blob {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-blob { animation: blob 7s infinite alternate ease-in-out; position: absolute; z-index: 0; pointer-events: none; }
.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-4000 { animation-delay: 4s; }

.blob-purple { background: rgba(30, 58, 138, 0.1); } /* Navy Blue */
.blob-blue { background: rgba(59, 130, 246, 0.1); }
.blob-green { background: rgba(185, 28, 28, 0.1); } /* Red */

.logo-img {
    height: 3.5rem;
    width: auto;
    display: block;
    border-radius: 0.75rem;
}
@media (max-width: 768px) { .logo-img { height: 2.75rem; } }

.reveal { opacity: 0; transition: all 0.8s ease-out; transform: translateY(30px); }
.reveal.active { opacity: 1; transform: translateY(0); }

.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift:hover { transform: translateY(-10px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }

.icon-spin:hover .icon-lg { transform: rotate(15deg) scale(1.1); transition: transform 0.3s ease; }

@media (prefers-reduced-motion: reduce) {
    .reveal, .animate-blob, .hover-lift {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
