/* ── ROOT: LIGHT MODE (default) ──────────────────────────────────────────── */
:root {
    --primary:     #0F6E56;
    --accent:      #1D9E75;

    --bg:          #FFFFFF;
    --surface:     #F9FBFB;
    --bg-input:    #F4F8F7;

    --text-dark:   #0D1B16;
    --text-light:  #5A7A6A;
    --text-muted:  #94A3B8;

    --border:      #E2E9E7;
    --radius:      12px;

    --nav-bg:      rgba(255, 255, 255, 0.95);
    --card-bg:     #FFFFFF;
    --card-hover:  #FFFFFF;
    --shadow:      rgba(15, 110, 86, 0.10);

    --toggle-bg:   #F4F8F7;
    --dropdown-bg: #FFFFFF;
    --nav-border:  rgba(15, 110, 86, 0.08);
    --nav-text:    #5A7A6A;
}

/* ── DARK MODE ───────────────────────────────────────────────────────────── */
[data-theme="dark"] {
    --bg:          #0f172a;
    --surface:     #1e293b;
    --bg-input:    #172032;

    --text-dark:   #f1f5f9;
    --text-light:  #94a3b8;
    --text-muted:  #64748b;

    --border:      #334155;

    --nav-bg:      rgba(15, 23, 42, 0.97);
    --card-bg:     #1e293b;
    --card-hover:  #243048;
    --shadow:      rgba(0, 0, 0, 0.30);

    --toggle-bg:   #1e293b;
    --dropdown-bg: #1e293b;
    --nav-border:  #334155;
    --nav-text:    #94a3b8;
}

/* ── AUTO (follows OS preference) ───────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
    [data-theme="auto"] {
        --bg:          #0f172a;
        --surface:     #1e293b;
        --bg-input:    #172032;
        --text-dark:   #f1f5f9;
        --text-light:  #94a3b8;
        --text-muted:  #64748b;
        --border:      #334155;
        --nav-bg:      rgba(15, 23, 42, 0.97);
        --card-bg:     #1e293b;
        --card-hover:  #243048;
        --shadow:      rgba(0, 0, 0, 0.30);
        --toggle-bg:   #1e293b;
        --dropdown-bg: #1e293b;
        --nav-border:  #334155;
        --nav-text:    #94a3b8;
    }
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);           /* ← was hardcoded white */
    color: var(--text-dark);         /* ← was hardcoded #0D1B16 */
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}

h1, h2, h3 { font-family: 'Sora', sans-serif; font-weight: 800; }


/* Add to your existing :root in index.css */
:root {
    /* ... your existing tokens ... */
    
    /* Auth page extras */
    --primary-dark: #0f766e;
    --primary-light: #ccfbf1;
    --danger: #ef4444;
    --success: #22c55e;
    --form-bg: #ffffff;
    --input-bg: #ffffff;
    --light-gray: #f1f5f9;
}

[data-theme="dark"] {
    /* ... your existing dark tokens ... */
    
    /* Auth page dark extras */
    --primary-dark: #115e59;
    --primary-light: #134e4a;
    --danger: #f87171;
    --success: #4ade80;
    --form-bg: #1e293b;
    --input-bg: #172032;
    --light-gray: #334155;
}

/* ── NAV ─────────────────────────────────────────────────────────────────── */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 6%;
    position: sticky;
    top: 0;
    background: var(--nav-bg);       /* ← was hardcoded rgba white */
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--nav-border); /* ← was hardcoded */
    transition: background 0.3s;
}

.logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; color: var(--primary);
    font-size: 20px; text-decoration: none;
}

.logo-box {
    width: 32px; height: 32px;
    background: var(--primary);
    border-radius: 8px;
    display: grid; place-items: center;
}
.logo-box i { color: white; font-size: 16px; }

/* nav */

