/* ==========================================================================
   SAVANOR | DAY & NIGHT PREMIUM DESIGN SYSTEM
   ========================================================================== */

:root {
    /* Color Palette */
    --color-cream: #FAF8F3;
    --color-cream-warm: #F5EDE0;
    --color-text-dark: #1A1A2E;
    --color-text-soft: #6B6B80;
    --color-text-light: #FFFFFF;
    
    --color-gold: #E8A838;
    --color-gold-light: #F5D88E;
    --color-gold-hover: #D6972B;
    
    --color-indigo: #7B8CDE;
    --color-indigo-deep: #0F1535;
    --color-indigo-hover: #6778CA;
    
    --color-navy: #1A1A2E;
    --color-navy-dark: #0A0E2A;
    
    /* Layout */
    --container-width: 1200px;
    --space-xs: 12px;
    --space-sm: 24px;
    --space-md: 48px;
    --space-lg: 80px;
    --space-xl: 120px;
    
    /* Typography */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
    
    /* Transitions */
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
    --transition-fast: 0.3s var(--ease-out);
    --transition-medium: 0.6s var(--ease-out);
    --transition-slow: 1.2s var(--ease-out);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto; /* Disabled for Lenis */
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-dark);
    background-color: var(--color-cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

.section {
    padding: var(--space-xl) 0;
    position: relative;
}

.text-center { text-align: center; }
.text-accent { color: var(--color-gold); font-style: italic; }

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
.section__label {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-soft);
    margin-bottom: var(--space-sm);
    display: block;
}

.section__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--space-md);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border-radius: 4px;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn--primary {
    background: var(--color-text-dark);
    color: var(--color-text-light);
}
.btn--primary:hover {
    background: var(--color-gold);
}

.btn--outline {
    background: transparent;
    border-color: var(--color-text-dark);
    color: var(--color-text-dark);
}
.btn--outline:hover {
    background: var(--color-text-dark);
    color: var(--color-text-light);
}

.btn--gold {
    background: var(--color-gold);
    color: var(--color-text-light);
}
.btn--gold:hover {
    background: var(--color-gold-hover);
}

.btn--indigo {
    background: var(--color-indigo);
    color: var(--color-text-light);
}
.btn--indigo:hover {
    background: var(--color-indigo-hover);
}

/* ==========================================================================
   CURSOR
   ========================================================================== */
.cursor-glow {
    position: fixed;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid var(--color-text-dark);
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    opacity: 0.5;
}
.cursor-glow.cursor--grow {
    width: 48px;
    height: 48px;
    background: rgba(26,26,46,0.05);
}
@media (pointer: coarse) {
    .cursor-glow { display: none !important; }
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background var(--transition-fast), padding var(--transition-fast), color var(--transition-fast);
    /* Initially light over the video */
    color: var(--color-text-light);
}

.nav .btn--outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--color-text-light);
}
.nav .btn--outline:hover {
    background: var(--color-text-light);
    color: var(--color-text-dark);
}

.nav.scrolled {
    background: rgba(250, 248, 243, 0.9);
    backdrop-filter: blur(10px);
    padding: 16px var(--space-md);
    border-bottom: 1px solid var(--line);
    color: var(--color-text-dark); /* Switch to dark text when background appears */
}

.nav.scrolled .btn--outline {
    border-color: var(--color-text-dark);
    color: var(--color-text-dark);
}
.nav.scrolled .btn--outline:hover {
    background: var(--color-text-dark);
    color: var(--color-text-light);
}

/* For the horizontal night gallery section */
.nav.nav--night {
    color: var(--color-text-light) !important;
}
.nav.nav--night .btn--outline {
    border-color: var(--color-text-light) !important;
    color: var(--color-text-light) !important;
}
.nav.nav--night .btn--outline:hover {
    background: var(--color-text-light) !important;
    color: var(--color-text-dark) !important;
}

.nav__logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.nav__links {
    display: flex;
    gap: var(--space-md);
}

.nav__links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
}
.nav__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background: currentColor;
    transition: width var(--transition-fast);
}
.nav__links a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .nav__links { display: none; }
}

