/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #0f172a;
    --accent-color: #8b5cf6;
    --accent-2: #ec4899;
    --text-color: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-text: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.3);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* 3D Design System Tokens */
    --ds-3d-perspective: 1200px;
    --ds-3d-depth-surface: rgba(12, 18, 34, 0.88);
    --ds-3d-border-glow: rgba(99, 102, 241, 0.4);
    --ds-3d-border-cyan: rgba(6, 182, 212, 0.5);
    --ds-3d-neon-cyan: #06b6d4;
    --ds-3d-neon-indigo: #6366f1;
    --ds-3d-neon-pink: #ec4899;
    --ds-3d-neon-emerald: #10b981;
    --ds-3d-glow-lg: 0 25px 60px -15px rgba(15, 23, 42, 0.7), 0 0 45px rgba(99, 102, 241, 0.35);
    --ds-3d-layer-1: translateZ(12px);
    --ds-3d-layer-2: translateZ(24px);
    --ds-3d-layer-3: translateZ(36px);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(240, 147, 251, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-20px, -20px) scale(1.1);
    }
}

@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

/* Header with Glassmorphism */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid transparent;
    background-clip: padding-box;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-bg);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header.scrolled::before {
    opacity: 1;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header.scrolled .nav {
    padding: 0.75rem 0;
}

.nav__logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.nav__logo-text:hover {
    transform: scale(1.05);
}

.nav__logo-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-bg);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav__logo-text:hover::after {
    transform: scaleX(1);
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav__link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.nav__link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-bg);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(-50%);
}

.nav__link:hover::before {
    width: 80%;
}

.nav__link:hover {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-2px);
}

.nav__link.active {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

.nav__link.active::before {
    width: 80%;
}

.language-picker {
    position: relative;
    flex: 0 0 auto;
    z-index: 1002;
}

.language-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(102, 126, 234, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--secondary-color);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.language-toggle:hover,
.language-toggle:focus-visible,
.language-toggle[aria-expanded="true"] {
    background: rgba(102, 126, 234, 0.18);
    border-color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.16);
}

.language-toggle:focus-visible,
.language-option:focus-visible {
    outline: 3px solid rgba(102, 126, 234, 0.45);
    outline-offset: 3px;
}

.language-toggle__chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.language-toggle[aria-expanded="true"] .language-toggle__chevron {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    top: calc(100% + 0.55rem);
    inset-inline-end: 0;
    width: max-content;
    min-width: 220px;
    max-height: calc(100vh - 6rem);
    max-height: calc(100dvh - 6rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 0.4rem;
    border: 1px solid rgba(102, 126, 234, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 38px rgba(31, 41, 55, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.language-menu[hidden] {
    display: none;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.75rem;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--secondary-color);
    font: inherit;
    text-align: start;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.language-option:hover {
    background: rgba(102, 126, 234, 0.09);
}

.language-option[aria-selected="true"] {
    background: rgba(102, 126, 234, 0.12);
    color: var(--primary-color);
    font-weight: 700;
}

.language-option[aria-selected="true"]::after {
    content: '✓';
    margin-inline-start: auto;
    font-size: 0.9rem;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav__toggle:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.05);
}

.nav__toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.nav__toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.nav__toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section with Advanced Motion */
.hero {
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: var(--gradient-1);
    opacity: 0.1;
    transform: rotate(45deg);
    animation: heroGradient 15s ease-in-out infinite;
}

@keyframes heroGradient {
    0%, 100% {
        transform: rotate(45deg) translateX(0);
    }
    50% {
        transform: rotate(45deg) translateX(-100px);
    }
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

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

.hero__title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 1s ease 0.2s forwards;
}

.hero__cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease 0.4s forwards;
}

/* ==========================================================================
   SafeTec 3D Stage & Mode Switcher
   ========================================================================== */
.hero__3d-container {
    width: 100%;
    max-width: 590px;
    margin: 0 auto;
    position: relative;
}

.hero__mode-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 5px;
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(102, 126, 234, 0.22);
    border-radius: 999px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mode-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.15rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mode-switch-btn.active {
    background: var(--gradient-bg);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.mode-icon {
    width: 15px;
    height: 15px;
}

/* 3D Viewport Stage */
.hero__3d-stage {
    position: relative;
    width: 100%;
    max-width: 590px;
    height: 480px;
    margin: 0 auto;
    border-radius: 24px;
    background: radial-gradient(circle at 50% 40%, rgba(30, 27, 75, 0.55) 0%, rgba(12, 18, 34, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.6), 0 0 40px rgba(99, 102, 241, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.hero__3d-stage.is-hidden,
.hero__visual.is-hidden,
.hero__visual-hint.is-hidden,
.hero__visual-dots.is-hidden {
    display: none !important;
}

.hero__3d-canvas-container {
    position: absolute;
    inset: 0;
    cursor: grab;
    z-index: 1;
}

.hero__3d-canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.hero__3d-ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.28) 0%, rgba(6, 182, 212, 0.18) 45%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: pulseAmbient 4s ease-in-out infinite;
}

@keyframes pulseAmbient {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.18); opacity: 1; }
}

/* 3D HUD Bars */
.hero__3d-hud {
    position: relative;
    z-index: 2;
    padding: 12px 16px;
    pointer-events: none;
}

.hero__3d-hud--top {
    display: flex;
    justify-content: center;
}

.hero__3d-models-pill {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 4px;
    border-radius: 999px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    pointer-events: auto;
}

.model-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.model-pill-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.model-pill-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.model-pill-btn.active {
    background: rgba(99, 102, 241, 0.4);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
    border: 1px solid rgba(129, 140, 248, 0.5);
}

.model-pill-btn.active .model-pill-indicator {
    background: #06b6d4;
    box-shadow: 0 0 8px #06b6d4;
}

.hero__3d-hud--bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    padding: 12px 16px 14px;
}

.hero__3d-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    pointer-events: auto;
}

.hero__3d-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: auto;
}

.tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    min-height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tool-btn svg {
    width: 13px;
    height: 13px;
}

.tool-btn:hover {
    background: rgba(99, 102, 241, 0.35);
    border-color: rgba(99, 102, 241, 0.6);
}

.tool-btn.active {
    background: rgba(6, 182, 212, 0.25);
    border-color: #06b6d4;
    color: #67e8f9;
}