.btn-outline {
    background: var(--bg);           /* ← was hardcoded white */
    border: 1px solid var(--border); /* ← was hardcoded */
    color: var(--text-dark);         /* ← was hardcoded */
    padding: 10px 20px;
    border-radius: 50px; font-weight: 600;
    cursor: pointer; transition: all 0.3s;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ── HERO ────────────────────────────────────────────────────────────────── */
.hero {
    padding: 100px 6%;
    display: flex; flex-direction: column;
    align-items: center; text-align: center;
    background: radial-gradient(circle at top, #F2FAF8 0%, var(--bg) 50%);
    transition: background 0.3s;
}

[data-theme="dark"] .hero {
    background: radial-gradient(circle at top, #0f2e24 0%, var(--bg) 60%);
}

.hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.1; letter-spacing: -2px;
    max-width: 900px; margin-bottom: 24px;
    color: var(--text-dark);
}
.hero p {
    color: var(--text-light);
    font-size: 20px; max-width: 600px; margin-bottom: 32px;
}

/* ── SECTIONS ────────────────────────────────────────────────────────────── */
section { padding: 100px 6%; }

section[style*="background: var(--surface)"],
section[style*="background:var(--surface)"] {
    background: var(--surface) !important;
}

/* Fallback for inline style on the "Why Choose" section */
section:nth-of-type(3) { background: var(--surface); }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 {
    font-size: 36px; margin-bottom: 16px;
    color: var(--text-dark);         /* ← was hardcoded */
}
.section-header p {
    color: var(--text-light);        /* ← was hardcoded */
    font-size: 18px; max-width: 600px; margin: 0 auto;
}

/* ── PRODUCT CARDS ───────────────────────────────────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border); /* ← was hardcoded */
    background: var(--surface);      /* ← was hardcoded */
    transition: 0.3s;
}
.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    background: var(--card-hover);   /* ← was hardcoded white */
    box-shadow: 0 10px 40px var(--shadow);
}
.product-card h3 { color: var(--text-dark); margin-bottom: 10px; }
.product-card p  { color: var(--text-light); font-size: 14px; }

.icon-circle {
    width: 50px; height: 50px;
    background: #E1F5EE;
    border-radius: 12px;
    display: grid; place-items: center;
    margin-bottom: 20px;
    font-size: 24px; color: var(--primary);
}

[data-theme="dark"] .icon-circle { background: rgba(29,158,117,0.15); }

/* ── FEATURE LIST ────────────────────────────────────────────────────────── */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px; margin-top: 40px;
}

.feature-item {
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border); /* ← was hardcoded */
    background: var(--card-bg);      /* ← was hardcoded white */
    text-align: center; transition: 0.3s;
}
.feature-item:hover { border-color: var(--accent); transform: translateY(-3px); }
.feature-item i     { font-size: 36px; color: var(--primary); margin-bottom: 15px; }
.feature-item h4    { margin-bottom: 10px; color: var(--text-dark); }
.feature-item p     { color: var(--text-light); font-size: 14px; }

/* ── PRICING ─────────────────────────────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px; max-width: 1100px; margin: 0 auto;
}

.price-card {
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border); /* ← was hardcoded */
    background: var(--card-bg);
    text-align: center; transition: 0.3s;
}
.price-card:hover { transform: translateY(-5px); box-shadow: 0 10px 40px var(--shadow); }
.price-card.featured { border: 2px solid var(--primary); background: var(--surface); position: relative; }
.price-card h3      { font-size: 20px; margin-bottom: 10px; color: var(--text-dark); }
.price-card .amount { font-size: 48px; font-weight: 800; margin-bottom: 20px; color: var(--text-dark); }
.price-card .amount span { font-size: 18px; font-weight: 400; color: var(--text-light); }
.price-card ul      { list-style: none; margin: 30px 0; text-align: left; }
.price-card ul li   { margin-bottom: 12px; font-size: 14px; color: var(--text-light); display: flex; align-items: center; gap: 8px; }
.price-card ul li i { color: var(--accent); }

