/* ============================
   CSS VARIABLES & RESET
   ============================ */
:root {
    --primary: #0a7e8c;
    --primary-dark: #065a65;
    --primary-light: #12a4b5;
    --primary-glow: rgba(var(--primary-rgb), 0.3);
    --secondary: #1a2a3a;
    --secondary-light: #243447;
    --accent: #f5a623;
    --accent-light: #ffc454;
    --accent-dark: #d48d10;
    --primary-rgb: 10, 126, 140;
    --accent-rgb: 245, 166, 35;
    --dark: #0b141e;
    --dark-2: #111d2b;
    --dark-3: #162336;
    --gray-100: #f0f4f8;
    --gray-200: #d9e2ec;
    --gray-300: #bcccdc;
    --gray-400: #9fb3c8;
    --gray-500: #829ab1;
    --gray-600: #627d98;
    --gray-700: #486581;
    --gray-800: #334e68;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.2);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.3);
    --shadow-glow: 0 0 30px var(--primary-glow);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-primary);
    color: var(--gray-100);
    background: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-accent { color: var(--accent); }

.section {
    padding: 100px 0;
    position: relative;
}

.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section__tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-light);
    background: rgba(var(--primary-rgb), 0.1);
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    margin-bottom: 16px;
}

.section__title {
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section__desc {
    font-size: 1.15rem;
    color: var(--gray-500);
    line-height: 1.7;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.5);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.2);
}

.btn--outline:hover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
    transform: translateY(-2px);
}

.btn--lg {
    padding: 18px 36px;
    font-size: 1.05rem;
}

.btn--full {
    width: 100%;
    justify-content: center;
}



/* ============================
   ANIMATED LOGO PRELOADER
   ============================ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader__container {
    text-align: center;
    animation: preloaderIntro 1.2s ease both;
}

@keyframes preloaderIntro {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateY(-2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.preloader__logo-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader__logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.preloader__logo-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 3px solid rgba(var(--primary-rgb), 0.12);
    border-top-color: var(--primary-light);
    animation: preloaderSpin 1s linear infinite;
    z-index: 1;
}

.preloader__brand {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.preloader__subtitle {
    font-size: 0.75rem;
    color: var(--gray-500);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 500;
}

.preloader__bar {
    width: 200px;
    height: 3px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 2px;
    margin: 28px auto 0;
    overflow: hidden;
    position: relative;
}

.preloader__bar-fill {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
    border-radius: 2px;
    animation: preloaderBar 1.5s ease-in-out infinite;
}

@keyframes preloaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes preloaderBar {
    0% { left: -100%; width: 50%; }
    50% { left: 25%; width: 50%; }
    100% { left: 100%; width: 50%; }
}

html[data-theme="light"] .preloader {
    background: var(--dark);
}

/* ============================
   PAGE TRANSITION OVERLAY
   ============================ */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    background: var(--dark);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.page-transition.active {
    opacity: 1;
    pointer-events: all;
}

html[data-theme="light"] .page-transition {
    background: var(--dark);
}


/* ============================
   ACCENT COLOR THEMES
   ============================ */
html[data-accent="teal"] {
    --primary: #0a7e8c;
    --primary-dark: #065a65;
    --primary-light: #12a4b5;
    --primary-glow: rgba(var(--primary-rgb), 0.3);
    --accent: #f5a623;
    --accent-light: #ffc454;
    --accent-dark: #d48d10;
    --primary-rgb: 10, 126, 140;
    --accent-rgb: 245, 166, 35;
}

html[data-accent="gold"] {
    --primary: #b8860b;
    --primary-dark: #8b6914;
    --primary-light: #d4a843;
    --primary-glow: rgba(184, 134, 11, 0.3);
    --accent: #2c3e50;
    --accent-light: #3d5a80;
    --accent-dark: #1a252f;
    --primary-rgb: 184, 134, 11;
    --accent-rgb: 44, 62, 80;
}

html[data-accent="purple"] {
    --primary: #7c3aed;
    --primary-dark: #5b21b6;
    --primary-light: #a78bfa;
    --primary-glow: rgba(124, 58, 237, 0.3);
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --accent-dark: #d97706;
    --primary-rgb: 124, 58, 237;
    --accent-rgb: 245, 158, 11;
}