/* ==========================================================================
   SECTION 1: VIDEO HERO
   ========================================================================== */
.hero {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    overflow: hidden;
    background: var(--color-navy-dark);
    z-index: 1;
}

.hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

/* Center Content Overlay */
.hero__center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 100%;
    pointer-events: none;
}

.hero__main-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: var(--color-text-dark);
    max-width: 900px;
    margin: 0 auto 16px auto;
    /* Blend mode magic to make text readable on both sides */
    mix-blend-mode: overlay;
    color: white;
}
.hero__sub {
    font-size: 1.1rem;
    color: var(--color-text-light);
    mix-blend-mode: overlay;
}

.hero__scroll-indicator {
    position: absolute;
    bottom: -15vh;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    overflow: hidden;
}
.hero__scroll-line {
    width: 100%;
    height: 100%;
    background: white;
    transform: translateY(-100%);
    animation: scrollLine 2s infinite var(--ease-out);
}
@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    50% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* ==========================================================================
   SECTION 2: PHILOSOPHY
   ========================================================================== */
.philosophy {
    position: relative;
    z-index: 2;
    background: var(--color-cream);
    padding: var(--space-xl) 0;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.1); /* Smooth overlap shadow */
}

/* UI Dashboard Layout (Refero Style) */
.philosophy__subtitle {
    font-size: 1.1rem;
    color: var(--color-text-soft);
    max-width: 600px;
    margin: 0 auto 48px auto;
}

.ui-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.ui-card {
    background: #FDFDFB;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}

.ui-card__number {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--color-gold);
    margin-bottom: 12px;
    font-style: italic;
}

.ui-card__title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: var(--color-text-dark);
}

.ui-card__desc {
    font-size: 0.9rem;
    color: var(--color-text-soft);
    margin-bottom: 32px;
}

/* UI Widget Container */
.ui-widget {
    background: #FAF8F3;
    border-radius: 8px;
    padding: 24px 16px;
    margin-top: auto;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.02);
}

/* Chart Styles */
.ui-chart-wrap {
    width: 100%;
    display: flex;
    position: relative;
    padding-left: 30px;
    padding-bottom: 20px;
}
.ui-chart-y-axis {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.6rem;
    color: var(--color-text-soft);
    text-transform: uppercase;
}
.ui-chart-line {
    width: 100%;
    height: 80px;
    position: relative;
}
.ui-chart-line svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}
.ui-chart-x-axis {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--color-text-soft);
    margin-top: 8px;
    position: absolute;
    width: 100%;
    bottom: -20px;
}

/* Chart Animations */
.ui-path-anim {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
}
.ui-dot-anim {
    opacity: 0;
    transform-origin: center;
    transform: scale(0);
}
.ui-card.is-visible .ui-path-anim {
    animation: drawLine 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.ui-card.is-visible .dot-1 { animation: popDot 0.4s ease forwards 0.4s; }
.ui-card.is-visible .dot-2 { animation: popDot 0.4s ease forwards 0.8s; }
.ui-card.is-visible .dot-3 { animation: popDot 0.4s ease forwards 1.2s; }

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}
@keyframes popDot {
    to { opacity: 1; transform: scale(1); }
}

/* List Styles */
.ui-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ui-list-item {
    background: #FFFFFF;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    border-radius: 6px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateX(10px);
}
.ui-list-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.bg-gold { background: rgba(212, 175, 55, 0.15); }
.bg-indigo { background: rgba(26, 26, 46, 0.1); }

.ui-list-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.ui-list-text strong {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-dark);
}
.ui-list-text span {
    font-size: 0.7rem;
    color: var(--color-text-soft);
}

.ui-card.is-visible .anim-list-1 {
    animation: slideList 0.6s ease forwards 0.2s;
}
.ui-card.is-visible .anim-list-2 {
    animation: slideList 0.6s ease forwards 0.4s;
}

