/* ============================================
   ClimaInsight - Professional Climate Risk Platform
   ============================================ */

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

:root {
    --navy-900: #060d1b;
    --navy-800: #0a1628;
    --navy-700: #0f1d32;
    --navy-600: #142640;
    --navy-500: #1e3a5f;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --white: #ffffff;
    --teal-500: #14b8a6;
    --teal-400: #2dd4bf;
    --teal-600: #0d9488;
    --blue-500: #0ea5e9;
    --blue-400: #38bdf8;
    --amber-500: #f59e0b;
    --red-500: #ef4444;
    --green-500: #22c55e;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'IBM Plex Mono', 'Fira Code', monospace;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--navy-800);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(6, 13, 27, 0.95);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    color: var(--teal-400);
    display: flex;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--slate-300);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--teal-500);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--teal-600);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
    border-color: var(--teal-400);
    color: var(--teal-400);
}

.btn-nav {
    padding: 8px 20px;
    background: var(--teal-500);
    color: var(--white) !important;
    border-radius: 6px;
}

.btn-nav:hover {
    background: var(--teal-600);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(170deg, var(--navy-900) 0%, var(--navy-700) 50%, var(--navy-600) 100%);
    overflow: hidden;
    padding: 60px 0 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(20, 184, 166, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 184, 166, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
}

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

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 20px;
    color: var(--teal-400);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--slate-400);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--teal-400);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--navy-500);
}

/* Dashboard Preview */
.hero-visual {
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 520px;
    z-index: 1;
}

.dashboard-preview {
    background: var(--navy-700);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--navy-800);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.preview-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--navy-500);
}

.preview-dots span:first-child { background: var(--red-500); }
.preview-dots span:nth-child(2) { background: var(--amber-500); }
.preview-dots span:last-child { background: var(--green-500); }

.preview-title {
    font-size: 0.75rem;
    color: var(--slate-400);
    font-weight: 500;
}

.preview-body {
    display: flex;
}

.preview-map {
    flex: 1;
}

.preview-map svg {
    width: 100%;
    height: auto;
    display: block;
}

.preview-sidebar {
    width: 140px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--navy-800);
}

.preview-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.risk-label {
    font-size: 0.65rem;
    color: var(--slate-400);
    font-weight: 500;
}

.risk-bar {
    height: 6px;
    background: var(--navy-600);
    border-radius: 3px;
    overflow: hidden;
}

.risk-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease-out;
}

.risk-high { background: var(--red-500); }
.risk-medium { background: var(--amber-500); }
.risk-low { background: var(--green-500); }

/* --- Sections --- */
.section {
    padding: 100px 0;
}

.section-light {
    background: var(--white);
}

.section-dark {
    background: var(--navy-900);
    color: var(--white);
}

.section-accent {
    background: var(--navy-800);
    color: var(--white);
    padding: 60px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.15);
    border-radius: 16px;
    color: var(--teal-500);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-dark .section-tag {
    color: var(--teal-400);
}

.section-header h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--slate-400);
    line-height: 1.7;
}

.section-light .section-desc {
    color: #64748b;
}

/* --- Mission Cards --- */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.mission-card {
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--slate-200);
    background: var(--white);
    transition: all var(--transition);
}

.mission-card:hover {
    border-color: var(--teal-500);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.mission-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 184, 166, 0.08);
    border-radius: 12px;
    color: var(--teal-500);
    margin-bottom: 20px;
}

.mission-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--navy-800);
}

.mission-card p {
    font-size: 0.925rem;
    color: #64748b;
    line-height: 1.6;
}