html[data-accent="rose"] {
    --primary: #e11d48;
    --primary-dark: #be123c;
    --primary-light: #fb7185;
    --primary-glow: rgba(225, 29, 72, 0.3);
    --accent: #0ea5e9;
    --accent-light: #38bdf8;
    --accent-dark: #0284c7;
    --primary-rgb: 225, 29, 72;
    --accent-rgb: 14, 165, 233;
}

/* Accent Picker */
.accent-picker {
    position: relative;
    display: flex;
    align-items: center;
}

.accent-picker__toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: var(--gray-400);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.accent-picker__toggle:hover {
    background: rgba(var(--primary-rgb), 0.15);
    color: var(--primary-light);
    border-color: rgba(var(--primary-rgb), 0.3);
    transform: translateY(-1px);
}

html[data-theme="light"] .accent-picker__toggle {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.1);
}

html[data-theme="light"] .accent-picker__toggle:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: rgba(var(--primary-rgb), 0.3);
}

.accent-picker__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--dark-2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 6px;
    box-shadow: var(--shadow-xl);
    z-index: 1002;
    min-width: 56px;
}

.accent-picker__dropdown.open {
    display: flex;
}

html[data-theme="light"] .accent-picker__dropdown {
    background: var(--dark-2);
    border-color: var(--border-color);
}

.accent-picker__option {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.accent-picker__option::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 13px;
    border: 2px solid transparent;
    transition: var(--transition);
}

.accent-picker__option.active::after {
    border-color: var(--primary-light);
}

.accent-picker__option:hover {
    transform: scale(1.12);
}

.accent-picker__option--teal {
    background: #0a7e8c;
}

