/* --- SAPPHIRE ULTRA-REFINED APPLE CINEMATIC DESIGN SYSTEM --- */
@import url('/vendor/fonts.css');

:root, :root.theme-dark {
    color-scheme: dark;
    --color-background: #000000;
    --color-surface: #070709;
    --color-card-bg: rgba(18, 18, 24, 0.65);
    --color-card-bg-hover: rgba(28, 28, 38, 0.85);
    --color-card-border: rgba(255, 255, 255, 0.08);
    --color-secondary: rgba(255, 255, 255, 0.08);
    --color-secondary-hover: rgba(255, 255, 255, 0.14);
    --color-border-color: rgba(255, 255, 255, 0.1);
    --color-accent-solid: #3b82f6;
    --color-accent-gradient: linear-gradient(135deg, #60a5fa 0%, #a855f7 50%, #ec4899 100%);
    --color-accent-gradient-text: #ffffff;
    --color-text-primary: #f8fafc;
    --color-text-secondary: #94a3b8;
    --color-header-bg: rgba(15, 15, 20, 0.7);
    --color-cursor-bg: rgba(255, 255, 255, 0.15);
    --dot-color: rgba(255, 255, 255, 0.02);
    --dot-spotlight-color: rgba(96, 165, 250, 0.15);
    --dock-bg: rgba(12, 12, 16, 0.85);
    --dock-border: rgba(255, 255, 255, 0.14);
}

:root.theme-colorful {
    color-scheme: dark;
    --color-background: #080612;
    --color-surface: #100d24;
    --color-card-bg: rgba(26, 20, 52, 0.65);
    --color-card-bg-hover: rgba(45, 34, 88, 0.85);
    --color-card-border: rgba(192, 132, 252, 0.25);
    --color-secondary: rgba(216, 180, 254, 0.12);
    --color-secondary-hover: rgba(216, 180, 254, 0.22);
    --color-border-color: rgba(192, 132, 252, 0.2);
    --color-accent-solid: #c084fc;
    --color-accent-gradient: linear-gradient(135deg, #38bdf8 0%, #c084fc 50%, #f472b6 100%);
    --color-text-primary: #ffffff;
    --color-text-secondary: #c4b5fd;
    --color-header-bg: rgba(39, 39, 50, 0.7);
    --color-cursor-bg: rgba(192, 132, 252, 0.25);
    --dot-color: rgba(192, 132, 252, 0.03);
    --dot-spotlight-color: rgba(244, 114, 182, 0.2);
    --dock-bg: rgba(22, 16, 46, 0.85);
    --dock-border: rgba(192, 132, 252, 0.3);
}

:root.theme-colorful #dark-mode-gradient {
    opacity: 1 !important;
    background: linear-gradient(180deg, #180d38 0%, #090614 50%, #12092c 100%) !important;
}

:root.theme-light {
    color-scheme: light;
    --color-background: #f8fafc;
    --color-surface: #ffffff;
    --color-card-bg: rgba(255, 255, 255, 0.92);
    --color-card-bg-hover: rgba(241, 245, 249, 0.98);
    --color-card-border: rgba(0, 0, 0, 0.08);
    --color-secondary: rgba(0, 0, 0, 0.05);
    --color-secondary-hover: rgba(0, 0, 0, 0.09);
    --color-border-color: rgba(0, 0, 0, 0.1);
    --color-accent-solid: #2563eb;
    --color-accent-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #db2777 100%);
    --color-text-primary: #0f172a;
    --color-text-secondary: #475569;
    --color-header-bg: rgba(255, 255, 255, 0.85);
    --color-cursor-bg: rgba(0, 0, 0, 0.1);
    --dot-color: rgba(0, 0, 0, 0.02);
    --dot-spotlight-color: rgba(37, 99, 235, 0.1);
    --dock-bg: rgba(255, 255, 255, 0.85);
    --dock-border: rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
}

html {
    background-color: var(--color-background);
    overflow-x: hidden;
}

body {
    background-color: var(--color-background);
    color: var(--color-text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* --- FORCE DARK OVERRIDE FOR CINEMATIC SECTIONS --- */
.force-dark {
    --color-text-primary: #ffffff !important;
    --color-text-secondary: #94a3b8 !important;
    --color-card-border: rgba(255, 255, 255, 0.1) !important;
    --color-secondary: rgba(255, 255, 255, 0.06) !important;
    color: var(--color-text-primary) !important;
}

.force-dark .apple-headline { color: #ffffff !important; }
.force-dark .apple-subheadline { color: #94a3b8 !important; }
.force-dark .slot-item { color: #ffffff !important; }

/* --- LINEAR GRADIENT BACKGROUND ENGINE --- */
#dark-mode-gradient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(180deg, #0a0d18 0%, #000000 60%, #05060b 100%);
    opacity: 1;
    transition: opacity 0.4s ease;
}

:root.theme-colorful #dark-mode-gradient {
    background: linear-gradient(180deg, #180d38 0%, #090614 50%, #12092c 100%) !important;
}

:root.theme-light #dark-mode-gradient {
    background: linear-gradient(180deg, #f0f4f9 0%, #f8fafc 50%, #e2e8f0 100%) !important;
}

/* --- MATERIAL YOU EXPRESSIVE TOP BAR --- */
.header-glass-capsule {
    background-color: var(--color-header-bg) !important;
    backdrop-filter: blur(28px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
    border: none !important;
    padding: 8px 12px 8px 16px !important;
    border-radius: 9999px !important;
    box-shadow: 0 12px 35px -10px rgba(0, 0, 0, 0.3) !important;
    transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.4s cubic-bezier(0.2, 0, 0, 1);
}

:root.theme-light .header-glass-capsule {
    box-shadow: 0 12px 35px -10px rgba(0, 0, 0, 0.08) !important;
}

/* Header Links */
.header-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-text-secondary);
    border-radius: 9999px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.header-nav-link:hover {
    color: var(--color-text-primary);
    background-color: var(--color-secondary);
}

.header-nav-link.is-active {
    color: var(--color-text-primary) !important;
    background-color: var(--color-secondary-hover) !important;
    border: 1px solid var(--color-border-color) !important;
}

/* Header Main CTA Buttons (Subscribe & Download) */
.header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    padding: 0 16px;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.header-btn-subscribe {
    color: #ffffff !important;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    box-shadow: 0 4px 15px -3px rgba(168, 85, 247, 0.4);
}

.header-btn-subscribe:hover {
    transform: scale(1.05) translateY(-1px);
    box-shadow: 0 6px 20px -3px rgba(168, 85, 247, 0.6);
}

.header-btn-download {
    color: var(--color-text-primary);
    background: var(--color-secondary);
    border: 1px solid var(--color-card-border);
}

.header-btn-download:hover {
    background: var(--color-secondary-hover);
    transform: scale(1.05) translateY(-1px);
}

/* --- THEME SWITCHER PUCK --- */
.theme-switcher-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: var(--color-secondary);
    padding: 2px;
    height: 34px;
    border-radius: 9999px;
    border: 1px solid var(--color-card-border);
    user-select: none;
}

.switch-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.switch-label {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 28px;
    border-radius: 9999px;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
}

.switch-label span {
    font-size: 15px;
    pointer-events: none;
}

.switch-label:hover {
    color: var(--color-text-primary);
}

.switch-puck {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 30px;
    height: 28px;
    border-radius: 9999px;
    background: var(--color-surface);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    pointer-events: none;
}

#theme-radio-colorful:checked ~ .switch-puck { transform: translateX(0); }
#theme-radio-dark:checked ~ .switch-puck { transform: translateX(30px); }
#theme-radio-light:checked ~ .switch-puck { transform: translateX(60px); }

#theme-radio-colorful:checked ~ label[for="theme-radio-colorful"],
#theme-radio-dark:checked ~ label[for="theme-radio-dark"],
#theme-radio-light:checked ~ label[for="theme-radio-light"] {
    color: var(--color-text-primary);
}

/* --- EASTER EGG CUSTOM MODERN DOT CURSOR --- */
body.custom-cursor-active, 
body.custom-cursor-active a, 
body.custom-cursor-active button, 
body.custom-cursor-active input, 
body.custom-cursor-active label,
body.custom-cursor-active select,
body.custom-cursor-active textarea,
body.custom-cursor-active * {
    cursor: none !important;
}

#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    background: var(--color-cursor-bg);
    backdrop-filter: blur(6px) saturate(180%);
    -webkit-backdrop-filter: blur(6px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
    transition: opacity 0.3s ease, width 0.22s cubic-bezier(0.16, 1, 0.3, 1), height 0.22s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    will-change: transform, width, height, opacity;
}

:root.theme-light #custom-cursor {
    border: 1.5px solid rgba(0, 0, 0, 0.45);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
}

#custom-cursor.cursor-hover {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 24px rgba(168, 85, 247, 0.45);
}

:root.theme-light #custom-cursor.cursor-hover {
    background: rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

/* --- DYNAMIC SPOTLIGHT DOT MATRIX --- */
#dot-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.4s ease-out;
    transform: translate3d(0, 0, 0);
    will-change: opacity;
}

.bg-dot-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--dot-color) 1.2px, transparent 1.2px);
    background-size: 28px 28px;
    background-position: 0 0;
}

