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

::selection { background: rgba(255, 149, 0, 0.3); color: #fff; }

* { 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;
}

/* OPTIMERING: Knapper som links fix */
a { text-decoration: none !important; color: inherit; transition: opacity 0.2s; }
button { font-family: inherit; border: none; cursor: pointer; text-decoration: none !important; outline: none; }
img, video { max-width: 100%; height: auto; display: block; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c1c1c5; border-radius: 5px; border: 2px solid var(--bg-body); }

/* OPTIMERING: Content Visibility på tunge elementer i bunden */
.partner-marquee-section, .mega-footer {
    content-visibility: auto;
    contain-intrinsic-size: 500px;
}

/* =========================================
   2. UTILITIES & ANIMATIONS
   ========================================= */
.text-center { text-align: center; }
.text-white { color: #fff; }
.text-nexus-orange { color: var(--nexus-orange); }

.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    pointer-events: none; z-index: 9000; opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
}

/* OPTIMERING: Will-change */
.reveal-on-scroll { 
    opacity: 0; transform: translateY(40px); 
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform; 
}
.is-visible { opacity: 1; transform: translateY(0); }

.hero-super-title {
    font-size: clamp(24px, 8vw, 86px); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em;
    text-wrap: balance; max-width: 98%; margin: 0 auto 24px auto;
    background: linear-gradient(to bottom, #fff 30%, #a1a1a6 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.story-headline-lg {
    font-size: clamp(22px, 6vw, 80px); font-weight: 700; line-height: 1.1; margin-bottom: 24px;
    letter-spacing: -0.02em; text-wrap: balance; max-width: 98%; margin-left: auto; margin-right: auto;
}
.story-sub-lg {
    font-size: clamp(15px, 3vw, 26px); font-weight: 500; line-height: 1.5; color: #86868b;
    max-width: 750px; margin: 0 auto; opacity: 0; transform: translateY(20px);
}
.story-sub-lg .highlight { color: #1d1d1f; font-weight: 600; transition: color 0.3s ease; }
.is-visible .story-sub-lg { animation: fadeUpSub 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: 1.3s; }
@keyframes fadeUpSub { to { opacity: 1; transform: translateY(0); } }

.subhead {
    font-size: clamp(16px, 2.5vw, 24px); font-weight: 400; margin-bottom: 40px;
    color: #a1a1a6; line-height: 1.4; max-width: 600px; margin-left: auto; margin-right: auto;
}

/* =========================================
   3. 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; }

.burger-menu-btn { display: none; width: 40px; height: 40px; background: 0 0; border: none; cursor: pointer; position: relative; margin-right: 5px; }
.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.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.mobile-menu-overlay.open .mm-link:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.mobile-menu-overlay.open .mm-link:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.mobile-menu-overlay.open .mm-link:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.mobile-menu-overlay.open .mm-link:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero-video-container {
    width: 100%; height: 100svh; position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center; background-color: #000;
}
.hero-video-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.65; }
.hero-dark-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7)); z-index: 2; }
.hero-content-center { position: relative; z-index: 10; text-align: center; color: #fff; max-width: 1200px; padding: 0 20px; width: 100%; margin-top: 40px; }

.cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* OPTIMERING: Adjusted for <a> tags */
.btn-glass-hero {
    display: inline-flex; justify-content: center; align-items: center; text-decoration: none;
    padding: 16px 36px; border-radius: 100px; font-size: 16px; font-weight: 600;
    border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px); color: #fff; transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}
.btn-nexus:hover { background: var(--nexus-orange); border-color: var(--nexus-orange); transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 30px rgba(255, 149, 0, 0.4); }
.btn-studio:hover { background: var(--studio-blue); border-color: var(--studio-blue); transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 30px rgba(0, 122, 255, 0.4); }

.marquee-strip { 
    background: #000; color: #fff; padding: 10px 0; overflow: hidden; border-bottom: 1px solid #222;
    position: relative; z-index: 10;
}
.marquee-strip::before, .marquee-strip::after { content: ''; position: absolute; top: 0; bottom: 0; width: 150px; z-index: 20; pointer-events: none; }
.marquee-strip::before { left: 0; background: linear-gradient(to right, #000 20%, transparent); }
.marquee-strip::after { right: 0; background: linear-gradient(to left, #000 20%, transparent); }
.marquee-content { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee-item { flex-shrink: 0; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; padding-right: 60px; color: #888; display: flex; align-items: center; }
.marquee-item span { color: var(--studio-blue); margin-right: 12px; font-size: 10px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* =========================================
   5. STORY SECTION
   ========================================= */
.apple-story-section { position: relative; padding: 180px 20px; background: #fbfbfd; overflow: hidden; text-align: center; }
.story-aurora-bg {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
    background: radial-gradient(circle, rgba(255,149,0,0.12) 0%, rgba(94,92,230,0.1) 40%, transparent 70%); filter: blur(80px); opacity: 0.8;
}
.story-content { position: relative; z-index: 5; max-width: 1100px; margin: 0 auto; }
.apple-shine {
    background: linear-gradient(110deg, #ffb347 20%, #ff9500 30%, #ff5e3a 45%, #ffffff 50%, #1d1d1f 55%);
    background-size: 250% 100%; background-position: 100% 0; -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block;
}
.dot-pop { color: #1d1d1f; display: inline-block; transform-origin: center bottom; }
.is-visible .apple-shine { animation: shineMove 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: 0.3s; }
.is-visible .dot-pop { animation: popDot 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 1.1s; }
@keyframes shineMove { 0% { background-position: 100% 0; } 100% { background-position: 0% 0; } }
@keyframes popDot { 0% { transform: scale(1); color: #1d1d1f; } 40% { transform: scale(1.6); color: #ff9500; } 100% { transform: scale(1); color: #ff9500; } }

/* =========================================
   6. IMPACT SECTION
   ========================================= */
.impact-section { background-color: #050507; padding: 120px 20px; color: #fff; position: relative; overflow: hidden; }
.impact-container { max-width: var(--max-width); margin: 0 auto; position: relative; z-index: 5; }
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.impact-number {
    font-size: clamp(48px, 6vw, 96px); font-weight: 700; display: block; margin-bottom: 12px;
    background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.gradient-nexus { background-image: linear-gradient(135deg, #fff 30%, var(--nexus-orange)); }
.gradient-studio { background-image: linear-gradient(135deg, #fff 30%, var(--studio-blue)); }
.gradient-core { background-image: linear-gradient(135deg, #fff 30%, var(--core-purple)); }
.impact-label { font-size: 17px; color: #86868b; font-weight: 500; }
.glow-pointer {
    position: absolute; top: 0; left: 0; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 60%); pointer-events: none; transform: translate(-50%, -50%);
    opacity: 0; transition: opacity 0.5s; z-index: 1;
}
@media (hover: hover) { .impact-section:hover .glow-pointer { opacity: 1; } }

/* =========================================
   7. CONTINUITY CARD & UI DETAILS
   ========================================= */
.continuity-section { padding: 80px 20px; background: #fff; display: flex; flex-direction: column; align-items: center; position: relative; z-index: 10; }
.cont-section-header { text-align: center; max-width: 800px; margin-bottom: 60px; padding: 0 20px; }
.cont-main-title { font-size: clamp(32px, 5vw, 56px); font-weight: 700; margin-bottom: 16px; letter-spacing: -0.02em; color: #1d1d1f; }
.cont-main-sub { font-size: 19px; color: #86868b; line-height: 1.5; font-weight: 400; }
.apple-card-container { background: #f5f5f7; border-radius: 32px; width: 100%; max-width: var(--max-width); padding: 60px; overflow: hidden; position: relative; }
.cont-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }

.cont-accordion-item {
    padding: 24px; border-radius: 20px; cursor: pointer; transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    margin-bottom: 8px; border: 1px solid transparent;
}
.cont-accordion-item.active { background: #ffffff; border-color: rgba(0, 0, 0, 0.05); box-shadow: 0 10px 30px rgba(0,0,0,0.08); z-index: 10; }
.ac-title { font-size: 24px; font-weight: 600; color: #d1d1d6; transition: color 0.3s ease; }
.cont-accordion-item:not(.active):hover .ac-title { color: #1d1d1f; }
.cont-header { display: flex; justify-content: space-between; align-items: center; }
.cont-accordion-item.active .nexus-title { color: var(--nexus-orange); }
.cont-accordion-item.active .studio-title { color: var(--studio-blue); }
.cont-accordion-item.active .core-title { color: var(--core-purple); }
.cont-icon { font-size: 14px; color: #86868b; transition: transform 0.3s; }
.cont-accordion-item.active .cont-icon { transform: rotate(180deg); }
.cont-accordion-item:nth-of-type(1).active .cont-icon { color: var(--nexus-orange); }
.cont-accordion-item:nth-of-type(2).active .cont-icon { color: var(--studio-blue); }
.cont-accordion-item:nth-of-type(3).active .cont-icon { color: var(--core-purple); }

.cont-body { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.6s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.4s ease; }
.cont-accordion-item.active .cont-body { max-height: 800px; opacity: 1; margin-top: 10px; }
.cont-inner-text { opacity: 0; transform: translateY(-10px); transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1); transition-delay: 0.2s; }
.cont-accordion-item.active .cont-inner-text { opacity: 1; transform: translateY(0); }
.cont-inner-text p { margin-bottom: 15px; font-size: 16px; line-height: 1.6; color: #424245; }
.learn-more-link { font-size: 14px; font-weight: 600; text-decoration: none; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 4px; }
.link-nexus { color: #e68a00; } .link-studio { color: #0062cc; } .link-core { color: #4b49b6; }
.cont-inner-text .learn-more-link:hover { opacity: 0.7; transform: translateX(5px); }

.cont-device-stage { position: relative; width: 100%; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; }
.cont-image-group {
    position: absolute; inset: 0; opacity: 0; transform: scale(0.95);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); pointer-events: none;
    display: flex; justify-content: center; align-items: center;
}
.cont-image-group.active { opacity: 1; transform: scale(1); pointer-events: auto; }

/* STUDIO AURORA & UI (De manglende dele) */
.studio-aurora-container { position: absolute; inset: 0; background: #0d0d0d; overflow: hidden; z-index: 1; }
.s-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.7; mix-blend-mode: screen; }
.sb-1 { width: 300px; height: 300px; background: #5e5ce6; top: -50px; left: -50px; animation: auroraMove1 12s infinite ease-in-out alternate; }
.sb-2 { width: 350px; height: 350px; background: #ff2d55; bottom: -100px; right: -50px; animation: auroraMove2 15s infinite ease-in-out alternate; }
.sb-3 { width: 200px; height: 200px; background: #30b0c7; top: 50%; left: 50%; transform: translate(-50%, -50%); animation: auroraPulse 8s infinite ease-in-out; }
.glass-grid-overlay {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}
@keyframes auroraMove1 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(100px, 50px) scale(1.2); } }
@keyframes auroraMove2 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-80px, -40px) scale(1.1); } }
@keyframes auroraPulse { 0% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; } 50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.2; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; } }

.safari-bar {
    position: absolute; top: 0; left: 0; right: 0; height: 32px; background: rgba(30,30,30,0.65); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; padding: 0 12px; z-index: 20;
}
.traffic-lights { display: flex; gap: 6px; }
.traffic-lights span { width: 10px; height: 10px; border-radius: 50%; }
.tl-red { background: #ff5f57; } .tl-yellow { background: #febc2e; } .tl-green { background: #28c840; }
.addr-bar {
    margin: 0 auto; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.05); padding: 2px 10px;
    border-radius: 6px; font-size: 10px; color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 4px; width: 200px; justify-content: center;
}
.lock-icon { font-size: 8px; }

.design-interface { position: absolute; top: 32px; bottom: 0; left: 0; right: 0; display: flex; z-index: 10; }
.di-sidebar { width: 50px; border-right: 1px solid rgba(255,255,255,0.08); background: rgba(20,20,20,0.4); backdrop-filter: blur(20px); display: flex; flex-direction: column; align-items: center; padding-top: 15px; gap: 12px; }
.di-tool-icon { width: 24px; height: 24px; border-radius: 4px; background: rgba(255,255,255,0.1); transition: 0.3s; }
.di-tool-icon.active { background: var(--studio-blue); box-shadow: 0 0 10px rgba(0,122,255,0.4); }
.di-separator { width: 20px; height: 1px; background: rgba(255,255,255,0.1); margin: 5px 0; }
.di-layer-row { width: 100%; padding: 0 8px; display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; opacity: 0.5; }
.di-layer-row.active { opacity: 1; border-left: 2px solid var(--studio-blue); }
.di-layer-icon { width: 12px; height: 12px; border: 1px solid rgba(255,255,255,0.4); border-radius: 2px; }
.di-layer-name { height: 6px; background: rgba(255,255,255,0.3); border-radius: 2px; width: 80%; }
.di-canvas { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; }
.canvas-card {
    width: 220px; height: 160px; background: rgba(40,40,40,0.8); border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4); padding: 12px; display: flex; flex-direction: column; gap: 8px; position: relative; transform: scale(0.9);
}
.cc-image-placeholder { flex: 1; background: linear-gradient(135deg, #333, #444); border-radius: 6px; }
.cc-content { height: 50px; display: flex; flex-direction: column; gap: 4px; }
.cc-title { height: 8px; width: 60%; background: #fff; border-radius: 2px; opacity: 0.8; }
.cc-text { height: 6px; width: 90%; background: #fff; border-radius: 2px; opacity: 0.3; }
.cc-btn { margin-top: auto; width: 50px; height: 14px; background: var(--studio-blue); border-radius: 4px; }
.selection-box { position: absolute; inset: -4px; border: 2px solid var(--studio-blue); border-radius: 14px; pointer-events: none; box-shadow: 0 0 0 1px rgba(0,122,255,0.3); }
.sb-handle { width: 8px; height: 8px; background: #fff; border: 2px solid var(--studio-blue); position: absolute; border-radius: 50%; }
.tl { top: -4px; left: -4px; } .tr { top: -4px; right: -4px; } .bl { bottom: -4px; left: -4px; } .br { bottom: -4px; right: -4px; }
.sb-label { position: absolute; top: -20px; left: 0; font-size: 10px; color: var(--studio-blue); font-weight: 600; background: rgba(0,122,255,0.1); padding: 2px 6px; border-radius: 4px; }
.floating-palette-new {
    position: absolute; bottom: 20px; background: rgba(20,20,20,0.8); backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1); padding: 8px 12px; border-radius: 100px; display: flex; align-items: center; gap: 8px; box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.fp-circle { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); cursor: pointer; transition: 0.2s; }
.fp-circle:hover { transform: scale(1.2); }
.c-1 { background: #ff2d55; } .c-2 { background: #5e5ce6; } .c-3 { background: #28c840; }
.fp-divider { width: 1px; height: 16px; background: rgba(255,255,255,0.2); margin: 0 4px; }
.fp-val { font-size: 11px; color: #fff; font-weight: 600; font-family: var(--font-mono); }
.di-inspector {
    width: 60px; border-left: 1px solid rgba(255,255,255,0.08); background: rgba(20,20,20,0.4); backdrop-filter: blur(20px);
    display: flex; flex-direction: column; padding: 15px 8px; gap: 10px;
}
.di-prop-row { display: flex; justify-content: space-between; align-items: center; height: 10px; margin-bottom: 5px; }
.di-label { width: 15px; height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; }
.di-input { width: 20px; height: 12px; border: 1px solid rgba(255,255,255,0.15); border-radius: 3px; }
.di-prop-block { width: 100%; height: 40px; background: rgba(255,255,255,0.05); border-radius: 4px; margin-top: 5px; }

/* iPads & Macs */
.ipad-frame { width: 90%; aspect-ratio: 3/2; background: #1c1c1e; border-radius: 20px; padding: 12px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3); position: relative; overflow: hidden; }
.device-screen { width: 100%; height: 100%; background: #000; border-radius: 12px; overflow: hidden; position: relative; }
.device-video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); display: block; transition: margin 0.3s; }
.screen-gloss { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent 60%); pointer-events: none; z-index: 2; }
.ipad-camera { position: absolute; left: -6px; top: 50%; transform: translateY(-50%); width: 4px; height: 4px; background: #333; border-radius: 50%; z-index: 5; }

.mac-frame { width: 100%; display: flex; flex-direction: column; align-items: center; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2)); }
.mac-screen { 
    width: 90%; aspect-ratio: 16/10; background: #0a0a0a; border-radius: 12px 12px 0 0; 
    border: 1px solid #333; box-shadow: inset 0 0 0 3px #0a0a0a; overflow: hidden; position: relative; z-index: 2;
}
.mac-base { 
    width: 100%; height: 12px; background: linear-gradient(to bottom, #d2d2d7, #a1a1a6); 
    border-radius: 0 0 12px 12px; position: relative; box-shadow: inset 0 2px 4px rgba(255,255,255,0.3);
}
.mac-base::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 15%; height: 3px; background: rgba(0,0,0,0.15); border-radius: 0 0 4px 4px;
}

.code-editor-mock { padding: 40px 25px; font-family: var(--font-mono); font-size: clamp(10px, 1.2vw, 15px); color: #fff; line-height: 1.5; }

/* IPHONE CLIENT BUILD FRAME & UI */
.iphone-frame-overlap { 
    position: absolute; bottom: -5px; right: -30px; width: 24%; aspect-ratio: 9/19.5; 
    background: #000; border: 6px solid #252525; border-radius: 38px; z-index: 10; transform: rotate(-5deg); 
    box-shadow: 0 0 0 1px #111, 20px 20px 50px rgba(0,0,0,0.6); 
}
.iphone-btns { position: absolute; background: #252525; width: 3px; border-radius: 2px 0 0 2px; }
.left-btn { height: 26px; left: -9px; top: 70px; box-shadow: 0 40px 0 #252525; }
.right-btn { height: 45px; right: -9px; top: 80px; border-radius: 0 2px 2px 0; }
.iphone-screen { width: 100%; height: 100%; background: #000; border-radius: 32px; overflow: hidden; position: relative; display: flex; flex-direction: column; }
.iphone-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 30%; height: 24px; background: #000; border-radius: 50px; z-index: 30; }
.iphone-home-indicator { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); width: 35%; height: 4px; background: #fff; border-radius: 10px; opacity: 0.4; z-index: 30; }
.ios-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px 0; color: #fff; font-size: 10px; font-weight: 600; height: 44px; width: 100%; z-index: 10; }
.ios-icons { display: flex; align-items: center; gap: 5px; }
.ios-bat { width: 18px; height: 9px; border: 1px solid rgba(255,255,255,0.4); border-radius: 2px; background: #fff; }

.client-app-ui { flex: 1; padding: 10px 16px; background: #0f0f11; display: flex; flex-direction: column; gap: 15px; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
.cab-header { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; }
.cab-title { font-size: 14px; font-weight: 700; color: #fff; }
.cab-badge { background: #333; color: #aaa; font-size: 9px; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; }
.cab-content { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.cab-card { background: #1c1c1e; border-radius: 16px; padding: 15px; height: 120px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.cab-graph-line { position: absolute; bottom: 0; left: 0; width: 100%; height: 50px; opacity: 0.5; }
.cab-list { display: flex; flex-direction: column; gap: 10px; }
.cab-item { display: flex; gap: 10px; align-items: center; padding: 10px; background: #1c1c1e; border-radius: 12px; }
.skeleton-row { height: 8px; background: #333; border-radius: 4px; animation: pulse 2s infinite; }
.skeleton-circle { width: 32px; height: 32px; background: #333; border-radius: 50%; animation: pulse 2s infinite; }
.skeleton-col { flex: 1; display: flex; flex-direction: column; gap: 6px; }
@keyframes pulse { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }

.dev-overlay { margin-top: auto; background: rgba(15,15,17,0.95); border-top: 1px solid #333; border-radius: 20px 20px 0 0; padding: 12px; display: flex; flex-direction: column; gap: 6px; font-family: 'SF Mono', monospace; font-size: 9px; box-shadow: 0 -5px 20px rgba(0,0,0,0.5); z-index: 20; }
.do-handle { width: 30px; height: 3px; background: #444; border-radius: 2px; align-self: center; margin-bottom: 4px; }
.do-header { display: flex; justify-content: space-between; border-bottom: 1px solid #333; padding-bottom: 4px; margin-bottom: 4px; }
.do-port { color: #666; }
.text-green { color: #34c759; } .text-blue { color: #0a84ff; }
.do-logs { display: flex; flex-direction: column; gap: 2px; color: #aaa; }
.do-row span { color: #666; margin-right: 4px; }
.do-cursor { color: #34c759; animation: blink 1s infinite; margin-top: 2px; }
@keyframes blink { 50% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0.5; } }

/* =========================================
   8. PARTNER MARQUEE & FOOTER
   ========================================= */
.partner-marquee-section { padding: 40px 0; background: #fff; position: relative; z-index: 100; }
.partner-marquee-section::before, .partner-marquee-section::after { content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 20; pointer-events: none; }
.partner-marquee-section::before { left: 0; background: linear-gradient(to right, #fff 20%, transparent); }
.partner-marquee-section::after { right: 0; background: linear-gradient(to left, #fff 20%, transparent); }
.sp-label-large { text-align: center; font-size: 13px; font-weight: 700; text-transform: uppercase; color: #86868b; display: block; margin-bottom: 15px; letter-spacing: 1px; }
.partner-track-wrapper { width: 100%; overflow-x: clip; overflow-y: visible; padding-top: 20px; }
.partner-track { display: flex; gap: 80px; width: max-content; animation: scrollPartners 50s linear infinite; align-items: center; padding: 40px 0; }
.partner-track:hover { animation-play-state: paused; }
.partner-item { font-size: 26px; font-weight: 700; color: #d1d1d6; white-space: nowrap; transition: color 0.3s; position: relative; cursor: help; z-index: 1; }
.partner-item:hover { color: #1d1d1f; z-index: 1000; }
.partner-tooltip { 
    visibility: hidden; opacity: 0; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%) translateY(5px); 
    background: #1d1d1f; color: #fff; padding: 8px 14px; font-size: 12px; font-weight: 500; border-radius: 8px; 
    white-space: nowrap; pointer-events: none; transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); box-shadow: 0 10px 25px rgba(0,0,0,0.2); z-index: 2000;
}
.partner-tooltip::after { content: ''; position: absolute; top: 100%; left: 50%; margin-left: -5px; border-width: 5px; border-style: solid; border-color: #1d1d1f transparent transparent transparent; }
@media(hover: hover) { .partner-item:hover .partner-tooltip { visibility: visible; opacity: 1; transform: translateX(-50%) translateY(-12px); } }
@keyframes scrollPartners { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.mega-footer { background: #f5f5f7; padding: 60px 20px 0; position: relative; margin-top: auto; overflow: hidden; padding-bottom: 120px; display: flex; flex-direction: column; z-index: 20; }
.mf-content { max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; width: 100%; }
.mf-brand-wrap { position: absolute; bottom: -2%; left: 0; width: 100%; text-align: center; z-index: 1; pointer-events: none; line-height: 0.75; }
.mf-big-text { font-size: 14vw; font-weight: 800; color: rgba(0,0,0,0.03); letter-spacing: -0.05em; }
.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: 16px; letter-spacing: 0.5px; }
.mf-col ul { list-style: none; }
.mf-col li { margin-bottom: 12px; }
.mf-col a { font-size: 15px; color: #424245; transition: 0.2s; }
.mf-col a:hover { color: #000; text-decoration: underline; }
.mf-bottom { 
    position: absolute; bottom: 0; left: 0; width: 100%; margin: 0; padding: 15px 40px; 
    background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid rgba(255,255,255,0.4); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; color: #86868b; font-size: 12px; z-index: 10; 
}

/* =========================================
   9. MEDIA QUERIES (RESPONSIVE)
   ========================================= */
@media(max-width: 1024px) {
    .impact-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .impact-item:last-child { grid-column: span 2; }
    .apple-card-container { padding: 40px; }
    .cont-grid { grid-template-columns: 1fr; gap: 40px; }
    .cont-device-stage { order: -1; aspect-ratio: 16/9; margin-bottom: 20px; }
}
@media(max-width: 768px) {
    .desktop-nav-links { display: none; }
    .burger-menu-btn { display: block; }
    .vision-nav { padding: 8px 12px; max-width: 100%; }
    .hero-super-title { font-size: 36px; margin-bottom: 16px; text-wrap: wrap; }
    .cta-row { flex-direction: column; width: 100%; padding: 0 20px; }
    .btn-glass-hero { width: 100%; }
    .apple-story-section { padding: 100px 20px; }
    .story-headline-lg { font-size: 42px; line-height: 1.1; }
    .impact-section { padding: 80px 20px; }
    .impact-grid { grid-template-columns: 1fr; gap: 40px; }
    .impact-item:last-child { grid-column: auto; }
    .impact-number { font-size: 56px; }
    .apple-card-container { padding: 30px 15px; border-radius: 24px; }
    .cont-section-header { padding: 0 10px; margin-bottom: 40px; }
    .cont-main-title { font-size: 32px; }
    .cont-main-sub { font-size: 15px; line-height: 1.3; max-width: 95%; margin: 0 auto; text-wrap: balance; }
    .cont-accordion-item { padding: 15px; } 
    .cont-grid { display: flex; flex-direction: column; gap: 10px; } 
    .cont-device-stage { order: -1; width: 100%; height: auto; aspect-ratio: 3/2; margin: 5px 0; padding: 0; }
    .ipad-frame { width: 100%; height: 100%; aspect-ratio: 3/2; max-width: none; }
    .ac-title { font-size: 22px; }
    .cont-inner-text { font-size: 16px; }
    .mf-top { grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 60px; }
    .mega-footer { padding-bottom: 100px; padding-top: 50px; }
    .mf-bottom { padding: 20px; flex-direction: column; text-align: center; gap: 10px; }
}
@media(max-width: 600px) {
    .iphone-frame-overlap { 
        width: 22%; right: -2px; bottom: 5px; 
        border-radius: 12px; border: 2px solid #2c2c2e; 
        box-shadow: 0 0 0 1px #000, 0 5px 15px rgba(0,0,0,0.5); background: #000; z-index: 20;
    }
    .iphone-btns { display: none; }
    .iphone-screen { border-radius: 10px; }
    .ios-bar { height: 14px; padding: 3px 6px 0; font-size: 5px; }
    .iphone-notch { height: 8px; width: 35%; top: 2px; background: #000; border-radius: 0 0 4px 4px; }
    .iphone-home-indicator { bottom: 3px; height: 2px; width: 30%; }
    .ios-bat { width: 10px; height: 5px; border: 1px solid rgba(255,255,255,0.5); border-radius: 1px; }
    .ios-icons svg { width: 8px; height: 8px; }
    .client-app-ui { padding: 4px 6px; gap: 6px; }
    .cab-header { margin-top: 0; }
    .cab-title { font-size: 6px; margin-bottom: 2px; }
    .cab-badge { font-size: 4px; padding: 0 2px; border-radius: 2px; }
    .cab-card { height: 40px; padding: 6px; border-radius: 6px; margin-bottom: 4px; }
    .cab-graph-line { height: 30px; }
    .cab-item { padding: 4px; gap: 4px; border-radius: 4px; }
    .skeleton-circle { width: 10px; height: 10px; }
    .skeleton-row { height: 2px; border-radius: 1px; margin-bottom: 2px; }
    .skeleton-col { gap: 2px; }
    .dev-overlay { display: none; }
    .di-sidebar, .di-inspector { width: 30px; padding-top: 10px; }
    .di-tool-icon { width: 18px; height: 18px; }
    .canvas-card { width: 160px; height: 110px; }
    .floating-palette-new { bottom: 10px; padding: 6px 10px; }
}
@media(min-width: 1025px) { .device-video { margin-left: 10px; transform: scale(1.3); } }
@media(min-width: 1600px) {
    :root { --max-width: 1400px; }
    .hero-super-title { font-size: 100px; }
    .story-headline-lg { font-size: 90px; }
}