.accent-picker__option--gold {
    background: linear-gradient(135deg, #b8860b, #d4a843);
}

.accent-picker__option--purple {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.accent-picker__option--rose {
    background: linear-gradient(135deg, #e11d48, #fb7185);
}

.accent-picker__option--system {
    background: conic-gradient(#0a7e8c, #b8860b, #7c3aed, #e11d48, #0a7e8c);
    position: relative;
    overflow: hidden;
}

.accent-picker__option--system::before {
    content: '\21bb';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

html[data-accent="system"] {
    --primary: AccentColor;
    --primary-dark: AccentColor;
    --primary-light: AccentColorText;
    /* primary-glow inherits from :root — uses rgba(var(--primary-rgb), 0.3)
       so it dynamically picks up the detected OS accent color via JS inline style */
    --primary-rgb: 128, 128, 128;
}

@media (max-width: 768px) {
    .accent-picker__dropdown {
        right: auto;
        left: 0;
    }
}
/* ============================
   HEADER / NAVIGATION
   ============================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(11, 20, 30, 0.92);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 12px 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1001;
}

.nav__logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--white);
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.3);
}

.nav__logo-text {
    display: flex;
    flex-direction: column;
}

.nav__logo-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.nav__logo-subtitle {
    font-size: 0.65rem;
    color: var(--primary-light);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

.nav__logo-img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: contain;
    flex-shrink: 0;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav__link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-400);
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: var(--transition);
    border-radius: 1px;
}

.nav__link:hover,
.nav__link.active-link {
    color: var(--white);
}

.nav__link:hover::after,
.nav__link.active-link::after {
    width: 100%;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav__phone {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 10px;
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.nav__phone:hover {
    background: rgba(var(--primary-rgb), 0.2);
    transform: translateY(-1px);
}

.nav__badge {
    position: absolute;
    top: -8px;
    right: -16px;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #fff;
    background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
    padding: 2px 8px;
    border-radius: 8px;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
    animation: navBadgePulse 2s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes navBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.nav__toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
    z-index: 1001;
}

/* ============================
   HERO SECTION
   ============================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 60px;
    contain: paint layout style;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(var(--primary-rgb), 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(var(--accent-rgb), 0.05) 0%, transparent 50%);
    z-index: 1;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}


/* ============================
   MESH GRADIENT (static — no animation, zero paint cost)
   A single CSS gradient replaces the old 5 animated blobs.
   ============================ */
.mesh-gradient {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    isolation: isolate;
    background: radial-gradient(ellipse 600px 500px at 15% 20%, rgba(var(--primary-rgb), 0.12) 0%, transparent 60%);
    contain: paint layout style;
}

/* Light theme - even more subtle */
html[data-theme="light"] .mesh-gradient {
    opacity: 0.8;
}

/* ============================
   SECTION MESH GRADIENT (static subtler variant for sections)
   ============================ */
.section-mesh {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(ellipse 500px 300px at 10% 15%, rgba(var(--primary-rgb), 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 400px 250px at 90% 85%, rgba(var(--primary-rgb), 0.04) 0%, transparent 70%);
    contain: paint layout style;
}

html[data-theme="light"] .section-mesh {
    opacity: 0.5;
}

/* ============================
   HERO BG SHAPES (static, no animation)
   ============================ */
.hero__bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.hero__bg-shape--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -200px;
    left: -100px;
}

.hero__bg-shape--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    bottom: -100px;
    right: -50px;
}

.hero__bg-shape--3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    top: 50%;
    right: 30%;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero__content {
    animation: fadeInUp 1s ease both;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-light);
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    padding: 10px 24px;
    border-radius: 50px;
    margin-bottom: 28px;
}

.hero__title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__title-accent {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__desc {
    font-size: 1.3rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 600px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero__stats {
    display: flex;
    gap: 40px;
}

.hero__stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero__stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    position: relative;
}

.hero__stat-plus {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-left: 2px;
    line-height: 1;
}

.hero__stat-label {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-top: 4px;
}

/* Hero Visual */
.hero__visual {
    display: flex;
    justify-content: center;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero__image-wrapper {
    position: relative;
    width: 100%;
    max-width: none;
}

.hero__image-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.35) 0%, transparent 70%);
    opacity: 0.5;
}

.hero__image {
    width: 100%;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 1;
    object-fit: cover;
    aspect-ratio: 16/9;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255,255,255,0.05);
}

/* ============================
   LIGHTWEIGHT HERO PARALLAX (no scroll listener, CSS scroll-driven)
   Uses IntersectionObserver + animation-timeline
   ============================ */
.hero__image-wrapper,
.sh-hero__image-wrapper {
    will-change: transform;
    transform: translateZ(0);
}

@keyframes hero-parallax {
    0% { transform: translateY(0) translateZ(0); }
    100% { transform: translateY(30px) translateZ(0); }
}

@supports (animation-timeline: view()) {
    .parallax-active .hero__image-wrapper,
    .parallax-active .sh-hero__image-wrapper {
        animation: hero-parallax linear;
        animation-timeline: view();
        animation-range: entry 10% exit 90%;
    }
}

.hero__brand-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 400px;
    animation: fadeInUp 1s ease 0.3s both;
    position: relative;
}

.hero__brand-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.25) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero__brand-logo {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 8px 40px rgba(var(--primary-rgb), 0.15));
}

.hero__badge-float {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: var(--secondary);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 1s ease 0.6s both;
}

.hero__badge-float i {
    color: var(--accent);
    font-size: 1.1rem;
}

.hero__badge-float span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
}

.hero__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray-500);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInUp 1s ease 0.8s both;
}

.hero__scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--gray-600);
    border-radius: 12px;
    position: relative;
}

.hero__scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--primary-light);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
    0% { top: 6px; opacity: 1; }
    100% { top: 24px; opacity: 0; }
}

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

/* ============================
   SMART HOME - HERO
   ============================ */
.sh-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 60px;
    contain: paint layout style;
}

.sh-hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(var(--primary-rgb), 0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(var(--accent-rgb), 0.08) 0%, transparent 50%);
    z-index: 1;
}

.sh-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.sh-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--primary-rgb), 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

.sh-hero__orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.sh-hero__orb--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}

.sh-hero__orb--2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    bottom: -80px;
    right: -50px;
}

.sh-hero__orb--3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    top: 40%;
    right: 25%;
}

.sh-hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.sh-hero__content {
    animation: fadeInUp 1s ease both;
}

