/*-----------------------------------------------------------------------------------
    Grency AI Systems (GAS) — Design System & Main Stylesheet
    Version: 2.0
    Author: Grency AI Systems
    Website: https://grencyaisystems.com
    
    TABLE OF CONTENTS:
    01. Font Face Declarations
    02. CSS Custom Properties (Design Tokens)
    03. CSS Reset & Base
    04. Typography System
    05. Utility Classes
    06. Glassmorphic Surfaces
    07. Ambient Glow & Mesh Effects
    08. Animation Keyframes
    09. Buttons & CTAs
    10. Header & Navigation
    11. Mobile Menu (Hamburger)
    12. Hero Section
    13. Stats Bar
    14. About Section & MVV Cards
    15. Services Bento Grid
    16. Products Showcase
    17. Hire Us / Engagement Models
    18. Tech Stack
    19. Contact Section
    20. Footer
    21. Preloader
    22. Back to Top
    23. Theme Switcher
    24. Scroll Reveal Animations
    25. Responsive Breakpoints
-----------------------------------------------------------------------------------*/

/* ==========================================================================
   01. Font Face Declarations
   ========================================================================== */

@font-face {
    font-family: 'MomoTrustDisplay';
    src: url('../fonts/MomoTrustDisplay-Regular.woff2') format('woff2'),
         url('../fonts/MomoTrustDisplay-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   02. CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
    /* ── Brand Colors ── */
    --color-primary: #00B6F0;
    --color-primary-rgb: 0, 182, 240;
    --color-accent: #7132D5;
    --color-accent-rgb: 113, 50, 213;
    --color-dark: #1B154C;
    --color-dark-rgb: 27, 21, 76;
    --color-neutral: #F4F7FB;
    --color-neutral-rgb: 244, 247, 251;
    --color-white: #FFFFFF;
    --color-white-rgb: 255, 255, 255;

    /* ── Gradients ── */
    --gradient-brand: linear-gradient(135deg, #00B6F0 0%, #7132D5 50%, #1B154C 100%);
    --gradient-brand-horizontal: linear-gradient(90deg, #00B6F0 0%, #7132D5 100%);
    --gradient-brand-reverse: linear-gradient(135deg, #1B154C 0%, #7132D5 50%, #00B6F0 100%);
    --gradient-glow-cyan: radial-gradient(circle, rgba(0, 182, 240, 0.25) 0%, transparent 70%);
    --gradient-glow-purple: radial-gradient(circle, rgba(113, 50, 213, 0.25) 0%, transparent 70%);

    /* ── Typography ── */
    --ff-display: 'MomoTrustDisplay', 'Inter', sans-serif;
    --ff-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;

    /* ── Fluid Font Sizes ── */
    --fs-display: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    --fs-h1: clamp(2rem, 4vw + 0.5rem, 3.5rem);
    --fs-h2: clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
    --fs-h3: clamp(1.375rem, 2vw + 0.5rem, 2rem);
    --fs-h4: clamp(1.125rem, 1.5vw + 0.25rem, 1.5rem);
    --fs-h5: clamp(1rem, 1vw + 0.25rem, 1.25rem);
    --fs-h6: clamp(0.875rem, 0.75vw + 0.25rem, 1.125rem);
    --fs-body: 1rem;
    --fs-body-lg: 1.125rem;
    --fs-small: 0.875rem;
    --fs-xs: 0.75rem;

    /* ── Spacing Scale ── */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;
    --section-gap: clamp(4rem, 8vw, 8rem);

    /* ── Border Radius ── */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* ── Shadows ── */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-glow-cyan: 0 0 40px rgba(0, 182, 240, 0.2);
    --shadow-glow-purple: 0 0 40px rgba(113, 50, 213, 0.2);
    --shadow-glow-brand: 0 0 60px rgba(0, 182, 240, 0.15), 0 0 120px rgba(113, 50, 213, 0.1);

    /* ── Transitions ── */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* ── Layout ── */
    --container-max: 1400px;
    --container-padding: clamp(1rem, 3vw, 2rem);
    --header-height: 80px;

    /* ── Z-Index Scale ── */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-preloader: 500;
    --z-toast: 600;
}

/* ── Dark Theme (Default based on system, or explicit) ── */
[data-theme="dark"],
:root {
    --color-bg-primary: #0D0B1E;
    --color-bg-secondary: #131029;
    --color-bg-tertiary: #1a1538;
    --color-bg-surface: rgba(27, 21, 76, 0.5);
    --color-bg-card: rgba(27, 21, 76, 0.4);
    --color-text-primary: #E8E9F3;
    --color-text-secondary: #A0A3C4;
    --color-text-muted: #6B6E94;
    --color-border: rgba(0, 182, 240, 0.12);
    --color-border-hover: rgba(0, 182, 240, 0.3);
    --color-border-card: rgba(113, 50, 213, 0.15);
    --glass-bg: rgba(19, 16, 41, 0.7);
    --glass-border: rgba(0, 182, 240, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --input-bg: rgba(27, 21, 76, 0.5);
    --input-border: rgba(113, 50, 213, 0.2);
    --input-focus-border: var(--color-primary);
    --scrollbar-track: #0D0B1E;
    --scrollbar-thumb: #2a2555;
    --code-bg: rgba(27, 21, 76, 0.6);
}

/* ── Light Theme ── */
[data-theme="light"] {
    --color-bg-primary: #F4F7FB;
    --color-bg-secondary: #FFFFFF;
    --color-bg-tertiary: #EDF0F7;
    --color-bg-surface: rgba(255, 255, 255, 0.8);
    --color-bg-card: rgba(255, 255, 255, 0.7);
    --color-text-primary: #1B154C;
    --color-text-secondary: #4A4670;
    --color-text-muted: #8885A6;
    --color-border: rgba(113, 50, 213, 0.1);
    --color-border-hover: rgba(113, 50, 213, 0.3);
    --color-border-card: rgba(113, 50, 213, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(113, 50, 213, 0.08);
    --glass-shadow: 0 8px 32px rgba(27, 21, 76, 0.08);
    --input-bg: rgba(244, 247, 251, 0.8);
    --input-border: rgba(27, 21, 76, 0.12);
    --input-focus-border: var(--color-accent);
    --scrollbar-track: #F4F7FB;
    --scrollbar-thumb: #C8C5DE;
    --code-bg: rgba(244, 247, 251, 0.9);
}

/* ==========================================================================
   03. CSS Reset & Base
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: clip;
    max-width: 100%;
}

body {
    font-family: var(--ff-body);
    font-size: var(--fs-body);
    font-weight: var(--fw-regular);
    line-height: 1.7;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    max-width: 100%;
    transition: background-color var(--transition-slow), color var(--transition-slow);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}
::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

::selection {
    background: rgba(var(--color-primary-rgb), 0.3);
    color: var(--color-text-primary);
}

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

button {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    outline: none;
}

/* ==========================================================================
   04. Typography System
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-body);
    font-weight: var(--fw-bold);
    line-height: 1.2;
    color: var(--color-text-primary);
    transition: color var(--transition-slow);
}

/* Display headings use Momo Trust Display */
.display-font,
.hero-title,
.section-title,
.product-name,
.stat-number {
    font-family: var(--ff-display);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }
h6 { font-size: var(--fs-h6); }

p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    transition: color var(--transition-slow);
}

.text-gradient {
    background: var(--gradient-brand-horizontal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ==========================================================================
   05. Utility Classes
   ========================================================================== */

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

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

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--space-4xl);
}

.section-title {
    font-family: var(--ff-display);
    font-size: var(--fs-h2);
    margin-bottom: var(--space-lg);
}

.section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--fs-small);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.section-subtitle::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--gradient-brand-horizontal);
    border-radius: var(--radius-full);
}

.section-description {
    font-size: var(--fs-body-lg);
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-xl);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ==========================================================================
   06. Glassmorphic Surfaces
   ========================================================================== */

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-base);
}