#dot-spotlight {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--dot-spotlight-color) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    mask-image: radial-gradient(380px circle at var(--mouse-x, 50vw) var(--mouse-y, 50vh), black 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(380px circle at var(--mouse-x, 50vw) var(--mouse-y, 50vh), black 0%, transparent 100%);
}

/* --- SIGNATURE APPLE TYPOGRAPHY & DESCENDER FIX --- */
.apple-headline {
    font-size: clamp(2.5rem, 6.5vw, 5.5rem);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1.15;
    padding-bottom: 0.15em;
    overflow: visible;
    color: var(--color-text-primary);
}

.apple-subheadline {
    font-size: clamp(0.95rem, 1.35vw, 1.2rem);
    font-weight: 500;
    line-height: 1.65;
    letter-spacing: -0.01em;
    color: var(--color-text-secondary);
}

/* APPLE WORD-BY-WORD SCROLL HIGHLIGHT */
.apple-word {
    display: inline-block;
    opacity: 0.15;
    color: var(--color-text-primary);
    will-change: opacity;
}

.text-gradient-apple {
    background: linear-gradient(180deg, var(--color-text-primary) 30%, var(--color-text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 0.1em;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 0.1em;
}

.text-gradient-cyan {
    background: linear-gradient(135deg, #67e8f9 0%, #06b6d4 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 0.1em;
}

.text-gradient-purple {
    background: linear-gradient(135deg, #e9d5ff 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 0.1em;
}

.text-gradient-emerald {
    background: linear-gradient(135deg, #a7f3d0 0%, #10b981 50%, #047857 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 0.1em;
}

/* --- PLAN BADGE PILLS --- */
.tier-pill-free {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.tier-pill-basic {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: rgba(6, 182, 212, 0.15);
    color: #67e8f9;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.tier-pill-pro {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.tier-pill-ultra {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: rgba(168, 85, 247, 0.2);
    color: #d8b4fe;
    border: 1px solid rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

/* --- FACE ID SECTION SOLID BACKGROUND --- */
#feature-face-id {
    background-color: #0b0e17 !important;
    position: relative;
    overflow: hidden;
}

:root.theme-colorful #feature-face-id {
    background-color: #140d2a !important;
}

:root.theme-light #feature-face-id {
    background-color: #e8ecf4 !important;
}

.faceid-reticle-box {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: rgba(192, 132, 252, 0.12);
    border: 1.5px solid rgba(192, 132, 252, 0.35);
    box-shadow: 0 0 35px rgba(192, 132, 252, 0.25);
}

.faceid-corner-bracket {
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: #c084fc;
}

.faceid-scanner-beam {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #c084fc 50%, transparent 100%);
    box-shadow: 0 0 20px #c084fc, 0 0 40px #a855f7;
    opacity: 0.75;
    animation: scanSweep 3.2s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 10;
}

@keyframes scanSweep {
    0% { top: 4%; }
    100% { top: 96%; }
}

.security-pillar-card {
    background: var(--color-secondary);
    border: 1px solid var(--color-card-border);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-radius: 24px;
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.security-pillar-card:hover {
    background: var(--color-secondary-hover);
    border-color: rgba(192, 132, 252, 0.35);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
}

/* --- HORIZONTAL RUNWAY & GEOMETRIC SHAPES --- */
.blip-runway-viewport {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    z-index: 10;
}

.blip-bg-shapes-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.bg-geo-shape {
    position: absolute;
    opacity: 0.35;
    will-change: transform;
    filter: drop-shadow(0 15px 30px rgba(168, 85, 247, 0.3));
}

.blip-runway-track {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6rem;
    width: max-content;
    padding: 0 10vw;
    will-change: transform;
}

.runway-text-item {
    font-size: clamp(3rem, 8.5vw, 7.5rem);
    font-weight: 900;
    letter-spacing: 0.02em;
    word-spacing: 0.15em;
    line-height: 1;
    white-space: nowrap;
    text-transform: uppercase;
    color: var(--color-text-primary);
}

/* --- HIGH-FREQUENCY ANIMATED SQUIGGLY UNDERLINE --- */
.animated-squiggly-wrapper {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.animated-squiggly-svg {
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 18px;
    overflow: visible;
    pointer-events: none;
}

.animated-squiggly-path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 2.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.animated-squiggly-path.is-drawn {
    stroke-dashoffset: 0;
}

/* --- HARDWARE NOTCH SIMULATION & VIDEO FRAMES --- */
.notch-hardware {
    position: relative;
    background: #000000;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.9), inset 0 -1px 0 rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.notch-hardware::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #09090b;
    box-shadow: inset 0 0 3px #1e293b, 0 0 1px #000;
}

.blip-85vw-video-frame {
    width: 90vw;
    height: auto;
    max-height: 80vh;
    max-width: 1440px;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 35px 90px -20px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.12);
    background: #000000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.blip-video-element {
    width: 100%;
    height: auto;
    display: block;
}

.blip-video-caption {
    position: relative;
    z-index: 20;
    margin-top: 14px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.4);
    opacity: 0;
    text-align: center;
}

.clean-video-frame {
    border-radius: 28px;
    overflow: hidden;
    background: #000000;
    border: 1px solid var(--color-card-border);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9);
    /* Native video ratio (3340x2160) so the video fills the full width and
       the container height grows to match — nothing is cropped, and every
       feature video gets the same height at the same width. */
    aspect-ratio: 3340 / 2160;
}

.clean-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- VERTICAL DRUM SLOT MACHINE --- */
.slot-machine-stage {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-background) 100%);
    position: relative;
    overflow: hidden;
}

.slot-reel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.slot-phrase-wrap {
    display: flex;
    align-items: center;
    height: 90px;
}

.slot-reel-viewport {
    position: relative;
    height: 270px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    mask-image: linear-gradient(to bottom, transparent 0%, black 28%, black 72%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 28%, black 72%, transparent 100%);
}

.slot-reel-strip {
    display: flex;
    flex-direction: column;
    width: auto;
    padding-left: 0;
    transform: translate3d(0, 90px, 0);
    will-change: transform;
}

.slot-item {
    height: 90px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: clamp(1.875rem, 6vw, 3.75rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.2;
    white-space: nowrap;
    text-align: left;
    transition: opacity 0.16s ease, transform 0.16s ease, filter 0.16s ease;
    opacity: 0.16;
    transform: scale(0.93);
    filter: blur(2.5px);
    color: var(--color-text-primary);
}

.slot-item.is-active {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
    color: #c084fc;
    background: linear-gradient(135deg, #c084fc 0%, #f472b6 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 28px rgba(192, 132, 252, 0.45));
}

.slot-item.is-adjacent {
    opacity: 0.35;
    transform: scale(0.96);
    filter: blur(1px);
}

/* --- VERTICAL APPS COLUMNS SHOWCASE --- */
.app-columns-wrapper {
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    height: 100%;
    max-height: 50vh;
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-top: 1rem;
}

.app-column {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 2vw, 16px);
    will-change: transform;
}

.app-card-vertical {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 16px);
    padding: clamp(12px, 2vw, 16px) clamp(16px, 3vw, 24px);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: clamp(160px, 35vw, 260px);
    box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.3);
}

