:root {
    /* Refined Palette - Softer & Cleaner */
    --primary: #2563eb;
    --primary-soft: #eff6ff;   /* Light blue background for inputs */
    --primary-dark: #1d4ed8;
    --accent: #38bdf8;
    
    --dark: #0f172a;
    --text: #334155;
    --text-light: #94a3b8;
    --white: #ffffff;
    
    /* Spacing & Geometry */
    --container: 1200px;
    --header-height: 90px;
    --radius: 24px;            
    --btn-radius: 50px;
    
    /* Neater Shadows */
    --shadow: 0 10px 40px -10px rgba(0,0,0,0.08);
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #f8fafc;
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Utilities */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 100px 0; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 36px;
    background: var(--primary);
    color: white;
    border-radius: var(--btn-radius);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* Forms */
input, select, textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: var(--primary-soft);
    font-family: inherit;
    font-size: 1rem;
    color: var(--dark);
    transition: all 0.2s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
    margin-left: 5px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}
.nav-flex { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo img { height: 45px; width: auto; }

.main-nav ul { display: flex; gap: 40px; }
.main-nav a { font-weight: 500; color: var(--text); font-size: 0.95rem; }
.main-nav a:hover { color: var(--primary); }

/* Hero */
.hero {
    /* Updated Main Hero Image */
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: white;
    padding: 140px 0 100px;
    text-align: center;
    border-radius: 0 0 40px 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}
/* Optional: Add a pattern or subtle image overlay if you wish, 
   but gradient is cleanest. If you want image, uncomment below: */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&q=80&w=1600') center/cover;
    opacity: 0.1; /* Subtle texture */
    mix-blend-mode: overlay;
    pointer-events: none;
}

.hero h1 { font-size: 3.2rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 20px; position: relative; }
.hero p { font-size: 1.2rem; opacity: 0.8; max-width: 600px; margin: 0 auto; position: relative; }

/* Grid & Cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    align-items: center;
}
.card {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: 0.3s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.12); }

/* Footer - Compact & Square */
footer { 
    background: var(--dark); 
    color: white; 
    padding: 60px 0 30px; 
    border-radius: 0; 
    margin-top: 0;
}
.footer h4 { margin-bottom: 20px; font-size: 1.1rem; }
.footer ul li { margin-bottom: 12px; opacity: 0.7; }
.footer a:hover { opacity: 1; text-decoration: underline; }
.copyright { margin-top: 50px; text-align: center; opacity: 0.5; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 768px) {
    .nav-flex { flex-direction: column; gap: 15px; }
    .hero { border-radius: 0 0 24px 24px; padding: 120px 0 80px; }
    .grid-2 { grid-template-columns: 1fr; }
}