:root {
    --max: 1200px;
    --narrow: 800px;
    --primary: #3e8adb;
    --primary-dark: #2a6db5;
    --dark: #0b2a4a;
    --light: #f8fafc;
    --text: #334155;
    --text-muted: #64748b;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* Base Resets */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background-color: var(--white);
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow { max-width: var(--narrow); }

/* Typography */
h1, h2, h3 { color: var(--dark); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1.5rem; }
.section-title.center { text-align: center; margin-bottom: 4rem; }
.lead { font-size: 1.25rem; color: var(--dark); font-weight: 500; }

/* Header & Nav */
.main-header {
    position: fixed;
    top: 0; width: 100%; z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1rem 0;
}

.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo { height: 40px; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--dark); font-weight: 500; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary { background: var(--primary); color: white !important; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { border: 2px solid white; color: white !important; }
.btn-outline:hover { background: white; color: var(--dark) !important; }

/* Hero */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    z-index: -1;
}

.hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(11, 42, 74, 0.9), rgba(11, 42, 74, 0.4));
    z-index: 0;
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-content p { font-size: 1.25rem; margin-bottom: 2rem; color: rgba(255,255,255,0.9); }
.hero-actions { display: flex; gap: 1rem; }

/* Grid & Cards */
.section { padding: 6rem 0; }
.bg-light { background-color: var(--light); }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    text-align: center;
}

.card:hover { transform: translateY(-10px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); }
.card img { width: 64px; margin-bottom: 1.5rem; }
.card h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* API Split Section */
.api-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.api-image img { width: 100%; height: 100%; object-fit: cover; }

.api-text {
    background: var(--dark);
    color: white;
    padding: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.api-text h2 { color: white; }
.feature-list { list-style: none; padding: 0; margin-top: 1.5rem; }
.feature-list li { margin-bottom: 0.75rem; display: flex; align-items: center; }
.feature-list li::before { content: "✓"; margin-right: 1rem; color: var(--primary); font-weight: bold; }

/* Footer */
.footer { background: var(--light); padding: 4rem 0; border-top: 1px solid #e2e8f0; }
.footer .logo { opacity: 0.6; filter: grayscale(1); margin-bottom: 1rem; }

/* Responsive */
@media (max-width: 968px) {
    .api-split { grid-template-columns: 1fr; }
    .api-text { padding: 3rem 2rem; order: 1; }
    .api-image { height: 300px; order: 2; }
}

@media (max-width: 768px) {
    .nav-links { display: none; } /* Simplified for demo - add hamburger menu for real use */
    .hero-content { text-align: center; }
    .hero-actions { justify-content: center; flex-direction: column; }
    .section { padding: 4rem 0; }
}