.hero__3d-hint {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    z-index: 2;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.hero__visual {
    position: relative;
    width: 100%;
    max-width: 590px;
    height: 480px;
    perspective: 1200px;
    transform-style: flat;
    margin: 0 auto;
}

.hero__visual-hint {
    display: none;
}

.hero__visual-dots {
    display: none;
}

.hero__card {
    position: absolute;
    width: 228px;
    height: 320px;
    border-radius: 20px;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.5), 0 0 35px rgba(99, 102, 241, 0.2);
    animation: float3D 7.5s ease-in-out infinite;
    background-color: #0c1222;
    border: 1px solid rgba(255, 255, 255, 0.22);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease, opacity 0.3s ease;
    user-select: none;
}

.hero__card:hover,
.hero__card.is-active {
    z-index: 100 !important;
}

@media (hover: hover) and (pointer: fine) {
    .hero__card:hover,
    .hero__card.is-active {
        animation-play-state: paused;
        transform: translateY(-22px) rotateY(0deg) rotateX(0deg) scale(1.08) !important;
        z-index: 100 !important;
        box-shadow: 0 35px 70px -15px rgba(15, 23, 42, 0.8), 0 0 60px rgba(99, 102, 241, 0.55);
        border-color: rgba(255, 255, 255, 0.65);
    }

    .hero__visual:hover .hero__card:not(:hover):not(.is-active) {
        opacity: 0.65;
        transform: scale(0.96);
    }
}

.hero__card--1 {
    background: linear-gradient(155deg, #131c31 0%, #1e1b4b 45%, #4338ca 100%);
    left: 0;
    top: 65px;
    z-index: 1;
    --rotateY: -10deg;
    --rotateX: 5deg;
    animation-delay: 0s;
}

.hero__card--2 {
    background: linear-gradient(155deg, #0f172a 0%, #2e1065 50%, #6d28d9 100%);
    left: 180px;
    top: 10px;
    z-index: 3;
    --rotateY: 0deg;
    --rotateX: -4deg;
    animation-delay: 2.5s;
}

.hero__card--3 {
    background: linear-gradient(155deg, #181135 0%, #831843 45%, #0284c7 100%);
    left: 360px;
    top: 75px;
    z-index: 2;
    --rotateY: 10deg;
    --rotateX: 6deg;
    animation-delay: 5s;
}

@keyframes float3D {
    0%, 100% {
        transform: translateY(0) rotateY(var(--rotateY, 0deg)) rotateX(var(--rotateX, 0deg));
    }
    50% {
        transform: translateY(-24px) rotateY(calc(var(--rotateY, 0deg) * 0.8)) rotateX(calc(var(--rotateX, 0deg) * 0.8));
    }
}

/* 3-Dots Window Header */
.hero__card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.hero__card-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dot--red {
    background-color: #ff5f56;
    box-shadow: 0 0 8px rgba(255, 95, 86, 0.85);
}

.dot--yellow {
    background-color: #ffbd2e;
    box-shadow: 0 0 8px rgba(255, 189, 46, 0.85);
}

.dot--green {
    background-color: #27c93f;
    box-shadow: 0 0 8px rgba(39, 201, 63, 0.85);
}

.hero__card:hover .dot {
    transform: scale(1.18);
}

.hero__card-tag {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.04em;
}

/* Card Body & Rich Content */
.hero__card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    color: #ffffff;
    position: relative;
}

.card-preview {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    gap: 10px;
}

/* Badges & Pulses */
.card-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.12);
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.card-status-badge--system {
    width: 100%;
    justify-content: center;
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.3);
    color: #a5f3fc;
}

.status-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    animation: dotPulse 1.8s infinite;
}

.status-pulse--green {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.status-pulse--cyan {
    background: #06b6d4;
    box-shadow: 0 0 8px #06b6d4;
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.45;
        transform: scale(0.85);
    }
}

/* Route Display (Card 1) */
.card-route-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 10px;
    background: rgba(0, 0, 0, 0.22);
    border-radius: 14px;
    margin: 4px 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.route-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a5b4fc;
}

.route-icon-box svg {
    width: 18px;
    height: 18px;
}

.route-path-track {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 10px;
    position: relative;
    border-radius: 3px;
}

.route-path-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #818cf8, #38bdf8);
    border-radius: 3px;
}

.route-path-dot {
    position: absolute;
    top: -4px;
    left: 0;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 10px #38bdf8;
    animation: moveAlongRoute 2.8s infinite ease-in-out;
}

@keyframes moveAlongRoute {
    0% { left: 0%; }
    100% { left: 92%; }
}

.route-target-box {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #34d399;
}

.route-target-box svg {
    width: 18px;
    height: 18px;
}

.card-info-bottom {
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-info-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.card-info-meta {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.75);
}

/* Code Terminal (Card 2) */
.code-terminal {
    background: rgba(0, 0, 0, 0.45);
    border-radius: 12px;
    padding: 10px 11px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.67rem;
    line-height: 1.55;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.token-kw {
    color: #f472b6;
    font-weight: 600;
}

.token-var {
    color: #93c5fd;
}

.token-fn {
    color: #c084fc;
    font-weight: 600;
}

.token-bool {
    color: #38bdf8;
}

.token-comment {
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
    margin-top: 3px;
}

.card-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 2px 0;
}

.metric-pill {
    background: rgba(255, 255, 255, 0.08);
    padding: 7px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.metric-pill-label {
    font-size: 0.64rem;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.metric-pill-val {
    font-size: 0.95rem;
    font-weight: 800;
    color: #c084fc;
}

/* Games HUD (Card 3) */
.game-hud-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.game-hud-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(236, 72, 153, 0.25);
    border: 1px solid rgba(236, 72, 153, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f472b6;
}

.game-hud-icon svg {
    width: 20px;
    height: 20px;
}

.game-hud-tags {
    display: flex;
    gap: 6px;
}

.hud-pill {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 8px;
    letter-spacing: 0.03em;
}

.hud-pill--lvl {
    background: rgba(236, 72, 153, 0.25);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.35);
}

.hud-pill--fps {
    background: rgba(14, 165, 233, 0.25);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.35);
}

.game-progress-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 9px 11px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 4px 0;
}

.game-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 6px;
}

.game-progress-bar {
    height: 7px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 99px;
    overflow: hidden;
}

