/* =========================================
   1. CORE VARIABLES & RESET
   ========================================= */
   :root {
    --bg-body: #fbfbfd;
    --text-main: #1d1d1f;
    --text-gray: #86868b;
    --nexus-orange: #ff9500;
    --studio-blue: #007aff;
    --core-purple: #5e5ce6;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-blur: blur(20px);
    --radius-card: 32px;
    --ease-apple: cubic-bezier(0.25, 0.1, 0.25, 1);
    --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
    --font-mono: "SF Mono", "Menlo", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    background-color: var(--bg-body);
    font-family: var(--font-stack);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { text-decoration: none !important; color: inherit; }
button { font-family: inherit; border: none; cursor: pointer; text-decoration: none !important; outline: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #fbfbfd; }
::-webkit-scrollbar-thumb { background: #d2d2d7; border-radius: 10px; border: 3px solid #fbfbfd; }

/* =========================================
   2. GLOBAL UTILITIES
   ========================================= */
.text-center { text-align: center; }
.text-white { color: #fff; }
.text-nexus-orange { color: var(--nexus-orange); }
.font-16 { font-size: 16px; }
.font-42 { font-size: 42px; }
.font-48 { font-size: 48px; }
.weight-600 { font-weight: 600; }
.weight-700 { font-weight: 700; }
.mb-60 { margin-bottom: 60px; }

.flex-shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1; }
.h-100 { height: 100%; }
.col-flex { display: flex; flex-direction: column; }
.hidden { display: none !important; }

.reveal-on-scroll { opacity: 0; transform: translateY(30px); transition: all .8s cubic-bezier(.2, .8, .2, 1); }
.is-visible { opacity: 1; transform: translateY(0); }

/* Navigation */
.nav-wrapper { position: fixed; top: 20px; left: 0; width: 100%; display: flex; justify-content: center; z-index: 9999; pointer-events: none; }
.vision-nav { pointer-events: auto; background: var(--glass-bg); backdrop-filter: saturate(180%) var(--glass-blur); padding: 8px 12px; border-radius: 100px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); border: 1px solid rgba(255, 255, 255, 0.4); min-width: 320px; transition: transform 0.3s var(--ease-apple); }
.vision-nav:hover { transform: scale(1.02); }
.nav-logo-container { padding: 0 15px 0 10px; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.custom-logo-img { width: 50px; height: 50px; border-radius: 8px; object-fit: contain; margin: -12px -5px -12px 0; }
.nav-logo-text { font-weight: 600; font-size: 15px; letter-spacing: -0.3px; color: #000; }
.desktop-nav-links { display: flex; padding-right: 5px; border-left: 1px solid rgba(0, 0, 0, 0.1); margin-left: 10px; }
.nav-item { background: 0 0; border: none; color: #333; font-size: 13px; font-weight: 500; padding: 10px 18px; border-radius: 20px; cursor: pointer; transition: 0.2s; }
.nav-item:hover { background: rgba(0, 0, 0, 0.05); }
.nav-item.active { background: #1d1d1f; color: #fff; }

/* Mobile Menu */
.burger-menu-btn { display: none; width: 40px; height: 40px; background: 0 0; border: none; cursor: pointer; position: relative; margin-right: 5px; pointer-events: auto; }
.burger-line { width: 18px; height: 2px; background: #1d1d1f; position: absolute; left: 50%; transform: translateX(-50%); border-radius: 2px; transition: 0.3s var(--ease-apple); }
.top { top: 16px; } .bot { bottom: 16px; }
.burger-menu-btn.active .top { top: 50%; transform: translate(-50%, -50%) rotate(45deg); }
.burger-menu-btn.active .bot { bottom: 50%; transform: translate(-50%, 50%) rotate(-45deg); }
.mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(251, 251, 253, .98); backdrop-filter: blur(20px); z-index: 9990; padding: 120px 40px; display: flex; flex-direction: column; gap: 20px; opacity: 0; pointer-events: none; transform: translateY(-20px); transition: 0.4s var(--ease-apple); }
.mobile-menu-overlay.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mm-link { font-size: 28px; font-weight: 600; color: #1d1d1f; text-decoration: none; border-bottom: 1px solid rgba(0, 0, 0, .05); padding-bottom: 20px; opacity: 0; transform: translateY(10px); transition: 0.3s var(--ease-apple); }
.mobile-menu-overlay.open .mm-link { opacity: 1; transform: translateY(0); }

/* =========================================
   3. HERO & BADGES
   ========================================= */
.detail-page { padding-top: 140px; padding-bottom: 0px; margin-bottom: 0px; }
.detail-hero { text-align: center; max-width: 900px; margin: 0 auto; padding: 0 20px; }
.headline { font-size: clamp(32px, 6vw, 64px); line-height: 1.05; font-weight: 700; margin-bottom: 15px; letter-spacing: -0.03em; text-wrap: balance; }
.subhead { font-size: 21px; font-weight: 400; margin-bottom: 35px; color: #86868b; line-height: 1.5; }
.nexus-badge-container { position: relative; display: inline-block; margin-bottom: 15px; }
.nexus-corner-logo { position: absolute; top: -8px; right: -16px; width: 28px; height: auto; transform: rotate(15deg); filter: drop-shadow(0 2px 5px rgba(255, 149, 0, 0.3)); }
.nexus-badge-text { color: var(--nexus-orange); font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: 1px; }

/* =========================================
   4. 3D IPAD STAGE
   ========================================= */
.ipad-stage { 
    perspective: 1500px; height: 650px; display: flex; 
    justify-content: center; align-items: center; 
    margin-bottom: 60px; margin-top: -90px; 
}

/* 3D Device Container */
.ipad-device { 
    width: 760px; height: 540px; 
    background: #000; border-radius: 36px; 
    box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .1); 
    border: 5px solid #2a2a2a; 
    transform-style: preserve-3d; 
    position: relative; 
    transform: rotateX(20deg); 
    will-change: transform; 
    transition: transform 0.1s linear;
}

.ipad-screen { 
    position: absolute; top: 12px; left: 12px; right: 12px; bottom: 12px; 
    background: #000; border-radius: 24px; 
    overflow: hidden; transform-style: preserve-3d; 
    pointer-events: none; 
}

.screen-dim-overlay { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: #000; opacity: 0; pointer-events: none; z-index: 90; 
    transition: opacity .05s linear; 
}

/* =========================================
   5. SMART DASHBOARD UI
   ========================================= */
.smart-dashboard { 
    width: 100%; height: 100%; 
    background: #111; color: #fff; 
    display: flex; flex-direction: column; 
    font-family: var(--font-stack); 
    transform-style: preserve-3d; 
    pointer-events: none; 
}

/* Layout Grid inside iPad */
.fp-container { display: flex; width: 100%; height: 100%; gap: 20px; pointer-events: none; }

/* Sidebar */
.fp-sidebar { 
    width: 35%; display: flex; flex-direction: column; gap: 12px; 
    transform: translateZ(30px); z-index: 20; 
    pointer-events: none;
}

.fp-sidebar .flex-shrink-0 { padding: 10px 0 10px 5px; pointer-events: auto; }

.fp-content-wrapper { flex: 1; position: relative; overflow: hidden; min-height: 0; pointer-events: none; }

/* Header Elements */
.fp-header-text { font-size: 28px; font-weight: 700; margin-bottom: 5px; color: #fff; line-height: 1.1; }
.dash-eyebrow { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; margin-bottom: 4px; display: block; }
.scene-header { font-size: 13px; font-weight: 600; color: #aaa; flex-shrink: 0; margin-bottom: 10px; }

/* Dashboard Cards & Buttons */
.fp-card { 
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .05); 
    border-radius: 24px; padding: 15px; backdrop-filter: blur(20px); 
    pointer-events: auto; 
}
.fp-btn { 
    background: rgba(255, 255, 255, .05); border: none; border-radius: 16px; 
    color: #aaa; font-weight: 600; font-size: 12px; cursor: pointer; 
    display: flex; flex-direction: column; align-items: center; justify-content: center; 
    gap: 8px; width: 100%; height: 100%; transition: 0.2s; 
    pointer-events: auto; 
}
.fp-btn:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.fp-btn.active { color: #1d1d1f; background: #f2f2f2; box-shadow: 0 0 15px rgba(255, 255, 255, .3); }
.fp-btn-icon { font-size: 18px; }
.auto-grid-container { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; flex: 1; pointer-events: none; }

/* Views Logic */
.fp-view { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; gap: 12px; transition: 0.5s; background: 0 0; pointer-events: none; }
.fp-view.hidden { opacity: 0; transform: scale(0.96); pointer-events: none; visibility: hidden; }
.fp-view.active-view { opacity: 1; transform: scale(1); pointer-events: none; visibility: visible; z-index: 10; }

/* =========================================
   6. FLOORPLAN, TABS & WIDGETS
   ========================================= */
.fp-main-stage { 
    flex: 1; position: relative; border-radius: 24px; overflow: hidden; 
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%); 
    border: 1px solid rgba(255, 255, 255, .05); 
    transform-style: preserve-3d; transform: translateZ(20px); 
    pointer-events: none !important; 
    z-index: 5;
}
.floorplan-img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.15) translateY(5px); filter: invert(1) hue-rotate(180deg) brightness(0.8); pointer-events: none; }

/* Tabs inside Floorplan */
.tab-bar-style { 
    position: absolute; bottom: 2px; /* MOVED DOWN TO 2px */
    left: 68%; 
    transform: translateX(-50%) translateZ(25px); 
    background: rgba(20, 20, 20, 0.95); backdrop-filter: blur(20px); 
    padding: 10px 30px; border-radius: 100px; 
    display: inline-flex; align-items: center; gap: 30px; 
    border: 1px solid rgba(255,255,255,0.15); 
    z-index: 10000; pointer-events: auto !important; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.fp-tab-btn { 
    background: 0 0; border: none; color: #666; font-size: 22px; 
    cursor: pointer; transition: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1); 
    padding: 5px; display: flex; align-items: center; justify-content: center;
    pointer-events: auto !important;
}
.fp-tab-btn.active { 
    color: #1d1d1f; background: #fff; width: 40px; height: 40px; 
    border-radius: 50%; transform: scale(1.1); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Lights & Alarm */
.fp-light { 
    position: absolute; width: 40px; height: 40px; border-radius: 50%; 
    background-color: rgba(0, 0, 0, .7) !important; 
    border: 2px solid rgba(255, 255, 255, .3) !important; 
    color: #fff !important;
    display: flex; align-items: center; justify-content: center; 
    cursor: pointer !important; transition: 0.3s ease-out; 
    transform: translateZ(200px); 
    z-index: 10000 !important; 
    pointer-events: auto !important; 
}
.fp-light.on { 
    background-color: #fff !important; 
    color: #000 !important; 
    border-color: #fff !important; 
    box-shadow: 0 0 30px rgba(255, 255, 255, .8), 0 0 80px rgba(255, 255, 255, .4) !important; 
    transform: translateZ(200px) scale(1.1); 
}

/* --- ALARM ANIMATION --- */
@keyframes blinkRed { 
    0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7); transform: translateZ(200px) scale(1); } 
    70% { box-shadow: 0 0 0 20px rgba(255, 59, 48, 0); transform: translateZ(200px) scale(1.1); } 
    100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); transform: translateZ(200px) scale(1); } 
}
.fp-light.alarm-active {
    background-color: #ff3b30 !important;
    border-color: #ff3b30 !important;
    animation: blinkRed 1.5s infinite;
}

/* Positions */
.lamp-pos-1 { top: 30%; left: 20%; } 
.lamp-pos-2 { top: 40%; left: 36%; } 
.lamp-pos-3 { top: 67%; left: 73%; } 
.lamp-pos-4 { top: 35%; left: 85%; } 
.lamp-pos-5 { top: 70%; left: 35%; }

/* Widgets */
.weather-main { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.weather-temp { font-size: 42px; font-weight: 300; }
.weather-icon-lg { font-size: 32px; margin-right: 15px; } 
.weather-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.w-row { display: flex; align-items: center; gap: 15px; font-size: 13px; color: #aaa; justify-content: flex-start; margin-left: 0; } 
.w-val { color: #fff; font-weight: 600; margin-left: auto; margin-right: 15px; }

/* Music Widget */
.music-card { background: linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .05)); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%; border: 1px solid rgba(255, 255, 255, .1); pointer-events: auto; }
.album-art { width: 120px; height: 120px; border-radius: 50%; background-position: center; background-size: cover; margin-bottom: 15px; animation: spinRecord 5s linear infinite paused; position: relative; flex-shrink: 0; }
.music-card.playing .album-art { animation-play-state: running; }
@keyframes spinRecord { 100% { transform: rotate(360deg); } }
.song-title { font-size: 16px; font-weight: 700; color: #fff; }
.artist-name { font-size: 13px; color: #aaa; margin-bottom: 20px; }
.music-controls { display: flex; gap: 20px; margin-bottom: 15px; }
.mc-btn { background: 0 0; border: none; color: #fff; font-size: 20px; cursor: pointer; pointer-events: auto !important; }
.mc-play { width: 50px; height: 50px; background: #fff; border-radius: 50%; color: #000; font-size: 22px; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.mc-play:active { transform: scale(0.95); }
.progress-container { width: 100%; display: flex; align-items: center; gap: 10px; font-size: 10px; color: #888; font-family: var(--font-mono); }
.progress-bar { flex: 1; height: 4px; background: rgba(255, 255, 255, .1); border-radius: 2px; position: relative; overflow: hidden; }
.progress-fill { width: 40%; height: 100%; background: var(--nexus-orange); position: absolute; top: 0; left: 0; transition: width 0.3s linear; }

/* Climate Widget */
.climate-card { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; background: rgba(255,255,255,0.08); border-radius: 24px; pointer-events: auto; }
.climate-dial { width: 140px; height: 140px; border-radius: 50%; border: 6px solid rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.climate-svg { position: absolute; width: 100%; height: 100%; top: 0; left: 0; }
.temp-big { font-size: 36px; font-weight: 300; line-height: 1; transition: 0.2s; }
.climate-controls { display: flex; gap: 15px; margin-top: 25px; width: 100%; justify-content: center; }
.climate-btn { height: 50px; width: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.1); color: #fff; pointer-events: auto !important; transition: 0.1s; }
.climate-btn:active { transform: scale(0.9); }
.btn-white { background: #fff !important; color: #000 !important; }

/* =========================================
   7. SECTIONS & CONNECTORS (REFINED SUBTLE)
   ========================================= */
.nexus-story { text-align: center; max-width: 700px; margin: 0 auto 80px; padding: 0 20px; }
.ns-title { font-size: 32px; font-weight: 700; margin-bottom: 15px; }
.ns-text { font-size: 20px; color: #86868b; }

/* SECTION CONNECTORS */
.section-connector {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    margin: 60px 0; gap: 15px; opacity: 0; transform: translateY(20px); position: relative;
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}
.section-connector.is-visible { opacity: 1; transform: translateY(0); }

/* SUBTLER BACKGROUND GLOW */
.section-connector::before {
    content: ''; position: absolute; width: 200px; height: 200px;
    background: radial-gradient(closest-side, rgba(255, 149, 0, 0.08), transparent);
    top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: -1;
    pointer-events: none;
}

.sc-line { width: 1px; height: 50px; background: linear-gradient(to bottom, transparent, var(--nexus-orange), transparent); opacity: 0.7; }
.sc-label { 
    font-size: 10px; text-transform: uppercase; letter-spacing: 2px; 
    color: var(--nexus-orange); font-weight: 700; background: transparent; 
}

/* =========================================
   NEW FOUNDATION 3-COLUMN LAYOUT
   ========================================= */
.foundation-container { max-width: 1100px; margin: 0 auto 100px; padding: 0 20px; }

.f3-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}

.f3-card {
    background: #fff; border-radius: 32px; padding: 40px 30px;
    position: relative; overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.3s;
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.f3-card:hover { transform: translateY(-10px); box-shadow: 0 25px 60px rgba(0,0,0,0.08); }

.f3-num {
    position: absolute; top: 20px; right: 25px; 
    font-size: 60px; font-weight: 800; color: #f5f5f7; z-index: 0;
    letter-spacing: -2px; line-height: 1;
}
.f3-icon { font-size: 42px; margin-bottom: 20px; z-index: 1; position: relative; }
.f3-title { font-size: 24px; font-weight: 700; margin-bottom: 12px; z-index: 1; position: relative; color: #1d1d1f; }
.f3-desc { font-size: 16px; color: #86868b; line-height: 1.5; z-index: 1; position: relative; }
.f3-glow {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 6px;
    background: linear-gradient(90deg, #fff, var(--nexus-orange), #fff);
    opacity: 0.8;
}


/* APPLE SLIDER SECTION */
.apple-slider-section { max-width: 1200px; margin: 0 auto 100px; padding: 0 20px; overflow: hidden; }
.slider-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; }
.slider-nav-btns { display: flex; gap: 10px; }
.as-nav-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #e5e5e5; background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; font-size: 18px; }
.as-nav-btn:hover { background: #f5f5f7; border-color: #d2d2d7; }

.apple-slider-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; scrollbar-width: none; }
.apple-slider-track::-webkit-scrollbar { display: none; }
.apple-slide-card { scroll-snap-align: start; min-width: 320px; width: 320px; height: 480px; border-radius: 24px; overflow: hidden; position: relative; flex-shrink: 0; background: #000; box-shadow: 0 20px 40px rgba(0,0,0,0.1); transition: transform 0.3s; }
.apple-slide-card:hover { transform: translateY(-5px); }
.apple-slide-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: 0.3s; }
.apple-slide-card:hover img { opacity: 1; transform: scale(1.05); }
.slide-caption { position: absolute; bottom: 30px; left: 30px; color: #fff; font-weight: 600; font-size: 20px; z-index: 10; text-shadow: 0 2px 10px rgba(0,0,0,0.3); pointer-events: none; }

/* Slide Zoom Button */
.zoom-btn { position: absolute; top: 15px; right: 15px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.4); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 300; cursor: pointer; z-index: 20; transition: 0.2s; opacity: 0; transform: scale(0.8); padding-bottom: 4px; line-height: 1; }
.apple-slide-card:hover .zoom-btn { opacity: 1; transform: scale(1); }
.zoom-btn:hover { background: rgba(255, 255, 255, 0.9); color: #000; }

/* MODAL */
.image-modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.95); animation: fadeIn 0.3s; justify-content: center; align-items: center; flex-direction: column; }
.image-modal-content { margin: auto; display: block; max-width: 90%; max-height: 85vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.close-modal { position: absolute; top: 30px; right: 30px; color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.close-modal:hover { color: #bbb; }
#modalCaption { margin-top: 20px; color: #ccc; font-size: 18px; font-weight: 500; }

/* Ambiance */
.ambiance-section { width: 100%; max-width: 1200px; margin: 0 auto 100px; border-radius: 32px; overflow: hidden; position: relative; height: 650px; }
.room-bg { width: 100%; height: 100%; object-fit: cover; position: absolute; }
.lighting-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; background: radial-gradient(circle at 50% 50%, rgba(255, 200, 100, .1), rgba(0, 0, 0, .4)); mix-blend-mode: overlay; transition: 1.2s; }
.mood-controls { position: absolute; top: 50%; right: 40px; transform: translateY(-50%); z-index: 10; background: rgba(255, 255, 255, .6); backdrop-filter: blur(20px); padding: 20px; border-radius: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.mood-btn { width: 90px; height: 90px; border-radius: 20px; border: none; cursor: pointer; background: rgba(255, 255, 255, .8); display: flex; flex-direction: column; align-items: center; justify-content: center; transition: 0.2s; }
.mood-btn.active { border: 2px solid #0071e3; background: #fff; }
.mood-color { width: 24px; height: 24px; border-radius: 50%; margin-bottom: 8px; }
.mood-day { background: #fff3e0; }
.mood-cozy { background: linear-gradient(135deg,#ff9a9e,#fad0c4); }
.mood-tokyo { background: linear-gradient(135deg,#00c6ff,#0072ff); }
.mood-focus { background: #e0f7fa; }

/* Installation Options Section */
.install-section { height: auto; min-height: 600px; background: #1d1d1f; color: #fff; display: block; padding: 80px 20px; }
.install-header { text-align: center; margin-bottom: 60px; }
.install-eyebrow { color: var(--nexus-orange); font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: 1px; display: block; margin-bottom: 10px; }
.installation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1000px; margin: 0 auto; }
.install-title { font-size: 24px; font-weight: 600; margin-bottom: 10px; color: #fff; }
.install-desc { color: #a1a1a6; font-size: 17px; line-height: 1.5; margin-bottom: 20px; }
.install-img-box { width: 100%; height: 300px; background: #333; border-radius: 24px; position: relative; overflow: hidden; }
.install-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: 0.3s; }
.install-img-box:hover .install-img { opacity: 1; transform: scale(1.03); }
.badge-pop { font-size: 12px; background: var(--nexus-orange); padding: 2px 6px; border-radius: 4px; vertical-align: middle; margin-left: 5px; color: #fff; }
.border-nexus { border: 2px solid var(--nexus-orange); }
.install-overlay { position: absolute; top: 0; right: 0; width: 50%; height: 100%; background: linear-gradient(90deg,transparent,rgba(255,255,255,0.02)); pointer-events: none; }

/* =========================================
   8. NEW ADVANCED PRICE CALCULATOR
   ========================================= */
.nexus-calc-section { max-width: 1100px; margin: 0 auto 100px; padding: 0 20px; }

.calc-container { 
    background: #fff; border-radius: 40px; padding: 40px; 
    box-shadow: 0 20px 80px -20px rgba(0,0,0,0.1); 
    border: 1px solid rgba(0,0,0,0.05); 
}

.calc-layout { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; }

/* Navigation Tabs */
.n-tab-nav { 
    display: flex; gap: 5px; margin-bottom: 30px; 
    background: #f5f5f7; padding: 5px; border-radius: 16px; 
}
.n-tab-btn { 
    flex: 1; border: none; background: transparent; padding: 12px; 
    font-size: 14px; font-weight: 600; color: #86868b; 
    border-radius: 12px; cursor: pointer; transition: 0.2s; 
}
.n-tab-btn:hover { color: #1d1d1f; }
.n-tab-btn.active { background: #fff; color: #1d1d1f; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

/* Content Areas */
.n-tab-content { display: none; animation: fadeIn 0.3s ease; }
.n-tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Radio Cards (Software Style) */
.n-group-title { font-size: 14px; font-weight: 700; color: #86868b; text-transform: uppercase; margin-bottom: 15px; letter-spacing: 0.5px; }

.n-radio-card { 
    display: flex; cursor: pointer; background: #fbfbfd; 
    border: 2px solid transparent; border-radius: 16px; padding: 20px; 
    margin-bottom: 12px; transition: 0.2s; align-items: flex-start; 
}
.n-radio-card:hover { background: #f5f5f7; }
.n-radio-card.active { border-color: var(--nexus-orange); background: rgba(255, 149, 0, 0.03); }
.n-radio-card input { display: none; } /* Hide default radio */

.n-rc-head { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 5px; }
.n-rc-title { font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.n-check-icon { 
    width: 20px; height: 20px; border-radius: 50%; border: 2px solid #d2d2d7; 
    display: flex; align-items: center; justify-content: center; color: transparent; font-size: 12px;
}
.n-radio-card.active .n-check-icon { background: var(--nexus-orange); border-color: var(--nexus-orange); color: #fff; }
.n-rc-price { font-weight: 600; color: #1d1d1f; }
.n-rc-desc { color: #86868b; font-size: 13px; line-height: 1.4; }

/* Hardware Rows (Stepper Style) */
.n-item-row { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 16px 20px; background: #fbfbfd; border-radius: 16px; 
    margin-bottom: 12px; transition: 0.2s; border: 1px solid transparent;
}
.n-item-row.active { background: #fff; border-color: var(--nexus-orange); box-shadow: 0 4px 15px rgba(255, 149, 0, 0.05); }

.n-item-info { flex: 1; }
.n-item-title { font-weight: 600; font-size: 15px; color: #1d1d1f; }
.n-item-desc { font-size: 12px; color: #86868b; margin-top: 2px; }

/* Stepper */
.n-stepper { 
    display: flex; align-items: center; gap: 10px; background: #fff; 
    padding: 4px; border-radius: 100px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); border: 1px solid #eee;
}
.n-stepper button { 
    width: 28px; height: 28px; border-radius: 50%; background: #f5f5f7; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 16px; font-weight: 600; color: #1d1d1f; transition: 0.2s; 
}
.n-stepper button:hover { background: #e5e5ea; }
.n-stepper span { width: 20px; text-align: center; font-weight: 600; font-size: 14px; }

/* Receipt Card (New Glassmorphism) */
.receipt-card {
    background: rgba(29, 29, 31, 0.95); /* Semi-transparent dark */
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    color: #fff; padding: 35px; border-radius: 32px;
    position: sticky; top: 120px; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
}
.receipt-header { text-transform: uppercase; letter-spacing: 1px; color: #86868b; font-size: 11px; font-weight: 700; margin-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
.receipt-lines { margin-bottom: 25px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: #d2d2d7; min-height: 120px; }
.receipt-line { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 8px; }
.receipt-line:last-child { border-bottom: none; }
.rl-price { color: #fff; font-weight: 600; }
.receipt-divider { height: 1px; background: rgba(255,255,255,0.1); margin-bottom: 20px; }

.receipt-total { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
.receipt-total span:first-child { font-size: 14px; color: #86868b; }
.rt-price { font-size: 36px; font-weight: 700; line-height: 1; color: var(--nexus-orange); transition: transform 0.2s; }
.rt-price.pulse { transform: scale(1.1); }

.receipt-btn {
    display: block; width: 100%; padding: 18px; background: var(--nexus-orange); color: #fff; text-align: center;
    border-radius: 16px; font-weight: 600; transition: 0.2s; cursor: pointer; border: none; font-size: 16px;
}
.receipt-btn:hover { background: #ffaa33; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(255, 149, 0, 0.3); }

/* SYSTEM POWER BAR */
.system-power-box { margin-bottom: 25px; }
.sp-label { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: #aaa; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.sp-bar-bg { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; }
.sp-bar-fill { height: 100%; background: linear-gradient(90deg, #ff9500, #ffcc00); width: 0%; transition: width 0.5s ease-out; border-radius: 10px; box-shadow: 0 0 10px rgba(255,149,0,0.5); }

/* Template Selector Grid */
.template-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 20px; }
.template-card { border-radius: 12px; overflow: hidden; cursor: pointer; border: 2px solid transparent; position: relative; transition: 0.2s; }
.template-card img { width: 100%; height: 80px; object-fit: cover; opacity: 0.7; }
.template-card:hover img { opacity: 1; }
.template-card.selected { border-color: var(--nexus-orange); }
.template-card.selected img { opacity: 1; }
.tc-name { position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(0,0,0,0.7); color: #fff; font-size: 10px; padding: 4px; text-align: center; }

/* Testimonial Marquee */
.marquee-glass { background: #fbfbfd; border-bottom: none; padding: 30px 0; overflow: hidden; white-space: nowrap; margin-bottom: 0; }
.marquee-content { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee-item { flex-shrink: 0; color: #86868b; font-size: 16px; font-weight: 500; letter-spacing: -0.2px; padding-right: 80px; font-style: italic; }
.stars { color: #FFD700; margin-right: 5px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* =========================================
   9. MOBILE STICKY PRICE BAR (NEW)
   ========================================= */
.mobile-price-bar {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0,0,0,0.1);
    padding: 15px 20px; z-index: 999;
    transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
}
.mobile-price-bar.show { transform: translateY(0); }
.mpb-content { display: flex; justify-content: space-between; align-items: center; max-width: 1000px; margin: 0 auto; }
.mpb-col { display: flex; flex-direction: column; }
.mpb-label { font-size: 11px; text-transform: uppercase; color: #86868b; font-weight: 600; }
.mpb-price { font-size: 20px; font-weight: 700; color: var(--nexus-orange); }
.mpb-btn { background: #1d1d1f; color: #fff; padding: 10px 20px; border-radius: 12px; font-weight: 600; font-size: 14px; }

/* =========================================
   10. FOOTER & RESPONSIVE (OPTIMIZED)
   ========================================= */
.mega-footer { 
    background: #f5f5f7; padding: 80px 20px 0; 
    position: relative; overflow: hidden; margin-top: 0; 
    padding-bottom: 100px; display: flex; flex-direction: column; z-index: 10;
}
.mf-content { max-width: 1200px; margin: 0 auto; width: 100%; position: relative; z-index: 5; padding-bottom: 100px; }
.mf-brand-wrap { position: absolute; bottom: -2%; left: 0; width: 100%; text-align: center; pointer-events: none; z-index: 1; overflow: hidden; line-height: 0.8; }
.mf-big-text { font-size: 15vw; font-weight: 800; letter-spacing: -0.05em; color: rgba(0,0,0,0.04); user-select: none; }
.mf-top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 40px; }
.mf-col h4 { font-size: 12px; font-weight: 600; text-transform: uppercase; color: #86868b; margin-bottom: 20px; letter-spacing: 0.5px; }
.mf-col ul { list-style: none; padding: 0; }
.mf-col li { margin-bottom: 12px; }
.mf-col a { color: #424245; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.mf-col a:hover { color: #000; text-decoration: underline; }
.mf-bottom { position: absolute; bottom: 0; left: 0; width: 100%; height: 60px; padding: 0 40px; background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid rgba(255, 255, 255, 0.5); display: flex; justify-content: space-between; align-items: center; color: #86868b; font-size: 12px; z-index: 20; }

@media(max-width: 768px) {
    .desktop-nav-links { display: none; }
    
    /* VIGTIGT: Burger Menu Fix */
    .burger-menu-btn { 
        display: block; 
        z-index: 10001; /* Sikrer den ligger over alt andet */
        position: relative;
    }
    
    /* NEXUS CALCULATOR RESPONSIVE */
    .calc-layout { grid-template-columns: 1fr; }
    .receipt-card { position: relative; top: 0; margin-top: 20px; padding: 25px; margin-bottom: 80px; }
    .template-grid { grid-template-columns: 1fr 1fr; }
    .n-tab-nav { overflow-x: auto; }
    .n-tab-btn { white-space: nowrap; }
    .f3-grid { grid-template-columns: 1fr; gap: 20px; }
    .f3-card { padding: 30px; text-align: left; align-items: flex-start; }
    .f3-num { font-size: 50px; right: 20px; top: 10px; }
    .installation-grid { grid-template-columns: 1fr; }

    /* 3D Stage Sizing */
    .ipad-stage { perspective: 1000px; height: 350px; margin-top: 20px; margin-bottom: 40px; overflow: visible; }
    .ipad-device { width: 90vw; height: 60vw; max-height: 300px; margin: 0 auto; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); border-width: 3px; }
    
    /* Layout Reset */
    .smart-dashboard { padding: 0 !important; overflow: hidden; position: relative; width: 100%; height: 100%; }
    .fp-container { display: block; height: 100%; width: 100%; margin: 0 !important; padding: 0 !important; }
    
    /* Toolbar / Tab Bar Fix */
    .fp-tab-bar { 
        display: flex !important; 
        flex-direction: column; 
        position: absolute; 
        top: 0; 
        left: 0; 
        bottom: 0; 
        width: 50px; /* Smal sidebar */
        height: 100%;
        background: rgba(20, 20, 20, 0.9); 
        backdrop-filter: blur(15px); 
        border-right: 1px solid rgba(255,255,255,0.1); 
        justify-content: center; 
        gap: 20px; 
        z-index: 100; 
        margin: 0 !important; 
        border-radius: 0 !important; /* Ingen runding da den fylder siden */
        transform: none !important; 
        box-shadow: none !important;
        padding: 0;
        pointer-events: auto !important; /* GØR KNAPPERNE KLIKBARE */
    }
    
    .fp-tab-btn { 
        font-size: 20px; 
        opacity: 0.5; 
        width: 100%; 
        height: 50px;
        display: flex; 
        justify-content: center; 
        align-items: center; 
        padding: 0; 
        background: transparent !important; 
    }
    .fp-tab-btn.active { 
        opacity: 1; 
        transform: scale(1.1); 
        color: #fff; 
        background: transparent !important; /* Fjern hvid cirkel baggrund på mobil */
        box-shadow: none !important;
    }

    /* Indhold justering for at give plads til sidebar */
    .fp-sidebar { 
        display: block !important; 
        position: absolute; 
        top: 0; left: 0; width: 100%; height: 100%; 
        pointer-events: none; 
        z-index: 10;
        background: transparent;
    }
    .fp-sidebar .flex-shrink-0 { display: none !important; } /* Skjul tekst headers, men behold containeren */
    
    .fp-content-wrapper { 
        position: absolute; 
        top: 0; 
        bottom: 0; 
        right: 0; 
        left: 50px; /* Plads til sidebar */
        height: 100%; 
        pointer-events: none; 
    }
    
    .fp-view { width: 100%; height: 100%; padding: 0; background: rgba(0,0,0,0.85); pointer-events: auto; display: flex; flex-direction: column; justify-content: center; z-index: 20;}
    #view-home { background: transparent !important; pointer-events: none; }
    #view-home > * { display: none !important; }
    
    /* Floorplan */
    .fp-main-stage { 
        width: 100%; 
        height: 100%; 
        margin: 0; 
        border: none !important; 
        border-radius: 0 !important; 
        background: radial-gradient(circle at center, #222 0%, #000 100%); 
        transform: none !important; 
        position: absolute; 
        top: 0; 
        left: 0; 
        z-index: 1;
    }
    
    .floorplan-img { 
        transform: scale(0.9); 
        width: 100%; 
        height: 100%; 
        margin-left: 25px; /* Skub lidt væk fra sidebar */
        object-fit: contain;
    }
    
    /* Widgets & Controls */
    .music-card, .climate-card { background: transparent; border: none; transform: scale(0.9); }
    .climate-dial { margin-top: 0; }
    
    /* FIX: Make LP smaller on mobile and prevent squishing */
    .album-art { width: 50px; height: 50px; flex-shrink: 0; margin-bottom: 10px; }

    /* Lights Positions - Adjusted for mobile scale */
    .lamp-pos-1 { top: 25% !important; left: 45% !important } 
    .lamp-pos-2 { top: 38% !important; left: 52% !important } 
    .lamp-pos-3 { top: 68% !important; left: 52% !important } 
    .lamp-pos-4 { top: 32% !important; left: 85% !important } 
    .lamp-pos-5 { top: 72% !important; left: 75% !important }

    /* Footer & Grids */
    .mf-top { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
    .mf-big-text { font-size: 25vw; bottom: 0; }
    .mf-bottom { height: auto; padding: 20px; flex-direction: column; gap: 10px; text-align: center; background: rgba(255, 255, 255, 0.85); }
    .mega-footer { padding-bottom: 120px; }
    .ambiance-section { height: 500px; }
    .mood-controls { grid-template-columns: repeat(4, 1fr); width: 100%; bottom: 20px; top: auto; right: auto; transform: none; padding: 10px; overflow-x: auto; }
    .nexus-privacy { flex-direction: column; text-align: center; gap: 15px; }

    /* Fix subhead wrapping on mobile */
    .subhead {
        font-size: 17px;
        max-width: 340px; 
        margin-left: auto;
        margin-right: auto;
    }
}