@keyframes slideList {
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 992px) {
    .ui-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .ui-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SECTION 3: HORIZONTAL GALLERY (DAY -> NIGHT)
   ========================================================================== */
.gallery-wrapper {
    position: relative;
    /* Height will be managed by GSAP ScrollTrigger pin */
    height: auto;
    background: var(--color-cream);
    z-index: 2;
}

.gallery-pinned {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Background Layers */
.gallery-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.gallery-bg__layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.1s linear; /* Fast JS updates */
}

.gallery-bg__layer--day {
    background: radial-gradient(circle at 50% 30%, var(--color-cream) 0%, var(--color-cream-warm) 100%);
    opacity: 1; /* Default */
}

.gallery-bg__layer--sunset {
    background: linear-gradient(135deg, #F5D88E 0%, #E39C6D 40%, #7B8CDE 100%);
}

.gallery-bg__layer--night {
    background: radial-gradient(circle at 50% 30%, var(--color-navy) 0%, var(--color-navy-dark) 100%);
}

.gallery-bg__layer--sunrise {
    background: linear-gradient(135deg, #7B8CDE 0%, #E39C6D 60%, #F5D88E 100%);
}

/* Particles & Celestial Bodies */
.particles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    opacity: 0;
}

.celestial {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.celestial--sun {
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232,168,56,0.15) 0%, transparent 70%);
    filter: blur(20px);
    opacity: 1;
}

.celestial--moon {
    top: 10%;
    left: 10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    box-shadow: 0 0 80px rgba(123,140,222,0.4);
    opacity: 0;
}

/* The Track */
.gallery-track {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    width: 400vw; /* 4 rooms = 400vw */
    z-index: 10;
}

.gallery-room {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-room--night {
    color: var(--color-text-light);
}

.room-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    padding: 0 var(--space-md);
    gap: var(--space-md);
}

/* Glass Panels */
.glass-panel {
    flex: 1;
    padding: var(--space-md);
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    max-width: 350px;
}

.gallery-room--day .glass-panel {
    background: rgba(255,255,255,0.4);
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 10px 40px rgba(232,168,56,0.05);
}

.glass-title {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.gallery-room--day .glass-title { color: var(--color-gold); }
.gallery-room--night .glass-title { color: var(--color-indigo); }

.glass-list {
    list-style: none;
}
.glass-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
}
.gallery-room--night .glass-list li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.glass-list li:last-child {
    border-bottom: none;
}

.glass-desc {
    font-size: 1.05rem;
    margin-bottom: var(--space-md);
    opacity: 0.9;
}

/* Product Center */
.product-center {
    flex: 2;
    display: flex;
    justify-content: center;
    position: relative;
}

.product-img {
    height: 65vh;
    max-height: 700px;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 30px 40px rgba(0,0,0,0.15));
}

.product-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
}

.product-glow--day { background: rgba(232,168,56,0.3); }
.product-glow--night { background: rgba(123,140,222,0.2); }

@media (max-width: 992px) {
    .room-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    .glass-panel { max-width: 100%; width: 100%; margin-bottom: 24px; }
    .product-img { height: 40vh; margin: 24px 0; }
}

/* ==========================================================================
   SECTION 3.5: KIDS REVEAL
   ========================================================================== */
.kids-reveal {
    position: relative;
    padding: var(--space-xl) 0;
    background: var(--color-cream);
    overflow: hidden;
    z-index: 20;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.kids-reveal__bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 70% 50%, rgba(123, 140, 222, 0.08) 0%, transparent 60%),
                radial-gradient(circle at 30% 80%, rgba(232, 168, 56, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.kids-reveal__container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.kids-reveal__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.kids-reveal__desc {
    font-size: 1.1rem;
    color: var(--color-text-soft);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.kids-list {
    list-style: none;
    margin-bottom: var(--space-md);
}

.kids-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
    position: relative;
    padding-left: 24px;
}

.kids-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 12px;
    color: var(--color-gold);
    font-size: 0.8rem;
}

.kids-reveal__image-wrap {
    position: relative;
    display: flex;
    justify-content: center;
}

.product-img--kids {
    height: 70vh;
    max-height: 700px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(123, 140, 222, 0.15));
}

.kids-bubbles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
}

.mt-24 { margin-top: 24px; }

