/* ==========================================
   BPDATA - Magic UI Style CSS
   Colors: Beige #E7D5BF, Blue #001A33
   Font: Gothic A1
   ========================================== */

/* Disable transitions during theme change */
.theme-transitioning,
.theme-transitioning *,
.theme-transitioning *::before,
.theme-transitioning *::after {
    transition: none !important;
}

/* CSS Variables */
:root {
    /* Brand colors */
    --color-beige: #E7D5BF;
    --color-dark-blue: #001223;
    --color-brand-blue: #001A33;

    /* Legacy aliases */
    --color-blue: #001A33;
    --color-blue-dark: #001223;
    --color-blue-light: #002244;

    /* Dark mode (default) */
    --color-bg: #001223;
    --color-bg-secondary: rgba(0, 26, 51, 0.5);
    --color-bg-card: linear-gradient(180deg, rgba(0, 26, 51, 0.5) 0%, rgba(0, 13, 26, 0.5) 100%);
    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-text-muted: rgba(255, 255, 255, 0.5);
    --color-text-faint: rgba(255, 255, 255, 0.3);
    --color-accent: #E7D5BF;
    --color-accent-hover: #d4c4a8;
    --color-border: rgba(231, 213, 191, 0.15);
    --color-border-hover: rgba(231, 213, 191, 0.3);
    --color-glow: rgba(231, 213, 191, 0.4);
    --color-btn-primary-bg: linear-gradient(135deg, #E7D5BF 0%, #d4c4a8 100%);
    --color-btn-primary-text: #001A33;
    --color-input-bg: rgba(0, 26, 51, 0.5);

    /* Legacy variables for compatibility */
    --color-white: #ffffff;
    --color-gray-100: rgba(255, 255, 255, 0.9);
    --color-gray-200: rgba(255, 255, 255, 0.7);
    --color-gray-300: rgba(255, 255, 255, 0.5);
    --color-gray-400: rgba(255, 255, 255, 0.3);
    --color-gray-500: rgba(255, 255, 255, 0.1);

    --gradient-primary: linear-gradient(135deg, var(--color-beige) 0%, #d4c4a8 100%);
    --gradient-text: linear-gradient(90deg, var(--color-beige) 0%, #fff 50%, var(--color-beige) 100%);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(231, 213, 191, 0.15);

    --radius-sm: 6px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 16px;
    --radius-btn: 8px;

    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    --font-family: 'Gothic A1', sans-serif;
}

/* Light Mode */
[data-theme="light"] {
    --color-bg: #F8F5F0;
    --color-bg-secondary: rgba(248, 245, 240, 0.5);
    --color-bg-card: rgba(248, 245, 240, 0.95);
    --color-text-primary: #001A33;
    --color-text-secondary: rgba(0, 26, 51, 0.75);
    --color-text-muted: rgba(0, 26, 51, 0.6);
    --color-text-faint: rgba(0, 26, 51, 0.4);
    --color-accent: #001A33;
    --color-accent-hover: #002244;
    --color-border: rgba(0, 26, 51, 0.12);
    --color-border-hover: rgba(0, 26, 51, 0.25);
    --color-glow: rgba(0, 26, 51, 0.15);
    --color-btn-primary-bg: linear-gradient(135deg, #001A33 0%, #002244 100%);
    --color-btn-primary-text: #ffffff;
    --color-input-bg: rgba(255, 255, 255, 0.9);

    /* Override legacy variables */
    --color-white: #001A33;
    --color-gray-100: rgba(0, 26, 51, 0.9);
    --color-gray-200: rgba(0, 26, 51, 0.65);
    --color-gray-300: rgba(0, 26, 51, 0.5);
    --color-gray-400: rgba(0, 26, 51, 0.35);
    --color-gray-500: rgba(0, 26, 51, 0.15);
    --color-beige: #001A33;

    --gradient-primary: linear-gradient(135deg, #001A33 0%, #002244 100%);
    --gradient-text: linear-gradient(90deg, #001A33 0%, #002244 50%, #001A33 100%);

    --shadow-sm: 0 2px 8px rgba(0, 26, 51, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 26, 51, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 26, 51, 0.1);
    --shadow-glow: 0 0 40px rgba(0, 26, 51, 0.06);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: clip;
    overflow-y: scroll;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
    position: relative;
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-gray-100);
    line-height: 1.6;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Page transition overlay via pseudo-element — starts opaque, JS fades it out.
   Defined in CSS (not JS) so the overlay exists before body renders, preventing flash. */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    z-index: 99999;
    pointer-events: all;
    opacity: 1;
    transition: opacity 0.4s ease, background-color var(--transition-normal);
}

body.page-ready::after {
    opacity: 0;
    pointer-events: none;
}

/* Lenis smooth scroll */
html.lenis {
    height: auto;
}

html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

/* ==========================================
   PARTICLE BACKGROUND
   ========================================== */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.particles canvas {
    width: 100%;
    height: 100%;
}

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

ul {
    list-style: none;
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    padding: 16px 24px;
    display: flex;
    justify-content: center;
    background: transparent;
    transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.navbar.scrolled {
    padding: 12px 24px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    padding: 12px 40px;
    background: var(--color-bg);
    border-radius: 12px;
    border: 1px solid transparent;
    box-sizing: border-box;
    transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                backdrop-filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled .nav-container {
    max-width: 960px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

[data-theme="light"] .navbar.scrolled .nav-container {
    background: rgba(248, 245, 240, 0.9);
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 24px;
    flex-shrink: 0;
}

.logo-img {
    height: 48px;
    width: auto;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-shrink: 0;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-gray-200);
    transition: var(--transition-fast);
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-beige);
    transition: var(--transition-normal);
}

[data-theme="light"] .nav-links li:not(.has-dropdown) > a::after {
    background: #001A33;
}

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

[data-theme="light"] .nav-links a:hover {
    color: #001A33 !important;
}

[data-theme="light"] .nav-links a {
    color: #001A33 !important;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.has-dropdown > a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.has-dropdown > a::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-beige);
    transition: width var(--transition-normal);
}

.has-dropdown > a:hover::before,
.has-dropdown > a.active::before {
    width: calc(100% - 12px);
}

.has-dropdown > a::after {
    content: '';
    position: static;
    display: block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    border-radius: 0;
    background: none;
    transform: translateY(-2px) rotate(45deg);
    transition: transform var(--transition-normal);
    flex-shrink: 0;
}

.has-dropdown:hover > a::after {
    width: 6px;
    height: 6px;
    transform: translateY(2px) rotate(-135deg);
}

[data-theme="light"] .has-dropdown > a::after {
    border-right-color: #001A33;
    border-bottom-color: #001A33;
}

.dropdown {
    position: fixed;
    top: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5em;
    padding: 12px;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 99999;
    max-width: calc(100vw - 32px);
}

[data-theme="light"] .dropdown {
    background: rgba(255, 255, 255, 0.85);
}

.dropdown.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dropdown-item {
    display: block;
    padding: 1.2em;
    border-radius: 12px;
    transition: var(--transition-normal);
    text-decoration: none;
    min-width: 200px;
}

.dropdown-item::after {
    display: none;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .dropdown-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.dropdown-title {
    display: block;
    font-weight: 600;
    font-size: 0.95em;
    color: var(--color-beige);
    margin-bottom: 0.4em;
}

[data-theme="light"] .dropdown-title {
    color: var(--color-dark);
}

.dropdown-desc {
    display: block;
    font-size: 0.8em;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

/* Products Dropdown - Footer-style glassmorphism */
.dropdown-products {
    grid-template-columns: 1fr;
    background: rgba(13, 33, 55, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(231, 213, 191, 0.15);
    min-width: 340px;
}

[data-theme="light"] .dropdown-products {
    background: rgba(245, 245, 247, 0.7);
    border: 1px solid rgba(0, 26, 51, 0.1);
}

.dropdown-item-product {
    display: block;
}

.dropdown-item-product:hover {
    background: rgba(231, 213, 191, 0.1);
}

[data-theme="light"] .dropdown-item-product:hover {
    background: rgba(0, 26, 51, 0.05);
}

/* Services Dropdown - 2 column grid */
.dropdown-services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: rgba(13, 33, 55, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(231, 213, 191, 0.15);
    min-width: 500px;
}

[data-theme="light"] .dropdown-services {
    background: rgba(245, 245, 247, 0.7);
    border: 1px solid rgba(0, 26, 51, 0.1);
}

.dropdown-item-service {
    display: block;
}

.dropdown-item-service:hover {
    background: rgba(231, 213, 191, 0.1);
}

[data-theme="light"] .dropdown-item-service:hover {
    background: rgba(0, 26, 51, 0.05);
}

/* Nav Actions Container */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-left: 24px;
}

/* Language Toggle */
.lang-toggle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-normal);
}

.lang-toggle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lang-toggle:hover {
    opacity: 0.8;
}

/* Theme Toggle Switch */
.theme-switch {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.theme-switch-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-switch-slider {
    position: relative;
    width: 44px;
    height: 22px;
    background: rgba(231, 213, 191, 0.15);
    border: 1px solid var(--color-border);
    border-radius: 11px;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
}

.theme-switch-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-beige);
    border-radius: 50%;
    transition: var(--transition-normal);
    z-index: 2;
}

.theme-switch-slider svg {
    width: 11px;
    height: 11px;
    transition: var(--transition-normal);
    z-index: 1;
    flex-shrink: 0;
}

.theme-switch-slider .theme-icon-moon {
    color: var(--color-beige);
    opacity: 0.6;
}

.theme-switch-slider .theme-icon-sun {
    stroke: var(--color-beige);
    opacity: 0.6;
}

/* Hover state */
.theme-switch:hover .theme-switch-slider {
    border-color: var(--color-border-hover);
    background: rgba(231, 213, 191, 0.2);
}

/* Light mode (checked state) */
.theme-switch-input:checked + .theme-switch-slider::before {
    left: calc(100% - 18px);
    background: var(--color-blue);
}

.theme-switch-input:checked + .theme-switch-slider {
    background: rgba(0, 26, 51, 0.1);
    border-color: rgba(0, 26, 51, 0.2);
}

.theme-switch-input:checked + .theme-switch-slider .theme-icon-moon {
    color: var(--color-blue);
}

.theme-switch-input:checked + .theme-switch-slider .theme-icon-sun {
    stroke: var(--color-blue);
}

[data-theme="light"] .theme-switch:hover .theme-switch-slider {
    background: rgba(0, 26, 51, 0.15);
    border-color: rgba(0, 26, 51, 0.3);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--color-beige);
    transition: var(--transition-fast);
}

/* Compact mode - disabled, hamburger menu only on mobile (768px) */

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 24px 11px;
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius-btn);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-normal);
    white-space: nowrap;
}

.btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    flex-shrink: 0;
}

/* Optikai korrekció ikonos gomboknál - a bal padding kompenzálja az ikont */
.btn:has(svg) {
    padding-left: 28px;
    padding-right: 20px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-blue);
    border-color: var(--color-beige);
    box-shadow: 0 0 20px rgba(231, 213, 191, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(231, 213, 191, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: transparent;
    color: var(--color-beige);
    border-color: var(--color-border-hover);
}

.btn-secondary:hover {
    background: rgba(231, 213, 191, 0.1);
    border-color: var(--color-beige);
}

.btn-lg {
    padding: 17px 28px 13px;
    font-size: 0.95rem;
}

.btn-lg:has(svg) {
    padding-left: 32px;
    padding-right: 24px;
}

.btn-sm {
    padding: 11px 16px 7px;
    font-size: 0.8rem;
}

.btn-sm:has(svg) {
    padding-left: 20px;
    padding-right: 14px;
}

.btn.full-width {
    width: 100%;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-top: 120px;
    overflow: visible;
    background: var(--color-bg);
}

.hero-glow {
    display: none;
}

.hero-grid {
    display: none;
}

.hero-container {
    text-align: center;
    padding: 20px 24px 40px;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 20;
    box-sizing: border-box;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(231, 213, 191, 0.1);
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-beige);
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    animation: heroBadgeReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

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

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-beige);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.badge-icon {
    width: 16px;
    height: 16px;
    fill: var(--color-beige);
    animation: pulse 2s infinite;
}

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

.hero-title {
    font-size: clamp(4rem, 9vw, 6.5rem);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 12px;
    padding-bottom: 5px;
    color: var(--color-white);
    letter-spacing: -0.02em;
    overflow: visible;
}

/* Hero title line-by-line reveal */
.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .line-inner {
    display: block;
    transform: translateY(110%);
    animation: heroLineReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title .line:nth-child(1) .line-inner {
    animation-delay: 0.3s;
}

.hero-title .line:nth-child(2) .line-inner {
    animation-delay: 0.45s;
}

@keyframes heroLineReveal {
    to {
        transform: translateY(0);
    }
}

.gradient-text {
    background: var(--gradient-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

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

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: rgba(255, 255, 255, 0.6);
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(30px);
    animation: heroSubtitleReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

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

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-cta .btn {
    opacity: 0;
    transform: translateY(30px);
    animation: heroCtaReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-cta .btn:nth-child(1) {
    animation-delay: 0.9s;
}

.hero-cta .btn:nth-child(2) {
    animation-delay: 1.05s;
}

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

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

/* Hero Screen */
.hero-screen-wrapper {
    position: relative;
    width: 100%;
    max-width: 1300px;
    margin: 60px auto -160px;
    padding: 0 24px;
    z-index: 10;
    overflow: visible;
    box-sizing: border-box;
}

/* Split curtain reveal container */
.hero-screen-border {
    position: relative;
    padding: 1px;
    border-radius: var(--radius-lg);
    background: linear-gradient(to bottom, rgba(231, 213, 191, 0.3) 0%, rgba(231, 213, 191, 0.3) 60%, transparent 100%);
    z-index: 1;
    overflow: visible;
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1),
                transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 80%);
    mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 80%);
}

.hero-screen-wrapper.revealed .hero-screen-border {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Image - inherits reveal from border */
.hero-screen-img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    border-radius: calc(var(--radius-lg) - 1px);
    z-index: 1;
}

/* Glow animation synced with reveal */
.hero-screen-glow {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180%;
    height: 140%;
    background: radial-gradient(
        ellipse 80% 70% at center,
        rgba(0, 82, 147, 0.5) 0%,
        rgba(0, 52, 94, 0.35) 35%,
        rgba(0, 52, 94, 0.15) 55%,
        transparent 75%
    );
    pointer-events: none;
    z-index: 0;
    filter: blur(50px);
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-screen-wrapper.revealed .hero-screen-glow {
    opacity: 1;
}

/* Add glowing animated border after reveal */
.hero-screen-wrapper.revealed .hero-screen-border {
    animation: heroGlowPulse 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

@keyframes heroGlowPulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(231, 213, 191, 0.1),
                    0 0 60px rgba(0, 82, 147, 0.1);
    }
    50% {
        box-shadow: 0 0 50px rgba(231, 213, 191, 0.2),
                    0 0 100px rgba(0, 82, 147, 0.15);
    }
}

.hero-screen-fade {
    display: none;
}


/* ==========================================
   STATEMENT SECTION (Palantir Style)
   ========================================== */
.statement-section {
    position: relative;
    padding: 0 0 60px;
    background: var(--color-bg);
    overflow: hidden;
    z-index: 15;
}

.about-hero:has(.chat-active) + .statement-section {
    padding-top: 70px;
}

.services-statement {
    padding: 80px 0 100px;
}

.services-intro-statement {
    padding-top: 120px;
}

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

.statement-text {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-text-secondary);
    letter-spacing: -0.02em;
}

