:root {
    --primary: #00ff88;
    --primary-glow: rgba(0, 255, 136, 0.4);
    --secondary: #0a0a0c;
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-bg: linear-gradient(135deg, #0a0a0c 0%, #1a1a1f 100%);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--secondary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: var(--static-height, 100vh);
}

h1, h2, .logo {
    font-family: 'Outfit', sans-serif;
}

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

/* Background Image & Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: var(--static-height, 100vh);
    background-image: url('hero_bg.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: var(--static-height, 100vh);
    background: linear-gradient(to right, rgba(10, 10, 12, 0.9) 30%, rgba(10, 10, 12, 0.4) 100%);
    z-index: -1;
}

/* Header */
header {
    padding: 30px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo span {
    color: var(--primary);
    margin-left: 2px;
}

/* Hero Section */
main {
    padding: 40px 0 80px;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    min-height: 70vh;
}

.text-content {
    flex: 1;
}

.text-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(90deg, #ffffff 0%, #a0a0a0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-content h1 span {
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
}

.text-content p {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 32px;
    max-width: 500px;
}

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

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.benefit-item .icon {
    color: var(--primary);
    background: var(--primary-glow);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
}

/* Form Container */
.form-container {
    width: 100%;
    max-width: 450px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.form-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0.1;
    pointer-events: none;
}

.device-mobile .form-container {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 
        inset 0 0 16px rgba(255, 255, 255, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.5), /* Strong Top */
        inset 0 -2px 4px rgba(255, 255, 255, 0.2), /* Bottom */
        inset 2px 0 4px rgba(255, 255, 255, 0.2), /* Left */
        inset -2px 0 4px rgba(255, 255, 255, 0.2), /* Right */
        0 24px 48px rgba(0, 0, 0, 0.5); /* Deep depth */
}

.liquid-glass-filter {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

form p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 16px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.toggle-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 12px;
}

.toggle-btn {
    padding: 10px;
    border: none;
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: var(--primary);
    color: var(--secondary);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: var(--secondary);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--primary-glow);
}

.privacy {
    text-align: center;
    font-size: 0.75rem !important;
    margin-top: 16px !important;
}

/* Step Navigation */
.hidden {
    display: none !important;
}

.step-label {
    display: block;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.option-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px 10px;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.option-card.selected {
    background: rgba(205, 255, 113, 0.15);
    border-color: var(--primary);
    box-shadow: inset 0 0 10px rgba(205, 255, 113, 0.2), 0 0 10px rgba(205, 255, 113, 0.2);
    color: #fff;
    transform: scale(0.95);
}

.back-link {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: 16px;
    cursor: pointer;
    text-decoration: underline;
}

/* Simulation Dashboard & iPod Wheel */
#simulationDashboard {
    text-align: center;
    padding: 10px 0;
}

.dash-title {
    font-size: 1.75rem;
    margin-bottom: 4px;
}

.dash-subtitle {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.savings-display {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--primary-glow);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
}

.savings-year {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.savings-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.wheel-container {
    position: relative;
    width: 280px;
    height: 240px;
    margin: 0 auto 30px;
}

.arc-svg {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 140px;
    pointer-events: none;
}

.arc-path {
    stroke: var(--primary-glow);
    stroke-width: 4;
    stroke-dasharray: 2 12;
    stroke-linecap: round;
}

.ipod-wheel {
    width: 240px;
    height: 240px;
    background: rgba(20, 20, 30, 0.35);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    box-shadow: 
        0 14px 28px rgba(0,0,0,0.5),
        inset 0 0 16px rgba(255,255,255,0.2),
        inset 2px 2px 4px rgba(255,255,255,0.3),
        inset -2px -2px 6px rgba(0,0,0,0.4);
    cursor: pointer;
    touch-action: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ipod-wheel::before {
    content: '';
    position: absolute;
    top: 15px; left: 15px; right: 15px; bottom: 15px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.04);
    pointer-events: none;
}

.wheel-center {
    width: 90px;
    height: 90px;
    background: rgba(10, 10, 15, 0.4);
    backdrop-filter: blur(15px) saturate(200%);
    -webkit-backdrop-filter: blur(15px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        inset 4px 4px 8px rgba(0,0,0,0.6),
        inset -2px -2px 6px rgba(255,255,255,0.1),
        -1px -1px 2px rgba(0,0,0,0.8),
        1px 1px 2px rgba(255,255,255,0.2);
    pointer-events: none;
    position: relative;
}

.earth-container {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    opacity: 1;
}
.earth-container svg {
    width: 100%;
    height: 100%;
}
.earth-shadow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 15%, transparent 50%, rgba(0, 0, 0, 0.4) 110%);
    mix-blend-mode: multiply;
}

.wheel-indicator {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    /* Will rotate via JS */
}

.wheel-indicator::after {
    content: '';
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--sun-color, var(--primary));
    border-radius: 50%;
    box-shadow: 0 0 15px var(--sun-color, var(--primary)), 0 0 30px var(--sun-glow, var(--primary-glow));
    transition: background 0.1s, box-shadow 0.1s;
}

/* The 'Hey, spin me!' animation */
@keyframes highlightSpin {
    0% { transform: rotate(0deg); }
    40% { transform: rotate(60deg); }
    70% { transform: rotate(-20deg); }
    100% { transform: rotate(0deg); }
}

.demo-spin {
    animation: highlightSpin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.roi-text {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 20px;
}

#roiYear {
    color: var(--primary);
    font-weight: bold;
}

.reset-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 12px 24px;
    border-radius: 12px;
    margin-top: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: var(--glass);
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .text-content h1 {
        font-size: 3rem;
    }

    .text-content p {
        margin: 0 auto 32px;
    }

    .benefits {
        align-items: center;
    }

    .hero-overlay {
        background: radial-gradient(circle at center, rgba(10, 10, 12, 0.7) 0%, rgba(10, 10, 12, 0.95) 100%);
    }
}

@media (max-width: 480px) {
    .logo {
        text-align: center;
        width: 100%;
        display: block;
    }

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

    .form-container {
        padding: 30px 20px;
        margin-bottom: 20px;
    }

    main {
        padding-bottom: 60px;
    }

    .logo {
        font-size: 1.25rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-content, .form-container {
    animation: fadeInUp 0.8s ease-out forwards;
}