.game-progress-fill {
    height: 100%;
    width: 84%;
    border-radius: 99px;
    background: linear-gradient(90deg, #ec4899, #06b6d4);
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.6);
}

.game-hud-footer {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    padding: 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    letter-spacing: 0.02em;
}

/* Floating Particles */
.hero__particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--gradient-bg);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 20s infinite;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(100px, -100px) scale(1.5);
        opacity: 0.6;
    }
}

/* Buttons with Modern Effects */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn--primary {
    background: var(--gradient-bg);
    color: var(--white);
    box-shadow: var(--shadow-glow);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

.btn--primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 60px rgba(102, 126, 234, 0.5);
}

.btn--secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn--secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-glow);
}

/* Section Styles with Scroll Animations */
section {
    padding: 120px 0;
    position: relative;
}

.section__title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

.section__subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about {
    background: var(--white);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gradient-bg), transparent);
}

.about__content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about__text {
    font-size: 1.125rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about__stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
}

.stat {
    text-align: center;
    position: relative;
}

.stat::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -2rem;
    width: 1px;
    height: 60%;
    background: var(--gradient-bg);
    transform: translateY(-50%);
}

.stat:last-child::after {
    display: none;
}

.stat__number {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    color: var(--primary-color);
    background-image: none;
    -webkit-text-fill-color: initial;
}

.stat__symbol {
    font-size: 2.5rem;
    font-weight: 900;
    margin-left: 0.5rem;
    letter-spacing: 0.07em;
    text-shadow: 0 0 1px var(--primary-color);
}

.stat__label {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Services Section with Glassmorphism */
.services {
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(102, 126, 234, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(118, 75, 162, 0.05) 0%, transparent 40%);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.service {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-md);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-bg);
    opacity: 0;
    transition: var(--transition-slow);
    z-index: -1;
}

.service:hover::before {
    opacity: 0.05;
}

.service:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(102, 126, 234, 0.3);
}

.service__icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-bg);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    box-shadow: var(--shadow-glow);
    transition: var(--transition-base);
}

.service:hover .service__icon {
    transform: rotateY(180deg);
}

.service__icon svg {
    width: 35px;
    height: 35px;
    color: var(--white);
    transition: var(--transition-base);
}

.service:hover .service__icon svg {
    transform: rotateY(-180deg);
}

.service__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    transition: var(--transition-base);
}

.service:hover .service__title {
    color: var(--primary-color);
}

.service__description {
    color: var(--text-light);
    line-height: 1.7;
}

/* Products Section */
.products {
    background: var(--white);
    position: relative;
}

.products__card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.products__card--four-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.product {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition-slow);
}

.product:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
}

/* 3D Design System - Spatial Card Layering */
.service, .product {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service__icon, .product__image {
    transform: var(--ds-3d-layer-2, translateZ(24px));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service__title, .product__title {
    transform: var(--ds-3d-layer-1, translateZ(16px));
}

.service__description, .product__description {
    transform: translateZ(10px);
}

.product__actions, .product__features {
    transform: var(--ds-3d-layer-2, translateZ(20px));
}

.service:hover .service__icon,
.product:hover .product__image {
    transform: var(--ds-3d-layer-3, translateZ(36px)) scale(1.04);
}

.product__image {
    background: var(--gradient-bg);
    padding: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product--deflatoken .product__image {
    background: linear-gradient(135deg, #0f766e 0%, #22c55e 100%);
}

.product__image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        transform: translate(-30%, -30%);
    }
    50% {
        transform: translate(30%, 30%);
    }
}

.product__icon-wrapper {
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px 10px rgba(255, 255, 255, 0.2);
    }
}

.product__icon-wrapper svg {
    width: 70px;
    height: 70px;
    color: var(--white);
}

.product__content {
    padding: 2.5rem;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.product__title {
    font-size: clamp(2rem, 2.5vw, 2.35rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    word-break: keep-all;
}

.product__description {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1.125rem;
}

.product__features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.product__feature {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1.5px solid rgba(102, 126, 234, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition-base);
}

.product__feature:hover {
    background: var(--gradient-bg);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.product__link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-base);
    padding: 1rem 2rem;
    border-radius: 50px;
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid var(--primary-color);
    height: 54px;
}

.product__link svg {
    width: 24px;
    height: 24px;
    transition: var(--transition-base);
}

.product__link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.product__link:hover svg {
    transform: translateX(5px);
}

.product__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.product__actions > .product__link,
.product__actions > .product__badge {
    flex: 1 1 12rem;
    min-width: 0;
    box-sizing: border-box;
    justify-content: center;
}

.product__link--disabled {
    cursor: default;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border-color: rgba(100, 116, 139, 0.35);
    background: rgba(100, 116, 139, 0.08);
}

.product__link--disabled:hover {
    color: var(--text-light);
    background: rgba(100, 116, 139, 0.08);
    transform: none;
    box-shadow: none;
}

.product__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--white);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: var(--transition-base);
    height: 54px;
}

.product__badge:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Contact form */
.contact {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 52%, #f8fafc 100%);
}

.contact__container {
    max-width: 1280px;
    margin: 0 auto;
}

.contact__container .contact__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: stretch;
    max-width: none;
    margin: 0;
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(99, 102, 241, 0.14);
    border-radius: 28px;
    box-shadow: var(--shadow-xl);
}

.contact__intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4.5rem);
    color: var(--white);
    background: linear-gradient(145deg, #312e81 0%, #4f46e5 55%, #7c3aed 100%);
}