.statement-mobile {
    display: none;
}

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

    .statement-mobile {
        display: block;
    }
}

/* Line reveal for statement - overrides word-by-word */
.statement-text.line-reveal {
    overflow: hidden;
}

.statement-text.line-reveal .line {
    display: block;
    overflow: hidden;
    margin-bottom: 0.1em;
}

.statement-text.line-reveal .line-inner {
    display: block;
    transform: translateY(110%);
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform;
    backface-visibility: hidden;
}

.statement-text.line-reveal.revealed .line-inner {
    transform: translateY(0);
}

.statement-text.line-reveal.revealed .line:nth-child(1) .line-inner { transition-delay: 0s; }
.statement-text.line-reveal.revealed .line:nth-child(2) .line-inner { transition-delay: 0.12s; }
.statement-text.line-reveal.revealed .line:nth-child(3) .line-inner { transition-delay: 0.24s; }
.statement-text.line-reveal.revealed .line:nth-child(4) .line-inner { transition-delay: 0.36s; }
.statement-text.line-reveal.revealed .line:nth-child(5) .line-inner { transition-delay: 0.48s; }

/* Story section statement - same as main statement */
.story-statement {
    margin-bottom: 24px;
}

.statement-highlight {
    color: var(--color-text-primary);
    font-weight: 600;
}

.statement-subtext {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--color-text-secondary);
    text-align: right;
    margin-top: 32px;
    max-width: 800px;
    margin-left: auto;
}

.statement-subtext .statement-highlight {
    color: var(--color-beige);
}

[data-theme="light"] .statement-text {
    color: rgba(0, 26, 51, 0.6);
}

[data-theme="light"] .statement-highlight {
    color: var(--color-blue);
}

[data-theme="light"] .statement-subtext .statement-highlight {
    color: var(--color-blue);
}

/* Statement with Image */
.statement-with-image {
    padding: 80px 0;
    background: var(--color-bg);
}

.statement-with-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.statement-with-image-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.statement-with-image-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 400;
    line-height: 1.35;
    color: var(--color-text-secondary);
    margin: 0;
}

.statement-with-image-title .statement-highlight {
    color: var(--color-text-primary);
    font-weight: 600;
}

.statement-with-image-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 0;
}

.statement-with-image-subtitle .statement-highlight {
    color: var(--color-beige);
    font-weight: 500;
}

.statement-with-image-visual {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.statement-with-image-visual img {
    width: 100%;
    height: auto;
    display: block;
}

[data-theme="light"] .statement-with-image-title .statement-highlight {
    color: var(--color-blue);
}

[data-theme="light"] .statement-with-image-subtitle .statement-highlight {
    color: var(--color-blue);
}

@media (max-width: 768px) {
    .statement-with-image {
        padding: 60px 0;
    }

    .statement-with-image-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .statement-with-image-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .statement-with-image-subtitle {
        font-size: 1rem;
    }
}

/* ==========================================
   TRUSTED BY / LOGO CAROUSEL
   ========================================== */
.trusted-by {
    padding: 60px 0;
    margin-top: -40px;
    position: relative;
    z-index: 5;
    opacity: 0;
    animation: trustedFadeIn 0.8s ease-out 0.8s forwards;
}

@keyframes trustedFadeIn {
    to {
        opacity: 1;
    }
}

.trusted-label {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-gray-300);
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo-carousel {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.logo-track {
    display: flex;
    gap: 120px;
    animation: scroll 25s linear infinite;
    width: max-content;
    will-change: transform;
    backface-visibility: hidden;
}

@keyframes scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(calc(-50% - 60px), 0, 0); }
}

.partner-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
}

.partner-logo img {
    height: 36px;
    width: auto;
    min-width: 100px;
    max-width: 160px;
    object-fit: contain;
}

[data-theme="light"] .partner-logo img {
    filter: invert(1);
}

.partner-logo img[alt="Indotek"] {
    height: 44px;
}

.partner-logo img[alt="Lipóti Pékség"] {
    height: 58px;
}

.partner-logo img[alt="MIB"] {
    height: 40px;
}

.partner-logo img[alt="MVM Zöldgeneráció"] {
    height: 28px;
}

/* ==========================================
   SECTION STYLES
   ========================================== */
section {
    padding: 60px 0;
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 24px;
}

.section-header.left-align {
    text-align: left;
}

.section-badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-beige);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 8px;
    line-height: 1;
    min-height: 0;
}

.section-title.split-text {
    line-height: 1;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-gray-200);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.3;
}

/* ==========================================
   SERVICES SECTION - 3x2 GRID
   ========================================== */
.services {
    background: var(--color-bg);
}

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

.service-card {
    background: #0d2137;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 28px;
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-border-hover);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.service-card__icon {
    display: none;
}

.service-card__icon i {
    font-size: 1.4rem;
    color: #fff;
}

.service-card__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.service-card__list {
    margin: 0 0 24px 0;
    padding: 0;
    list-style: none;
}

.service-card__list li {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    padding-left: 16px;
    position: relative;
    margin-bottom: 4px;
}

.service-card__list li::before {
    content: '↳';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-size: 1rem;
}

.service-card .btn.btn-secondary {
    margin-top: auto;
    width: 100%;
    justify-content: center;
}

/* Light theme */
[data-theme="light"] .service-card {
    background: #001A33;
    border: none;
}

[data-theme="light"] .service-card:hover {
    border-color: transparent;
    box-shadow: 0 12px 40px rgba(0, 26, 51, 0.3);
}

[data-theme="light"] .service-card__title {
    color: #ffffff;
}

[data-theme="light"] .service-card__list li {
    color: rgba(255, 255, 255, 0.75);
}

[data-theme="light"] .service-card .btn.btn-secondary {
    background: linear-gradient(135deg, #E7D5BF 0%, #d4c4a8 100%);
    color: #001A33;
    border-color: #E7D5BF;
}

[data-theme="light"] .service-card .btn.btn-secondary:hover {
    background: linear-gradient(135deg, #E7D5BF 0%, #d4c4a8 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(231, 213, 191, 0.4);
    border-color: #E7D5BF;
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 24px;
    }
}

/* ==========================================
   CASE STUDIES SECTION
   ========================================== */
.case-studies {
    background: var(--color-bg);
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.case-card {
    position: relative;
    background: #0d2137;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
    cursor: pointer;
}

.case-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
}

.case-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(231, 213, 191, 0.05) 0%, rgba(0, 26, 51, 0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--color-border);
}

.case-placeholder {
    width: 80px;
    height: 80px;
    opacity: 0.3;
}

.case-placeholder svg {
    width: 100%;
    height: 100%;
    stroke: var(--color-beige);
}

.case-content {
    padding: 24px;
}

.case-category {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(231, 213, 191, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-beige);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.case-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 8px;
}

.case-content p {
    font-size: 0.9rem;
    color: var(--color-gray-200);
}

.case-cta {
    text-align: center;
    margin-top: 48px;
}

[data-theme="light"] .case-cta .btn-secondary {
    background: linear-gradient(135deg, #001A33 0%, #002244 100%);
    color: #ffffff;
    border-color: #001A33;
    box-shadow: 0 0 20px rgba(0, 26, 51, 0.15);
}

[data-theme="light"] .case-cta .btn-secondary:hover {
    box-shadow: 0 0 30px rgba(0, 26, 51, 0.25);
}

/* ==========================================
   COMING SOON PAGE
   ========================================== */
.coming-soon-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 160px 0 80px;
    background: var(--color-bg);
}

.coming-soon-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    color: var(--color-white);
    margin: 24px 0;
    letter-spacing: -0.02em;
}

.coming-soon-text {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* ==========================================
   CASE STUDIES PAGE
   ========================================== */
.case-studies-hero {
    padding: 160px 0 40px;
    text-align: center;
    background: var(--color-bg);
}

.case-studies-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--color-white);
    margin: 16px 0;
    letter-spacing: -0.02em;
}

.case-studies-hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-gray-200);
    max-width: 600px;
    margin: 0 auto;
}

.case-studies-grid-section {
    padding: 40px 0 100px;
    background: var(--color-bg);
}

.case-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.case-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 100px;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: var(--font-family);
}

.case-filter-btn:hover {
    border-color: var(--color-border-hover);
    color: var(--color-white);
}

.case-filter-btn.active {
    background: var(--color-beige);
    border-color: var(--color-beige);
    color: var(--color-brand-blue);
}

[data-theme="light"] .case-filter-btn.active {
    background: var(--color-brand-blue);
    border-color: var(--color-brand-blue);
    color: #ffffff;
}

.case-filter-count {
    font-size: 0.75rem;
    opacity: 0.7;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.case-grid .blog-card {
    transition: all var(--transition-normal), opacity 0.3s ease, transform 0.3s ease;
}

.case-grid .blog-card.hidden {
    display: none;
}

/* ==========================================
   CASE STUDY ARTICLE PAGE
   ========================================== */
.case-study-article {
    background: var(--color-bg);
}

.case-study-hero {
    padding: 140px 0 40px;
    text-align: center;
}

.case-study-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.case-study-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.case-study-back:hover {
    color: var(--color-beige);
}

.case-study-category {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(231, 213, 191, 0.1);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-beige);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

[data-theme="light"] .case-study-category {
    background: rgba(0, 26, 51, 0.1);
    color: var(--color-brand-blue);
}

.case-study-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--color-white);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    line-height: 1.1;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.case-study-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto 24px;
    line-height: 1.5;
}

.case-study-author-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.case-study-author-name {
    color: var(--color-text-secondary);
}

.case-study-featured-image {
    width: 100%;
    height: 500px;
    margin-bottom: 60px;
    overflow: hidden;
    position: relative;
}

.case-study-featured-image-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.case-study-featured-image img {
    width: 100%;
    height: 130%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
}

.case-study-content {
    padding: 0 0 100px;
}

.case-study-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: start;
}

.case-study-main {
    max-width: 720px;
}

.case-study-section {
    margin-bottom: 0;
    padding: 40px 0;
}

.case-study-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 20px;
    letter-spacing: -0.01em;
}

.case-study-section p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin: 0 0 6px;
}

.case-study-section ul {
    list-style: none;
    padding: 0;
    margin: 0 0 6px;
}

.case-study-section ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.case-study-section ul li::before {
    content: '↳';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1rem;
    color: var(--color-beige);
}

[data-theme="light"] .case-study-section ul li::before {
    color: var(--color-brand-blue);
}

.case-study-section ul li strong {
    color: var(--color-white);
}

/* Highlight Box (Code Window Style) */
.highlight-box {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    margin: 14px 0;
    overflow: hidden;
}

.highlight-box-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #334155;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.highlight-box-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #64748b;
}