@media (max-width: 992px) {
    .kids-reveal__content { grid-template-columns: 1fr; text-align: center; }
    .kids-list li { padding-left: 0; }
    .kids-list li::before { display: none; }
    .product-img--kids { height: 50vh; }
}

/* ==========================================================================
   SECTION 4: BENEFITS
   ========================================================================== */
.benefits {
    background: var(--color-cream);
    position: relative;
    z-index: 20;
}

.benefits__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
}

.benefit-card {
    padding: var(--space-md) var(--space-sm);
    border-top: 1px solid var(--line);
    transition: transform var(--transition-fast);
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-card__number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 16px;
    font-style: italic;
}

.benefit-card h4 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.benefit-card p {
    font-size: 0.9rem;
    color: var(--color-text-soft);
}

@media (max-width: 992px) {
    .benefits__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .benefits__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SECTION 4.1: SMART CASES
   ========================================================================== */
.smart-cases {
    background: var(--color-cream);
    padding: var(--space-xl) 0;
    position: relative;
    z-index: 20;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.case-card {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(26,26,46,0.03);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border: 1px solid rgba(0,0,0,0.02);
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(26,26,46,0.08);
}

.case-card__image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #FDFDFB;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.case-card:hover .case-card__image img {
    transform: scale(1.05);
}

.case-card__info {
    padding: 24px;
    text-align: center;
}

.case-card__title {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    color: var(--color-text-dark);
}

@media (max-width: 992px) {
    .cases-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 576px) {
    .cases-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SECTION 4.2: ECOSYSTEM SYNC
   ========================================================================== */
.ecosystem {
    background: #FDFDFB;
    padding: var(--space-xl) 0;
    position: relative;
    z-index: 20;
}

.ecosystem__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.ecosystem__title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 24px;
    color: var(--color-text-dark);
}

.ecosystem__desc {
    font-size: 1.1rem;
    color: var(--color-text-soft);
    margin-bottom: 40px;
    line-height: 1.6;
}

.ecosystem__features {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.ecosystem__features li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.ecosystem__icon {
    font-size: 1.8rem;
    background: var(--color-cream-warm);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    flex-shrink: 0;
}

.ecosystem__features strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--color-text-dark);
}

.ecosystem__features span {
    font-size: 0.95rem;
    color: var(--color-text-soft);
    line-height: 1.5;
}

.ecosystem__visual {
    position: relative;
}

.ecosystem__image-wrap {
    position: relative;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

.ecosystem__image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
}

.ecosystem__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(212,175,55,0.2) 0%, transparent 70%);
    z-index: 1;
    filter: blur(40px);
    animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.9); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

@media (max-width: 992px) {
    .ecosystem__container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .ecosystem__content {
        order: 2;
    }
    .ecosystem__visual {
        order: 1;
        padding: 0 24px;
    }
}

/* ==========================================================================
   SECTION 5: CTA
   ========================================================================== */
.cta {
    position: relative;
    z-index: 2;
    padding: var(--space-xl) 0;
    overflow: hidden;
    color: var(--color-text-light);
}

.cta__bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 100%);
    z-index: 1;
}

.cta__bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(123,140,222,0.1) 0%, transparent 50%);
}

.cta__container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta__title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: var(--space-sm);
}

.cta__desc {
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
    opacity: 0.9;
}

.cta__buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.cta__buttons .btn--primary {
    background: var(--color-gold);
    color: var(--color-text-dark);
}
.cta__buttons .btn--outline {
    border-color: rgba(255,255,255,0.3);
    color: var(--color-text-light);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    position: relative;
    z-index: 2;
    background: var(--color-cream-warm);
    padding: var(--space-xl) 0 var(--space-md) 0;
    border-top: 1px solid var(--line);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer__logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.footer__brand p {
    color: var(--color-text-soft);
    max-width: 300px;
}

.footer__links h4 {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.footer__links a {
    display: block;
    margin-bottom: 12px;
    color: var(--color-text-soft);
    transition: color var(--transition-fast);
}

.footer__links a:hover {
    color: var(--color-gold);
}

.footer__bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--line);
    color: var(--color-text-soft);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   REVEAL ANIMATIONS (No-JS Fallback handled by html.no-js)
   ========================================================================== */
html.js .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s var(--ease-out);
}

