/* -----------------------------
    DESIGN TOKENS & BASE
----------------------------- */
:root {
    --navy-900: #0a1d3f;
    --navy-800: #0A1A2F;
    --navy-700: #102c4a;
    --blue-500: #0066cc;
    --blue-600: #004d99;
    --bg: #ffffff;
    --surface: #f5f7fa;
    --text: #1a1f36;
    --input-border: #000000; /* default (light mode) */
    --muted: #4a5573;
    --radius: 16px;
    --shadow-1: 0 8px 20px rgba(0,0,0,.12);
    --shadow-2: 0 12px 28px rgba(0,0,0,.15);
    --maxw: 1200px;
}

/* Dark mode variables (applied when [data-theme="dark"]) */
[data-theme="dark"] {
    --bg: #0a0f1c;
    --surface: #0f1b33;
    --text: #e9eefc;
    --muted: #b9c2d7;
    --input-border: #ffffff; /* inputs have white border in dark theme */
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-500); text-decoration: none; }
a:hover { color: var(--blue-600); text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1rem; }
section { padding: clamp(2.5rem, 5vw, 4rem) 0; }

h1 { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.2; margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); line-height: 1.25; margin: 0 0 1rem; }
h3 { font-size: clamp(1.125rem, 2vw, 1.35rem); margin: 0 0 0.5rem; }

/* Buttons */
.btn {
    appearance: none; border: 0; cursor: pointer;
    background: var(--blue-500); color: #fff;
    border-radius: 10px; padding: .75rem 1.25rem; font-weight: 600;
    transition: transform .2s ease, background .25s ease, box-shadow .25s ease;
    box-shadow: var(--shadow-1);
}
.btn:hover { background: var(--blue-600); transform: translateY(-1px); }
.btn.ghost {
    background: transparent; color: var(--blue-500); box-shadow: none; border: 1px solid rgba(77,166,255,.35);
}
.btn.ghost:hover { background: rgba(77,166,255,.08); }

/* -----------------------------
   FORM INPUTS
   Use --input-border so border color reacts to theme variables
----------------------------- */
input,
textarea,
select {
    width: 100%;
    padding: .75rem;
    border: 1px solid var(--input-border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font-size: 1rem;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 6px 18px rgba(51,153,255,.12);
    border-color: var(--blue-500);
}

/* -----------------------------
    HEADER / HERO
----------------------------- */
header.hero {
    background: #fff;
    color: var(--navy-900);
    border-bottom: 1px solid rgba(0,0,0,.06);
}
[data-theme="dark"] header.hero {
    background: var(--surface);
    color: var(--text);
    border-bottom-color: rgba(255,255,255,.06);
}
.hero-grid {
    display: grid; gap: clamp(1rem, 3vw, 2rem);
    grid-template-columns: 1fr;
    align-items: center;
    padding: clamp(2rem, 4vw, 3rem) 0;
}
@media (min-width: 900px) {
    .hero-grid { grid-template-columns: 1.1fr .9fr; }
}

.brand {
    display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem;
}
.brand img { height: clamp(48px, 8vw, 72px); width: auto; }

.lead {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: var(--muted); max-width: 48ch; margin: .5rem 0 1.25rem;
}
[data-theme="dark"] .lead { color: var(--muted); }

.cta {
    display: flex; gap: .75rem; flex-wrap: wrap;
}

.hero-visual {
    position: relative; isolation: isolate;
}
.hero-visual img {
    border-radius: 18px; box-shadow: var(--shadow-1);
    width: 100%; height: auto; object-fit: cover;
}

/* Theme toggle */
.theme-toggle {
    position: absolute; top: 1rem; right: 1rem; z-index: 5;
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(0,0,0,.04);
    padding: .4rem .6rem; border-radius: 999px; font-size: .9rem;
    color: #223;
    backdrop-filter: blur(6px);
}
[data-theme="dark"] .theme-toggle { background: rgba(255,255,255,.06); color: var(--text); }
.toggle-btn { background: transparent; border: none; color: inherit; cursor: pointer; padding: .25rem .5rem; }

/* -----------------------------
    LOGO CAROUSEL
----------------------------- */
.carousel-wrap {
    background: #fff;
}
[data-theme="dark"] .carousel-wrap { background: var(--surface); }
.carousel {
    display: flex; gap: 16px; padding: 2rem 0;
    width: max-content; animation: slide 28s linear infinite;
}
.carousel img {
    height: clamp(26px, 3.8vw, 38px); width: auto; border-radius: 10px;
    filter: grayscale(100%) contrast(1.05) brightness(0.95);
    opacity: .9; transition: transform .25s ease, filter .25s ease, opacity .25s ease;
    background: #fff;
}
.carousel img:hover { transform: translateY(-3px) scale(1.03); filter: none; opacity: 1; }

.carousel-container { overflow: hidden; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
    .carousel { animation: none; }
}

/* -----------------------------
    INTRO PITCH BLOCK
----------------------------- */
.pitch {
    color: #fff; text-align: center;
}
.pitch .visual {
    width: min(680px, 92%); margin: 0 auto 1.25rem;
    border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-1);
}
.pitch h1 { margin-top: .25rem; }