.highlight-box-title {
    margin-left: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.highlight-box-content {
    padding: 14px 20px 0;
}

.highlight-box-content ul {
    margin: 0;
}

.highlight-box-content ul li {
    color: rgba(255, 255, 255, 0.9);
}

.highlight-box-content ul li::before {
    color: #E7D5BF !important;
}

/* Light mode highlight box - darker style for better contrast */
[data-theme="light"] .highlight-box {
    background: #334155;
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .highlight-box-header {
    background: #1e293b;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .highlight-box-dot {
    background: #64748b;
}

[data-theme="light"] .highlight-box-dot:nth-child(2),
[data-theme="light"] .highlight-box-dot:nth-child(3) {
    background: #64748b;
}

[data-theme="light"] .highlight-box-title {
    color: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .highlight-box-content ul li {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .highlight-box-content ul li::before {
    color: rgba(255, 255, 255, 0.9) !important;
}

[data-theme="light"] .highlight-box-content ul li strong {
    color: rgba(255, 255, 255, 0.9);
}

/* Sidebar */
.case-study-sidebar {
    position: sticky;
    top: 100px;
}

.case-study-author-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: #0d2137;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

[data-theme="light"] .case-study-author-card {
    background: #ffffff;
    border-color: rgba(0, 26, 51, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.case-study-author-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #E7D5BF 0%, #d4c4a8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #001A33;
    flex-shrink: 0;
}

.case-study-author-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 4px;
}

.case-study-author-info p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin: 0;
}

.case-study-cta-card {
    padding: 28px;
    background: linear-gradient(135deg, rgba(231, 213, 191, 0.1) 0%, rgba(231, 213, 191, 0.05) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

[data-theme="light"] .case-study-cta-card {
    background: #ffffff;
    border-color: rgba(0, 26, 51, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.case-study-cta-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 12px;
}

.case-study-cta-card p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin: 0 0 20px;
    line-height: 1.5;
}

.case-study-cta-card .btn {
    width: 100%;
    justify-content: center;
}

/* ==========================================
   BLOG PAGE (legacy)
   ========================================== */
.blog-header {
    padding: 160px 0 60px;
    text-align: center;
    background: var(--color-bg);
}

.blog-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--color-white);
    margin: 16px 0;
}

.blog-subtitle {
    font-size: 1.1rem;
    color: var(--color-gray-200);
    max-width: 600px;
    margin: 0 auto;
}

.blog-filters {
    padding: 0 0 40px;
    background: var(--color-bg);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    color: var(--color-gray-200);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tag:hover {
    border-color: var(--color-beige);
    color: var(--color-beige);
}

.filter-tag.active {
    background: var(--color-beige);
    border-color: var(--color-beige);
    color: var(--color-blue);
}

.filter-count {
    font-size: 0.75rem;
    opacity: 0.7;
}

.blog-content {
    padding: 40px 0 100px;
    background: var(--color-bg);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.blog-card {
    background: #0d2137;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
}

.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-card-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(231, 213, 191, 0.05) 0%, rgba(0, 26, 51, 0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 24px;
}

.blog-card-category {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(231, 213, 191, 0.1);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-beige);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
    color: var(--color-beige);
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: var(--color-gray-200);
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-card-date {
    font-size: 0.8rem;
    color: var(--color-gray-300);
}

/* Light mode blog styles */
[data-theme="light"] .blog-title {
    color: var(--color-navy);
}

[data-theme="light"] .blog-card {
    background: #001A33;
    border: none;
}

[data-theme="light"] .blog-card-image {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.08) 100%);
}

[data-theme="light"] .blog-card-title {
    color: #ffffff;
}

[data-theme="light"] .blog-card:hover .blog-card-title {
    color: #E7D5BF;
}

[data-theme="light"] .blog-card-category {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

[data-theme="light"] .blog-card-excerpt {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .filter-tag {
    border-color: rgba(0, 26, 51, 0.2);
    color: var(--color-navy);
}

[data-theme="light"] .filter-tag:hover {
    border-color: var(--color-navy);
}

[data-theme="light"] .filter-tag.active {
    background: var(--color-navy);
    border-color: var(--color-navy);
    color: var(--color-white);
}

/* Responsive blog grid */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .filter-tags {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }

    .filter-tag {
        flex-shrink: 0;
    }
}

/* ==========================================
   TECH STACK SECTION
   ========================================== */
.tech-stack {
    background: var(--color-bg);
    padding-bottom: 35px;
}

/* Floating Tech Grid */
.tech-grid-floating {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-bottom: 5px;
    padding: 20px;
}

.tech-item-floating {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    min-width: 120px;
    transition: all 0.3s ease;
    animation: float 4s ease-in-out infinite;
    animation-delay: var(--float-delay, 0s);
}

.tech-item-floating:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(231, 213, 191, 0.3);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.tech-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.tech-item-floating:hover .tech-logo-img {
    transform: scale(1.1);
}

.tech-item-floating span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gray-200);
    text-align: center;
}

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

/* Light theme adjustments */
[data-theme="light"] .tech-item-floating {
    background: rgba(0, 26, 51, 0.03);
    border-color: rgba(0, 26, 51, 0.1);
}

[data-theme="light"] .tech-item-floating:hover {
    background: rgba(0, 26, 51, 0.08);
    border-color: rgba(0, 26, 51, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Legacy styles kept for compatibility */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 80px;
}

.tech-item {
    padding: 10px 20px;
    background: rgba(0, 26, 51, 0.5);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-btn);
    transition: var(--transition-normal);
}

.tech-item:hover {
    border-color: var(--color-beige);
    background: rgba(231, 213, 191, 0.1);
    transform: translateY(-2px);
}

.tech-icon {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-logo {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: #ffffff;
    transition: var(--transition-normal);
}

[data-theme="light"] .tech-logo {
    fill: #001A33;
}

.tech-icon span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-gray-100);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding: 48px;
    background: linear-gradient(180deg, rgba(231, 213, 191, 0.03) 0%, rgba(0, 26, 51, 0.5) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--color-beige);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-gray-200);
}

/* ==========================================
   STORY SECTION
   ========================================== */
.story {
    background: var(--color-bg);
    overflow: clip;
}

.story-content {
    max-width: 100%;
    overflow: clip;
}

.story-text {
    font-size: 1.1rem;
    color: var(--color-gray-200);
    margin-bottom: 24px;
    line-height: 1.8;
}

.story-cta {
    margin-top: 40px;
}

.story-cta .btn-primary {
    box-shadow: none;
}

.story-cta .btn-primary:hover {
    box-shadow: none;
}

/* Story Image Section with Parallax */
.story-image-section {
    width: 100%;
    overflow: hidden;
    background: var(--color-bg);
    position: relative;
}

.story-image-wrapper {
    width: 100%;
    height: 70vh;
    min-height: 400px;
    max-height: 700px;
    overflow: hidden;
    position: relative;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.story-image-wrapper.revealed {
    opacity: 1;
    transform: translateY(0);
}

.story-image-parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
    overflow: hidden;
}

.story-image {
    width: 100%;
    height: 130%;
    object-fit: cover;
    object-position: center;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact {
    background: var(--color-bg);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-text {
    font-size: 1.05rem;
    color: var(--color-gray-200);
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-gray-100);
}

.contact-item svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-beige);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(231, 213, 191, 0.1);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--color-gray-200);
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--color-beige);
    border-color: var(--color-beige);
}

.social-link:hover svg {
    fill: var(--color-blue);
}

/* Contact Banner */
.contact-banner {
    padding: 100px 0;
    border-bottom: 1px solid var(--color-border);
}

.contact-banner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-banner-headline {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--color-white);
    margin: 0;
}

.contact-banner-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-beige);
    margin: 0 0 12px;
}

.contact-banner-text {
    font-size: 1rem;
    color: var(--color-gray-200);
    margin: 0 0 24px;
    line-height: 1.6;
}

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

.btn-light:hover {
    background: transparent;
    color: var(--color-white);
}

/* Contact Form (careers page) */
.contact-form-wrapper {
    background: linear-gradient(180deg, rgba(0, 26, 51, 0.6) 0%, rgba(0, 13, 26, 0.6) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#application-form button[type="submit"] {
    align-self: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.turnstile-wrapper {
    display: flex;
    justify-content: center;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    font-family: var(--font-family);
    font-size: 0.95rem;
    color: var(--color-white);
    background: rgba(0, 26, 51, 0.5);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    outline: none;
}

.form-group input::placeholder,
.form-group select,
.form-group textarea::placeholder {
    color: var(--color-gray-300);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-beige);
    box-shadow: 0 0 20px rgba(231, 213, 191, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23E7D5BF' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group select option {
    background: var(--color-blue-dark);
    color: var(--color-white);
}

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

.checkbox-group {
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--color-beige);
    cursor: pointer;
    opacity: 0.6;
}

.checkbox-label input[type="checkbox"]:checked {
    opacity: 1;
}

.checkbox-text {
    color: var(--color-text-secondary);
}

.checkbox-text a {
    color: var(--color-beige);
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.checkbox-text a:hover {
    opacity: 0.8;
}

/* Form validation error styles */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #e07b6b;
}

.form-group.has-error input:focus,
.form-group.has-error select:focus,
.form-group.has-error textarea:focus {
    border-color: #e07b6b;
    box-shadow: 0 0 20px rgba(224, 123, 107, 0.15);
}

.form-error {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #e07b6b;
    line-height: 1.4;
}

.checkbox-group.has-error .checkbox-text {
    color: #e07b6b;
}

.file-upload.has-error .file-label {
    border-color: #e07b6b;
}

[data-theme="light"] .form-group.has-error input,
[data-theme="light"] .form-group.has-error select,
[data-theme="light"] .form-group.has-error textarea {
    border-color: #c45a4a;
}

[data-theme="light"] .form-group.has-error input:focus,
[data-theme="light"] .form-group.has-error select:focus,
[data-theme="light"] .form-group.has-error textarea:focus {
    border-color: #c45a4a;
    box-shadow: 0 0 20px rgba(196, 90, 74, 0.15);
}

[data-theme="light"] .form-error {
    color: #c45a4a;
}

[data-theme="light"] .checkbox-group.has-error .checkbox-text {
    color: #c45a4a;
}

[data-theme="light"] .file-upload.has-error .file-label {
    border-color: #c45a4a;
}

/* ==========================================
   LEGAL PAGES (Privacy Policy, Terms)
   ========================================== */
.legal-content {
    padding: 40px 0 100px;
    background: var(--color-bg);
}

.legal-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 48px;
}

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

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
}

.legal-section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text);
    margin-top: 24px;
    margin-bottom: 12px;
}

.legal-section p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

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

.legal-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 16px;
}

.legal-section ul li {
    position: relative;
    padding-left: 24px;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
}

.legal-section ul li::before {
    content: '↳';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1rem;
    color: var(--color-text-muted);
}

.legal-section ul li:last-child {
    margin-bottom: 0;
}

.legal-section a {
    color: var(--color-beige);
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.legal-section a:hover {
    opacity: 0.8;
}

/* ==========================================
   CAREERS PAGE
   ========================================== */
.careers-content {
    padding: 40px 0 80px;
    background: var(--color-bg);
}

.job-listings {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.job-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.job-card:hover {
    border-color: var(--color-border-hover);
}

.job-card.expanded {
    border-color: var(--color-beige);
}

.job-card-main {
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    cursor: pointer;
}

.job-card-header {
    flex: 1;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.job-type,
.job-location,
.job-department {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(231, 213, 191, 0.1);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-beige);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 8px;
}

.job-description {
    font-size: 0.95rem;
    color: var(--color-gray-200);
    line-height: 1.6;
}

/* Job Toggle Button */
.job-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-btn);
    color: var(--color-beige);
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.job-toggle:hover {
    background: var(--color-beige);
    border-color: var(--color-beige);
    color: var(--color-blue);
}

.job-toggle-icon {
    transition: transform 0.3s ease;
}

.job-card.expanded .job-toggle-icon {
    transform: rotate(180deg);
}

.job-card.expanded .job-toggle-text {
    display: none;
}

.job-card.expanded .job-toggle::before {
    content: 'Hide Details';
}

/* Job Details Accordion */
.job-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.job-card.expanded .job-details {
    max-height: 2000px;
}

.job-details-inner {
    padding: 0 32px 32px;
    border-top: 1px solid var(--color-border);
    margin-top: 0;
    padding-top: 32px;
}

.job-details-section {
    margin-bottom: 24px;
}

.job-details-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-beige);
    margin-bottom: 16px;
}

.job-details-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.job-details-section li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--color-gray-200);
    line-height: 1.6;
}

.job-details-section li::before {
    content: '↳';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1rem;
    color: var(--color-beige);
}

.job-details .btn {
    margin-top: 8px;
}

/* Careers Apply Section */
.careers-apply {
    padding: 80px 0 100px;
    background: var(--color-bg);
}

.apply-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.apply-text {
    font-size: 1.05rem;
    color: var(--color-gray-200);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* File Upload Styling */
.file-upload {
    position: relative;
}

.file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 24px 20px;
    background: rgba(0, 26, 51, 0.5);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-label:hover {
    border-color: var(--color-beige);
    background: rgba(231, 213, 191, 0.05);
}

.file-label svg {
    stroke: var(--color-beige);
}

.file-text {
    font-size: 0.9rem;
    color: var(--color-gray-200);
}

/* Light mode careers styles */
[data-theme="light"] .job-card {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 26, 51, 0.1);
}

[data-theme="light"] .job-card.expanded {
    border-color: var(--color-navy);
}

[data-theme="light"] .job-type,
[data-theme="light"] .job-location,
[data-theme="light"] .job-department {
    background: rgba(0, 26, 51, 0.08);
    color: var(--color-navy);
}

[data-theme="light"] .job-title {
    color: var(--color-navy);
}

[data-theme="light"] .job-toggle {
    border-color: rgba(0, 26, 51, 0.25);
    color: #001A33;
}

[data-theme="light"] .job-toggle:hover {
    background: rgba(0, 26, 51, 0.08);
    border-color: #001A33;
    color: #001A33;
}

[data-theme="light"] .job-details-section h4 {
    color: var(--color-navy);
}

[data-theme="light"] .job-details-section li::before {
    color: var(--color-navy);
}

[data-theme="light"] .file-label {
    background: rgba(0, 26, 51, 0.03);
    border-color: rgba(0, 26, 51, 0.2);
}

[data-theme="light"] .file-label:hover {
    border-color: var(--color-navy);
    background: rgba(0, 26, 51, 0.05);
}

[data-theme="light"] .file-label svg {
    stroke: var(--color-navy);
}