html.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

html.js .delay-1 { transition-delay: 0.1s; }
html.js .delay-2 { transition-delay: 0.2s; }
html.js .delay-3 { transition-delay: 0.3s; }
html.js .delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   SMART CASES (ACCESSORIES)
   ========================================================================== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.case-card {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    border: 1px solid rgba(0,0,0,0.04);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.case-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #FAF8F3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-card__image img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: transform var(--transition-slow);
}

.case-card:hover .case-card__image img {
    transform: scale(1.08);
}

.case-card__info {
    padding: var(--space-sm);
    text-align: center;
    background: #FFFFFF;
}

.case-card__title {
    font-size: 1.2rem;
    color: var(--color-text-dark);
    margin: 0;
}


/* ==========================================================================
   PRODUCTION VIDEO BLOCK
   ========================================================================== */
.production {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0;
}

.production__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.production__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 42, 0.4);
    z-index: 2;
}

.production__container {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.production__glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: var(--space-md);
    max-width: 500px;
    color: var(--color-text-light);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.production__title {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    color: #FFFFFF;
}

.production__desc {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.production__stats {
    display: flex;
    gap: var(--space-sm);
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: var(--space-sm);
}

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

.stat-item strong {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    color: var(--color-gold);
}

.stat-item span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

/* ==========================================================================
   COMPARISON SECTION
   ========================================================================== */
.comparison {
    position: relative;
    z-index: 2;
    background: #FFFFFF;
    padding: var(--space-xl) 0;
}

.comparison__table-wrap {
    margin-top: var(--space-lg);
    background: var(--color-cream);
    border-radius: 24px;
    padding: var(--space-md);
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    overflow-x: auto;
}

.comparison__table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 700px;
}

.comparison__table th,
.comparison__table td {
    padding: 20px 24px;
    text-align: left;
    border-bottom: 1px solid rgba(26, 26, 46, 0.05);
}

.comparison__table th {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.comparison__table .col-savanor {
    background: rgba(232, 168, 56, 0.05);
    width: 35%;
}

.comparison__table th.col-savanor {
    color: var(--color-gold-hover);
    background: rgba(232, 168, 56, 0.1);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.comparison__table tbody tr:last-child .col-savanor {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.comparison__table .col-ordinary {
    width: 35%;
    opacity: 0.7;
}

.comparison__table tbody tr:last-child td {
    border-bottom: none;
}

.check {
    color: var(--color-gold);
    font-weight: bold;
    margin-right: 8px;
}

.cross {
    color: #a0a0a0;
    margin-right: 8px;
}

/* ==========================================================================
   CTA PARTNER 2-COLUMN
   ========================================================================== */
.cta-partner {
    position: relative;
    z-index: 2;
    background: var(--color-navy-dark);
    color: var(--color-text-light);
    padding: var(--space-xl) 0;
    overflow: hidden;
}

.cta-partner__bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(232, 168, 56, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(123, 140, 222, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.cta-partner__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.cta-partner__title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: var(--space-sm);
}

.cta-partner__desc {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: var(--space-md);
    max-width: 500px;
    line-height: 1.6;
}

.cta-partner__benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cta-partner__benefits li {
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Form Styles */
.cta-partner__form-wrap {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: var(--space-md);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.partner-form__title {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    text-align: center;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.7);
}

.form-group input {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 16px;
    color: #FFFFFF;
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-gold);
    background: rgba(0,0,0,0.4);
}

.form-group input::placeholder {
    color: rgba(255,255,255,0.3);
}

.form-submit {
    width: 100%;
    margin-top: 8px;
    padding: 18px;
    font-size: 1rem;
}

.form-note {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    text-align: center;
    margin-top: 16px;
}

@media (max-width: 992px) {
    .cta-partner__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .cta-partner__desc {
        margin: 0 auto var(--space-md) auto;
    }
    .cta-partner__benefits {
        align-items: center;
    }
    .production__container {
        justify-content: center;
    }
    .production__glass-card {
        text-align: center;
    }
    .production__stats {
        justify-content: center;
    }
}