.sh-hero__brand-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 400px;
    animation: fadeInUp 1s ease 0.3s both;
    position: relative;
}

.sh-hero__brand-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.25) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.sh-hero__brand-logo {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 8px 40px rgba(var(--primary-rgb), 0.15));
}

.sh-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-light);
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    padding: 12px 26px;
    border-radius: 50px;
    margin-bottom: 28px;
}

.sh-hero__badge i {
    font-size: 1rem;
    color: var(--accent);
}

.sh-hero__title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sh-hero__title-accent {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sh-hero__desc {
    font-size: 1.3rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 600px;
}

.sh-hero__desc strong {
    color: var(--primary-light);
}

.sh-hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.sh-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.sh-hero__trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--gray-400);
    background: rgba(255,255,255,0.03);
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.06);
    animation: fadeInUp 0.5s ease both;
    transition: var(--transition);
}

.sh-hero__trust-item:nth-child(1) { animation-delay: 0.5s; }
.sh-hero__trust-item:nth-child(2) { animation-delay: 0.6s; }
.sh-hero__trust-item:nth-child(3) { animation-delay: 0.7s; }

.sh-hero__trust-item:hover {
    border-color: rgba(var(--primary-rgb), 0.25);
    background: rgba(var(--primary-rgb), 0.08);
    transform: translateY(-2px);
}

.sh-hero__trust-item i {
    color: var(--accent);
    font-size: 0.8rem;
}

.sh-hero__trust-item strong {
    color: var(--primary-light);
    font-weight: 700;
}

/* ============================
   SMART HOME - HERO STATS
   ============================ */
.sh-hero__stats {
    display: flex;
    gap: 32px;
    animation: fadeInUp 0.8s ease 1s both;
}

.sh-hero__stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sh-hero__stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: inline;
}

.sh-hero__stat-plus {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    margin-left: 1px;
    line-height: 1;
}

.sh-hero__stat-label {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-top: 4px;
    white-space: nowrap;
}

/* Typewriter cursor */
.typewriter-cursor {
    display: inline-block;
    font-weight: 300;
    color: var(--primary-light);
    animation: cursorBlink 0.8s step-end infinite;
    margin-left: 2px;
    -webkit-text-fill-color: var(--primary-light);
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Hide the typewriter span initially (shown by JS) */
.typewriter-target {
    opacity: 0;
}

.typewriter-target.typing-done {
    opacity: 1;
}

/* ============================
   GALLERY PAGE
   ============================ */

/* Gallery Hero */
.gallery-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 60px;
    contain: paint layout style;
}

.gallery-hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(var(--primary-rgb), 0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(var(--accent-rgb), 0.06) 0%, transparent 50%);
    z-index: 1;
}

.gallery-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.gallery-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--primary-rgb), 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

.gallery-hero__orb-1,
.gallery-hero__orb-2 {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
}

.gallery-hero__orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -80px;
    left: -80px;
}

.gallery-hero__orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    bottom: -60px;
    right: -60px;
}

.gallery-hero__watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(60vw, 450px);
    height: min(60vw, 450px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.03;
}

html[data-theme="light"] .gallery-hero__watermark {
    opacity: 0.02;
}

.gallery-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 1s ease both;
}

.gallery-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-light);
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.gallery-hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-hero__title-accent {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-hero__desc {
    font-size: 1.05rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 36px;
}

.gallery-hero__stats {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.gallery-hero__stat {
    text-align: center;
}

.gallery-hero__stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 4px;
}

.gallery-hero__stat span:last-child {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.gallery-hero__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray-500);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInUp 1s ease 0.8s both;
}

/* Gallery Section */
.gallery-section {
    background: var(--dark);
}

/* ============================
   SCROLL-TRIGGERED ANIMATIONS
   ============================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .nav__badge {
        right: 8px;
    }

    .hero__brand-showcase {
        padding: 20px 0 12px;
    }

    .hero__brand-logo {
        width: min(80%, 200px);
    }

    .sh-hero__brand-showcase {
        padding: 16px 0 10px;
    }

    .sh-hero__brand-logo {
        width: min(75%, 180px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .nav__badge {
        animation: none !important;
    }
}

