/* ==========================================================================
   AeroCube Premium Air Quality Sensor Monitor Landing Page CSS
   ========================================================================== */

/* --- Custom Properties (Design Tokens) --- */
:root {
    /* Color System */
    --bg-dark: #0a0b0e;
    --bg-card: rgba(18, 20, 26, 0.75);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --primary-accent: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.15);
    
    /* AQI State Colors (Fluid / Calibrated) */
    --aqi-excellent: #10b981;
    --aqi-excellent-glow: rgba(16, 185, 129, 0.35);
    --aqi-moderate: #f59e0b;
    --aqi-moderate-glow: rgba(245, 158, 11, 0.35);
    --aqi-unhealthy: #ef4444;
    --aqi-unhealthy-glow: rgba(239, 68, 68, 0.35);
    
    /* Font Families */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Transitions & Shadows */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --card-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    --glass-blur: blur(16px);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* --- Background Glow Accents --- */
.bg-glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.25;
}

.bg-glow-1 {
    top: -20%;
    right: -10%;
    background: radial-gradient(circle, var(--primary-accent) 0%, transparent 70%);
}

.bg-glow-2 {
    top: 30%;
    left: -20%;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
}

.bg-glow-3 {
    bottom: 5%;
    right: -10%;
    background: radial-gradient(circle, var(--aqi-excellent) 0%, transparent 70%);
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    color: var(--text-secondary);
}

.gradient-text {
    background: linear-gradient(135deg, #a5b4fc 0%, var(--primary-accent) 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Interactive Components: Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-dark);
    border: 1px solid var(--text-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background-color: var(--primary-accent);
    color: white;
    border: 1px solid var(--primary-accent);
}

.btn-secondary:hover {
    background-color: #4f46e5;
    border-color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.35);
}

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

.btn-outline:hover {
    border-color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-block {
    display: flex;
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* --- Card Styles --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    backdrop-filter: var(--glass-blur);
    padding: 40px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.card:hover {
    border-color: var(--border-hover);
}

/* --- Sticky Header & Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    background-color: rgba(10, 11, 14, 0.6);
    transition: var(--transition-smooth);
}

header.scrolled {
    padding: 10px 0;
    background-color: rgba(10, 11, 14, 0.85);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-primary);
    text-decoration: none;
}

.logo svg {
    color: var(--primary-accent);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

/* --- Language Selector --- */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 20px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 2px 4px;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    color: var(--primary-accent);
}

.lang-divider {
    color: var(--border-color);
    font-size: 0.8rem;
    pointer-events: none;
}

/* --- Mobile Drawer Menu --- */
.mobile-drawer {
    position: fixed;
    top: 73px;
    left: 0;
    width: 100%;
    height: calc(100vh - 73px);
    background-color: var(--bg-dark);
    z-index: 999;
    padding: 40px 24px;
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.mobile-drawer.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.drawer-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

/* --- Hero Section --- */
.hero-section {
    padding-top: 160px;
    padding-bottom: 100px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 1.15rem;
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    max-width: 500px;
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

/* --- Hero Image & Glow Effects --- */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 40px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.hero-img {
    width: 100%;
    max-width: 440px;
    border-radius: 32px;
    display: block;
}

.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    background: rgba(10, 11, 14, 0.7);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.5);
    z-index: 5;
    animation: float 4s ease-in-out infinite;
}

.badge-top-right {
    top: 40px;
    right: -30px;
    animation-delay: 0.5s;
}

.badge-bottom-left {
    bottom: 40px;
    left: -40px;
    animation-delay: 2s;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
}

.pulse-dot.green {
    background-color: var(--aqi-excellent);
    box-shadow: 0 0 0 0 var(--aqi-excellent-glow);
    animation: pulseGreen 2s infinite;
}

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

.section-header {
    max-width: 650px;
    margin: 0 auto 60px;
    text-align: center;
    padding: 0 24px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* --- Key Features Section --- */
.features-section {
    background-color: rgba(18, 20, 26, 0.3);
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 30px;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    background: rgba(22, 25, 33, 0.85);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary-accent);
    border-radius: 16px;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 14px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* --- Interactive Simulator Section --- */
.simulator-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sim-panel {
    display: flex;
    flex-direction: column;
}

.panel-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.panel-desc {
    margin-bottom: 30px;
}

.control-group {
    margin-bottom: 25px;
}

.control-group label {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 12px;
}

.value-highlight {
    font-family: var(--font-mono);
    color: var(--primary-accent);
    font-weight: 700;
    transition: var(--transition-smooth);
}

/* Range input styling */
.range-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--text-primary);
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.quick-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}

.preset-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.preset-btn:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.preset-btn.active {
    background: var(--text-primary);
    color: var(--bg-dark);
    border-color: var(--text-primary);
}

.sim-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.sim-stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 15px;
    text-align: center;
}