/* Responsive careers */
@media (max-width: 768px) {
    .careers-content {
        padding-bottom: 24px;
    }

    .careers-apply {
        padding-top: 24px;
    }

    .job-card-main {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .job-details-inner {
        padding: 24px 24px;
    }

    .apply-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: #0d2137;
    border-top: none;
    padding: 80px 0 40px;
    position: relative;
    z-index: 10;
}

[data-theme="light"] .contact-banner {
    border-bottom: none;
}

[data-theme="light"] .footer {
    background: #ECE6DC;
    border-top: none;
}

[data-theme="light"] .footer-column h4 {
    color: var(--color-text-primary);
}

[data-theme="light"] .footer-column a,
[data-theme="light"] .footer-brand p {
    color: var(--color-text-secondary);
}

[data-theme="light"] .footer-column a:hover {
    color: var(--color-text-primary);
}

[data-theme="light"] .footer-bottom {
    border-top-color: rgba(0, 26, 51, 0.1);
}

[data-theme="light"] .footer-bottom p {
    color: var(--color-text-muted);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 16px;
    display: block;
}

.footer-brand .logo .logo-img {
    height: 160px;
    width: auto;
}

.footer-brand p {
    font-size: 1.1rem;
    color: var(--color-gray-300);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--color-gray-300);
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.footer-column span {
    font-size: 0.9rem;
    color: var(--color-gray-300);
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-column h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    font-size: 0.9rem;
    color: var(--color-gray-300);
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--color-beige);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--color-gray-400);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    /* Prevent horizontal scroll on mobile */
    html {
        overflow-x: hidden !important;
    }

    body {
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative;
    }

    .container {
        padding: 0 16px;
        max-width: 100%;
    }

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

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 60px 0 32px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 48px;
        margin-bottom: 48px;
    }

    .footer-brand {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-brand .logo .logo-img {
        height: 120px;
    }

    .footer-brand p {
        font-size: 1rem;
        opacity: 0.8;
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 32px 48px;
        width: 100%;
        max-width: 600px;
    }

    .footer-column {
        text-align: center;
    }

    .footer-column h4 {
        font-size: 0.8rem;
        margin-bottom: 16px;
    }

    .footer-column ul {
        gap: 10px;
    }

    .footer-column a,
    .footer-column span {
        font-size: 0.85rem;
    }

    .footer-bottom {
        padding-top: 24px;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* Mobile navbar - hamburger menu only on mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .nav-actions .theme-switch {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .navbar,
    .navbar.scrolled {
        width: 100%;
        max-width: 100%;
        padding: 0;
        left: 0;
        right: 0;
        transition: none;
    }

    .nav-container,
    .navbar.scrolled .nav-container {
        width: 100%;
        max-width: 100%;
        padding: 12px 16px;
        background: var(--color-bg);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-radius: 0;
        border: none;
        box-sizing: border-box;
        transition: none;
    }
}

@media (max-width: 768px) {
    .hero-container {
        padding: 40px 16px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-screen {
        transform: none;
    }

    .case-studies-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        padding: 32px 16px;
    }

    .tech-grid-floating {
        gap: 16px;
        padding: 10px;
    }

    .tech-item-floating {
        padding: 16px 14px;
        min-width: 100px;
    }

    .tech-logo-img {
        width: 40px;
        height: 40px;
    }

    .tech-item-floating span {
        font-size: 0.75rem;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .contact-banner-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .contact-banner-headline {
        font-size: 2rem;
    }
}

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

    .section-header {
        margin-bottom: 16px;
    }

    .code-block {
        font-size: 0.7rem;
    }

    .terminal-output {
        font-size: 0.7rem;
    }
}

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

/* ==========================================
   AWWWARDS-STYLE SCROLL REVEAL ANIMATIONS
   Plus-Ex 15th Anniversary inspired
   ========================================== */

/* Smooth scrolling with custom easing */
html {
    scroll-behavior: smooth;
}

/* Lenis smooth scroll overrides */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

/* Base reveal states - elements start hidden */
[data-reveal] {
    opacity: 0;
    will-change: transform, opacity;
}

[data-reveal].revealed {
    opacity: 1;
}

/* Fade up animation */
[data-reveal="fade-up"] {
    transform: translateY(80px);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="fade-up"].revealed {
    transform: translateY(0);
}

/* Fade up with rotation */
[data-reveal="fade-up-rotate"] {
    transform: translateY(100px) rotate(3deg);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="fade-up-rotate"].revealed {
    transform: translateY(0) rotate(0deg);
}

/* Scale up animation */
[data-reveal="scale-up"] {
    transform: scale(0.85);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="scale-up"].revealed {
    transform: scale(1);
}

/* Slide from left */
[data-reveal="slide-left"] {
    transform: translateX(-100px);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="slide-left"].revealed {
    transform: translateX(0);
}

/* Slide from right */
[data-reveal="slide-right"] {
    transform: translateX(100px);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="slide-right"].revealed {
    transform: translateX(0);
}

/* Clip reveal - text slides in */
[data-reveal="clip-up"] {
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    transform: translateY(20px);
    transition: clip-path 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.01s;
}

[data-reveal="clip-up"].revealed {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: translateY(0);
    opacity: 1;
}

/* Blur reveal */
[data-reveal="blur"] {
    filter: blur(20px);
    transform: scale(1.05);
    transition: filter 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="blur"].revealed {
    filter: blur(0);
    transform: scale(1);
}

/* Split text character animation */
[data-reveal="split"] .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="split"].revealed .char {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   PLUS-EX STYLE CHAR-BY-CHAR TEXT REVEAL
   ========================================== */

/* Text split animation container */
.split-text {
    overflow: hidden;
}

.split-text .word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    line-height: 1.1;
}

.split-text .char {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1),
                opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.split-text.revealed .char {
    transform: translateY(0);
    opacity: 1;
}

/* Line-by-line text reveal - Plus-Ex style */
.line-reveal {
    overflow: hidden;
}

.line-reveal .line {
    display: block;
    overflow: hidden;
}

.line-reveal .line-inner {
    display: block;
    transform: translateY(110%);
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform;
    backface-visibility: hidden;
}

.line-reveal.revealed .line-inner {
    transform: translateY(0);
}

/* Staggered line delays */
.line-reveal.revealed .line:nth-child(1) .line-inner { transition-delay: 0s; }
.line-reveal.revealed .line:nth-child(2) .line-inner { transition-delay: 0.08s; }
.line-reveal.revealed .line:nth-child(3) .line-inner { transition-delay: 0.16s; }
.line-reveal.revealed .line:nth-child(4) .line-inner { transition-delay: 0.24s; }
.line-reveal.revealed .line:nth-child(5) .line-inner { transition-delay: 0.32s; }

/* ==========================================
   PLUS-EX STYLE IMAGE REVEAL
   ========================================== */

/* Image reveal with curtain/wipe effect */
.image-wipe-reveal {
    position: relative;
    overflow: hidden;
}

.image-wipe-reveal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-bg);
    z-index: 2;
    transform-origin: right;
    transform: scaleX(1);
    transition: transform 1.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.image-wipe-reveal.revealed::before {
    transform: scaleX(0);
}

.image-wipe-reveal img,
.image-wipe-reveal video {
    transform: scale(1.3);
    transition: transform 1.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.image-wipe-reveal.revealed img,
.image-wipe-reveal.revealed video {
    transform: scale(1);
}

/* Vertical wipe variant */
.image-wipe-reveal.vertical::before {
    transform-origin: bottom;
    transform: scaleY(1);
}

.image-wipe-reveal.vertical.revealed::before {
    transform: scaleY(0);
}

/* Image zoom on scroll */
.image-zoom-scroll {
    overflow: hidden;
}

.image-zoom-scroll img {
    transform: scale(1.2);
    transition: transform 0.1s linear;
    will-change: transform;
}

/* Parallax image container */
.parallax-img-container {
    overflow: hidden;
    position: relative;
}

.parallax-img-container img {
    position: relative;
    width: 100%;
    height: 120%;
    object-fit: cover;
    will-change: transform;
}

/* Stagger delays for children */
[data-reveal-stagger] > * {
    opacity: 0;
    transform: translateY(40px);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal-stagger].revealed > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
[data-reveal-stagger].revealed > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
[data-reveal-stagger].revealed > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
[data-reveal-stagger].revealed > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
[data-reveal-stagger].revealed > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
[data-reveal-stagger].revealed > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
[data-reveal-stagger].revealed > *:nth-child(7) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }
[data-reveal-stagger].revealed > *:nth-child(8) { transition-delay: 0.7s; opacity: 1; transform: translateY(0); }
[data-reveal-stagger].revealed > *:nth-child(9) { transition-delay: 0.8s; opacity: 1; transform: translateY(0); }
[data-reveal-stagger].revealed > *:nth-child(10) { transition-delay: 0.9s; opacity: 1; transform: translateY(0); }

/* Image reveal with mask */
[data-reveal="image-reveal"] {
    position: relative;
    overflow: hidden;
}

[data-reveal="image-reveal"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-bg);
    transform: scaleX(1);
    transform-origin: right;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

[data-reveal="image-reveal"].revealed::after {
    transform: scaleX(0);
}

[data-reveal="image-reveal"] img {
    transform: scale(1.3);
    transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="image-reveal"].revealed img {
    transform: scale(1);
}

/* Parallax scroll effect */
[data-parallax] {
    will-change: transform;
}

/* Magnetic hover effect for buttons and cards */
.magnetic {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}


/* Statement section word-by-word reveal */
.statement-text .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.statement-text.revealed .word {
    opacity: 1;
    transform: translateY(0);
}

/* Case card image zoom */
.case-card .case-image img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

/* Tech items wave animation */
.tech-grid [data-reveal-stagger].revealed .tech-item {
    animation: techWave 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes techWave {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Stats counter enhanced animation */
.stat-item {
    position: relative;
}

.stat-number {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

/* Smooth scroll progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-beige), var(--color-accent-hover));
    transform-origin: left;
    transform: scaleX(0);
    z-index: 9999;
    transition: none;
}

/* Section divider line animation */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
    transform: scaleX(0);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-divider.revealed {
    transform: scaleX(1);
}

/* Glowing border animation */
@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(231, 213, 191, 0.1);
    }
    50% {
        box-shadow: 0 0 40px rgba(231, 213, 191, 0.2);
    }
}

.product-card:hover {
    animation: glow-pulse 3s infinite;
}

/* Cursor follower styles */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 1px solid var(--color-beige);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, border-radius 0.3s ease;
    mix-blend-mode: difference;
}

.cursor-follower.hovering {
    width: 60px;
    height: 60px;
    border-color: var(--color-accent);
}

.cursor-follower.clicking {
    transform: scale(0.8);
}

/* Hide custom cursor on touch devices */
@media (hover: none) {
    .cursor-follower {
        display: none;
    }
}

/* ==========================================
   PLUS-EX STYLE HORIZONTAL SCROLL SECTION
   ========================================== */

.horizontal-scroll-section {
    position: relative;
    height: 300vh;
}

.horizontal-scroll-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.horizontal-scroll-track {
    display: flex;
    gap: 60px;
    padding: 0 100px;
    will-change: transform;
}

.horizontal-scroll-item {
    flex-shrink: 0;
    width: 600px;
}

/* ==========================================
   SECTION ENTRANCE ANIMATIONS
   ========================================== */

/* Full section fade */
.section-fade {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1),
                transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

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

/* Elastic bounce entrance */
[data-reveal="elastic"] {
    transform: translateY(150px) scale(0.8);
    transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

[data-reveal="elastic"].revealed {
    transform: translateY(0) scale(1);
}

/* Rotate in from below */
[data-reveal="rotate-up"] {
    transform: translateY(100px) rotateX(-15deg);
    transform-origin: bottom center;
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1),
                opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

[data-reveal="rotate-up"].revealed {
    transform: translateY(0) rotateX(0);
}

/* Skew entrance */
[data-reveal="skew-up"] {
    transform: translateY(80px) skewY(5deg);
    transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1),
                opacity 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

[data-reveal="skew-up"].revealed {
    transform: translateY(0) skewY(0);
}

/* ==========================================
   NUMBER/COUNTER REVEAL ANIMATION
   ========================================== */

.number-reveal {
    display: inline-block;
    overflow: hidden;
}

.number-reveal .digit {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.number-reveal.revealed .digit {
    transform: translateY(0);
}

/* Stagger digit delays */
.number-reveal.revealed .digit:nth-child(1) { transition-delay: 0s; }
.number-reveal.revealed .digit:nth-child(2) { transition-delay: 0.05s; }
.number-reveal.revealed .digit:nth-child(3) { transition-delay: 0.1s; }
.number-reveal.revealed .digit:nth-child(4) { transition-delay: 0.15s; }
.number-reveal.revealed .digit:nth-child(5) { transition-delay: 0.2s; }

/* ==========================================
   SMOOTH SCROLL VELOCITY EFFECTS
   ========================================== */

/* Elements that react to scroll velocity */
.velocity-scale {
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.velocity-skew {
    transition: transform 0.2s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Scroll-triggered background color transitions */
.bg-transition {
    transition: background-color 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* ==========================================
   MARQUEE / INFINITE SCROLL TEXT
   ========================================== */

.marquee {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: inline-flex;
    animation: marquee 20s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-item {
    padding: 0 60px;
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 600;
    color: var(--color-text-faint);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Reverse direction marquee */
.marquee.reverse .marquee-track {
    animation-direction: reverse;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    [data-reveal],
    [data-reveal] *,
    [data-parallax],
    .magnetic,
    .cursor-follower,
    .marquee-track {
        transition: none !important;
        transform: none !important;
        animation: none !important;
        opacity: 1 !important;
        filter: none !important;
        clip-path: none !important;
    }
}

/* ==========================================
   LIGHT MODE SPECIFIC OVERRIDES
   ========================================== */

/* Hero section */
[data-theme="light"] .hero-subtitle {
    color: rgba(0, 26, 51, 0.6);
}

/* Buttons */
[data-theme="light"] .btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    border-color: var(--color-blue);
    box-shadow: 0 0 20px rgba(0, 26, 51, 0.15);
}

[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 26, 51, 0.25);
}

[data-theme="light"] .btn-secondary {
    color: var(--color-blue);
    border-color: rgba(0, 26, 51, 0.25);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(0, 26, 51, 0.08);
    border-color: var(--color-blue);
}

/* Cards */
[data-theme="light"] .product-card {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 26, 51, 0.1);
}

[data-theme="light"] .case-card {
    background: #001A33;
    border: none;
}

[data-theme="light"] .case-image {
    background: linear-gradient(135deg, rgba(0, 26, 51, 0.03) 0%, rgba(0, 26, 51, 0.08) 100%);
}

[data-theme="light"] .tech-item {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 26, 51, 0.1);
}

[data-theme="light"] .stats-grid {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 26, 51, 0.1);
}

[data-theme="light"] .contact-form-wrapper {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 26, 51, 0.1);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
    background: rgba(255, 255, 255, 1);
    color: var(--color-blue);
    border-color: rgba(0, 26, 51, 0.15);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
    border-color: var(--color-blue);
    box-shadow: 0 0 20px rgba(0, 26, 51, 0.08);
}

[data-theme="light"] .form-group select option {
    background: #ffffff;
    color: var(--color-blue);
}


/* Logo color inversion for light mode */
[data-theme="light"] .logo-img {
    filter: brightness(0) saturate(100%) invert(8%) sepia(30%) saturate(2000%) hue-rotate(180deg) brightness(95%);
}

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


[data-theme="light"] .service-icon,
[data-theme="light"] .product-icon {
    background: rgba(0, 26, 51, 0.08);
}

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

[data-theme="light"] .social-link:hover {
    background: var(--color-blue);
}

[data-theme="light"] .social-link:hover svg {
    fill: #ffffff;
}

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

[data-theme="light"] .hero-screen-glow {
    background: radial-gradient(
        ellipse 80% 70% at center,
        rgba(0, 26, 51, 0.08) 0%,
        rgba(0, 26, 51, 0.04) 35%,
        rgba(0, 26, 51, 0.02) 55%,
        transparent 75%
    );
}

[data-theme="light"] .hero-screen-border {
    background: rgba(0, 26, 51, 0.2);
}

[data-theme="light"] .hero-screen-border::before {
    background: conic-gradient(
        from var(--border-angle, 0deg),
        transparent 0%,
        rgba(0, 26, 51, 0.2) 10%,
        rgba(0, 26, 51, 0.1) 20%,
        rgba(0, 26, 51, 0.2) 30%,
        transparent 40%
    );
}

[data-theme="light"] .hero-screen-border::after {
    background: conic-gradient(
        from var(--border-angle, 0deg),
        transparent 0%,
        rgba(0, 26, 51, 0.3) 10%,
        rgba(0, 26, 51, 0.15) 20%,
        rgba(0, 26, 51, 0.3) 30%,
        transparent 40%
    );
}

/* Light mode glow animation */
@keyframes glow-pulse-light {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 26, 51, 0.05);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 26, 51, 0.1);
    }
}