.glass-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--glass-shadow), var(--shadow-glow-brand);
}

/* Spotlight Card — mouse-following glow */
.spotlight-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.spotlight-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(var(--color-primary-rgb), 0.08),
        transparent 40%
    );
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
    z-index: 0;
}

.spotlight-card:hover::before {
    opacity: 1;
}

.spotlight-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(var(--color-primary-rgb), 0.2),
        transparent 40%
    );
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
    z-index: 0;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    padding: 1px;
}

.spotlight-card:hover::after {
    opacity: 1;
}

.spotlight-card > * {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   07. Ambient Glow & Mesh Effects
   ========================================================================== */

.ambient-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    pointer-events: none;
    animation: ambientDrift 15s ease-in-out infinite;
}

.ambient-glow--cyan {
    background: rgba(var(--color-primary-rgb), 0.3);
}

.ambient-glow--purple {
    background: rgba(var(--color-accent-rgb), 0.3);
    animation-delay: -7.5s;
    animation-direction: reverse;
}

[data-theme="light"] .ambient-glow {
    opacity: 0.15;
}

/* Neural mesh grid overlay */
.mesh-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.mesh-bg::before {
    content: '';
    position: absolute;
    inset: -50%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(var(--color-primary-rgb), 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(var(--color-accent-rgb), 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(var(--color-dark-rgb), 0.05) 0%, transparent 60%);
    animation: meshShift 20s ease-in-out infinite;
}

/* ==========================================================================
   08. Animation Keyframes
   ========================================================================== */

@keyframes ambientDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -50px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(40px, 30px) scale(1.02); }
}

@keyframes meshShift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-5%, 3%) rotate(2deg); }
}

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

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInWord {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }
    10% {
        opacity: 1;
        transform: translateY(0);
    }
    90% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-100%);
    }
}