.contact__eyebrow {
    margin-bottom: 1rem;
    color: #c7d2fe;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact__title {
    margin: 0 0 1rem;
    font-size: clamp(2.1rem, 4vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.contact__description {
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    line-height: 1.75;
}

.contact__direct {
    display: grid;
    gap: 0.35rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.contact__direct-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.contact__direct a {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    overflow-wrap: anywhere;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.contact__card {
    min-width: 0;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    background: var(--white);
}

.contact__form-title {
    margin: 0 0 0.35rem;
    color: var(--secondary-color);
    font-size: 1.5rem;
    line-height: 1.3;
}

.contact__form-description {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.contact__form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem 1rem;
}

.contact__field {
    display: grid;
    min-width: 0;
    gap: 0.5rem;
}

.contact__field:nth-child(n + 3),
.contact__submit,
.contact__note {
    grid-column: 1 / -1;
}

.contact__field label {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.contact__field input,
.contact__field textarea {
    width: 100%;
    min-height: 52px;
    padding: 0.8rem 0.9rem;
    color: var(--text-color);
    font: inherit;
    font-size: 1rem;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.contact__field input:focus,
.contact__field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
}

.contact__submit {
    justify-self: stretch;
    min-height: 54px;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.contact__note {
    margin: -0.25rem 0 0;
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.55;
}

@media (max-width: 800px) {
    .contact__container .contact__layout {
        grid-template-columns: 1fr;
        max-width: 620px;
    }

    .contact__intro {
        padding: clamp(1.75rem, 7vw, 3rem);
    }

    .contact__direct {
        margin-top: 1.5rem;
    }
}

@media (max-width: 520px) {
    .contact {
        padding: 4rem 0;
    }

    .contact__container .contact__layout {
        border-radius: 20px;
    }

    .contact__card {
        padding: 1.5rem 1.15rem;
    }

    .contact__form {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact__field,
    .contact__field:nth-child(n + 3),
    .contact__submit,
    .contact__note {
        grid-column: 1;
    }

    .contact__submit {
        width: 100%;
    }
}

/* Footer with Modern Design */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--white);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gradient-bg), transparent);
}

.footer__content {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer__logo-text {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    margin-bottom: 1rem;
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

.footer__text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.footer__social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer__social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer__social-link:hover {
    background: var(--gradient-bg);
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-glow);
    border-color: transparent;
}

.footer__social-link svg {
    width: 24px;
    height: 24px;
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.cookie-settings-trigger {
    margin: 0.75rem 0 0 1rem;
    padding: 0.25rem;
    color: rgba(255, 255, 255, 0.72);
    font: inherit;
    background: transparent;
    border: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.cookie-settings-trigger:hover,
.cookie-settings-trigger:focus-visible {
    color: var(--white);
}

.cookie-banner[hidden],
.cookie-banner__preferences[hidden],
.cookie-banner__button[hidden] {
    display: none;
}

.cookie-banner {
    position: fixed;
    z-index: 2000;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    left: max(1rem, env(safe-area-inset-left));
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.5rem 1.75rem;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    box-shadow: 0 18px 60px rgba(15, 23, 42, 0.35);
    font-size: 0.9rem;
}

.cookie-banner__content {
    min-width: 0;
    max-width: 690px;
}

.cookie-banner__title {
    margin: 0 0 0.4rem;
    color: var(--white);
    font-size: 1.125rem;
    line-height: 1.35;
}

.cookie-banner__description,
.cookie-banner__preference-row p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.55;
}

.cookie-banner__actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem;
}

.cookie-banner__button {
    min-height: 44px;
    padding: 0.65rem 0.95rem;
    color: var(--white);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.cookie-banner__button--secondary {
    background: rgba(255, 255, 255, 0.06);
}

.cookie-banner__button--secondary:hover {
    background: rgba(255, 255, 255, 0.14);
}

.cookie-banner__button--primary {
    background: #4f46e5;
    border-color: #818cf8;
}

.cookie-banner__button--primary:hover {
    background: #4338ca;
}

.cookie-banner__button:focus-visible,
.cookie-settings-trigger:focus-visible,
.cookie-banner__preference-row input:focus-visible {
    outline: 3px solid #a5b4fc;
    outline-offset: 3px;
}

.cookie-banner__preferences {
    display: grid;
    gap: 0.9rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.cookie-banner__preference-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-banner__preference-row strong {
    color: var(--white);
}

.cookie-banner__preference-row p {
    margin-top: 0.2rem;
    font-size: 0.85rem;
}

.cookie-banner__always-on {
    flex: 0 0 auto;
    color: #cbd5e1;
    font-size: 0.8rem;
}

.cookie-banner__preference-row input {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
    accent-color: #818cf8;
    cursor: pointer;
}

.cookie-banner__policy-link {
    width: fit-content;
    color: #c7d2fe;
    text-underline-offset: 3px;
}

@media (max-width: 760px) {
    .cookie-banner {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
    }

    .cookie-banner__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .cookie-banner__button {
        min-width: 0;
    }
}

@media (max-width: 420px) {
    .cookie-banner {
        right: max(0.5rem, env(safe-area-inset-right));
        bottom: max(0.5rem, env(safe-area-inset-bottom));
        left: max(0.5rem, env(safe-area-inset-left));
        max-height: calc(100dvh - 1rem);
        overflow-y: auto;
        padding: 1rem;
        border-radius: 16px;
        font-size: 0.85rem;
    }

    .cookie-banner__actions {
        grid-template-columns: 1fr;
    }

    .cookie-banner__button {
        width: 100%;
    }
}

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    filter: blur(10px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-100px) rotateY(-15deg);
    filter: blur(10px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-left.visible {
    opacity: 1;
    transform: translateX(0) rotateY(0);
    filter: blur(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(100px) rotateY(15deg);
    filter: blur(10px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-right.visible {
    opacity: 1;
    transform: translateX(0) rotateY(0);
    filter: blur(0);
}

.scroll-reveal-up {
    opacity: 0;
    transform: translateY(100px);
    filter: blur(10px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.7);
    filter: blur(10px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

.scroll-reveal-rotate {
    opacity: 0;
    transform: rotate(-15deg) translateY(60px) scale(0.9);
    filter: blur(10px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-rotate.visible {
    opacity: 1;
    transform: rotate(0) translateY(0) scale(1);
    filter: blur(0);
}

/* Responsive Design */
@media (min-width: 969px) and (max-width: 1180px) {
    .products__card--four-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero__visual {
        transform: scale(0.88);
        transform-origin: center right;
    }
}

@media (max-width: 968px) {
    .products__card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .products__card:not(.products__card--four-products) .product:last-child {
        grid-column: 1 / -1;
        width: calc(50% - 0.75rem);
        justify-self: center;
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero__image {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .hero__title {
        font-size: 3rem;
    }

    .hero__cta {
        justify-content: center;
    }

    .about__stats {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .stat::after {
        display: none;
    }

    .header:not(.menu-open) {
        background: rgba(255, 255, 255, 0.97) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1) !important;
        isolation: auto !important;
    }

    .header:has(.nav__menu.active),
    .header.menu-open {
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        border-bottom-color: transparent;
    }

    .header:has(.nav__menu.active)::before,
    .header.menu-open::before {
        opacity: 0 !important;
    }

    .nav__menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 5.5rem 1.5rem 2.5rem;
        gap: 0.85rem;
        justify-content: flex-start;
        align-items: center;
        z-index: 999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }

    .nav__menu.active {
        display: flex;
        animation: menuFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .nav__item {
        width: 100%;
        max-width: 300px;
        opacity: 0;
        transform: translateY(14px);
        transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav__menu.active .nav__item {
        opacity: 1;
        transform: translateY(0);
    }

    .nav__menu.active .nav__item:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav__menu.active .nav__item:nth-child(2) {
        transition-delay: 0.16s;
    }

    .nav__menu.active .nav__item:nth-child(3) {
        transition-delay: 0.22s;
    }

    .nav__menu.active .nav__item:nth-child(4) {
        transition-delay: 0.28s;
    }

    .nav__link {
        font-size: 1.05rem;
        font-weight: 600;
        padding: 0.85rem 1.5rem;
        background: rgba(102, 126, 234, 0.06);
        border: 1.5px solid rgba(102, 126, 234, 0.2);
        border-radius: 50px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        position: relative;
        color: var(--secondary-color);
        width: 100%;
        box-sizing: border-box;
    }

    .nav__link::before {
        display: none;
    }

    .nav__link:hover,
    .nav__link:active {
        background: var(--gradient-bg);
        color: var(--white);
        border-color: transparent;
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    }

    .nav__toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        top: 1rem !important;
        right: 1.25rem !important;
        z-index: 9999 !important;
        flex-shrink: 0;
        margin: 0;
    }

    .language-picker {
        position: fixed;
        top: 1.15rem;
        inset-inline-end: 5.25rem;
        z-index: 9999;
    }

    [dir="rtl"] .nav__toggle {
        right: auto !important;
        left: 1.25rem !important;
    }

    .hero {
        padding: 140px 0 80px;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1.125rem;
    }

    .section__title {
        font-size: 2.5rem;
    }

    .section__subtitle {
        font-size: 1.125rem;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .stat__number {
        font-size: 3rem;
    }

    .product__actions {
        justify-content: center;
    }

    .hero__3d-stage {
        max-width: 590px;
        height: 430px;
        margin: 0 auto;
    }

    .hero__visual {
        display: block;
        max-width: 590px;
        height: 430px;
        margin: 1.5rem auto 0;
        transform: scale(0.85);
        transform-origin: center center;
    }
}

@media (max-width: 640px) {
    .hero__3d-stage {
        width: 100%;
        max-width: 100%;
        height: 380px;
        border-radius: 18px;
    }

    .hero__3d-hud {
        padding: 8px 10px;
    }

    .hero__3d-models-pill {
        gap: 4px;
        padding: 3px;
    }

    .model-pill-btn {
        padding: 4px 8px;
        font-size: 0.67rem;
    }

    .hero__3d-hud--bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 8px 10px 10px;
    }

    .hero__3d-status {
        justify-content: center;
        font-size: 0.68rem;
    }

    .hero__3d-tools {
        justify-content: center;
    }

    .hero__3d-hint {
        bottom: 74px;
        font-size: 0.62rem;
    }

    .products__card {
        grid-template-columns: minmax(0, 1fr);
    }

    .products__card:not(.products__card--four-products) .product:last-child {
        grid-column: auto;
        width: 100%;
    }

    .product__title {
        font-size: 1.85rem;
        white-space: normal;
        word-break: normal;
    }

    .hero__visual {
        display: flex;
        flex-direction: row;
        gap: 1.15rem;
        width: 100%;
        max-width: 100%;
        height: auto;
        perspective: none;
        transform-style: flat;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0.5rem 0.5rem 1.25rem;
        margin: 1.5rem 0 0;
        scrollbar-width: none;
        box-sizing: border-box;
        transform: none !important;
    }

    .hero__visual::-webkit-scrollbar {
        display: none;
    }

    .hero__visual .hero__card {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 250px;
        min-width: 250px;
        height: 320px;
        scroll-snap-align: center;
        animation: none !important;
        transform: none !important;
        flex-shrink: 0;
        box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.45);
        opacity: 1 !important;
    }

    .hero__visual .hero__card:active {
        transform: scale(0.98) !important;
    }

    .hero__visual-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--text-light);
        margin-top: 0.6rem;
        letter-spacing: 0.02em;
        opacity: 0.85;
    }

    .hero__visual-dots {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-top: 0.65rem;
    }

    .visual-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(102, 126, 234, 0.25);
        border: none;
        padding: 0;
        cursor: pointer;
        transition: all 0.25s ease;
    }

    .visual-dot.active {
        width: 26px;
        border-radius: 12px;
        background: var(--gradient-bg);
        box-shadow: 0 0 10px rgba(102, 126, 234, 0.45);
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }

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

    .hero__cta .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
    }

    .stat__number {
        font-size: 2.5rem;
    }

    .service {
        padding: 2rem;
    }

    .product__content {
        padding: 2rem 1.5rem;
    }

    .product__title {
        font-size: 2rem;
    }

    .product__actions {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
        gap: 0.75rem;
    }

    .product__link {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        height: auto;
        min-height: 50px;
        box-sizing: border-box;
    }

    .product__badge {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
        height: auto;
        min-height: 50px;
        box-sizing: border-box;
    }
}

/* ==========================================================================
   Mobile refinements (additive: everything here is scoped to small screens
   or touch-only devices, so the desktop layout is untouched)
   ========================================================================== */
@media (max-width: 968px) {
    /* Product actions must keep their compact button height on every mobile
       layout, including stacked cards and cards with other action elements. */
    .product .product__actions > * {
        flex: 0 0 54px;
        height: 54px;
        min-height: 54px;
    }

    /* The page was wider than the screen (scroll-reveal offsets, hero grid), which
       widened the layout viewport on phones: the fixed menu button ended up off-screen
       and the hero text was cut off. Clip on <html> as well, not only on <body>. */
    html {
        overflow-x: hidden;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    body {
        max-width: 100%;
    }

    /* A grid track of `1fr` can't shrink below its content; let it shrink */
    .hero__container {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero__content,
    .hero__image {
        min-width: 0;
        max-width: 100%;
    }

    /* `.nav { padding: 1.25rem 0 }` overrode the container's side padding */
    .header .nav,
    .header.scrolled .nav {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Keep the fixed menu button vertically aligned with the logo */
    .nav__toggle {
        top: 1.15rem !important;
    }

    section {
        padding: 80px 0;
    }

    .hero {
        min-height: auto;
    }

    .section__subtitle {
        margin-bottom: 2.5rem;
    }

    .about__stats {
        margin-top: 2.5rem;
    }

    .service {
        padding: 2rem;
    }

    .product__image {
        padding: 3rem;
    }

    .product__content {
        padding: 2rem;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 120px 0 64px;
    }

    .hero__subtitle {
        font-size: 1.05rem;
        line-height: 1.7;
    }

    .hero__visual-hint {
        font-size: 0.75rem;
        text-align: center;
        padding: 0 0.5rem;
    }

    /* Bigger touch target for the carousel dots without changing how they look */
    .visual-dot {
        position: relative;
    }

    .visual-dot::after {
        content: '';
        position: absolute;
        inset: -10px -6px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 64px 0;
    }

    .section__title {
        font-size: 2rem;
    }

    .section__subtitle {
        font-size: 1rem;
    }

    .about__text {
        font-size: 1rem;
    }

    .about__stats {
        gap: 1.5rem 2.5rem;
    }

    .product__image {
        padding: 2.5rem;
    }

    .product__icon-wrapper {
        width: 110px;
        height: 110px;
    }

    .product__icon-wrapper svg {
        width: 56px;
        height: 56px;
    }

    .product__description {
        font-size: 1rem;
    }

    .footer__text {
        font-size: 1rem;
    }
}

/* Touch screens have no hover: stop the "sticky hover" lift/zoom after a tap */
@media (hover: none) {
    .service:hover,
    .product:hover,
    .product__feature:hover,
    .product__badge:hover,
    .footer__social-link:hover {
        transform: none;
    }

    .service:hover .service__icon,
    .service:hover .service__icon svg {
        transform: none;
    }

    .btn--primary:hover {
        transform: none;
    }
}

/* Fluid sizing for controls, type and icons across viewport sizes. */
:root {
    --fluid-control-font: clamp(0.875rem, calc(0.82rem + 0.25vw), 1rem);
    --fluid-control-height: clamp(44px, calc(42px + 0.75vw), 54px);
    --fluid-control-padding-x: clamp(0.85rem, calc(0.65rem + 1.5vw), 2rem);
    --fluid-control-padding-y: clamp(0.65rem, calc(0.55rem + 0.3vw), 0.9rem);
}

html {
    font-size: clamp(15px, calc(14px + 0.25vw), 17px);
}

body {
    font-size: clamp(0.9375rem, calc(0.9rem + 0.18vw), 1.0625rem);
}

.container {
    padding-inline: clamp(1rem, 4vw, 1.25rem);
}

section {
    padding-block: clamp(4rem, 8vw, 7.5rem);
}

.hero {
    padding-block-start: clamp(7.5rem, 14vw, 10rem);
    padding-block-end: clamp(4rem, 8vw, 6.25rem);
}

.hero__title {
    font-size: clamp(2rem, calc(1.25rem + 4vw), 4rem);
    line-height: 1.08;
}

.section__title {
    font-size: clamp(1.9rem, calc(1.25rem + 3vw), 3rem);
    line-height: 1.12;
}

.product__title {
    font-size: clamp(1.75rem, calc(1.25rem + 2.8vw), 2.5rem);
    line-height: 1.15;
}

.service__title {
    font-size: clamp(1.2rem, calc(1.05rem + 0.6vw), 1.5rem);
}

.hero__title,
.section__title,
.product__title,
.service__title {
    max-inline-size: 100%;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.hero__subtitle,
.section__subtitle,
.about__text,
.service__description,
.product__description,
.footer__text {
    font-size: clamp(1rem, calc(0.94rem + 0.3vw), 1.125rem);
    line-height: 1.7;
}

button:not(.visual-dot),
.btn,
.nav__link,
.language-toggle,
.language-option,
.product__link,
.product__badge,
.cookie-banner__button {
    max-inline-size: 100%;
    font-size: var(--fluid-control-font);
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
}

button:not(.visual-dot),
.btn,
.nav__link,
.language-toggle,
.language-option,
.product__link,
.product__badge,
.cookie-banner__button {
    min-block-size: var(--fluid-control-height);
}

.btn,
.product__link,
.product__badge,
.cookie-banner__button {
    padding-block: var(--fluid-control-padding-y);
    padding-inline: var(--fluid-control-padding-x);
}

.language-toggle {
    padding-block: var(--fluid-control-padding-y);
    padding-inline: clamp(0.65rem, calc(0.55rem + 0.7vw), 0.9rem);
}

.language-option {
    min-inline-size: 0;
    padding-block: clamp(0.65rem, calc(0.55rem + 0.2vw), 0.8rem);
    padding-inline: clamp(0.7rem, calc(0.6rem + 0.5vw), 0.95rem);
}

.language-menu {
    inline-size: max-content;
    min-inline-size: min(13.75rem, calc(100vw - 2rem));
    max-inline-size: calc(100vw - 2rem);
    min-width: min(13.75rem, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
}

.product__link,
.product__badge {
    block-size: auto;
    min-block-size: var(--fluid-control-height);
}

.product .product__actions > * {
    min-inline-size: 0;
    max-inline-size: 100%;
    overflow-wrap: anywhere;
}

.language-toggle__chevron,
button:not(.visual-dot) svg,
.btn svg,
.product__link svg,
.footer__social-link svg {
    inline-size: clamp(1rem, calc(0.9rem + 0.5vw), 1.5rem);
    block-size: auto;
    aspect-ratio: 1;
    flex: 0 0 auto;
}

.service__icon {
    inline-size: clamp(3.5rem, 10vw, 4.375rem);
    block-size: clamp(3.5rem, 10vw, 4.375rem);
    flex: 0 0 auto;
}

.service__icon svg {
    inline-size: clamp(1.5rem, 5vw, 2.1875rem);
    block-size: auto;
    aspect-ratio: 1;
}

.product__icon-wrapper {
    inline-size: clamp(6.5rem, 18vw, 8.75rem);
    block-size: clamp(6.5rem, 18vw, 8.75rem);
    flex: 0 0 auto;
}

.product__icon-wrapper svg {
    inline-size: clamp(3.5rem, 12vw, 4.375rem);
    block-size: auto;
    aspect-ratio: 1;
}

.route-icon-box,
.route-target-box {
    inline-size: clamp(1.75rem, 8vw, 2rem);
    block-size: clamp(1.75rem, 8vw, 2rem);
    flex: 0 0 auto;
}

.route-icon-box svg,
.route-target-box svg {
    inline-size: clamp(1rem, 4.5vw, 1.125rem);
    block-size: auto;
    aspect-ratio: 1;
}

.game-hud-icon {
    inline-size: clamp(1.875rem, 8.5vw, 2.125rem);
    block-size: clamp(1.875rem, 8.5vw, 2.125rem);
    flex: 0 0 auto;
}

.game-hud-icon svg {
    inline-size: clamp(1.125rem, 5vw, 1.25rem);
    block-size: auto;
    aspect-ratio: 1;
}

.card-info-title,
.metric-pill-val {
    font-size: clamp(0.85rem, calc(0.8rem + 0.3vw), 0.95rem);
}

.card-info-meta,
.metric-pill-label,
.code-terminal,
.hud-pill,
.game-progress-labels,
.game-hud-footer {
    font-size: clamp(0.62rem, calc(0.58rem + 0.18vw), 0.72rem);
}

.hero__visual-hint {
    font-size: clamp(0.72rem, calc(0.68rem + 0.25vw), 0.8rem);
}

.footer__social-link {
    inline-size: clamp(2.75rem, calc(2.5rem + 1vw), 3.125rem);
    block-size: clamp(2.75rem, calc(2.5rem + 1vw), 3.125rem);
    flex: 0 0 auto;
}

.nav__toggle {
    gap: clamp(3px, 0.5vw, 5px);
    padding: clamp(0.5rem, 1.2vw, 0.65rem);
}

.nav__toggle span {
    inline-size: clamp(1.25rem, 6vw, 1.5625rem);
    block-size: clamp(2px, 0.3vw, 3px);
}

@media (max-width: 968px) {
    .product .product__actions > * {
        flex: 0 1 auto;
        block-size: auto;
        min-block-size: var(--fluid-control-height);
    }
}

@media (max-width: 640px) {
    .hero__visual .hero__card {
        flex: 0 0 clamp(14rem, 70vw, 15.625rem);
        inline-size: clamp(14rem, 70vw, 15.625rem);
        min-inline-size: 0;
        block-size: auto;
        aspect-ratio: 25 / 32;
    }
}

/* Keep only three language choices in view; the rest stay reachable by scroll. */
.language-menu {
    block-size: calc(3 * var(--fluid-control-height) + 1.1rem);
    max-block-size: calc(100vh - 6rem);
    max-block-size: calc(100dvh - 6rem);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.55) transparent;
}

.language-menu::-webkit-scrollbar {
    width: 8px;
}

.language-menu::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.55);
    background-clip: padding-box;
}

.language-option {
    block-size: var(--fluid-control-height);
    min-block-size: var(--fluid-control-height);
    height: var(--fluid-control-height);
    min-height: var(--fluid-control-height);
    box-sizing: border-box;
    white-space: nowrap;
}

.language-option__flag {
    flex: 0 0 auto;
}

.language-option__name {
    min-inline-size: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header:has(#languageToggle[aria-expanded="true"]) {
    z-index: 2101;
}

@media (min-width: 1181px) {
    .products__card--four-products .product .product__actions > * {
        white-space: nowrap;
        overflow-wrap: normal;
    }
}

/* ============================================================
   3D DESIGN SYSTEM — SafeTec WebGL Viewport
   Appended: zero-regression progressive enhancement layer
   ============================================================ */

/* Utility */
.is-hidden {
    display: none !important;
}

/* -----------------------------------------------------------
   Hero 3D Wrapper & Mode Switch Tab Bar
   ----------------------------------------------------------- */
.hero__3d-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.hero__mode-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 auto 1.25rem auto;
    padding: 6px 8px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.94) 0%, rgba(30, 27, 75, 0.92) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 999px;
    width: fit-content;
    box-shadow: 
        0 10px 25px -4px rgba(15, 23, 42, 0.4),
        0 0 20px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    z-index: 10;
    position: relative;
}

.mode-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid transparent;
    color: #cbd5e1;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.mode-switch-btn:hover {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.mode-switch-btn.active {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #4338ca 100%);
    color: #ffffff;
    border-color: rgba(199, 210, 254, 0.45);
    box-shadow: 
        0 4px 16px rgba(99, 102, 241, 0.55),
        0 0 12px rgba(99, 102, 241, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    transform: none;
}

.mode-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: 0.88;
    color: currentColor;
    transition: all 0.2s ease;
}

.mode-switch-btn.active .mode-icon {
    opacity: 1;
    color: #ffffff;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.6));
}

/* -----------------------------------------------------------
   3D Stage (the main WebGL window frame)
   ----------------------------------------------------------- */
.hero__3d-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg,
        rgba(6, 9, 23, 0.88) 0%,
        rgba(15, 23, 60, 0.80) 60%,
        rgba(6, 9, 23, 0.88) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.12),
        0 24px 80px rgba(6, 182, 212, 0.15),
        0 20px 50px -10px rgba(15, 23, 42, 0.5),
        inset 0 0 60px rgba(99, 102, 241, 0.08);
}

/* Top HUD bar */
.hero__3d-hud {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    gap: 8px;
    z-index: 2;
    position: relative;
}

.hero__3d-hud--top {
    border-bottom: 1px solid rgba(99, 102, 241, 0.12);
    background: rgba(8, 12, 30, 0.55);
}

.hero__3d-hud--bottom {
    border-top: 1px solid rgba(99, 102, 241, 0.12);
    background: rgba(8, 12, 30, 0.55);
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 6px;
}

/* Model Pill Navigation */
.hero__3d-models-pill {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
    min-width: 0;
    max-width: 100%;
}

.model-pill-btn {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 5px;
    padding: 4px 10px 4px 7px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: rgba(148, 163, 184, 0.7);
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    white-space: nowrap;
}

.model-pill-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.model-pill-btn:hover {
    background: rgba(99, 102, 241, 0.18);
    color: #c7d2fe;
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.model-pill-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(6, 182, 212, 0.2));
    color: #e0e7ff;
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.35), 0 0 20px rgba(6, 182, 212, 0.1);
}

.model-pill-indicator {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.3);
    transition: background 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.model-pill-btn.active .model-pill-indicator {
    background: #818cf8;
    box-shadow: 0 0 6px #818cf8;
}

/* -----------------------------------------------------------
   Canvas Container — WebGL Surface
   ----------------------------------------------------------- */
.hero__3d-canvas-container {
    position: relative;
    width: 100%;
    height: 340px;
    flex: 1;
    cursor: grab;
    overflow: hidden;
}

.hero__3d-canvas-container:active {
    cursor: grabbing;
}

.hero__3d-canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    border: none;
    outline: none;
}

/* Radial ambient glow behind the model */
.hero__3d-ambient-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(99, 102, 241, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 30% 70%, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
    animation: ambientPulse 6s ease-in-out infinite alternate;
}

@keyframes ambientPulse {
    0%   { opacity: 0.7; }
    100% { opacity: 1; }
}

/* -----------------------------------------------------------
   Bottom HUD: Status Bar + Tool Buttons
   ----------------------------------------------------------- */
.hero__3d-status {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(148, 163, 184, 0.65);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.status-model-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero__3d-tools {
    display: flex;
    gap: 4px;
    align-items: center;
}

.tool-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: rgba(148, 163, 184, 0.6);
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    white-space: nowrap;
}

.tool-btn svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.tool-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #c7d2fe;
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.tool-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(6, 182, 212, 0.15));
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
}

.tool-btn__text {
    display: none;
}

/* Show text labels on wider viewports */
@media (min-width: 480px) {
    .tool-btn__text {
        display: inline;
    }
}

/* Status Pulse Dot */
.status-pulse {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulseDot 2s ease-in-out infinite;
}

.status-pulse--cyan {
    background: #06b6d4;
    box-shadow: 0 0 6px #06b6d4;
}

.status-pulse--green {
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.75); }
}

/* -----------------------------------------------------------
   Drag Hint Label
   ----------------------------------------------------------- */
.hero__3d-hint {
    text-align: center;
    padding: 5px 12px 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.64rem;
    color: rgba(99, 102, 241, 0.45);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    pointer-events: none;
    user-select: none;
}

/* -----------------------------------------------------------
   Grid corner scan-line decorations (cosmetic)
   ----------------------------------------------------------- */
.hero__3d-stage::before,
.hero__3d-stage::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 3;
}

.hero__3d-stage::before {
    top: 0;
    left: 0;
    border-top: 2px solid rgba(99, 102, 241, 0.5);
    border-left: 2px solid rgba(99, 102, 241, 0.5);
}

.hero__3d-stage::after {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid rgba(6, 182, 212, 0.5);
    border-right: 2px solid rgba(6, 182, 212, 0.5);
}

/* -----------------------------------------------------------
   3D Design Tokens — CSS Custom Properties for depth/light
   ----------------------------------------------------------- */
:root {
    --3d-perspective: 1200px;
    --3d-elevation-xs: 0 2px 8px rgba(99,102,241,0.15);
    --3d-elevation-sm: 0 4px 16px rgba(99,102,241,0.2), 0 1px 4px rgba(0,0,0,0.4);
    --3d-elevation-md: 0 8px 32px rgba(99,102,241,0.25), 0 2px 8px rgba(0,0,0,0.5);
    --3d-elevation-lg: 0 16px 64px rgba(99,102,241,0.3), 0 4px 16px rgba(0,0,0,0.6);
    --3d-glow-indigo: 0 0 20px rgba(99,102,241,0.4), 0 0 40px rgba(99,102,241,0.2);
    --3d-glow-cyan: 0 0 20px rgba(6,182,212,0.4), 0 0 40px rgba(6,182,212,0.15);
    --3d-surface-glass: rgba(15, 23, 42, 0.6);
    --3d-border-glow: rgba(99, 102, 241, 0.3);
    --3d-spatial-light-key: rgba(129, 140, 248, 0.9);
    --3d-spatial-light-fill: rgba(6, 182, 212, 0.7);
}

/* -----------------------------------------------------------
   Tilt-Card Utility: cards with 3D CSS perspective tilt
   ----------------------------------------------------------- */
.card-3d-tilt {
    perspective: var(--3d-perspective);
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
}

.card-3d-tilt:hover {
    transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateZ(12px);
    box-shadow: var(--3d-elevation-lg), var(--3d-glow-indigo);
}

/* Elevating hero cards in 3D-card mode */
#heroVisualCards.card-3d-enabled .hero__card {
    perspective: 800px;
    transform-style: preserve-3d;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.35s ease;
}

