:root {
    --bg-color: #050507;
    --text-primary: #F5F5F7;
    --text-secondary: #86868B;
    --accent-color: #2997FF;
    --glass-bg: rgba(30, 30, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-stack: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-stack);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Background Image Layer */
#bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    /* Deep premium gradient background */
    background:
        radial-gradient(circle at 15% 50%, rgba(41, 151, 255, 0.15), transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(150, 50, 255, 0.15), transparent 40%),
        linear-gradient(to bottom, #050507 0%, #0a0a0c 100%);
    opacity: 1;
}

/* We will inject the generated background via JS or inline style if needed, 
   but for now let's assume valid CSS handling */

/* Canvas Layer */
#weather-canvas,
#weather-canvas-next {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
    pointer-events: none;
    transition: opacity 1s ease-in-out;
    /* Firefox optimization - force GPU compositing */
    will-change: opacity;
    backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    transform: translateZ(0);
    -moz-transform: translateZ(0);
}

/* Background Layer */
#bg-image {
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100%;
    min-height: 100%;
}

#weather-canvas-next {
    opacity: 0;
}

/* Nav */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.brand {
    font-weight: 700;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.btn-primary-sm {
    background: var(--text-primary);
    color: #000 !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
}

/* Hamburger Menu - Apple-like design */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.15);
}

.hamburger:active {
    transform: scale(0.95);
}

.hamburger span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
}

.hamburger span:nth-child(1) {
    transform: translateY(-6px);
}

.hamburger span:nth-child(2) {
    transform: translateY(0);
}

.hamburger span:nth-child(3) {
    transform: translateY(6px);
}

.hamburger.active {
    background: transparent;
    border-color: transparent;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(0);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(0);
}

/* Mobile Menu Overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    transition: color 0.2s, transform 0.2s;
}

.mobile-menu a:hover {
    color: var(--accent);
    transform: scale(1.05);
}

.mobile-menu .btn-primary {
    margin-top: 1rem;
    padding: 12px 32px;
    font-size: 1rem;
}

/* Typography */
h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(41, 151, 255, 0.2);
    color: #2997FF;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

/* Hero */
.hero-section {
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s, background 0.2s;
    display: inline-block;
}

.btn-primary:hover {
    transform: scale(1.05);
    background: #0077ED;
}

/* Apple-like white button */
.btn-white {
    background: rgba(255, 255, 255, 0.95);
    color: #1d1d1f;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
    transform: scale(1.05);
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.version-text {
    display: block;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Ticker */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 20;
}

.ticker {
    display: flex;
    white-space: nowrap;
    animation: ticker 40s linear infinite;
}

.ticker-item {
    font-size: 1rem;
    color: var(--text-secondary);
    padding: 0 2rem;
    font-weight: 500;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Scrollytelling */
.scroll-experience {
    position: relative;
}

.sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    pointer-events: none;
}

/* Laptop Frame */
.laptop-frame {
    width: 65vw;
    aspect-ratio: 16/10;
    background: #050505;
    border-radius: 16px 16px 0 0;
    position: relative;
    border: 1px solid #222;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
}

.laptop-frame::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -5%;
    width: 110%;
    height: 10px;
    background: #1a1a1a;
    border-radius: 0 0 10px 10px;
}

.screen-content {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    /* Transparent to show canvas */
    position: relative;
}

.menu-bar {
    height: 24px;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    font-size: 11px;
    font-weight: 500;
}