@keyframes borderBeam {
    0% { offset-distance: 0%; }
    100% { offset-distance: 100%; }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

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

/* Reduce animations for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .ambient-glow,
    .mesh-bg::before {
        animation: none;
        opacity: 0.15;
    }
}

/* ==========================================================================
   09. Buttons & CTAs
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.75rem;
    font-family: var(--ff-body);
    font-size: var(--fs-body);
    font-weight: var(--fw-semibold);
    line-height: 1.5;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    min-height: 44px;
}

/* Primary gradient button */
.btn-primary {
    background: var(--gradient-brand-horizontal);
    color: var(--color-white);
    border: none;
    box-shadow: 0 4px 20px rgba(var(--color-primary-rgb), 0.3);
}

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

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(var(--color-primary-rgb), 0.3);
}

/* Shimmer border button */
.btn-shimmer {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
    position: relative;
}

.btn-shimmer::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--color-primary) 25%,
        var(--color-accent) 50%,
        var(--color-primary) 75%,
        transparent 100%
    );
    background-size: 200% 100%;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-shimmer:hover::before {
    opacity: 1;
    animation: shimmer 2s linear infinite;
}

.btn-shimmer:hover {
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-brand);
}

/* Outline button */
.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-cyan);
}

/* Small button variant */
.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: var(--fs-small);
    min-height: 36px;
}

/* Large button variant */
.btn-lg {
    padding: 1rem 2.25rem;
    font-size: var(--fs-body-lg);
}

/* Icon arrow in button */
.btn-icon {
    display: inline-flex;
    transition: transform var(--transition-base);
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

/* ==========================================================================
   10. Header & Navigation
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all var(--transition-base);
}

.header--scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.header__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    z-index: calc(var(--z-overlay) + 1);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.header__logo:hover {
    opacity: 0.92;
}

.header__logo-mark {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.header__logo:hover .header__logo-mark {
    transform: scale(1.05);
}

.header__logo-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.header__logo-name {
    font-family: var(--ff-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
    line-height: 1.05;
}

.header__logo-tagline {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-primary);
    line-height: 1;
    margin-top: 2px;
}

/* Footer Dark/Light Logo Switching */
[data-theme="dark"] .footer__logo--light {
    display: none !important;
}

[data-theme="light"] .footer__logo--dark {
    display: none !important;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.header__nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.header__nav-link {
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    color: var(--color-text-secondary);
    position: relative;
    padding: var(--space-xs) 0;
    transition: color var(--transition-base);
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-brand-horizontal);
    border-radius: var(--radius-full);
    transition: width var(--transition-base);
}

.header__nav-link:hover,
.header__nav-link--active {
    color: var(--color-primary);
}

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

.header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* ==========================================================================
   11. Mobile Menu (Hamburger)
   ========================================================================== */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: calc(var(--z-overlay) + 1);
}

.hamburger__line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    transform-origin: center;
}

.hamburger--active .hamburger__line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger--active .hamburger__line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger--active .hamburger__line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

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

.mobile-menu__link {
    font-family: var(--ff-display);
    font-size: var(--fs-h3);
    color: var(--color-text-primary);
    transition: color var(--transition-base);
}

.mobile-menu__link:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   12. Hero Section
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    max-height: 1080px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: calc(var(--header-height) + var(--space-2xl));
    padding-bottom: var(--space-4xl);
    overflow: hidden;
}

.hero__content {
    position: relative;
    z-index: var(--z-base);
    max-width: 950px;
    padding: var(--space-xl) var(--container-padding);
    margin: 0 auto;
}

.hero__title {
    font-family: var(--ff-display);
    font-size: var(--fs-display);
    font-weight: var(--fw-bold);
    line-height: 1.15;
    margin-bottom: var(--space-lg);
    color: var(--color-text-primary);
    text-wrap: balance;
}

.hero__word-cycler {
    display: block;
    position: relative;
    overflow: hidden;
    height: 1.25em;
    width: 100%;
    margin-top: var(--space-xs);
}

.hero__word {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    text-align: center;
    background: var(--gradient-brand-horizontal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(100%);
    transition: all 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero__word--active {
    opacity: 1;
    transform: translateY(0);
}

.hero__word--exit {
    opacity: 0;
    transform: translateY(-100%);
}

.hero__description {
    font-size: var(--fs-body-lg);
    color: var(--color-text-secondary);
    max-width: 720px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.8;
}

.hero__buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ==========================================================================
   13. Stats Bar
   ========================================================================== */

.stats-bar {
    position: relative;
    z-index: var(--z-base);
    width: 100%;
    max-width: var(--container-max);
    margin-top: var(--space-3xl);
    padding: 0 var(--container-padding);
}

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

.stats-bar__item {
    text-align: center;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    background: var(--color-bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all var(--transition-base);
}

.stats-bar__item:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-brand);
}

.stats-bar__number {
    font-family: var(--ff-display);
    font-size: var(--fs-h2);
    font-weight: var(--fw-extrabold);
    background: var(--gradient-brand-horizontal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: var(--space-xs);
}

.stats-bar__label {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    font-weight: var(--fw-medium);
}

/* ==========================================================================
   14. About Section & MVV Cards
   ========================================================================== */

.about__content {
    max-width: 860px;
    margin: 0 auto var(--space-4xl);
    text-align: center;
}

.about__text {
    font-size: var(--fs-body-lg);
    line-height: 1.9;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.mvv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.mvv-card {
    padding: var(--space-2xl);
    text-align: center;
}

.mvv-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.15), rgba(var(--color-accent-rgb), 0.15));
    color: var(--color-primary);
    font-size: 1.75rem;
}