.box-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.box-val {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
}

.text-green { color: var(--aqi-excellent); }
.text-amber { color: var(--aqi-moderate); }
.text-red { color: var(--aqi-unhealthy); }

/* --- Virtual AeroCube Monitor Rendering --- */
.sim-device-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Device Casing - 1:1 Square minimalist */
.virtual-device {
    width: 320px;
    height: 320px;
    background: #1f2229; /* Aluminum grey scale */
    border-radius: 48px;
    border: 6px solid #374151; /* Bezel edge */
    box-shadow: 
        inset 0 4px 6px rgba(255,255,255,0.06),
        inset 0 -10px 15px rgba(0,0,0,0.6),
        0 30px 60px -15px rgba(0, 0, 0, 0.8);
    position: relative;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color var(--transition-smooth);
}

/* Glass shine overlay */
.device-glare {
    position: absolute;
    top: -150%;
    left: -150%;
    width: 300%;
    height: 300%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 50%);
    transform: rotate(25deg);
    pointer-events: none;
    z-index: 10;
}

/* Ambient LED Ring (glow outline) */
.device-light-ring {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    bottom: 14px;
    border-radius: 36px;
    border: 2px solid var(--aqi-excellent);
    box-shadow: 
        0 0 15px var(--aqi-excellent-glow),
        inset 0 0 10px var(--aqi-excellent-glow);
    z-index: 1;
    pointer-events: none;
    opacity: 0.85;
    transition: var(--transition-smooth);
}

/* Inner frame bezel */
.device-bezel {
    width: 100%;
    height: 100%;
    background: #0f1015; /* Screen border */
    border-radius: 32px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* LCD Display screen - circular */
.device-screen {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 22px 14px;
    position: relative;
    overflow: hidden;
}

.screen-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    padding: 0 12px;
}

.screen-main {
    display: flex;
    align-items: center;
    justify-content: center;
}

.aqi-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--aqi-excellent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--aqi-excellent-glow);
    transition: var(--transition-smooth);
}

.aqi-circle-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.aqi-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
}

.aqi-unit {
    font-size: 0.55rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.screen-footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    padding: 0 4px;
}

.footer-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-stat .label {
    font-size: 0.5rem;
    color: var(--text-muted);
    font-weight: 700;
}

.footer-stat .value {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.footer-stat.highlight-stat .value {
    color: var(--aqi-excellent);
    transition: var(--transition-smooth);
}

.device-shadow {
    width: 260px;
    height: 20px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 70%);
    margin-top: 25px;
}

.demo-caption {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
}

/* --- The 30-Minute Cycle Section --- */
.cycle-section {
    background-color: rgba(10, 11, 14, 0.4);
}

.cycle-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.cycle-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cycle-clock-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
    margin-bottom: 40px;
}

.cycle-radial-svg {
    transform: rotate(-90deg);
}

.radial-track {
    fill: none;
    stroke: rgba(255,255,255,0.03);
    stroke-width: 10;
}

.radial-progress {
    fill: none;
    stroke: var(--primary-accent);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 534; /* 2 * PI * 85 */
    stroke-dashoffset: 534;
    transition: stroke-dashoffset 0.1s linear;
}

.clock-markers {
    stroke: rgba(255,255,255,0.15);
    fill: none;
}

.cycle-clock-center {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
}

.cycle-timer-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cycle-timer-val {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin: 4px 0;
    color: var(--text-primary);
}

.cycle-timer-sub {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--primary-accent);
}

.cycle-controls {
    display: flex;
    gap: 15px;
}

.cycle-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-step {
    display: flex;
    gap: 24px;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.timeline-step.active {
    background: var(--bg-card);
    border-color: var(--border-color);
    box-shadow: var(--card-shadow);
}

.step-num {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255,255,255,0.03);
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.timeline-step.active .step-num {
    color: var(--primary-accent);
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.step-details h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.timeline-step.active .step-details h4 {
    color: var(--primary-accent);
}

.step-details p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* --- Lifestyle Section --- */
.lifestyle-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.lifestyle-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.lifestyle-content p {
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.integration-icons {
    display: flex;
    gap: 15px;
}

.int-icon-wrapper {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.lifestyle-img-wrap {
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.lifestyle-img {
    width: 100%;
    display: block;
    transition: transform 6s ease;
}

.lifestyle-img-wrap:hover .lifestyle-img {
    transform: scale(1.05);
}

/* --- Pre-Order Customizer Section --- */
.preorder-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
    align-items: start;
}

.customizer-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.customizer-preview {
    width: 100%;
    height: 340px;
    background: rgba(255,255,255,0.01);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 40px;
    overflow: hidden;
}

.glow-underlay {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--aqi-excellent-glow) 0%, transparent 65%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.7;
}

/* Square casing customizable */
.customizer-shell-outer {
    width: 200px;
    height: 200px;
    border-radius: 36px;
    border: 14px solid #24252a; /* Custom Color Target */
    background: #0f1015;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.customizer-display {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.customizer-display-aqi {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
}

.customizer-display-lbl {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--aqi-excellent);
    font-weight: 700;
    letter-spacing: 0.1em;
}

.customizer-controls {
    width: 100%;
}

.option-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 12px;
}

.color-options {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.color-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    outline: none;
    transition: var(--transition-smooth);
}

.color-dot:hover {
    transform: scale(1.1);
}

.color-dot.active {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--bg-dark), 0 0 0 4px var(--text-primary);
}