[data-theme="light"] .product-card:hover {
    animation: glow-pulse-light 3s infinite;
}

/* ==========================================
   RESPONSIVE DESIGN - Bootstrap Breakpoints
   1200px (xl), 992px (lg), 768px (md), 576px (sm)
   ========================================== */

/* Extra Large Devices (1200px and below) */
@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }

    .nav-container {
        padding: 12px 24px;
    }

    .nav-links {
        gap: 24px;
    }

    .hero-container {
        padding: 20px 24px 40px;
    }

    .hero-screen-wrapper {
        max-width: 900px;
    }

    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Statement */
    .statement-section {
        padding: 0 0 40px;
    }

}

/* Large Devices (992px and below) */
@media (max-width: 992px) {
    .container {
        max-width: 100%;
    }

    .nav-links {
        gap: 16px;
    }

    .navbar {
        padding: 0;
        margin-top: 12px;
    }

    .navbar.scrolled {
        padding: 0;
        margin-top: 0;
    }

    .nav-container {
        padding: 12px 16px;
        width: 100%;
        max-width: 100%;
    }

    .navbar.scrolled .nav-container {
        width: 100%;
        max-width: 100%;
        padding: 12px 16px;
        border-radius: 0;
    }

    .hero-title {
        font-size: clamp(2.5rem, 6vw, 3.5rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-subtitle br {
        display: none;
    }

    .hero-screen-wrapper {
        max-width: 100%;
        padding: 0 24px;
    }

    .hero-screen-border {
        border-radius: 12px;
    }

    /* Services Accordion */
    .service-title {
        font-size: 1.1rem;
    }

    .service-content-inner {
        padding: 20px 24px 24px;
    }

    /* Blog Grid */
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Case Studies Grid */
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-studies-hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    /* Case Study Article Page */
    .case-study-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .case-study-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .case-study-author-card {
        margin-bottom: 0;
    }

    /* Statement Section */
    .statement-text {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .statement-container {
        padding: 0 24px;
    }

    /* Tech Stack */
    .tech-grid-floating {
        justify-content: center;
        gap: 12px;
    }

    .tech-item-floating {
        padding: 14px 12px;
        min-width: 90px;
    }

    /* Contact Section */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info {
        text-align: center;
    }

    .contact-details {
        justify-content: center;
    }

    .section-header.left-align {
        text-align: center;
    }

    .section-header.left-align .section-badge {
        margin-left: auto;
        margin-right: auto;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-brand .logo .logo-img {
        height: 120px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px;
    }

    .footer-column {
        text-align: center;
    }

    /* Careers Page */
    .apply-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .apply-info {
        text-align: center;
    }

    /* Trusted By */
    .logo-track {
        gap: 60px;
    }

    .partner-logo img {
        height: 28px;
    }
}

/* Medium Devices (768px and below) */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .statement-container {
        padding: 0 16px;
    }

    /* Navigation */
    .navbar {
        padding: 0;
    }

    .navbar.scrolled {
        padding: 0;
    }

    .nav-container {
        padding: 10px 16px;
        width: 100%;
        max-width: 100%;
    }

    .navbar.scrolled .nav-container {
        width: 100%;
        max-width: 100%;
        padding: 10px 16px;
        border-radius: 0;
    }

    /* Hero Section */
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .hero-container {
        padding: 20px 16px;
    }

    .hero-badge {
        padding: 6px 12px;
        font-size: 0.7rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 9vw, 3.5rem);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
    }

    .hero-screen-wrapper {
        margin-top: 40px;
        padding: 0 16px;
    }

    .hero-screen-border {
        border-radius: 8px;
        padding: 2px;
    }

    .hero-screen-fade {
        height: 80px;
    }

    /* Trusted By */
    .trusted-by {
        margin-top: 60px;
        padding: 40px 0;
    }

    .trusted-label {
        font-size: 0.8rem;
        margin-bottom: 16px;
    }

    .logo-track {
        gap: 40px;
        animation-duration: 35s;
    }

    .partner-logo {
        padding: 0;
    }

    .partner-logo img {
        height: 24px;
    }

    /* Services Accordion */
    .service-header {
        padding: 20px 16px;
    }

    .service-number {
        font-size: 0.65rem;
        min-width: 36px;
    }

    .service-title {
        font-size: 1rem;
    }

    .service-content-inner {
        padding: 16px;
    }

    .service-list li {
        font-size: 0.9rem;
        padding-left: 20px;
    }

    /* Blog Grid / Case Studies */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .case-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .case-studies-hero {
        padding: 120px 0 30px;
    }

    .case-studies-hero-title {
        font-size: clamp(2.25rem, 8vw, 3rem);
    }

    .case-studies-hero-subtitle {
        font-size: 1rem;
    }

    .case-filter {
        gap: 8px;
        margin-bottom: 32px;
    }

    .case-filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    /* Case Study Article Page - Mobile */
    .case-study-hero {
        padding: 120px 0 30px;
    }

    .case-study-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .case-study-subtitle {
        font-size: 1rem;
    }

    .case-study-featured-image {
        height: 300px;
        margin-bottom: 40px;
    }

    .case-study-content {
        padding: 0 0 60px;
    }

    .case-study-sidebar {
        grid-template-columns: 1fr;
    }

    .case-study-section h2 {
        font-size: 1.4rem;
    }

    .case-study-section p,
    .case-study-section ul li {
        font-size: 1rem;
    }

    .highlight-box-header {
        padding: 10px 16px;
    }

    .highlight-box-dot {
        width: 10px;
        height: 10px;
    }

    .highlight-box-title {
        font-size: 0.75rem;
    }

    .highlight-box-content {
        padding: 16px;
    }

    .blog-card-image {
        height: 180px;
    }

    .blog-card-content {
        padding: 20px;
    }

    .blog-card-title {
        font-size: 1.1rem;
    }

    /* Statement */
    .statement-section {
        padding: 0 0 32px;
    }

    .statement-text {
        font-size: clamp(2.5rem, 10vw, 3rem);
    }

    /* Tech Stack */
    .tech-grid-floating {
        gap: 10px;
        padding: 8px;
        margin-bottom: 20px;
    }

    .tech-item-floating {
        padding: 12px 10px;
        min-width: 80px;
    }

    .tech-logo-img {
        width: 36px;
        height: 36px;
    }

    .tech-item-floating span {
        font-size: 0.7rem;
    }

    /* Contact */
    .contact-form-wrapper {
        padding: 24px 20px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .contact-item {
        font-size: 0.9rem;
    }

    /* Contact Banner */
    .contact-banner {
        padding: 60px 0;
    }

    /* Footer */
    .footer {
        padding: 48px 0 24px;
    }

    .footer-content {
        gap: 40px;
        margin-bottom: 32px;
    }

    .footer-brand .logo .logo-img {
        height: 100px;
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px 32px;
        max-width: 500px;
    }

    .footer-column h4 {
        font-size: 0.75rem;
        margin-bottom: 12px;
    }

    .footer-column ul {
        gap: 8px;
    }

    .footer-column a,
    .footer-column span {
        font-size: 0.8rem;
    }

    .footer-bottom {
        padding-top: 20px;
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }

    /* Careers Page */
    .blog-header {
        padding: 120px 0 40px;
    }

    .careers-content {
        padding: 40px 0 60px;
    }

    .careers-apply {
        padding: 60px 0;
    }

    .blog-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }

    .job-card-main {
        flex-direction: column;
        align-items: stretch;
    }

    .job-card-header {
        margin-bottom: 16px;
    }

    .job-meta {
        flex-wrap: wrap;
    }

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

    .job-details-inner {
        padding: 20px 16px;
    }

    .job-details-section {
        margin-bottom: 20px;
    }

    /* Coming Soon Page */
    .coming-soon-section {
        min-height: calc(100vh - 200px);
        padding: 120px 16px 60px;
    }

    .coming-soon-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }

    .coming-soon-text {
        font-size: 1rem;
    }
}

/* Small Devices (576px and below) */
@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }

    section {
        padding: 48px 0;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .section-badge {
        font-size: 0.65rem;
        padding: 5px 10px;
    }

    .section-title {
        font-size: clamp(1.5rem, 6vw, 1.75rem);
    }

    /* Trusted By */
    .trusted-by {
        margin-top: 80px;
        padding: 32px 0;
    }

    /* Hero */
    .hero {
        padding-top: 80px;
    }

    .hero-badge {
        font-size: 0.65rem;
        padding: 5px 10px;
    }

    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2rem);
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-cta .btn {
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    /* Buttons */
    .btn {
        padding: 13px 20px 9px;
        font-size: 0.85rem;
    }

    .btn-lg {
        padding: 15px 24px 11px;
        font-size: 0.9rem;
    }

    .btn-sm {
        padding: 10px 14px 6px;
        font-size: 0.75rem;
    }

    /* Services */
    .service-header {
        padding: 16px 12px;
        gap: 12px;
    }

    .service-number {
        display: none;
    }

    .service-toggle {
        width: 28px;
        height: 28px;
    }

    /* Statement */
    .statement-section {
        padding: 0 0 24px;
    }

    .statement-text {
        font-size: 2.2rem;
        line-height: 1.6;
    }

    .statement-subtext {
        font-size: 1rem;
        text-align: left;
        margin-top: 24px;
        max-width: none;
    }

    /* Tech Stack */
    .tech-item-floating {
        padding: 10px 8px;
        min-width: 70px;
    }

    .tech-logo-img {
        width: 32px;
        height: 32px;
    }

    .tech-item-floating span {
        font-size: 0.65rem;
    }

    /* Contact */
    .contact-form-wrapper {
        padding: 20px 16px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    /* Contact Banner */
    .contact-banner {
        padding: 48px 0;
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        gap: 32px;
        margin-bottom: 28px;
    }

    .footer-brand .logo .logo-img {
        height: 80px;
    }

    .footer-brand p {
        font-size: 0.9rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 28px;
        max-width: 200px;
    }

    .footer-column h4 {
        font-size: 0.7rem;
        margin-bottom: 10px;
        letter-spacing: 1.5px;
    }

    .footer-column ul {
        gap: 6px;
    }

    .footer-column a,
    .footer-column span {
        font-size: 0.8rem;
    }

    .footer-bottom {
        padding-top: 16px;
    }

    .footer-bottom p {
        font-size: 0.7rem;
    }

    /* Careers */
    .job-type,
    .job-location,
    .job-department {
        font-size: 0.65rem;
        padding: 4px 8px;
    }

    .job-title {
        font-size: 1.1rem;
    }

    .job-description {
        font-size: 0.85rem;
    }

    .file-label {
        padding: 16px;
    }

    .file-text {
        font-size: 0.8rem;
    }

    /* Careers Page */
    .careers-content {
        padding: 32px 0 48px;
    }

    .careers-apply {
        padding: 48px 0;
    }

    /* Blog header for subpages */
    .blog-header {
        padding: 100px 0 32px;
    }

    .blog-subtitle {
        font-size: 0.9rem;
    }
}

/* ==========================================
   OUR SOFTWARE SECTION (Palantir-style)
   ========================================== */
.our-software {
    padding: 120px 0;
    background: var(--color-bg);
    position: relative;
}

.software-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 48px;
}

.software-list {
    display: flex;
    flex-direction: column;
}

.software-item {
    display: grid;
    grid-template-columns: 280px 30vw 1fr;
    align-items: center;
    gap: 40px;
    padding: 48px 0;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.software-item-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.software-item-number {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-text-muted);
    font-family: var(--font-family);
}

.software-item-desc {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.software-item-icon {
    position: relative;
    width: 30vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.software-item-icon svg {
    width: 80px;
    height: 80px;
    fill: var(--color-text-faint);
    opacity: 0.5;
    transition: all var(--transition-normal);
}

.software-item:hover .software-item-icon svg {
    fill: var(--color-accent);
    opacity: 0.8;
}

/* Software item hover images - replaces icon on hover (1500px+ only) */
.software-item-hover-img {
    display: none;
}

@media (min-width: 1501px) {
    .software-item-hover-img {
        display: block;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.9);
        width: 100%;
        max-width: 400px;
        height: auto;
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        pointer-events: none;
        opacity: 0;
        /* GSAP handles animation */
    }

    .software-item-icon svg {
        transition: opacity 0.3s ease-out;
    }

    .software-item:hover .software-item-icon svg {
        opacity: 0;
    }
}

.software-item-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;
    color: var(--color-text-primary);
    letter-spacing: -0.03em;
    line-height: 1;
    text-align: left;
    justify-self: start;
    transition: color var(--transition-normal);
}

.software-item:hover .software-item-title {
    color: var(--color-accent);
}

/* Light mode adjustments */
[data-theme="light"] .software-item-icon svg {
    fill: var(--color-text-faint);
}

[data-theme="light"] .software-item:hover .software-item-icon svg {
    fill: var(--color-accent);
}