.mvv-card__title {
    font-family: var(--ff-display);
    font-size: var(--fs-h5);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mvv-card__text {
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
    line-height: 1.8;
    text-align: center;
}

/* ==========================================================================
   15. Services Bento Grid
   ========================================================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.service-card {
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
}

.service-card__icon {
    width: 56px;
    height: 56px;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.12), rgba(var(--color-accent-rgb), 0.12));
}

.service-card__icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.service-card__title {
    font-size: var(--fs-h5);
    margin-bottom: var(--space-md);
    font-weight: var(--fw-semibold);
}

.service-card__text {
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
    line-height: 1.8;
    flex: 1;
    margin-bottom: var(--space-lg);
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--fs-small);
    font-weight: var(--fw-semibold);
    color: var(--color-primary);
    transition: gap var(--transition-base);
}

.service-card__link:hover {
    gap: var(--space-md);
}

/* ==========================================================================
   16. Products Showcase
   ========================================================================== */

.products {
    position: relative;
    overflow: hidden;
}

.products__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(var(--color-primary-rgb), 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(var(--color-accent-rgb), 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.product-card {
    max-width: 680px;
    margin: 0 auto;
    padding: var(--space-3xl);
    text-align: center;
    position: relative;
}

.product-card__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.25rem 0.875rem;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.product-card__badge--coming-soon {
    background: rgba(var(--color-accent-rgb), 0.15);
    color: var(--color-accent);
    border: 1px solid rgba(var(--color-accent-rgb), 0.3);
}

.product-card__badge--live {
    background: rgba(0, 200, 83, 0.15);
    color: #00C853;
    border: 1px solid rgba(0, 200, 83, 0.3);
}

.product-card__badge--beta {
    background: rgba(var(--color-primary-rgb), 0.15);
    color: var(--color-primary);
    border: 1px solid rgba(var(--color-primary-rgb), 0.3);
}

.product-card__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s ease-in-out infinite;
}

.product-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
    background: var(--gradient-brand);
    box-shadow: var(--shadow-glow-brand);
}

.product-card__name {
    font-family: var(--ff-display);
    font-size: var(--fs-h3);
    margin-bottom: var(--space-sm);
}

.product-card__tagline {
    font-size: var(--fs-body);
    color: var(--color-primary);
    font-weight: var(--fw-medium);
    margin-bottom: var(--space-lg);
}

.product-card__description {
    font-size: var(--fs-body);
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.product-card__tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
}

.product-tag {
    padding: 0.25rem 0.75rem;
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    border-radius: var(--radius-full);
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
}

.product-card__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ==========================================================================
   17. Hire Us / Engagement Models
   ========================================================================== */

.engagement-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.engagement-card {
    padding: var(--space-2xl);
}

.engagement-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.12), rgba(var(--color-accent-rgb), 0.12));
    color: var(--color-primary);
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
}

.engagement-card__title {
    font-size: var(--fs-h5);
    margin-bottom: var(--space-sm);
    font-weight: var(--fw-semibold);
}

.engagement-card__text {
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* ==========================================================================
   18. Tech Stack
   ========================================================================== */

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-lg);
}

.tech-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    background: var(--color-bg-card);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-base);
    text-align: center;
}

.tech-badge:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-brand);
}

.tech-badge__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.tech-badge__name {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    color: var(--color-text-secondary);
}

/* ==========================================================================
   19. Contact Section
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-info {
    padding: var(--space-2xl);
}

.contact-info__title {
    font-family: var(--ff-display);
    font-size: var(--fs-h3);
    margin-bottom: var(--space-md);
}

.contact-info__text {
    font-size: var(--fs-body);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2xl);
    line-height: 1.8;
}

.contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.contact-info__icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.12), rgba(var(--color-accent-rgb), 0.12));
    color: var(--color-primary);
    font-size: 1.125rem;
}

.contact-info__label {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-xs);
}

.contact-info__value {
    font-size: var(--fs-body);
    color: var(--color-text-primary);
    font-weight: var(--fw-medium);
}

.contact-info__value a {
    color: var(--color-text-primary);
    transition: color var(--transition-base);
}

.contact-info__value a:hover {
    color: var(--color-primary);
}

/* Contact Form */
.contact-form {
    padding: var(--space-2xl);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-group--full {
    grid-column: 1 / -1;
}

.form-label {
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    color: var(--color-text-secondary);
}

.form-label span {
    color: var(--color-primary);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-size: var(--fs-body);
    transition: all var(--transition-base);
    min-height: 44px;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-text-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B6E94' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-error {
    font-size: var(--fs-xs);
    color: #FF4757;
    display: none;
}

.form-group--error .form-input,
.form-group--error .form-textarea {
    border-color: #FF4757;
}

.form-group--error .form-error {
    display: block;
}

.form-success {
    display: none;
    text-align: center;
    padding: var(--space-2xl);
}

.form-success--visible {
    display: block;
    animation: fadeInUp 500ms ease forwards;
}

.form-success__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 200, 83, 0.15);
    color: #00C853;
    font-size: 1.75rem;
}