/* ── SOLUTIONS ───────────────────────────────────────────────────────────── */
.solution-split {
    display: flex; gap: 60px;
    align-items: center; margin-bottom: 80px;
}

.solution-img {
    flex: 1;
    background: linear-gradient(135deg, #EEF4F2 0%, #D4EDE6 100%);
    height: 400px; border-radius: 24px;
    display: grid; place-items: center;
    position: relative; overflow: hidden;
}
[data-theme="dark"] .solution-img {
    background: linear-gradient(135deg, #1a2e28 0%, #0f2e24 100%);
}
.solution-img i { font-size: 80px; color: var(--primary); opacity: 0.3; }

.solution-content h2 { font-size: 32px; margin-bottom: 20px; color: var(--text-dark); }
.solution-content p  { color: var(--text-light); margin-bottom: 20px; }
.solution-content ul { list-style: none; }
.solution-content ul li {
    margin-bottom: 12px; color: var(--accent);
    font-weight: 600; display: flex; align-items: center; gap: 10px;
}
.solution-content ul li i { color: var(--primary); }

/* ── STATS ───────────────────────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px; text-align: center;
}
.stat-item h3 { font-size: 48px; color: var(--primary); }
.stat-item p  { color: var(--text-light); }

/* ── TIMELINE ────────────────────────────────────────────────────────────── */
.timeline { max-width: 800px; margin: 0 auto; position: relative; }
.timeline::before {
    content: ''; position: absolute; left: 20px; top: 0; bottom: 0;
    width: 2px; background: var(--border); /* ← was hardcoded */
}
.timeline-item { display: flex; gap: 30px; margin-bottom: 40px; position: relative; }
.timeline-dot {
    width: 40px; height: 40px; background: var(--primary);
    border-radius: 50%; display: grid; place-items: center;
    color: white; flex-shrink: 0; z-index: 1;
}
.timeline-content h4 { margin-bottom: 8px; color: var(--text-dark); }
.timeline-content p  { color: var(--text-light); font-size: 14px; }

/* ── POLICY ──────────────────────────────────────────────────────────────── */
.policy-container { max-width: 800px; margin: 0 auto; color: var(--text-light); }
.policy-container h3 {
    color: var(--text-dark);         /* ← was hardcoded */
    margin: 30px 0 15px;
    display: flex; align-items: center; gap: 10px;
}
.policy-container h3 i { color: var(--primary); font-size: 20px; }
.policy-container p { line-height: 1.8; }

/* ── PAGE BANNER ─────────────────────────────────────────────────────────── */
.page-banner {
    padding: 120px 6% 60px; text-align: center;
    background: radial-gradient(circle at top, #F2FAF8 0%, var(--bg) 50%);
    transition: background 0.3s;
}
[data-theme="dark"] .page-banner {
    background: radial-gradient(circle at top, #0f2e24 0%, var(--bg) 60%);
}
.page-banner h1 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 16px; color: var(--text-dark); }
.page-banner p  { color: var(--text-light); font-size: 18px; max-width: 600px; margin: 0 auto; }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
footer {
    padding: 60px 6%;
    background: var(--surface);      /* ← was hardcoded */
    border-top: 1px solid var(--border); /* ← was hardcoded */
    display: flex; justify-content: space-between;
    flex-wrap: wrap; gap: 30px;
    transition: background 0.3s;
}
.footer-col h4 { margin-bottom: 20px; font-family: 'Sora'; color: var(--text-dark); }
.footer-col a  {
    display: block; color: var(--text-light); /* ← was hardcoded */
    text-decoration: none; margin-bottom: 10px;
    font-size: 14px; transition: 0.2s;
}
.footer-col a:hover { color: var(--primary); }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 850px) {
    nav ul { display: none; }
    .solution-split { flex-direction: column; }
    .hero h1 { font-size: 48px; }
    footer { flex-direction: column; text-align: center; }
    .solution-img { width: 100%; height: 250px; }
}