/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-900: #1e3a5f;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --radius: 12px;
    --max-w: 1140px;
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--gray-800);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 800; line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.02em; text-align: center; margin-bottom: 0.5em; }
h3 { font-size: 1.25rem; margin-bottom: 0.5em; }
p { color: var(--gray-600); }
.section-sub { text-align: center; max-width: 520px; margin: 0 auto 3rem; font-size: 1.1rem; }

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--blue-600);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover {
    background: var(--blue-700);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}
.btn-secondary {
    background: transparent;
    color: var(--blue-600);
    border: 2px solid var(--blue-200);
    margin-left: 12px;
}
.btn-secondary:hover { border-color: var(--blue-400); background: var(--blue-50); }
.btn-large { padding: 18px 48px; font-size: 1.15rem; }

/* === Nav === */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-100);
}
.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}
.nav-logo-img { height: 36px; }
.nav-cta {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--blue-600);
    padding: 10px 24px;
    border: 1.5px solid var(--blue-200);
    border-radius: 50px;
    transition: all 0.2s;
}
.nav-cta:hover { background: var(--blue-50); border-color: var(--blue-400); }

/* === Pattern background === */
.hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(59,130,246,0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59,130,246,0.04) 0%, transparent 50%);
    pointer-events: none;
}
.hero-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233b82f6' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
}

/* === Hero === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    gap: 60px;
    max-width: var(--max-w);
    margin: 0 auto;
}
.hero-content { max-width: 600px; z-index: 1; }
.hero-sub { font-size: 1.2rem; margin: 1.5rem 0 2.5rem; line-height: 1.7; }
.gradient-text {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 2.5rem;
    padding: 24px 0;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}
.stat-value { display: block; font-size: 1.6rem; font-weight: 800; color: var(--blue-600); }
.stat-label { font-size: 0.85rem; color: var(--gray-400); font-weight: 400; }

.hero-visual { z-index: 1; }
.hero-elephant {
    width: 320px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(59,130,246,0.15));
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

/* === Steps === */
.steps {
    padding: 100px 24px;
    background: var(--gray-50);
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: var(--max-w);
    margin: 0 auto;
}
.step {
    background: #fff;
    border-radius: var(--radius);
    padding: 40px 32px;
    border: 1px solid var(--gray-100);
    transition: all 0.3s;
}
.step:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--blue-50);
    color: var(--blue-600);
    font-weight: 800;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* === Why === */
.why {
    padding: 100px 24px;
    max-width: var(--max-w);
    margin: 0 auto;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.why-card {
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    transition: all 0.3s;
}
.why-card:hover { border-color: var(--blue-200); background: var(--blue-50); }
.why-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--blue-50);
    color: var(--blue-600);
    font-weight: 800;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

/* === Calculator === */
.calculator {
    padding: 100px 24px;
    background: var(--gray-50);
}
.calc-container {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    padding: 40px;
}
.calc-field { margin-bottom: 24px; }
.calc-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 8px;
}
.calc-field select,
.calc-field input[type="range"] {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--gray-50);
    cursor: pointer;
}
input[type="range"] {
    -webkit-appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--blue-100);
    border: none;
    padding: 0;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--blue-600);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(37,99,235,0.3);
}
.calc-results { display: flex; flex-direction: column; justify-content: center; }
.calc-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.95rem;
}
.calc-result-row.featured {
    background: var(--blue-50);
    margin: 8px -16px;
    padding: 16px;
    border-radius: 8px;
    border: none;
}
.calc-value { font-weight: 700; color: var(--gray-900); }
.calc-value.highlight { color: var(--blue-600); font-size: 1.15rem; }

/* === CTA === */
.cta {
    position: relative;
    text-align: center;
    padding: 100px 24px;
    overflow: hidden;
}
.cta h2 { margin-bottom: 0.5em; }
.cta p { max-width: 500px; margin: 0 auto 2rem; font-size: 1.1rem; }
.cta-small { margin-top: 1rem; font-size: 0.9rem; color: var(--gray-400); }

/* === Footer === */
footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 40px 24px;
}
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
}
.footer-logo { height: 28px; filter: brightness(2); }
.footer-company { font-size: 0.9rem; }
.footer-links { font-size: 0.85rem; }
.footer-links a { color: var(--blue-400); text-decoration: none; }
.footer-links a:hover { color: var(--blue-200); }
.footer-sep { margin: 0 10px; color: var(--gray-600); }

/* === Responsive === */
@media (max-width: 768px) {
    .hero { flex-direction: column; text-align: center; padding-top: 100px; }
    .hero-stats { justify-content: center; }
    .hero-elephant { width: 200px; }
    .btn-secondary { margin-left: 0; margin-top: 12px; }
    .steps-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .calc-container { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; text-align: center; }
}