/* Our Software Responsive - below 1500px */
@media (max-width: 1500px) {
    .software-item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 40px 0;
        position: relative;
    }

    .software-item-left {
        order: 2;
        width: 100%;
    }

    .software-item-left .software-item-number {
        display: none;
    }

    .software-item-desc {
        font-size: 1rem;
    }

    .software-item-icon {
        display: none;
    }

    .software-item-title {
        order: 1;
        font-size: clamp(2.5rem, 8vw, 4rem);
        text-align: left;
    }

    .software-item::after {
        content: attr(data-number);
        position: absolute;
        top: 40px;
        right: 0;
        font-size: 0.9rem;
        color: var(--color-text-muted);
    }
}

@media (max-width: 992px) {
    .our-software {
        padding: 80px 0;
    }

    .software-container {
        padding: 0 24px;
    }

    .software-main-title {
        font-size: clamp(2rem, 6vw, 3rem);
        margin-bottom: 48px;
    }

    .software-item {
        padding: 32px 0;
    }

    .software-item-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .software-item::after {
        top: 32px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .our-software {
        padding: 48px 0;
    }

    .software-container {
        padding: 0 16px;
    }

    .software-main-title {
        font-size: 1.75rem;
        margin-bottom: 32px;
    }

    .software-item {
        padding: 24px 0;
        gap: 12px;
    }

    .software-item-title {
        font-size: 1.75rem;
        padding-right: 50px;
    }

    .software-item-desc {
        font-size: 0.9rem;
    }

    .software-item::after {
        top: 24px;
        font-size: 0.8rem;
    }
}

/* ========================================
   ABOUT PAGE - HERO
   ======================================== */

.about-hero {
    min-height: 100vh;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
}

.about-hero .hero-container {
    padding-bottom: 0;
    flex-shrink: 0;
}

.about-hero .hero-title {
    margin-bottom: 24px;
}

.about-hero .hero-subtitle {
    max-width: 500px;
    margin-bottom: 32px;
}

/* Chat wrapper - wraps around chat content */
.about-chat-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 24px;
    z-index: 10;
    box-sizing: border-box;
}

.about-chat-wrapper:has(.chat-active) {
    padding-bottom: 1em;
}

.about-chat-wrapper:has(.chat-active) .chat-interface {
    max-height: none;
}

.about-chat-glow {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180%;
    height: 140%;
    background: radial-gradient(
        ellipse 80% 70% at center,
        rgba(0, 82, 147, 0.5) 0%,
        rgba(0, 52, 94, 0.35) 35%,
        rgba(0, 52, 94, 0.15) 55%,
        transparent 75%
    );
    pointer-events: none;
    z-index: 0;
    filter: blur(50px);
}

.about-chat-fade {
    display: none;
}

/* Chat Interface - Modern Design */
.chat-interface {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 10;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 118px);
}

/* Outer glass wrapper for entire chat (messages + input) */
.chat-container-glass {
    display: flex;
    flex-direction: column;
    max-height: 100%;
    overflow: hidden;
}

/* Conversation Area (above input) */
.chat-conversation {
    display: none;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 4px;
}

/* Activated chat state - grows with content up to viewport minus padding */
.chat-container-glass.chat-active {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 20px;
    gap: 16px;
    max-height: calc(100vh - 2em);
}

.chat-container-glass.chat-active .chat-conversation {
    display: flex;
}

/* Snap to full height when content reaches 70vh threshold */
.chat-container-glass.chat-expanded {
    min-height: calc(100vh - 2em);
}

/* White glass input container */
.chat-input-area {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 28px 28px 32px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    animation: chatInputFadeIn 0.5s ease-out 1s both;
    overflow: hidden;
}

@keyframes chatInputFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Input row with text input + send button */
.chat-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 14px;
}

.chat-input-row input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    padding: 8px 0;
    color: #1e3a5f;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 400;
    outline: none;
    line-height: 1.5;
}

.chat-input-row input::placeholder {
    color: #94a3b8;
}

.chat-send-btn {
    background: #1e293b;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    background: #334155;
    transform: scale(1.05);
}

.chat-send-btn:active {
    transform: scale(0.95);
}

/* Suggestions inside white container */
.chat-suggestions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-suggestions-label {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
}

.chat-suggestion-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-pill:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}

/* Custom scrollbar for chat */
.chat-conversation::-webkit-scrollbar {
    width: 6px;
}

.chat-conversation::-webkit-scrollbar-track {
    background: transparent;
}

.chat-conversation::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
}

.chat-conversation::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Chat message animation */
@keyframes chatBubbleIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chat messages */
.chat-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: chatBubbleIn 0.4s ease-out forwards;
}

.chat-message-user {
    align-self: flex-end;
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-message-bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border-bottom-left-radius: 4px;
}

.chat-conversation .chat-message-bot {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.chat-avatar {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff 0%, #3B82F6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.chat-avatar svg {
    width: 18px;
    height: 18px;
}

/* Typing indicator */
.chat-typing .chat-message-text {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    animation: typing-bounce 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-bounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-6px);
    }
}