.color-name-display {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.accessory-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accessory-card {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.accessory-card:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--border-hover);
}

.accessory-card.active {
    background: rgba(99, 102, 241, 0.05);
    border-color: var(--primary-accent);
}

.accessory-card input {
    margin-right: 15px;
    accent-color: var(--primary-accent);
}

.acc-text {
    display: flex;
    width: 100%;
    justify-content: space-between;
    font-size: 0.95rem;
}

.acc-title {
    font-weight: 500;
    color: var(--text-primary);
}

.acc-price {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-secondary);
}

/* Preorder Checkout Form Styling */
.preorder-checkout-panel {
    position: relative;
    overflow: hidden;
}

.divider {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 20px 0;
}

.checkout-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.row-price {
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.discount-text {
    color: var(--aqi-unhealthy);
}

.total-row {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 5px;
}

.total-price {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    color: var(--text-primary);
}

.preorder-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus {
    border-color: var(--primary-accent);
    background: rgba(255,255,255,0.05);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.promo-input-group {
    display: flex;
    gap: 10px;
}

.promo-input-group input {
    flex-grow: 1;
}

.feedback-text {
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 4px;
}

/* Success View Overlay */
.checkout-success {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #12141a;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
    transform: translateY(100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.checkout-success.open {
    transform: translateY(0);
    opacity: 1;
}

.success-icon {
    color: var(--aqi-excellent);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px var(--aqi-excellent-glow));
}

.checkout-success h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.checkout-success p {
    font-size: 0.95rem;
    margin-bottom: 30px;
    max-width: 320px;
}

/* --- Technical Specifications Accordion --- */
.specs-section {
    background-color: rgba(18, 20, 26, 0.2);
}

.specs-accordion {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 24px 0;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    outline: none;
    transition: var(--transition-smooth);
}

.accordion-header:hover {
    color: var(--primary-accent);
}

.accordion-header .icon {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header .icon {
    transform: rotate(45deg);
    color: var(--primary-accent);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.specs-table td {
    padding: 16px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.specs-table td:first-child {
    font-weight: 600;
    color: var(--text-secondary);
    width: 35%;
}

.specs-table td:last-child {
    color: var(--text-primary);
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 50px;
}

.footer-brand p {
    margin-top: 18px;
    font-size: 0.9rem;
    max-width: 260px;
}

.footer-links-group h4, .footer-newsletter h4 {
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.footer-links-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-group a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-links-group a:hover {
    color: var(--text-primary);
}

.footer-newsletter p {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.newsletter-form input {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    outline: none;
    font-size: 0.9rem;
    flex-grow: 1;
}

.newsletter-form button {
    background: var(--text-primary);
    color: var(--bg-dark);
    border: none;
    font-weight: 600;
    padding: 0 22px;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: var(--transition-smooth);
}

.newsletter-form button:hover {
    background: var(--text-secondary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 24px 24px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Reveal on Scroll --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Keyframe Animations --- */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulseGreen {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Fade-in classes for page load */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInAnimation 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content .fade-in:nth-child(1) { animation-delay: 0.1s; }
.hero-content .fade-in:nth-child(2) { animation-delay: 0.2s; }
.hero-content .fade-in:nth-child(3) { animation-delay: 0.3s; }
.hero-content .fade-in:nth-child(4) { animation-delay: 0.4s; }
.hero-content .fade-in:nth-child(5) { animation-delay: 0.5s; }
.hero-visual.fade-in { animation-delay: 0.6s; }

@keyframes fadeInAnimation {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet (Medium) */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
        margin: 0 auto;
    }
    
    .hero-image-wrapper {
        max-width: 380px;
    }
    
    .simulator-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .cycle-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .preorder-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .lifestyle-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile Navigation (Header updates) */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .lang-selector {
        margin-left: auto;
        margin-right: 15px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .virtual-device {
        width: 290px;
        height: 290px;
        padding: 16px;
    }
    
    .aqi-circle {
        width: 85px;
        height: 85px;
    }
    
    .aqi-number {
        font-size: 1.8rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-ctas .btn {
        width: 100%;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .sim-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row-2 {
        grid-template-columns: 1fr;
    }
}