/* Social links */
.social-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    transition: all var(--transition-base);
}

.social-link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-cyan);
}

/* ==========================================================================
   20. Footer
   ========================================================================== */

.footer {
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-secondary);
}

.footer__main {
    padding: var(--space-4xl) 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-3xl);
}

.footer__brand-description {
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-top: var(--space-lg);
    max-width: 400px;
}

.footer__logo {
    display: inline-block;
    margin-bottom: var(--space-md);
}

.footer__logo img {
    height: 105px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform var(--transition-base), filter var(--transition-base);
}

.footer__logo:hover img {
    transform: translateY(-3px);
    filter: drop-shadow(0 4px 14px rgba(var(--color-primary-rgb), 0.3));
}

.footer__title {
    font-size: var(--fs-h6);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-lg);
    color: var(--color-text-primary);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__link {
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
    transition: color var(--transition-base), padding-left var(--transition-base);
}

.footer__link:hover {
    color: var(--color-primary);
    padding-left: var(--space-sm);
}

.footer__bottom {
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer__copyright {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
}

.footer__copyright-brand {
    background: var(--gradient-brand-horizontal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: var(--fw-semibold);
}

/* ==========================================================================
   21. Preloader (Creative Animated AI Boot Sequence)
   ========================================================================== */

.preloader {
    position: fixed;
    inset: 0;
    z-index: var(--z-preloader);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: var(--color-bg-primary);
    overflow: hidden;
    transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 600ms cubic-bezier(0.4, 0, 0.2, 1),
                transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.preloader--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.03);
}

.preloader--hidden .preloader__logo-container {
    transform: scale(1.16);
    transition: transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Ambient Radial Glow Backdrop */
.preloader__ambient {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 182, 240, 0.18) 0%, rgba(107, 59, 245, 0.12) 40%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
    animation: preloaderPulseAmbient 4s ease-in-out infinite alternate;
}

[data-theme="light"] .preloader__ambient {
    background: radial-gradient(circle, rgba(0, 182, 240, 0.12) 0%, rgba(107, 59, 245, 0.08) 40%, transparent 70%);
}

/* Stage Container */
.preloader__stage {
    position: relative;
    width: 170px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-xl);
}

/* Orbital Rings & Viewfinder Reticle */
.preloader__rings {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Outer Gradient Orbit Ring */
.preloader__ring--outer {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--color-primary);
    border-right-color: var(--color-accent-purple);
    border-bottom-color: rgba(var(--color-primary-rgb), 0.2);
    border-left-color: transparent;
    animation: preloaderOrbit 3.2s linear infinite;
    filter: drop-shadow(0 0 8px rgba(0, 182, 240, 0.45));
}

/* Inner Counter-Rotating Dashed Ring */
.preloader__ring--inner {
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 1.5px dashed rgba(var(--color-primary-rgb), 0.4);
    animation: preloaderCounterOrbit 7s linear infinite;
}

/* Expanding Radar Energy Pulse */
.preloader__pulse {
    position: absolute;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 182, 240, 0.6);
    animation: preloaderPulseRing 2.4s cubic-bezier(0.1, 0.7, 0.1, 1) infinite;
    pointer-events: none;
}

/* Reticle Corner Brackets */
.preloader__reticle {
    position: absolute;
    width: 152px;
    height: 152px;
    pointer-events: none;
}

.preloader__corner {
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: rgba(0, 182, 240, 0.75);
    border-style: solid;
}

.preloader__corner--tl {
    top: 0;
    left: 0;
    border-width: 2px 0 0 2px;
    border-top-left-radius: 3px;
}

.preloader__corner--tr {
    top: 0;
    right: 0;
    border-width: 2px 2px 0 0;
    border-top-right-radius: 3px;
}

.preloader__corner--bl {
    bottom: 0;
    left: 0;
    border-width: 0 0 2px 2px;
    border-bottom-left-radius: 3px;
}

.preloader__corner--br {
    bottom: 0;
    right: 0;
    border-width: 0 2px 2px 0;
    border-bottom-right-radius: 3px;
}

/* Logo Hero Container */
.preloader__logo-container {
    position: relative;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    animation: preloaderHeroFloat 3.2s ease-in-out infinite;
}