/* -----------------------------
    CARDS (Mission / Vision)
----------------------------- */
.two-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-1); display: flex; flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}
[data-theme="dark"] .card { background: var(--surface); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.card-header { aspect-ratio: 16 / 10; overflow: hidden; }
.card-header img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.25rem; text-align: center; }
.card-body h2 { color: var(--navy-800); margin-bottom: .5rem; }
[data-theme="dark"] .card-body h2 { color: var(--text); }
.card-body p { color: #333; }
[data-theme="dark"] .card-body p { color: var(--muted); }

/* -----------------------------
    HOW IT WORKS (Steps)
----------------------------- */
.how-it-works { text-align: center; }
.how-title { color: #fff; margin-bottom: 1.25rem; }
.steps {
    display: grid; gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.step-card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-1);
    padding: 1.5rem; transition: transform .25s ease, box-shadow .25s ease;
}
[data-theme="dark"] .step-card { background: var(--surface); }
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.step-number {
    width: 42px; height: 42px; border-radius: 999px; margin: 0 auto .75rem;
    display: grid; place-items: center; font-weight: 700;
    color: #fff; background: var(--navy-800); box-shadow: 0 4px 10px rgba(0,0,0,.3);
}
.step-card h3 { color: var(--navy-800); margin-bottom: .35rem; }
[data-theme="dark"] .step-card h3 { color: var(--text); }
.step-card p { color: #333; }
[data-theme="dark"] .step-card p { color: var(--muted); }

/* -----------------------------
    IMPACT (Metrics)
----------------------------- */
.impact-section {
    background: #fff; border-radius: 22px; margin: 2rem 0;
    box-shadow: var(--shadow-1);
}
[data-theme="dark"] .impact-section { background: var(--surface); }
.impact-title { color: var(--navy-800); text-align: center; margin: 0 0 1rem; }
[data-theme="dark"] .impact-title { color: var(--text); }

.metrics {
    display: grid; gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    justify-items: center;
    padding: 0 1rem 1.25rem;
}
.metric-card {
    width: 100%; max-width: 280px; padding: 1.25rem 1rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
    color: #fff; text-align: center;
    box-shadow: var(--shadow-1); transition: transform .25s ease, box-shadow .25s ease;
}
.metric-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.metric-card h3 { font-size: clamp(1.6rem, 3.2vw, 2rem); margin: 0 0 .25rem; }
.metric-card p { margin: 0; opacity: .9; }

/* -----------------------------
    FOOTER
----------------------------- */
footer {
    background: #fff; color: #222; padding: 2.25rem 0; margin-top: 2rem;
    border-top: 1px solid rgba(0,0,0,.06);
}
[data-theme="dark"] footer {
    background: var(--surface); color: var(--text);
    border-top-color: rgba(255,255,255,.06);
}

.footer-grid {
    display: grid; gap: 1.25rem;
    grid-template-columns: 1fr; align-items: start;
}
@media (min-width: 800px) {
    .footer-grid { grid-template-columns: 1.2fr .8fr .8fr; }
}

.footer-brand { display: grid; gap: .5rem; }
.footer-brand img { height: 40px; width: auto; }
.footer-brand p { color: var(--muted); margin: 0; }

.footer-col h4 { margin-bottom: .5rem; }
.footer-links { display: grid; gap: .35rem; }
.footer-links a { color: inherit; opacity: .9; text-decoration: none; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }

.footer-bottom {
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    border-top: 1px dashed rgba(0,0,0,.12); margin-top: 1.25rem; padding-top: 1rem; color: var(--muted);
}
[data-theme="dark"] .footer-bottom { border-top-color: rgba(255,255,255,.14); }

/* -----------------------------
    COOKIE POPUP
----------------------------- */
.cookie-popup {
    position: fixed; bottom: 20px; right: 20px; z-index: 9999;
    background: #fff; color: #111; border-radius: var(--radius);
    padding: 1.25rem; box-shadow: var(--shadow-1);
    width: min(360px, 92%); display: none; opacity: 0; transform: translateY(20px);
    transition: opacity .4s ease, transform .4s ease;
}
[data-theme="dark"] .cookie-popup { background: var(--surface); color: var(--text); }
.cookie-popup.show { display: block; opacity: 1; transform: translateY(0); }
.cookie-content h3 { margin: 0 0 .35rem; color: var(--navy-800); }
[data-theme="dark"] .cookie-content h3 { color: var(--text); }
.cookie-content p { margin: 0 0 .9rem; color: #333; }
[data-theme="dark"] .cookie-content p { color: var(--muted); }
.cookie-buttons { display: flex; justify-content: flex-end; gap: .6rem; }

/* -----------------------------
    UTILITIES
----------------------------- */
.center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }