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

:root {
    --primary: #1e40af;
    --secondary: #7c3aed;
    --accent: #f59e0b;
    --text: #111827;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-light: #f9fafb;
}

/* Dark mode variables */
[data-theme="dark"] {
    --primary: #3b82f6;
    --secondary: #8b5cf6;
    --accent: #f59e0b;
    --text: #f9fafb;
    --text-light: #d1d5db;
    --bg: #111827;
    --bg-light: #1f2937;
}

/* Dark mode specific overrides */
[data-theme="dark"] .navbar {
    background: rgba(17, 24, 39, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .feature-card:hover {
    background: var(--bg-light);
}

[data-theme="dark"] .process-item {
    background: var(--bg-light);
}

[data-theme="dark"] .stat {
    background: rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .email-signup input {
    background: var(--bg-light);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--text);
}

[data-theme="dark"] .email-signup input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    max-width: 100%;
}

/* Background Gradient */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    z-index: -1;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 2rem;
}

.nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.nav-items {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-items a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-items a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
}

.hero-subtitle {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(30, 64, 175, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    width: fit-content;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-large {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.3);
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(30, 64, 175, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(30, 64, 175, 0.05);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

/* ============================================================
   ICON-STYLE SMART BULB
   ============================================================ */

.interactive-bulb {
    position: relative;
    width: 300px;
    height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    cursor: pointer;
}

/* Wide ambient halo behind the entire bulb */
.bulb-ambient {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 42%,
        rgba(16, 185, 129, 0.35) 0%,
        rgba(16, 185, 129, 0.12) 45%,
        transparent 72%);
    animation: ambient-pulse 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* SVG icon bulb */
.bulb-svg {
    width: 260px;
    height: auto;
    z-index: 2;
    overflow: visible;
    filter:
        drop-shadow(0 0 28px rgba(16, 185, 129, 0.75))
        drop-shadow(0 20px 40px rgba(16, 185, 129, 0.45));
    animation: bulb-float 4s ease-in-out infinite;
}

/* Dome — main colored fill */
.bulb-svg .bulb-dome {
    fill: #10b981;
}

/* Neck — slightly darker shade */
.bulb-svg .bulb-neck {
    fill: #059669;
}

/* Base bands — progressively darker opacity to suggest screw threads */
.bulb-svg .bulb-base-1 { fill: #059669; opacity: 1;    }
.bulb-svg .bulb-base-2 { fill: #059669; opacity: 0.82; }
.bulb-svg .bulb-base-3 { fill: #059669; opacity: 0.65; }

/* Gloss highlight — stays white, non-interactive */
.bulb-svg .bulb-gloss {
    pointer-events: none;
}

/* Rays — same color as dome, pulse animation */
.bulb-svg .bulb-rays {
    stroke: #10b981;
    transform-origin: 120px 100px;
    animation: rays-pulse 3s ease-in-out infinite;
}

/* State label below the bulb */
.bulb-state-label {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    z-index: 2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    background: rgba(0,0,0,0.05);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes bulb-float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}

@keyframes ambient-pulse {
    0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
    50%       { opacity: 1;   transform: translateX(-50%) scale(1.08); }
}

@keyframes rays-pulse {
    0%, 100% { opacity: 0.85; transform: scale(1)    rotate(0deg); }
    50%       { opacity: 1;   transform: scale(1.06) rotate(8deg); }
}

.hero-stats {
    display: flex;
    justify-content: space-around;
    width: 100%;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(30, 64, 175, 0.05);
    border-radius: 12px;
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Features Section */
.features {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 4rem 2rem;
}

.features h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.1);
    background: white;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    color: var(--text);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* How Works */
.how-works {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 4rem 2rem;
}

.how-works h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text);
}

.process-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.process-item {
    flex: 0 1 200px;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.process-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(30, 64, 175, 0.1);
}

.process-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.process-title {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.process-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.process-arrow {
    font-size: 1.5rem;
    color: var(--primary);
    opacity: 0.5;
}

/* Color States */
.color-states {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 4rem 2rem;
}

.color-states h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text);
}

.state-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.state {
    text-align: center;
    padding: 2rem;
}

.state-light {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    animation: state-glow 2s ease-in-out infinite;
    box-shadow: 0 0 40px currentColor;
}

.green-light {
    background: #10b981;
    color: #10b981;
}

.orange-light {
    background: #f59e0b;
    color: #f59e0b;
}

.red-light {
    background: #ef4444;
    color: #ef4444;
}

.state h3 {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.state p {
    color: var(--text-light);
}

@keyframes state-glow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Final CTA */
.final-cta {
    max-width: 600px;
    margin: 6rem auto 4rem;
    padding: 4rem 2rem;
    text-align: center;
}

.cta-container {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    padding: 3.5rem;
    border-radius: 16px;
    border: 1px solid rgba(30, 64, 175, 0.1);
}

.cta-container h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.cta-container > p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.email-signup {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.email-signup button {
    width: 100%;
}

.email-signup input {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border: 1px solid rgba(30, 64, 175, 0.2);
    background: white;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.email-signup input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.email-signup input::placeholder {
    color: var(--text-light);
}

.disclaimer {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    /* Navbar */
    .navbar {
        padding: 1rem 1.25rem;
    }

    .nav-items {
        gap: 1.25rem;
        font-size: 0.85rem;
    }

    /* Hero */
    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem 1.25rem;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    /* Hero visual — constrain bulb on mobile */
    .hero-visual {
        height: auto;
        gap: 1.25rem;
    }

    .interactive-bulb {
        width: 160px;
        height: 210px;
    }

    .bulb-svg {
        width: 140px;
    }

    .bulb-ambient {
        width: 170px;
        height: 170px;
    }

    /* Bulb state label */
    .bulb-state-label {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
        white-space: nowrap;
    }

    /* Stats */
    .hero-stats {
        gap: 0.75rem;
    }

    .stat {
        padding: 1rem 0.5rem;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    /* Features */
    .features {
        padding: 3rem 1.25rem;
    }

    .features h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* How it works */
    .how-works {
        padding: 3rem 1.25rem;
    }

    .how-works h2 {
        font-size: 2rem;
    }

    .process-steps {
        flex-direction: column;
        align-items: stretch;
    }

    .process-item {
        flex: none;
        width: 100%;
    }

    .process-arrow {
        transform: rotate(90deg);
        align-self: center;
    }

    /* Color states */
    .color-states {
        padding: 3rem 1.25rem;
    }

    .color-states h2 {
        font-size: 2rem;
    }

    .state-showcase {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .state-light {
        width: 70px;
        height: 70px;
    }

    .state {
        padding: 1rem 0.5rem;
    }

    .state h3 {
        font-size: 0.9rem;
    }

    .state p {
        font-size: 0.8rem;
    }

    /* Final CTA */
    .final-cta {
        padding: 3rem 1.25rem;
        margin: 3rem auto 2rem;
    }

    .cta-container {
        padding: 2rem 1.5rem;
    }

    .cta-container h2 {
        font-size: 1.6rem;
    }

    .email-signup {
        flex-direction: column;
    }

    .email-signup input,
    .email-signup button {
        width: 100%;
        box-sizing: border-box;
    }
}