/* Radiant Backglow */
.preloader__logo-glow {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 182, 240, 0.45) 0%, rgba(107, 59, 245, 0.25) 50%, transparent 75%);
    filter: blur(14px);
    animation: preloaderGlowPulse 2.2s ease-in-out infinite alternate;
    pointer-events: none;
}

/* The Animated Simplified Logo Image */
.preloader__logo-img {
    position: relative;
    width: 96px;
    height: 96px;
    object-fit: contain;
    filter: drop-shadow(0 4px 18px rgba(0, 182, 240, 0.5));
    animation: preloaderLogoBreath 3.2s ease-in-out infinite;
    user-select: none;
    -webkit-user-drag: none;
}

/* Sci-Fi Scanning Light Beam */
.preloader__scanner {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    overflow: hidden;
    pointer-events: none;
}

.preloader__scanner::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #00E5FF, transparent);
    box-shadow: 0 0 12px #00E5FF, 0 0 24px rgba(0, 229, 255, 0.8);
    animation: preloaderScanBar 2.2s ease-in-out infinite alternate;
}

/* Brand Lockup Below Stage */
.preloader__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: var(--space-lg);
    z-index: 2;
}

.preloader__brand-title {
    font-family: var(--ff-display);
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    background: var(--gradient-brand-horizontal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.preloader__brand-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-top: 3px;
}

/* Progress & Meta Readout */
.preloader__meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    width: 250px;
    max-width: 90vw;
    z-index: 2;
}

/* Capsule Progress Bar */
.preloader__bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .preloader__bar {
    background: rgba(0, 0, 0, 0.08);
}

.preloader__bar-fill {
    width: 0%;
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, #00B6F0, #6B3BF5);
    box-shadow: 0 0 12px rgba(0, 182, 240, 0.8);
    transition: width 100ms linear;
}

/* Status Text & Percentage Counter */
.preloader__status-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 0.6875rem;
    font-family: var(--ff-mono, 'JetBrains Mono', monospace);
    color: var(--color-text-tertiary);
    letter-spacing: 0.08em;
}

.preloader__status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00E5FF;
    box-shadow: 0 0 8px #00E5FF;
    animation: preloaderDotBlink 1s ease-in-out infinite;
    display: inline-block;
    margin-right: 6px;
    flex-shrink: 0;
}

.preloader__status-text {
    flex-grow: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.preloader__counter {
    color: var(--color-primary);
    font-weight: 700;
    margin-left: 8px;
    flex-shrink: 0;
}

/* Keyframe Animations */
@keyframes preloaderScanBar {
    0% { top: 0%; opacity: 0.3; }
    50% { opacity: 1; }
    100% { top: 96%; opacity: 0.3; }
}

@keyframes preloaderOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes preloaderCounterOrbit {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes preloaderPulseRing {
    0% {
        transform: scale(0.85);
        opacity: 0.9;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@keyframes preloaderPulseAmbient {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.15); opacity: 1; }
}

@keyframes preloaderHeroFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-7px);
    }
}

@keyframes preloaderLogoBreath {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 4px 18px rgba(0, 182, 240, 0.45));
    }
    50% {
        transform: scale(1.07);
        filter: drop-shadow(0 8px 26px rgba(0, 182, 240, 0.75)) drop-shadow(0 0 35px rgba(107, 59, 245, 0.5));
    }
}

@keyframes preloaderGlowPulse {
    0% {
        transform: scale(0.88);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.2);
        opacity: 0.95;
    }
}

@keyframes preloaderDotBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.25; transform: scale(0.7); }
}

/* Mobile responsive sizing */
@media (max-width: 480px) {
    .preloader__stage {
        width: 140px;
        height: 140px;
        margin-bottom: var(--space-lg);
    }
    .preloader__ring--outer {
        width: 130px;
        height: 130px;
    }
    .preloader__ring--inner {
        width: 110px;
        height: 110px;
    }
    .preloader__reticle {
        width: 126px;
        height: 126px;
    }
    .preloader__logo-container,
    .preloader__logo-img {
        width: 78px;
        height: 78px;
    }
    .preloader__brand-title {
        font-size: 1.4rem;
    }
    .preloader__meta {
        width: 230px;
        max-width: 85vw;
    }
    .preloader__status-wrap {
        font-size: 0.625rem;
    }
}

/* ==========================================================================
   22. Back to Top
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: var(--z-dropdown);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--gradient-brand-horizontal);
    color: var(--color-white);
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-glow-cyan);
}

.back-to-top--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(var(--color-primary-rgb), 0.4);
}

/* ==========================================================================
   23. Theme Switcher
   ========================================================================== */

.theme-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.theme-toggle:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.theme-toggle__icon--sun,
.theme-toggle__icon--moon {
    display: none;
}

[data-theme="dark"] .theme-toggle__icon--sun {
    display: block;
}

[data-theme="dark"] .theme-toggle__icon--moon {
    display: none;
}

[data-theme="light"] .theme-toggle__icon--sun {
    display: none;
}