/* --- Services --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    padding: 32px;
    border-radius: 12px;
    background: var(--navy-800);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all var(--transition);
}

.service-card:hover {
    border-color: rgba(20, 184, 166, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 20px;
}

.service-icon.flood {
    background: rgba(14, 165, 233, 0.12);
    color: var(--blue-400);
}

.service-icon.wildfire {
    background: rgba(245, 158, 11, 0.12);
    color: var(--amber-500);
}

.service-icon.heat {
    background: rgba(239, 68, 68, 0.12);
    color: var(--red-500);
}

.service-icon.portfolio {
    background: rgba(20, 184, 166, 0.12);
    color: var(--teal-400);
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--white);
}

.service-card p {
    font-size: 0.925rem;
    color: var(--slate-400);
    line-height: 1.6;
}

/* --- Pricing --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    position: relative;
    padding: 40px 32px;
    border-radius: 16px;
    border: 1px solid var(--slate-200);
    background: var(--white);
    transition: all var(--transition);
}

.pricing-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.pricing-featured {
    border-color: var(--teal-500);
    box-shadow: 0 0 0 1px var(--teal-500), var(--shadow-xl);
    transform: scale(1.03);
}

.pricing-featured:hover {
    transform: scale(1.03) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--teal-500);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 12px;
    letter-spacing: 0.03em;
}

.pricing-tier {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--teal-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--navy-800);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 16px;
}

.price-currency {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy-800);
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy-800);
    line-height: 1;
}

.price-period {
    font-size: 0.9rem;
    color: var(--slate-400);
    font-weight: 500;
}

.pricing-desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 24px;
}

.pricing-features {
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--navy-800);
    border-bottom: 1px solid var(--slate-100);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features svg {
    flex-shrink: 0;
    color: var(--teal-500);
}

.pricing-card .btn-outline {
    color: var(--navy-800);
    border-color: var(--slate-200);
}

.pricing-card .btn-outline:hover {
    border-color: var(--teal-500);
    color: var(--teal-500);
}

/* --- Steps --- */
.steps-grid {
    max-width: 800px;
    margin: 0 auto;
}

.step-card {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    padding: 32px;
    background: var(--navy-800);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.step-number {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--teal-400);
    opacity: 0.6;
    flex-shrink: 0;
    line-height: 1;
}

.step-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.925rem;
    color: var(--slate-400);
    line-height: 1.6;
}

.step-connector {
    width: 2px;
    height: 32px;
    background: linear-gradient(to bottom, var(--teal-500), transparent);
    margin: 0 0 0 64px;
    opacity: 0.3;
}

/* --- Differentiators --- */
.diff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.diff-card {
    text-align: center;
    padding: 40px 24px;
}

.diff-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 184, 166, 0.06);
    border-radius: 50%;
    color: var(--teal-500);
    margin: 0 auto 24px;
}

.diff-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--navy-800);
}

.diff-card p {
    font-size: 0.925rem;
    color: #64748b;
    line-height: 1.6;
}

/* --- Data Sources --- */
.data-sources {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.source-item {
    text-align: center;
    padding: 20px 24px;
}

.source-name {
    display: block;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 500;
    color: var(--teal-400);
    margin-bottom: 4px;
}

.source-desc {
    font-size: 0.8rem;
    color: var(--slate-400);
}

/* --- CTA Section --- */
.section-cta {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

.cta-content h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.cta-content > p {
    font-size: 1.1rem;
    color: var(--slate-400);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-form {
    max-width: 520px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-input {
    flex: 1;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: all var(--transition);
    outline: none;
}

.form-input::placeholder {
    color: var(--slate-400);
}

.form-input:focus {
    border-color: var(--teal-400);
    background: rgba(255, 255, 255, 0.1);
}

.cta-note {
    font-size: 0.8rem;
    color: var(--slate-400);
    margin-top: 12px;
}

/* --- Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
    align-items: start;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 32px;
    color: var(--navy-800);
}

.contact-item svg {
    color: var(--teal-500);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item strong {
    display: block;
    font-weight: 700;
    margin-bottom: 2px;
}

.contact-item p {
    color: #64748b;
    font-size: 0.95rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form .form-input {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    color: var(--navy-800);
    width: 100%;
}

.contact-form .form-input::placeholder {
    color: var(--slate-400);
}

.contact-form .form-input:focus {
    border-color: var(--teal-500);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.contact-form select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.contact-form textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* --- Footer --- */
.footer {
    background: var(--navy-900);
    color: var(--slate-400);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer-links h4 {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--slate-400);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--teal-400);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8rem;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: var(--slate-400);
    transition: color var(--transition);
}

.footer-social a:hover {
    color: var(--teal-400);
}

/* --- Scroll Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-visual {
        display: none;
    }

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

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .pricing-featured {
        transform: none;
    }

    .pricing-featured:hover {
        transform: translateY(-4px);
    }
}

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

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--navy-800);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 20px;
        transition: right var(--transition);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .section {
        padding: 72px 0;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .stat-divider {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .form-row {
        flex-direction: column;
    }

    .step-card {
        flex-direction: column;
        gap: 16px;
    }

    .step-connector {
        margin: 0 0 0 32px;
    }

    .data-sources {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 1.875rem;
    }
}