/* --- APPLE GLASS & CARD CONTAINERS --- */
.apple-glass {
    background: var(--color-card-bg);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--color-card-border);
}

.apple-glass-hover {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, background 0.4s ease;
}
.apple-glass-hover:hover {
    background: var(--color-card-bg-hover);
    border-color: var(--color-border-color);
    transform: translateY(-4px);
}

/* --- FROSTED GLASS BUTTONS --- */
.apple-cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
    background: var(--color-accent-gradient);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
    text-decoration: none;
}

.apple-cta-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 35px -5px rgba(168, 85, 247, 0.5);
}

.apple-secondary-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text-primary);
    background: var(--color-card-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--color-card-border);
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-decoration: none;
}

:root.theme-light .apple-secondary-btn {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
    color: #0f172a;
}

.apple-secondary-btn:hover {
    background: var(--color-card-bg-hover);
    border-color: var(--color-border-color);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 32px -8px rgba(0, 0, 0, 0.45);
}

:root.theme-light .apple-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 14px 32px -8px rgba(0, 0, 0, 0.12);
}

.apple-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 9999px;
    background: var(--color-card-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--color-card-border);
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-decoration: none;
    flex-shrink: 0;
}

:root.theme-light .apple-icon-btn {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.apple-icon-btn:hover {
    background: var(--color-card-bg-hover);
    border-color: rgba(88, 101, 242, 0.5);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 14px 32px -8px rgba(88, 101, 242, 0.35);
}

/* --- THICKER & MORE TACTILE FLOATING DOCK --- */
.apple-dock {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translate3d(0, 80px, 0);
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 32px;
    background: var(--dock-bg);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--dock-border);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 95vw;
    overflow-x: auto;
    scrollbar-width: none;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

:root.theme-light .apple-dock {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.apple-dock.is-dock-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translate3d(0, 0, 0);
}

.apple-dock::-webkit-scrollbar {
    display: none;
}

.dock-pill {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--color-text-secondary);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    text-decoration: none;
}

.dock-pill:hover {
    color: var(--color-text-primary);
    background: var(--color-secondary);
}

.dock-pill.is-active {
    color: var(--color-background);
    background: var(--color-text-primary);
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* --- SEAMLESS INFINITE MARQUEE --- */
.marquee-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    width: 100%;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-track {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 1.5rem;
    padding-right: 1.5rem;
    animation: marquee-infinite 30s linear infinite;
    will-change: transform;
}

.marquee-track.reverse {
    animation: marquee-infinite-reverse 34s linear infinite;
}

.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-infinite {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes marquee-infinite-reverse {
    0% { transform: translate3d(-50%, 0, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

/* --- INTERACTIVE HUD SLIDER --- */
.slider-track {
    position: relative;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.slider-fill {
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(90deg, #ffffff 0%, #38bdf8 70%, #f59e0b 100%);
    transition: width 0.15s ease-out;
}