[data-theme="light"] .theme-toggle__icon--moon {
    display: block;
}

/* ==========================================================================
   24. Scroll Reveal Animations
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 800ms ease, transform 800ms ease;
}

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

.reveal--left {
    transform: translateX(-40px);
}
.reveal--left.reveal--visible {
    transform: translateX(0);
}

.reveal--right {
    transform: translateX(40px);
}
.reveal--right.reveal--visible {
    transform: translateX(0);
}

.reveal--scale {
    transform: scale(0.9);
}
.reveal--scale.reveal--visible {
    transform: scale(1);
}

/* Stagger delays for children */
.reveal-stagger > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > *:nth-child(2) { transition-delay: 40ms; }
.reveal-stagger > *:nth-child(3) { transition-delay: 80ms; }
.reveal-stagger > *:nth-child(4) { transition-delay: 120ms; }
.reveal-stagger > *:nth-child(5) { transition-delay: 160ms; }
.reveal-stagger > *:nth-child(6) { transition-delay: 200ms; }
.reveal-stagger > *:nth-child(7) { transition-delay: 240ms; }
.reveal-stagger > *:nth-child(8) { transition-delay: 280ms; }
.reveal-stagger > *:nth-child(9) { transition-delay: 320ms; }
.reveal-stagger > *:nth-child(10) { transition-delay: 360ms; }
.reveal-stagger > *:nth-child(11) { transition-delay: 400ms; }
.reveal-stagger > *:nth-child(12) { transition-delay: 440ms; }
.reveal-stagger > *:nth-child(13) { transition-delay: 480ms; }
.reveal-stagger > *:nth-child(14) { transition-delay: 520ms; }
.reveal-stagger > *:nth-child(15) { transition-delay: 560ms; }
.reveal-stagger > *:nth-child(16) { transition-delay: 600ms; }

/* ==========================================================================
   25. Policy & Legal Pages
   ========================================================================== */

.policy-hero {
    position: relative;
    padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-3xl);
    background: radial-gradient(circle at 50% 20%, rgba(var(--color-primary-rgb), 0.12) 0%, transparent 60%),
                radial-gradient(circle at 80% 60%, rgba(var(--color-accent-rgb), 0.1) 0%, transparent 50%);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}

.policy-breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.policy-breadcrumbs a {
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.policy-breadcrumbs a:hover {
    color: var(--color-primary);
}

.policy-breadcrumbs__separator {
    color: var(--color-text-muted);
    font-size: 0.75rem;
}

.policy-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: rgba(var(--color-primary-rgb), 0.1);
    border: 1px solid rgba(var(--color-primary-rgb), 0.25);
    border-radius: var(--radius-full);
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.policy-hero__title {
    font-family: var(--ff-display);
    font-size: var(--fs-h1);
    line-height: 1.15;
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
}

.policy-hero__desc {
    font-size: var(--fs-body-lg);
    color: var(--color-text-secondary);
    max-width: 800px;
    margin-bottom: var(--space-lg);
}

.policy-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-xl);
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

.policy-hero__meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.policy-hero__meta-item i {
    color: var(--color-primary);
    font-size: 1.1rem;
}

/* Policy Layout Grid */
.policy-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-3xl);
    align-items: start;
    padding: var(--space-4xl) 0;
}

/* Sticky Table of Contents */
.policy-toc {
    position: sticky;
    top: calc(var(--header-height) + var(--space-xl));
    align-self: start;
    z-index: 10;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--glass-shadow);
}

.policy-toc__title {
    font-size: var(--fs-h6);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--color-border);
}

.policy-toc__nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    max-height: calc(100vh - var(--header-height) - var(--space-4xl));
    overflow-y: auto;
    padding-right: var(--space-xs);
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--color-primary-rgb), 0.3) transparent;
}

.policy-toc__nav::-webkit-scrollbar {
    width: 4px;
}

.policy-toc__nav::-webkit-scrollbar-thumb {
    background: rgba(var(--color-primary-rgb), 0.3);
    border-radius: var(--radius-full);
}

.policy-toc__link {
    display: block;
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    line-height: 1.4;
    border-left: 2px solid transparent;
}

.policy-toc__link:hover {
    color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.06);
    border-left-color: var(--color-primary);
    transform: translateX(3px);
}

.policy-toc__link.is-active {
    color: var(--color-primary);
    font-weight: var(--fw-semibold);
    background: rgba(var(--color-primary-rgb), 0.1);
    border-left-color: var(--color-primary);
}

/* Policy Content Article */
.policy-content {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-3xl);
    box-shadow: var(--glass-shadow);
}

.policy-section {
    margin-bottom: var(--space-3xl);
    scroll-margin-top: calc(var(--header-height) + var(--space-xl));
}

.policy-section:last-child {
    margin-bottom: 0;
}