/* Light mode chat adjustments */
[data-theme="light"] .chat-container-glass.chat-active {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .chat-input-area {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .chat-message-bot {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

[data-theme="light"] .typing-dot {
    background: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .chat-conversation::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .chat-conversation::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .about-chat-glow {
    background: radial-gradient(ellipse, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
}


/* Team Section */
/* Team Section - Marquee Style */
.team-section {
    position: relative;
    padding: 60px 0 80px;
    overflow: hidden;
    background: var(--bg-primary);
}

.team-header {
    text-align: center;
    margin-bottom: 60px;
}

.team-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 16px;
}

.team-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
}

/* Marquee Container */
.team-marquee {
    overflow: hidden;
    width: 100%;
    position: relative;
    user-select: none;
}

.team-marquee-track {
    display: flex;
    gap: 24px;
    animation: team-marquee 60s linear infinite;
    width: max-content;
}

@keyframes team-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(var(--marquee-width, -50%));
    }
}

/* Team Card */
.team-card {
    flex: 0 0 320px;
    height: 480px;
    background: #0d2137;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: background 0.5s cubic-bezier(0.33, 1, 0.68, 1),
                border-color 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}

.team-card:hover {
    background: #ECE6DC;
    border-color: #ECE6DC;
}

[data-theme="light"] .team-card:hover {
    background: #CFC3B4;
    border-color: #CFC3B4;
}

.team-card:hover .team-card-name,
.team-card:hover .team-card-label,
.team-card:hover .team-card-value {
    color: #0d2137;
}

.team-card:hover .team-card-image img {
    filter: grayscale(0%);
}

.team-card:hover .team-card-row {
    border-color: rgba(13, 33, 55, 0.2);
}

.team-card:hover .team-card-info {
    max-height: 60px;
    opacity: 1;
    margin-top: 32px;
    margin-bottom: -12px;
}

.team-card-name {
    font-size: 1.75rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
    flex-shrink: 0;
    transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card-image {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-left: -16px;
    margin-right: -16px;
    margin-bottom: -16px;
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    filter: grayscale(100%);
    transition: filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card-info {
    flex-shrink: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-left: -16px;
    margin-right: -16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    transition: border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    text-align: right;
    transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Team responsive */
@media (max-width: 1024px) {
    .team-card {
        flex: 0 0 280px;
        padding: 20px;
    }

    .team-card-name {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .team-section {
        padding: 40px 0 60px;
    }

    .team-header {
        margin-bottom: 40px;
    }

    .team-marquee-track {
        gap: 16px;
        animation-duration: 45s;
    }

    .team-card {
        flex: 0 0 240px;
        height: 380px;
        padding: 16px;
        border-radius: 12px;
        background: #ECE6DC;
        border-color: #ECE6DC;
    }

    [data-theme="light"] .team-card {
        background: #CFC3B4;
        border-color: #CFC3B4;
    }

    .team-card-name,
    .team-card-label,
    .team-card-value {
        color: #0d2137;
    }

    .team-card-image img {
        filter: grayscale(0%);
    }

    .team-card-row {
        padding: 10px 10px;
        margin-left: -10px;
        margin-right: -10px;
        border-color: rgba(13, 33, 55, 0.2);
    }

    .team-card-info {
        max-height: 60px;
        opacity: 1;
        margin-top: 20px;
        margin-bottom: -8px;
    }

    .team-card-image {
        margin-left: -10px;
        margin-right: -10px;
        margin-bottom: -10px;
    }

    .team-card-label {
        font-size: 0.7rem;
    }

    .team-card-value {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .team-section {
        padding: 32px 0 48px;
    }

    .team-marquee-track {
        gap: 12px;
        animation-duration: 35s;
    }

    .team-card {
        flex: 0 0 200px;
        padding: 14px;
    }

    .team-card-name {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .team-card-image {
        margin-left: -8px;
        margin-right: -8px;
        margin-bottom: -8px;
        border-radius: 6px;
    }

    .team-card-row {
        padding: 10px 8px;
        margin-left: -8px;
        margin-right: -8px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .about-hero .hero-container {
        padding-bottom: 0;
    }

    .about-hero .hero-title {
        font-size: clamp(3rem, 10vw, 4rem);
    }

    .about-hero .hero-subtitle {
        font-size: 1.15rem;
    }

    .about-hero:not(:has(.chat-active)) {
        min-height: auto;
        padding-bottom: 72px;
    }

    .about-hero:has(.chat-active) + .statement-section {
        padding-top: 24px;
    }

    .about-chat-wrapper {
        padding: 0;
        margin: 0 auto;
    }

    .about-chat-wrapper:not(:has(.chat-active)) {
        margin-top: 24px;
    }

    .chat-container-glass {
        border-radius: 0;
    }

    .chat-container-glass:not(.chat-active) {
        margin: 0 16px;
    }

    .chat-container-glass.chat-active {
        padding: 16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        z-index: 20;
    }

    .chat-interface {
        gap: 20px;
    }

    .chat-input-area {
        padding: 12px 14px 16px;
        border-radius: 16px;
    }

    .chat-input-row {
        padding-bottom: 14px;
        margin-bottom: 14px;
    }

    .chat-input-row input {
        font-size: 1.15rem;
        padding: 8px 0;
    }

    .chat-send-btn {
        width: 44px;
        height: 44px;
    }

    .chat-send-btn svg {
        width: 20px;
        height: 20px;
    }

    .chat-suggestion-pills {
        gap: 10px;
    }

    .chat-pill {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

}

@media (max-width: 577px) {
    .chat-input-row input {
        font-size: 1.4rem;
    }

    .chat-suggestion-pills {
        gap: 12px;
    }

    .chat-pill {
        padding: 12px 22px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .about-hero .hero-subtitle {
        font-size: 1rem;
    }

    .about-hero .hero-subtitle br {
        display: none;
    }

    .chat-container-glass.chat-active {
        padding: 12px;
    }

    .chat-input-area {
        padding: 12px 14px 14px;
        border-radius: 14px;
    }

    .chat-input-row {
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .chat-input-row input {
        font-size: 0.95rem;
    }

    .chat-send-btn {
        width: 32px;
        height: 32px;
    }

    .chat-suggestions {
        gap: 8px;
    }

    .chat-suggestions-label {
        font-size: 0.75rem;
    }

    .chat-suggestion-pills {
        gap: 6px;
    }

    .chat-pill {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .chat-avatar {
        width: 24px;
        height: 24px;
    }

    .chat-avatar svg {
        width: 15px;
        height: 15px;
    }
}

/* ==========================================
   SERVICES PAGE - Alternating Layout
   ========================================== */

/* Services Hero */
.services-hero {
    min-height: auto;
}

.services-hero-image {
    margin: 80px auto 0;
    max-width: 1200px;
    padding: 0 24px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.services-hero-image.revealed {
    opacity: 1;
    transform: translateY(0);
}

.services-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.services-hero .hero-container {
    padding-bottom: 0;
}

.services-hero .hero-subtitle {
    margin-bottom: 0;
}

.services-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(231, 213, 191, 0.1);
    border: 1px solid rgba(231, 213, 191, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-beige);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

[data-theme="light"] .services-hero .hero-badge {
    background: rgba(0, 26, 51, 0.05);
    border-color: rgba(0, 26, 51, 0.15);
    color: var(--color-text-primary);
}

.services-hero .hero-badge .badge-icon {
    width: 16px;
    height: 16px;
}

.services-hero-title {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 28px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.services-hero-title .line {
    display: block;
    overflow: hidden;
}

.services-hero-title .line-inner {
    display: block;
    animation: lineReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.services-hero-title .line:nth-child(1) .line-inner {
    animation-delay: 0.3s;
}

.services-hero-title .line:nth-child(2) .line-inner {
    animation-delay: 0.45s;
}

.services-hero-subtitle {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

@keyframes lineReveal {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

/* Services Content Image */
.services-content-image {
    margin: 120px auto 0;
    max-width: 1200px;
    padding: 0 24px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.services-content-image.revealed {
    opacity: 1;
    transform: translateY(0);
}

.services-content-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* How It Works - Alternating Layout */
.how-it-works-alt {
    padding: 80px 0 0;
    background: var(--color-bg);
}

.how-it-works-alt > .container {
    margin-bottom: 60px;
}

.hiw-row {
    padding: 100px 0;
}

.hiw-row:nth-child(odd) {
    background: var(--color-bg);
}

.hiw-row:nth-child(even) {
    background: #0a1929;
}

[data-theme="light"] .hiw-row:nth-child(even) {
    background: #f5f2ed;
}

.hiw-row-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hiw-row-reverse .hiw-row-inner {
    direction: rtl;
}

.hiw-row-reverse .hiw-row-inner > * {
    direction: ltr;
}

.hiw-text {
    max-width: 540px;
}

.hiw-step {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-beige);
    letter-spacing: 2px;
    margin-bottom: 16px;
    opacity: 0.7;
}

[data-theme="light"] .hiw-step {
    color: #001A33;
}

.hiw-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 16px;
    line-height: 1.1;
}

.hiw-tagline {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-beige);
    margin: 0 0 16px;
    line-height: 1.4;
}

[data-theme="light"] .hiw-tagline {
    color: #001A33;
}

.hiw-desc {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin: 0 0 24px;
    line-height: 1.7;
}

.hiw-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hiw-list li {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    padding-left: 24px;
    position: relative;
    margin-bottom: 12px;
}

.hiw-list li::before {
    content: '↳';
    position: absolute;
    left: 0;
    color: var(--color-beige);
    font-size: 1rem;
}

[data-theme="light"] .hiw-list li::before {
    color: #001A33;
}

.hiw-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hiw-visual-box {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    background: rgba(231, 213, 191, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.hiw-visual-box svg {
    width: 100%;
    height: 100%;
    color: var(--color-beige);
}

[data-theme="light"] .hiw-visual-box {
    background: rgba(0, 26, 51, 0.03);
}

[data-theme="light"] .hiw-visual-box svg {
    color: #001A33;
}

/* HIW Visual Animations */
.hiw-visual-box {
    padding: 24px;
}

.hiw-pulse {
    animation: hiwPulse 3s ease-in-out infinite;
}

@keyframes hiwPulse {
    0%, 100% { opacity: 0.15; transform: scale(1); }
    50% { opacity: 0.25; transform: scale(1.05); }
}

.hiw-node {
    opacity: 0;
    animation: hiwNodeAppear 0.5s ease-out forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes hiwNodeAppear {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.hiw-line-animate {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: hiwLineDrawIn 1s ease-out forwards;
}

@keyframes hiwLineDrawIn {
    to { stroke-dashoffset: 0; }
}

.hiw-particle {
    opacity: 0;
}

.hiw-particle-1 {
    animation: hiwParticleMove1 4s ease-in-out infinite 1s;
}

.hiw-particle-2 {
    animation: hiwParticleMove2 4s ease-in-out infinite 2s;
}

.hiw-particle-3 {
    animation: hiwParticleMove3 4s ease-in-out infinite 3s;
}

@keyframes hiwParticleMove1 {
    0% { opacity: 0; transform: translate(140px, 50px); }
    10% { opacity: 1; }
    50% { opacity: 1; transform: translate(140px, 140px); }
    60% { opacity: 0; }
    100% { opacity: 0; transform: translate(140px, 230px); }
}

@keyframes hiwParticleMove2 {
    0% { opacity: 0; transform: translate(50px, 140px); }
    10% { opacity: 1; }
    50% { opacity: 1; transform: translate(140px, 140px); }
    60% { opacity: 0; }
    100% { opacity: 0; transform: translate(230px, 140px); }
}

@keyframes hiwParticleMove3 {
    0% { opacity: 0; transform: translate(80px, 80px); }
    10% { opacity: 1; }
    50% { opacity: 1; transform: translate(140px, 140px); }
    60% { opacity: 0; }
    100% { opacity: 0; transform: translate(200px, 200px); }
}

/* Bind SVG animations */
.hiw-stage {
    opacity: 0;
    animation: hiwStageIn 0.6s ease-out forwards;
    animation-delay: var(--delay, 0s);
}

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

.hiw-branch {
    opacity: 0;
    animation: hiwBranchIn 0.5s ease-out forwards;
    animation-delay: var(--delay, 0s);
}

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

.hiw-flow-line {
    stroke-dashoffset: 200;
    animation: hiwFlowMove 2s linear infinite;
}

@keyframes hiwFlowMove {
    to { stroke-dashoffset: 0; }
}

.hiw-packet {
    opacity: 0;
}

.hiw-packet-1 {
    animation: hiwPacketFlow 3s ease-in-out infinite 0.5s;
}

.hiw-packet-2 {
    animation: hiwPacketFlow 3s ease-in-out infinite 2s;
}

@keyframes hiwPacketFlow {
    0% { opacity: 0; transform: translate(50px, 140px); }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; transform: translate(230px, 140px); }
}

/* Operationalize SVG animations */
.hiw-metric {
    opacity: 0;
    animation: hiwMetricIn 0.6s ease-out forwards;
    animation-delay: var(--delay, 0s);
}

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

.hiw-bar {
    transform-origin: bottom;
    animation: hiwBarGrow 0.8s ease-out forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes hiwBarGrow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.hiw-trend-line {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: hiwTrendDraw 1.5s ease-out forwards 0.5s;
}

@keyframes hiwTrendDraw {
    to { stroke-dashoffset: 0; }
}

.hiw-trend-dot {
    opacity: 0;
    animation: hiwDotPop 0.3s ease-out forwards 1.8s;
}

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

.hiw-status {
    opacity: 0;
    animation: hiwStatusIn 0.5s ease-out forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes hiwStatusIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Process Timeline - Modern Vertical Layout */
/* How It Works - Palantir Style */
.process-section {
    padding: 120px 0 40px;
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.process-headline {
    font-family: 'Gothic A1', sans-serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 100px;
    line-height: 1;
    letter-spacing: -0.02em;
}

.process-blocks {
    display: flex;
    flex-direction: column;
    gap: 100px;
    margin-top: 80px;
}

.process-block:first-child .process-block-label {
    border-top: none;
    padding-top: 0;
}

.process-block {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.process-block-left {
    position: relative;
}

.process-block-label {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--color-text-muted);
    margin-bottom: 48px;
}

.process-block-name {
    font-family: 'Gothic A1', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text-primary);
}

.process-block-number {
    font-family: 'Gothic A1', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

.process-block-visual {
    max-width: 280px;
    color: var(--color-text-primary);
}

.process-block-visual svg {
    width: 100%;
    height: auto;
}

.process-block-right {
    padding-top: 20px;
}

.process-block-title {
    font-family: 'Gothic A1', sans-serif;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 16px;
    line-height: 1.25;
}

.process-block-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0 0 28px;
}

.process-block-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.process-block-list li {
    position: relative;
    padding-left: 28px;
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.process-block-list li:last-child {
    margin-bottom: 0;
}

.process-block-list li::before {
    content: '↳';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-text-muted);
    font-size: 1rem;
}

.process-cta {
    text-align: center;
    margin-top: 100px;
    position: relative;
    z-index: 1;
}

/* Process Section Responsive */
@media (max-width: 1024px) {
    .process-headline {
        margin-bottom: 80px;
    }

    .process-blocks {
        gap: 80px;
    }

    .process-block {
        gap: 48px;
    }

    .process-block-visual {
        max-width: 220px;
    }

    .process-block-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 992px) {
    .process-block-visual {
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    .process-section {
        padding: 80px 0 100px;
    }

    .process-headline {
        margin-bottom: 60px;
    }

    .process-blocks {
        gap: 64px;
    }

    .process-block {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .process-block-label {
        margin-bottom: 24px;
    }

    .process-block-visual {
        max-width: 380px;
    }

    .process-block-right {
        padding-top: 0;
    }

    .process-block-title {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }

    .process-block-list li {
        font-size: 0.95rem;
        padding-left: 24px;
    }

    .process-cta {
        margin-top: 60px;
    }
}

@media (max-width: 480px) {
    .process-headline {
        margin-bottom: 48px;
    }

    .process-blocks {
        gap: 48px;
    }

    .process-block-title {
        font-size: 1.35rem;
    }

    .process-block-list li {
        font-size: 0.9rem;
    }
}

/* How It Works - Timeline Layout (Legacy) */
.how-it-works-timeline {
    padding: 120px 0;
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.hiw-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.hiw-left {
    position: sticky;
    top: 120px;
    padding-right: 40px;
}

.hiw-headline {
    font-family: 'Gothic A1', sans-serif;
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 24px 0 20px;
    line-height: 1.15;
}

.hiw-intro {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0 0 16px;
}

.hiw-subtext {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin: 0 0 32px;
}

.hiw-left .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-icon-sparkle {
    width: 18px;
    height: 18px;
}

/* Timeline Right Column */
.hiw-right {
    position: relative;
}

.hiw-timeline {
    position: relative;
    padding-left: 0;
}

/* Vertical timeline line */
.hiw-timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-border), var(--color-beige) 20%, var(--color-beige) 80%, var(--color-border));
}

[data-theme="light"] .hiw-timeline::before {
    background: linear-gradient(to bottom, var(--color-border), #001A33 20%, #001A33 80%, var(--color-border));
}

/* Step Cards */
.hiw-step-card {
    position: relative;
    margin-bottom: 16px;
    padding-left: 64px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hiw-step-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.hiw-step-card:last-child {
    margin-bottom: 0;
}

/* Step Number Circle */
.hiw-step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    z-index: 1;
    transition: all 0.3s ease;
}

[data-theme="light"] .hiw-step-number {
    border-color: var(--color-border);
}

.hiw-step-card.expanded .hiw-step-number,
.hiw-step-card:hover .hiw-step-number {
    border-color: var(--color-beige);
    color: var(--color-text-primary);
}

[data-theme="light"] .hiw-step-card.expanded .hiw-step-number,
[data-theme="light"] .hiw-step-card:hover .hiw-step-number {
    border-color: #001A33;
    color: var(--color-text-primary);
}

/* Step Header */
.hiw-step-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(231, 213, 191, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-theme="light"] .hiw-step-header {
    background: rgba(0, 26, 51, 0.02);
}

.hiw-step-card:hover .hiw-step-header {
    border-color: var(--color-beige);
    background: rgba(231, 213, 191, 0.06);
}

[data-theme="light"] .hiw-step-card:hover .hiw-step-header {
    border-color: #001A33;
    background: rgba(0, 26, 51, 0.04);
}

.hiw-step-card.expanded .hiw-step-header {
    border-color: var(--color-beige);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
}

[data-theme="light"] .hiw-step-card.expanded .hiw-step-header {
    border-color: #001A33;
    border-bottom-color: transparent;
}

/* Step Info */
.hiw-step-info {
    flex: 1;
    min-width: 0;
}

.hiw-step-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hiw-step-preview {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Toggle Button */
.hiw-step-toggle {
    width: 32px;
    height: 32px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: transparent;
    color: var(--color-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.hiw-step-toggle:hover {
    border-color: var(--color-beige);
    color: var(--color-beige);
}

[data-theme="light"] .hiw-step-toggle:hover {
    border-color: #001A33;
    color: #001A33;
}

.hiw-step-toggle svg {
    transition: transform 0.3s ease;
}

.hiw-step-card.expanded .hiw-step-toggle svg {
    transform: rotate(45deg);
}

/* Step Content (Expandable) */
.hiw-step-content {
    max-height: 0;
    overflow: hidden;
    background: rgba(231, 213, 191, 0.03);
    border: 1px solid var(--color-beige);
    border-top: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 24px;
}

[data-theme="light"] .hiw-step-content {
    background: rgba(0, 26, 51, 0.02);
    border-color: #001A33;
}

.hiw-step-card.expanded .hiw-step-content {
    max-height: 400px;
    padding: 20px 24px 24px;
}

.hiw-step-content p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0 0 16px;
}

.hiw-step-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hiw-step-content ul li {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.hiw-step-content ul li::before {
    content: '↳';
    position: absolute;
    left: 0;
    color: var(--color-beige);
    font-size: 1rem;
}

[data-theme="light"] .hiw-step-content ul li::before {
    color: #001A33;
}

.hiw-step-content ul li:last-child {
    margin-bottom: 0;
}

/* Responsive - How It Works Timeline */
@media (max-width: 1024px) {
    .hiw-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hiw-left {
        position: static;
        padding-right: 0;
        text-align: center;
    }

    .hiw-left .section-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .hiw-headline {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .how-it-works-timeline {
        padding: 80px 0;
    }

    .hiw-step-card {
        padding-left: 48px;
    }

    .hiw-timeline::before {
        left: 16px;
    }

    .hiw-step-number {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .hiw-step-header {
        padding: 16px 20px;
    }

    .hiw-step-title {
        font-size: 1rem;
    }

    .hiw-step-preview {
        font-size: 0.85rem;
    }

    .hiw-step-card.expanded .hiw-step-content {
        padding: 16px 20px 20px;
    }
}

/* Build Statement - Section Divider */
.build-statement {
    padding: 100px 0;
    background: var(--color-bg);
}

.build-statement .container {
    max-width: 1200px;
    padding: 0 24px;
}

.build-statement-text {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-text-secondary);
    letter-spacing: -0.02em;
}

.build-statement-highlight {
    color: var(--color-beige);
    font-weight: 600;
}

/* Service Cards - Stacking Layout */
.service-cards-section {
    padding: 80px 0 0;
    position: relative;
}

.service-cards-header {
    margin-bottom: 60px;
}

.service-cards-stack {
    position: relative;
}

.service-card-sticky {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    border-radius: 24px;
    will-change: transform, clip-path;
    transform-origin: center top;
    clip-path: inset(100% 0 0 0);
}

.service-card-sticky[data-card="1"] {
    position: relative;
    clip-path: none;
}

.service-card-sticky[data-card="1"] { z-index: 1; }
.service-card-sticky[data-card="2"] { z-index: 2; }
.service-card-sticky[data-card="3"] { z-index: 3; }
.service-card-sticky[data-card="4"] { z-index: 4; }
.service-card-sticky[data-card="5"] { z-index: 5; }
.service-card-sticky[data-card="6"] { z-index: 6; }

.service-card-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 60px;
    padding: 64px;
    border-radius: 24px;
    min-height: 500px;
    align-items: start;
}

/* Alternating card backgrounds */
.service-card-sticky[data-card="1"] .service-card-inner { background: #162a43; }
.service-card-sticky[data-card="2"] .service-card-inner { background: var(--color-brand-blue); }
.service-card-sticky[data-card="3"] .service-card-inner { background: #162a43; }
.service-card-sticky[data-card="4"] .service-card-inner { background: var(--color-brand-blue); }
.service-card-sticky[data-card="5"] .service-card-inner { background: #162a43; }
.service-card-sticky[data-card="6"] .service-card-inner { background: var(--color-brand-blue); }

[data-theme="light"] .service-card-sticky[data-card="1"] .service-card-inner { background: #f0f0f0; }
[data-theme="light"] .service-card-sticky[data-card="2"] .service-card-inner { background: #e5e5e5; }
[data-theme="light"] .service-card-sticky[data-card="3"] .service-card-inner { background: #f0f0f0; }
[data-theme="light"] .service-card-sticky[data-card="4"] .service-card-inner { background: #e5e5e5; }
[data-theme="light"] .service-card-sticky[data-card="5"] .service-card-inner { background: #f0f0f0; }
[data-theme="light"] .service-card-sticky[data-card="6"] .service-card-inner { background: #e5e5e5; }

.service-card-number {
    font-size: clamp(5rem, 12vw, 8rem);
    font-weight: 200;
    color: var(--color-beige);
    line-height: 0.85;
    letter-spacing: -0.04em;
    opacity: 0.3;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

[data-theme="light"] .service-card-number {
    color: #001A33;
    opacity: 0.15;
}

.service-card-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-card-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
    line-height: 1.2;
}

.service-card-tagline {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-beige);
    margin: 0;
}

[data-theme="light"] .service-card-tagline {
    color: #001A33;
    opacity: 0.7;
}

.service-card-desc {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0;
    max-width: 600px;
}

.service-card-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

.service-card-highlights li {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    padding: 8px 16px;
    background: rgba(231, 213, 191, 0.1);
    border: 1px solid var(--color-border);
    border-radius: 100px;
}

[data-theme="light"] .service-card-highlights li {
    background: rgba(0, 26, 51, 0.05);
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-beige);
    text-decoration: none;
    margin-top: 8px;
    transition: var(--transition-normal);
}

.service-card-link:hover {
    gap: 12px;
}

.service-card-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.service-card-link:hover svg {
    transform: translateX(4px);
}

[data-theme="light"] .service-card-link {
    color: #001A33;
}

/* Service Cards Responsive */
@media (max-width: 1024px) {
    .service-card-inner {
        gap: 32px;
        padding: 40px;
        min-height: 350px;
    }

    .service-card-number {
        font-size: clamp(4rem, 10vw, 6rem);
    }
}

@media (max-width: 768px) {
    .service-cards-section {
        padding: 60px 0 0;
    }

    .service-cards-stack {
        gap: 16px;
        padding-bottom: 10vh;
    }

    .service-card-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px;
        min-height: auto;
    }

    .service-card-number {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 3.5rem;
        opacity: 0.2;
    }

    .service-card-title {
        font-size: 1.5rem;
    }

    .service-card-highlights {
        gap: 8px;
    }

    .service-card-highlights li {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .service-card-inner {
        padding: 24px;
        border-radius: 16px;
    }

    .service-card-sticky {
        border-radius: 16px;
    }

    .service-card-number {
        font-size: 2.5rem;
    }

    .service-card-title {
        font-size: 1.25rem;
    }

    .service-card-tagline {
        font-size: 0.9rem;
    }

    .service-card-desc {
        font-size: 0.9rem;
    }
}

/* ==========================================
   Service Accordion - Enroute.health Style
   ========================================== */
.service-accordion-section {
    padding: 40px 0 120px;
    position: relative;
    background: var(--color-background-primary);
}

.service-accordion-header {
    margin-bottom: 60px;
}

.service-accordion {
    display: flex;
    flex-direction: column;
}

/* Accordion Item */
.service-accordion-item {
    border-bottom: 1px solid var(--color-border);
}

.service-accordion-item:first-child {
    border-top: 1px solid var(--color-border);
}

/* Trigger Button */
.service-accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.service-accordion-trigger:hover {
    opacity: 0.8;
}

.service-accordion-trigger-content {
    flex: 1;
}

.service-accordion-tagline {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.service-accordion-title {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.service-accordion-number {
    font-weight: 400;
    opacity: 0.6;
    margin-right: 16px;
}

/* Arrow */
.service-accordion-arrow {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-accordion-arrow svg {
    width: 32px;
    height: 32px;
    color: var(--color-text-primary);
}

.service-accordion-item.active .service-accordion-arrow {
    transform: rotate(180deg);
}

/* Panel */
.service-accordion-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-accordion-panel > div {
    overflow: hidden;
}

.service-accordion-item.active .service-accordion-panel {
    grid-template-rows: 1fr;
}

/* Card inside panel */
.service-accordion-card {
    background: var(--color-beige);
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 400px;
}

[data-theme="light"] .service-accordion-card {
    background: var(--color-brand-blue);
}

[data-theme="light"] .service-accordion-intro {
    color: #ffffff;
}

[data-theme="light"] .service-accordion-column-title {
    color: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .service-accordion-list li {
    color: #ffffff;
}

[data-theme="light"] .service-accordion-list li::before {
    color: rgba(255, 255, 255, 0.35);
}

[data-theme="light"] .service-tag {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

[data-theme="light"] .service-example {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .service-example strong {
    color: #ffffff;
}

[data-theme="light"] .service-accordion-footer {
    border-top-color: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .service-accordion-badge {
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .service-accordion-examples {
    color: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .service-accordion-card .btn-primary {
    background: linear-gradient(135deg, #E7D5BF 0%, #d4c4a8 100%);
    color: #001A33;
    border-color: #E7D5BF;
}

[data-theme="light"] .service-accordion-card .btn-primary:hover {
    box-shadow: 0 0 30px rgba(231, 213, 191, 0.4);
}

.service-accordion-card-content {
    padding: 32px;
}

/* Card image */
.service-accordion-card-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin: 6px 6px 6px 0;
}

.service-accordion-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Intro paragraph */
.service-accordion-intro {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #001A33;
    margin: 0 0 28px;
    max-width: 580px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Columns layout */
.service-accordion-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.service-accordion-column-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(0, 26, 51, 0.5);
    margin: 0 0 14px;
}

.service-accordion-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-accordion-list li {
    position: relative;
    font-size: 0.85rem;
    font-weight: 500;
    color: #001A33;
    line-height: 1.6;
    margin-bottom: 14px;
    padding-left: 22px;
}

.service-accordion-list li::before {
    content: '↳';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.9rem;
    color: rgba(0, 26, 51, 0.35);
    font-weight: 400;
}

/* Tag/bubble list for short items */
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(0, 26, 51, 0.08);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #001A33;
    white-space: nowrap;
}

.service-tag--muted {
    background: rgba(0, 26, 51, 0.05);
    color: rgba(0, 26, 51, 0.7);
}

/* Examples list as inline tags */
.service-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-example {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(0, 26, 51, 0.05);
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(0, 26, 51, 0.7);
}

.service-example strong {
    color: #001A33;
    margin-right: 4px;
}

/* Compact list variant with less spacing */
.service-accordion-list--compact li {
    margin-bottom: 6px;
    font-size: 0.8rem;
}

/* Footer */
.service-accordion-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 26, 51, 0.1);
}

.service-accordion-footer-left {
    flex: 1;
}

.service-accordion-badge {
    font-size: 0.75rem;
    color: rgba(0, 26, 51, 0.6);
    margin: 0 0 12px;
}

.service-accordion-examples {
    font-size: 0.75rem;
    color: rgba(0, 26, 51, 0.5);
    margin: 0;
}

.service-accordion-examples strong {
    font-weight: 600;
    color: rgba(0, 26, 51, 0.6);
}

.service-accordion-footer .btn {
    background: #001A33;
    color: #fff;
}

.service-accordion-footer .btn:hover {
    background: #003366;
}

/* Responsive */
@media (max-width: 1024px) {
    .service-accordion-card {
        grid-template-columns: 1fr 280px;
    }

    .service-accordion-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .service-accordion-title {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }

    .service-accordion-card-content {
        padding: 28px;
    }

    .service-accordion-card-image {
        margin: 6px 6px 6px 0;
    }
}

@media (max-width: 768px) {
    .service-accordion-section {
        padding: 60px 0 80px;
    }

    .service-accordion-trigger {
        padding: 32px 0;
    }

    .service-accordion-title {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
    }

    .service-accordion-card {
        grid-template-columns: 1fr;
    }

    .service-accordion-card-image {
        display: none;
    }

    .service-accordion-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-accordion-card-content {
        padding: 24px;
    }

    .service-accordion-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .service-accordion-arrow {
        width: 36px;
        height: 36px;
    }

    .service-accordion-arrow svg {
        width: 24px;
        height: 24px;
    }

    .service-accordion-list li {
        font-size: 0.9rem;
    }

    .service-tags {
        gap: 6px;
    }

    .service-tag {
        padding: 5px 12px;
        font-size: 0.75rem;
    }

    .service-examples {
        gap: 6px;
    }

    .service-example {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
}

@media (max-width: 480px) {
    .service-accordion-trigger {
        padding: 24px 0;
    }

    .service-accordion-title {
        font-size: 1.25rem;
    }

    .service-accordion-tagline {
        font-size: 0.7rem;
    }

    .service-accordion-number {
        display: block;
        margin-bottom: 4px;
        margin-right: 0;
    }
}

/* Service Areas - Alternating Layout (Legacy) */
.service-areas {
    padding: 80px 0 0;
    background: var(--color-bg);
}

.service-areas > .container {
    margin-bottom: 0;
}

.service-row {
    padding: 100px 0;
    border-top: 1px solid var(--color-border);
    scroll-margin-top: 100px;
}

.service-row:nth-child(odd) {
    background: var(--color-bg);
}

.service-row:nth-child(even) {
    background: #0a1929;
}

[data-theme="light"] .service-row:nth-child(even) {
    background: #f5f2ed;
}

.service-row-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.service-row-reverse .service-row-inner {
    direction: rtl;
}

.service-row-reverse .service-row-inner > * {
    direction: ltr;
}

.service-row-content {
    max-width: 560px;
}

.service-row-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(231, 213, 191, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-row-icon i {
    font-size: 1.4rem;
    color: var(--color-beige);
}

[data-theme="light"] .service-row-icon {
    background: rgba(0, 26, 51, 0.1);
}

[data-theme="light"] .service-row-icon i {
    color: #001A33;
}

.service-row-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 12px;
    line-height: 1.15;
}

.service-row-tagline {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-beige);
    margin: 0 0 12px;
}

[data-theme="light"] .service-row-tagline {
    color: #001A33;
}

.service-row-desc {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin: 0 0 32px;
    line-height: 1.7;
}

.service-row-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.service-feature-col h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
    margin: 0 0 12px;
}

.service-feature-col h4:not(:first-child) {
    margin-top: 24px;
}

.service-feature-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-feature-col ul li {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    padding-left: 16px;
    position: relative;
    margin-bottom: 6px;
}

.service-feature-col ul li::before {
    content: '↳';
    position: absolute;
    left: 0;
    color: var(--color-beige);
    font-size: 1rem;
}

[data-theme="light"] .service-feature-col ul li::before {
    color: #001A33;
}

.service-feature-col .examples-list li::before {
    content: "→";
}

.service-feature-col .examples-list li strong {
    color: var(--color-text-primary);
}

.enterprise-badge {
    background: rgba(231, 213, 191, 0.08);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

.enterprise-badge span {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-beige);
    margin-bottom: 4px;
}

[data-theme="light"] .enterprise-badge span {
    color: #001A33;
}

.enterprise-badge p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 0;
}

[data-theme="light"] .enterprise-badge {
    background: rgba(0, 26, 51, 0.05);
}

.service-row-visual {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.service-row-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.8);
    transition: var(--transition-normal);
}

.service-row:hover .service-row-visual img {
    filter: saturate(1);
    transform: scale(1.02);
}

/* Services Page Responsive */
@media (max-width: 1024px) {
    .hiw-row-inner,
    .service-row-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hiw-row-reverse .hiw-row-inner,
    .service-row-reverse .service-row-inner {
        direction: ltr;
    }

    .hiw-text,
    .service-row-content {
        max-width: 100%;
    }

    .hiw-visual-box {
        max-width: 320px;
    }

    .service-row-features {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-row-visual {
        order: -1;
        aspect-ratio: 16/9;
    }
}

@media (max-width: 768px) {
    .hiw-row,
    .service-row {
        padding: 60px 0;
    }

    .hiw-title {
        font-size: 2rem;
    }

    .service-row-title {
        font-size: 1.75rem;
    }

    .build-statement {
        padding: 60px 0;
    }

    .build-statement-text {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .build-statement .container {
        padding: 0 24px;
    }
}

@media (max-width: 480px) {
    .hiw-row,
    .service-row {
        padding: 48px 0;
    }

    .hiw-row-inner,
    .service-row-inner {
        gap: 32px;
    }

    .hiw-title {
        font-size: 1.75rem;
    }

    .hiw-visual-box {
        padding: 32px;
    }

    .service-row-icon {
        width: 48px;
        height: 48px;
    }

    .service-row-icon i {
        font-size: 1.2rem;
    }

    .service-row-title {
        font-size: 1.5rem;
    }

    .service-row-tagline {
        font-size: 1rem;
    }

    .build-statement {
        padding: 48px 0;
    }

    .build-statement-text {
        font-size: 2.2rem;
        line-height: 1.6;
    }
}

/* ==========================================
   MEETING TYPE SELECTOR MODAL
   ========================================== */
.meeting-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 18, 35, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.meeting-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

[data-theme="light"] .meeting-modal-overlay {
    background: rgba(248, 245, 240, 0.9);
}

.meeting-modal {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    max-width: 720px;
    width: 100%;
    padding: 40px;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(231, 213, 191, 0.1);
}

.meeting-modal-overlay.active .meeting-modal {
    transform: translateY(0) scale(1);
}

.meeting-modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.meeting-modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}

.meeting-modal-subtitle {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

.meeting-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.meeting-modal-close:hover {
    color: var(--color-text-primary);
    background: var(--color-border);
}

.meeting-modal-close svg {
    width: 24px;
    height: 24px;
}

.meeting-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.meeting-option {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    cursor: pointer;
    transition: var(--transition-normal);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meeting-option:hover {
    border-color: var(--color-accent);
    background: rgba(231, 213, 191, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

[data-theme="light"] .meeting-option:hover {
    background: rgba(0, 26, 51, 0.03);
}

.meeting-option-duration {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
    background: rgba(231, 213, 191, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    margin: 0 auto;
}

[data-theme="light"] .meeting-option-duration {
    background: rgba(0, 26, 51, 0.08);
}

.meeting-option-duration svg {
    width: 14px;
    height: 14px;
}

.meeting-option-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.3;
}

.meeting-option-desc {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .meeting-modal {
        padding: 32px 24px;
    }

    .meeting-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .meeting-option {
        flex-direction: row;
        text-align: left;
        align-items: center;
        padding: 20px;
    }

    .meeting-option-duration {
        margin: 0;
        flex-shrink: 0;
    }

    .meeting-option-content {
        flex: 1;
    }

    .meeting-modal-title {
        font-size: 1.5rem;
    }
}