#heroVisualCards.card-3d-enabled .hero__card:hover {
    transform: translateZ(16px) rotateX(-4deg) rotateY(4deg) scale(1.02);
    box-shadow: var(--3d-elevation-lg), var(--3d-glow-indigo);
}

/* -----------------------------------------------------------
   Responsive: Mobile adjustments for 3D viewport
   ----------------------------------------------------------- */
@media (max-width: 767px) {
    .hero__3d-container {
        max-width: 100%;
    }

    .hero__3d-canvas-container {
        height: 280px;
    }

    .hero__mode-switch {
        border-radius: 12px 12px 0 0;
        padding: 5px 6px;
        gap: 4px;
    }

    .mode-switch-btn {
        padding: 6px 10px;
        font-size: 0.72rem;
        gap: 5px;
    }

    .model-pill-btn {
        font-size: 0.65rem;
        padding: 3px 8px 3px 6px;
    }

    .hero__3d-status {
        max-width: 140px;
        font-size: 0.62rem;
    }

    .tool-btn {
        padding: 4px 7px;
        font-size: 0.62rem;
    }
}

@media (max-width: 480px) {
    .hero__3d-canvas-container {
        height: 240px;
    }

    .hero__3d-models-pill {
        gap: 3px;
    }

    .model-pill-btn {
        font-size: 0.6rem;
        padding: 3px 6px 3px 5px;
    }

    .hero__3d-hint {
        font-size: 0.58rem;
    }
}

/* -----------------------------------------------------------
   Reduced-Motion: pause / simplify all 3D animations
   ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .hero__3d-ambient-glow {
        animation: none !important;
    }

    .status-pulse {
        animation: none !important;
    }

    .card-3d-tilt:hover,
    #heroVisualCards.card-3d-enabled .hero__card:hover {
        transform: none !important;
    }
}