.policy-section__heading {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    font-family: var(--ff-body);
    font-size: var(--fs-h3);
    font-weight: var(--fw-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

.policy-section__number {
    font-family: var(--ff-display);
    color: var(--color-primary);
    font-size: 1.1em;
}

.policy-section h4 {
    font-size: var(--fs-h5);
    font-weight: var(--fw-semibold);
    color: var(--color-text-primary);
    margin: var(--space-xl) 0 var(--space-sm);
}

.policy-section p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.policy-section ul,
.policy-section ol {
    margin: var(--space-md) 0 var(--space-lg) var(--space-xl);
    color: var(--color-text-secondary);
    line-height: 1.75;
}

.policy-section li {
    margin-bottom: var(--space-sm);
}

.policy-section li strong {
    color: var(--color-text-primary);
}

/* Callout Highlights & Notices */
.policy-callout {
    position: relative;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
    border-left: 4px solid var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.06);
}

.policy-callout--alert {
    border-left-color: #EF4444;
    background: rgba(239, 68, 68, 0.08);
}

.policy-callout--warning {
    border-left-color: #F59E0B;
    background: rgba(245, 158, 11, 0.08);
}

.policy-callout--success {
    border-left-color: #10B981;
    background: rgba(16, 185, 129, 0.08);
}

.policy-callout--accent {
    border-left-color: var(--color-accent);
    background: rgba(var(--color-accent-rgb), 0.08);
}

.policy-callout__title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--fs-h5);
    font-weight: var(--fw-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.policy-callout__title i {
    font-size: 1.25rem;
}

.policy-callout--alert .policy-callout__title i {
    color: #EF4444;
}
.policy-callout--warning .policy-callout__title i {
    color: #F59E0B;
}
.policy-callout--success .policy-callout__title i {
    color: #10B981;
}
.policy-callout--accent .policy-callout__title i {
    color: var(--color-accent);
}

.policy-callout p:last-child {
    margin-bottom: 0;
}

/* Contact Info Box in Policies */
.policy-contact-box {
    margin-top: var(--space-2xl);
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.08), rgba(var(--color-accent-rgb), 0.08));
    border: 1px solid rgba(var(--color-primary-rgb), 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.policy-contact-box__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-md);
}

.policy-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.policy-contact-item i {
    color: var(--color-primary);
    font-size: 1.25rem;
    margin-top: 2px;
}

.policy-contact-item__label {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    font-weight: var(--fw-semibold);
}

.policy-contact-item__val {
    color: var(--color-text-primary);
    font-weight: var(--fw-medium);
}

/* ==========================================================================
   26. Responsive Breakpoints
   ========================================================================== */

/* ── Tablet Landscape / Small Desktop ── */
@media (max-width: 1279px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer__grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

/* ── Tablet Portrait ── */
@media (max-width: 1023px) {
    /* Show hamburger, hide desktop nav */
    .hamburger {
        display: flex;
    }
    .header__nav {
        display: none;
    }
    .header__actions .btn {
        display: none;
    }
    .mobile-menu {
        display: flex;
    }


    /* Grid adjustments */
    .mvv-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .engagement-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }
    .stats-bar__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Policy Layout */
    .policy-layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    .policy-toc {
        position: relative;
        top: 0;
        max-height: none;
    }
    .policy-toc__nav {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        max-height: 240px;
    }
    .policy-content {
        padding: var(--space-2xl);
    }
}

/* ── Mobile Large ── */
@media (max-width: 767px) {
    :root {
        --fs-display: clamp(1.65rem, 5.5vw, 2.25rem);
    }
    .policy-content {
        padding: var(--space-lg);
    }
    .policy-hero {
        padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-xl);
    }
    .policy-toc__nav {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
    .hero__buttons {
        flex-direction: column;
        width: 100%;
    }
    .hero__buttons .btn {
        width: 100%;
    }
    .product-card {
        padding: var(--space-xl);
    }

    /* Reduce ambient effects on mobile */
    .ambient-glow {
        width: 300px;
        height: 300px;
        opacity: 0.2;
    }
}

/* ── Mobile Small ── */
@media (max-width: 479px) {
    :root {
        --header-height: 64px;
        --fs-display: clamp(1.2rem, 5.2vw, 1.5rem);
        --container-padding: 1rem;
    }
    .hero__title {
        hyphens: none;
        -webkit-hyphens: none;
    }
    .hero__content {
        padding: var(--space-lg) var(--container-padding);
    }
    .stats-bar__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }
    .stats-bar__number {
        font-size: var(--fs-h4);
    }
    .header__logo-mark {
        width: 36px;
        height: 36px;
    }
    .header__logo-name {
        font-size: 1.25rem;
    }
    .header__logo-tagline {
        font-size: 0.55rem;
        letter-spacing: 0.14em;
    }
    .footer__logo img {
        height: 85px;
    }
    .product-card__tags {
        gap: var(--space-xs);
    }
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .social-links {
        flex-wrap: wrap;
    }
}

/* ── Desktop XL / 4K ── */
@media (min-width: 1920px) {
    :root {
        --container-max: 1600px;
    }
}