.weather-widget {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Video Container - Lazy Loading with Streaming */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.demo-video.loaded {
    opacity: 1;
}

/* Subtle dim during transition - don't go fully black */
.demo-video.transitioning {
    opacity: 0.7;
    transition: opacity 0.2s ease-out;
}

.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-loading.visible {
    opacity: 1;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Scroll Triggers */
.scroll-trigger {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 10vw;
    position: relative;
    z-index: 10;
    pointer-events: none;
}

.scroll-trigger:nth-child(odd) {
    justify-content: flex-end;
}

.scroll-trigger:nth-child(even) {
    justify-content: flex-start;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 24px;
    max-width: 450px;
    pointer-events: auto;
    transition: transform 0.3s;
}

.glass-panel:hover {
    transform: translateY(-5px);
}

.glass-panel p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Section Header */
.section-header {
    margin-bottom: 4rem;
}

/* =====================================================
   SCENES SHOWCASE SECTION - Transparent with chips
   ===================================================== */
.scenes-showcase-section {
    min-height: 100vh;
    position: relative;
    z-index: 23;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 40px;
    /* Semi-transparent to show weather through */
    background: rgba(5, 5, 7, 0.2);
    /* Slightly more transparent background too */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.scenes-showcase-content {
    text-align: center;
    max-width: 1000px;
}

.scenes-header {
    margin-bottom: 3rem;
}

.scenes-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.scenes-header .subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.scenes-chips-container {
    overflow: hidden;
    padding: 1rem 0;
}

.scenes-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.scene-chip {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: default;

    /* Initial animation state */
    opacity: 0;
    transform: translateY(40px);
}

/* Animate chips when section is in view */
.scenes-showcase-section.animate-in .scene-chip {
    animation: chipFloat 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

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

/* Stagger animation delays */
.scenes-showcase-section.animate-in .scene-chip:nth-child(1) {
    animation-delay: 0.02s;
}

.scenes-showcase-section.animate-in .scene-chip:nth-child(2) {
    animation-delay: 0.04s;
}

.scenes-showcase-section.animate-in .scene-chip:nth-child(3) {
    animation-delay: 0.06s;
}

.scenes-showcase-section.animate-in .scene-chip:nth-child(4) {
    animation-delay: 0.08s;
}

.scenes-showcase-section.animate-in .scene-chip:nth-child(5) {
    animation-delay: 0.10s;
}

.scenes-showcase-section.animate-in .scene-chip:nth-child(6) {
    animation-delay: 0.12s;
}

.scenes-showcase-section.animate-in .scene-chip:nth-child(7) {
    animation-delay: 0.14s;
}

.scenes-showcase-section.animate-in .scene-chip:nth-child(8) {
    animation-delay: 0.16s;
}

.scenes-showcase-section.animate-in .scene-chip:nth-child(9) {
    animation-delay: 0.18s;
}

.scenes-showcase-section.animate-in .scene-chip:nth-child(10) {
    animation-delay: 0.20s;
}

.scenes-showcase-section.animate-in .scene-chip:nth-child(11) {
    animation-delay: 0.22s;
}

.scenes-showcase-section.animate-in .scene-chip:nth-child(12) {
    animation-delay: 0.24s;
}

.scenes-showcase-section.animate-in .scene-chip:nth-child(13) {
    animation-delay: 0.26s;
}

.scenes-showcase-section.animate-in .scene-chip:nth-child(14) {
    animation-delay: 0.28s;
}

.scenes-showcase-section.animate-in .scene-chip:nth-child(15) {
    animation-delay: 0.30s;
}

.scenes-showcase-section.animate-in .scene-chip:nth-child(16) {
    animation-delay: 0.32s;
}

.scenes-showcase-section.animate-in .scene-chip:nth-child(17) {
    animation-delay: 0.34s;
}

.scenes-showcase-section.animate-in .scene-chip:nth-child(18) {
    animation-delay: 0.36s;
}

.scenes-showcase-section.animate-in .scene-chip:nth-child(19) {
    animation-delay: 0.38s;
}

.scenes-showcase-section.animate-in .scene-chip:nth-child(20) {
    animation-delay: 0.40s;
}

.scenes-showcase-section.animate-in .scene-chip:nth-child(21) {
    animation-delay: 0.42s;
}

.scenes-showcase-section.animate-in .scene-chip:nth-child(22) {
    animation-delay: 0.44s;
}

.scenes-showcase-section.animate-in .scene-chip:nth-child(23) {
    animation-delay: 0.46s;
}

.scenes-showcase-section.animate-in .scene-chip:nth-child(24) {
    animation-delay: 0.48s;
}

.scenes-showcase-section.animate-in .scene-chip:nth-child(25) {
    animation-delay: 0.50s;
}

.scenes-showcase-section.animate-in .scene-chip:nth-child(26) {
    animation-delay: 0.52s;
}

.scenes-showcase-section.animate-in .scene-chip:nth-child(27) {
    animation-delay: 0.54s;
}

.scenes-showcase-section.animate-in .scene-chip:nth-child(28) {
    animation-delay: 0.56s;
}

.scenes-showcase-section.animate-in .scene-chip:nth-child(29) {
    animation-delay: 0.58s;
}

.scenes-showcase-section.animate-in .scene-chip:nth-child(n+30) {
    animation-delay: 0.60s;
}

.scene-chip:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(41, 151, 255, 0.5);
    color: var(--text-primary);
    transform: translateY(-2px) scale(1.02);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

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

footer {
    padding: 1.5rem 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle border */
    margin-top: 4rem;
    position: relative;
    z-index: 20;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
}

.footer-content {
    color: #555;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .laptop-frame {
        width: 90vw;
    }

    .scroll-trigger {
        justify-content: center !important;
    }
}


/* Tech Section & Features */
/* Full Screen Scroll Containers */
.tech-section,
.features-list-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    /* Glass background */
    background: rgba(5, 5, 7, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 20;
}

.tech-section {
    z-index: 21;
}

.features-list-section {
    z-index: 22;
}

.tech-container,
.features-container {
    width: 100%;
    max-width: 1600px;
    padding: 0 40px;
    /* Removing sticky from inner containers */
}

/* Ensure content is centered and readable on large screens */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 4rem;
    max-width: 1600px;
    width: 100%;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 4rem;
    max-width: 1600px;
    width: 100%;
}

.feature-item {
    flex: 1 1 22%;
    /* Approx 1/4th minus gap, but allow wrapping */
    min-width: 350px;
    /* Match the grid minmax */
    max-width: 450px;
    /* Prevent them from getting too wide in flex layout */
}

.tech-card,
.feature-item {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: left;
    transition: transform 0.3s ease;
}

.tech-card:hover,
.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(40, 40, 40, 0.8);
    border-color: rgba(41, 151, 255, 0.5);
}

.tech-card h3,
.feature-item h3 {
    margin-bottom: 0.8rem;
    font-size: 1.6rem;
    color: var(--text-primary);
}

.tech-card p,
.feature-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Pricing Section */
.pricing-section {
    backdrop-filter: blur(10px) brightness(0.8);
    /* Slight dim for visibility */
}

.pricing-card {
    max-width: 600px;
    /* Slightly larger again for impact */
    margin: 0 auto;
    padding: 4rem 3rem;
    border-radius: 24px;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
    /* Scaling up as requested */
}

.price-text {
    font-size: 3rem;
    /* Reduced from 3.5rem */
    font-weight: 700;
    margin: 1rem 0;
    color: var(--text-primary);
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    display: block;
    margin-top: 0.5rem;
    -webkit-text-fill-color: initial;
}

/* SVG Icons */
.card-icon {
    width: 32px;
    height: 32px;
    stroke: var(--accent-color);
    stroke-width: 2;
    fill: none;
    margin-bottom: 1rem;
    display: block;
}

.pricing-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.trial-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s;
    font-size: 1.1rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* =====================================================
   DOWNLOAD SECTION - Clean inline design
   ===================================================== */
.download-section {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 24;
    padding: 5rem 40px;
    background: rgba(5, 5, 7, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.download-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1000px;
    width: 100%;
    flex-wrap: wrap;
}

.download-info {
    flex: 1;
    min-width: 280px;
}

.download-info h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #ddd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.download-info p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.download-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.price-display {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.download-buttons {
    display: flex;
    gap: 1rem;
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.trial-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .download-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .download-pricing {
        align-items: center;
    }

    .download-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-ghost {
        width: 100%;
        text-align: center;
    }
}

/* =========================================
   COMPREHENSIVE MOBILE STYLES
   ========================================= */

/* Small tablets and large phones */
@media (max-width: 600px) {

    /* Navigation - hamburger menu for mobile */
    .glass-nav {
        padding: 0.4rem 0;
    }

    .nav-content {
        padding: 0 12px;
    }

    .brand {
        font-size: 0.9rem;
    }

    .hamburger {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .hamburger span {
        width: 16px;
    }

    .nav-links {
        display: none !important;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    /* Hero section */
    .hero-section {
        height: 100vh;
        min-height: 100vh;
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .hero-content h1 {
        font-size: clamp(3rem, 12vw, 4.5rem);
        line-height: 1.0;
    }

    .hero-content .subtitle {
        font-size: 1.05rem;
        padding: 0 1rem;
        margin-top: 0.75rem;
        margin-bottom: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
        margin-top: 2.5rem;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-white {
        padding: 12px 28px;
        font-size: 0.95rem;
        border-radius: 25px;
        width: auto;
        min-width: 180px;
        text-align: center;
    }

    /* Ticker - move up and widen */
    .ticker-wrap {
        padding: 1rem 0;
        margin-top: -100px;
        position: relative;
        z-index: 25;
    }

    .ticker {
        animation-duration: 15s;
    }

    .ticker.scrolling {
        animation-duration: 5s;
    }

    .ticker-item {
        font-size: 1rem;
        padding: 0 3rem;
        font-weight: 500;
    }

    /* Tech section */
    .tech-container,
    .features-container {
        padding: 0 20px;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    /* Features grid */
    .features-grid {
        gap: 15px;
    }

    .feature-card {
        min-width: 100%;
        padding: 1.25rem;
    }

    /* Scenes showcase */
    .scenes-chips-container {
        gap: 0.5rem;
        padding: 0 10px;
    }

    .scene-chip {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }

    /* Download section */
    .download-section {
        padding: 3rem 1rem;
    }

    .download-info h2 {
        font-size: 1.5rem;
    }

    .price-amount {
        font-size: 2rem;
    }

    /* Footer */
    .site-footer {
        padding: 2rem 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    /* ===== MOBILE SCROLLYTELLING - Video + Cards ===== */
    .scroll-experience {
        position: relative;
        margin-top: 100px;
    }

    /* Video centered and sticky */
    .sticky-wrapper {
        position: sticky !important;
        top: calc(50vh - 20vh) !important;
        /* Center vertically */
        height: 40vh !important;
        z-index: 100 !important;
        padding: 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        pointer-events: auto !important;
        background: transparent !important;
        overflow: visible;
        /* Start hidden, appears on scroll */
        margin-top: 20px;
    }

    .laptop-frame-wrapper {
        width: 100%;
        height: 100%;
    }

    .laptop-frame {
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: auto !important;
        border-radius: 14px !important;
        pointer-events: auto !important;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
    }

    .laptop-frame::after {
        display: none !important;
    }

    .screen-content,
    .video-container {
        pointer-events: auto !important;
    }

    .demo-video {
        pointer-events: auto !important;
        width: 100% !important;
        height: 100% !important;
        /* Mobile GPU acceleration for smoother video playback */
        will-change: opacity;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        /* Optimize for touch scrolling */
        touch-action: manipulation;
    }

    /* Mobile video container optimizations */
    .video-container {
        /* GPU acceleration */
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        /* Better poster display on mobile */
        background-color: #000;
        background-size: cover;
        background-position: center;
    }

    /* Smaller loading spinner on mobile */
    .loading-spinner {
        width: 32px;
        height: 32px;
        border-width: 2px;
    }

    /* Video play overlay optimization for touch */
    .video-play-overlay {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    /* Cards scroll UNDER the video, then fade - tight spacing */
    .scroll-trigger {
        height: auto !important;
        min-height: 35vh !important;
        /* Tight - next card appears quickly */
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
        padding: 10px 12px 15px 12px !important;
        z-index: 10 !important;
        /* Below video */
    }

    .scroll-trigger .glass-panel {
        max-width: 100% !important;
        width: 100% !important;
        padding: 1.25rem !important;
        border-radius: 16px !important;
        /* Transparent glass effect */
        background: rgba(15, 15, 20, 0.7) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .scroll-trigger .glass-panel h2 {
        font-size: 1.4rem !important;
        margin-bottom: 0.4rem !important;
    }

    .scroll-trigger .glass-panel p {
        font-size: 0.85rem !important;
        line-height: 1.45 !important;
        color: rgba(255, 255, 255, 0.75) !important;
    }

    .scroll-trigger .badge {
        font-size: 0.6rem !important;
        padding: 0.25rem 0.5rem !important;
        margin-bottom: 0.4rem !important;
    }

    /* First card needs extra top padding to start below video */
    .scroll-trigger:first-of-type {
        padding-top: calc(40vh + 20px) !important;
    }
}

/* Phones (430px - iPhone 14 Pro Max size) */
@media (max-width: 480px) {
    .brand {
        font-size: 1.1rem;
    }


    .tech-card {
        padding: 1.5rem;
    }

    .tech-card h3 {
        font-size: 1.1rem;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .hero-content .subtitle {
        font-size: 0.8rem;
    }

    .ticker-item {
        font-size: 0.65rem;
        padding: 0 1rem;
    }
}