:root {
    /* Brand Colors */
    --primary-blue: #00122c;
    --primary-blue-light: #0d2850;
    --accent-gold: #d4af37;
    --accent-gold-hover: #e2c158;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --text-dark: #333333;
    --text-muted: #666666;
    --text-light: #666666;

    /* Fonts */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-speed: 0.3s;

    /* ============================================
       TYPOGRAPHY SYSTEM
       Mobile floors: Display ~40px, H1 ~36px,
       H2 ~30px, H3 ~23px — scale up with viewport
       ============================================ */

    /* Hero / page display title  (desktop ~58px, mobile ~40px) */
    --font-size-display: clamp(2.5rem, 5.5vw, 3.625rem);

    /* Primary page H1  (desktop ~48px, mobile ~36px) */
    --font-size-h1: clamp(2.25rem, 4.5vw, 3rem);

    /* Section H2  (desktop ~44px, mobile ~30px) */
    --font-size-h2: clamp(1.875rem, 3.8vw, 2.75rem);

    /* Card / sub-section H3  (desktop ~28px, mobile ~23px) */
    --font-size-h3: clamp(1.4375rem, 2.4vw, 1.75rem);

    /* H4 labels  (fixed — used for small card titles, accordions) */
    --font-size-h4: 1.1875rem;
    /* 19px */

    /* Body copy — 18px desktop, never below 17px */
    --font-size-body-large: 1.125rem;
    /* 18px */
    --font-size-body: 1.0625rem;
    /* 17px */
    --font-size-body-small: 0.9375rem;
    /* 15px */
    --font-size-caption: 0.75rem;
    /* 12px */
    --font-size-tiny: 0.625rem;
    /* 10px */

    /* ============================================
       SPACING SYSTEM
       ============================================ */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-section: clamp(50px, 7vw, 100px);

    /* ============================================
       RADIUS SYSTEM
       ============================================ */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-pill: 20px;
    --radius-full: 9999px;
}

::selection {
    background-color: #f8e193;
    color: var(--primary-blue);
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography Utility Classes */
.text-display {
    font-size: var(--font-size-display);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -1px;
}

.text-h1 {
    font-size: var(--font-size-h1);
    line-height: 1.2;
    font-weight: 700;
}

.text-h2 {
    font-size: var(--font-size-h2);
    line-height: 1.3;
    font-weight: 700;
}

.text-h3 {
    font-size: var(--font-size-h3);
    line-height: 1.4;
    font-weight: 600;
}

.text-h4 {
    font-size: var(--font-size-h4);
    line-height: 1.4;
    font-weight: 600;
}

.text-body-large {
    font-size: var(--font-size-body-large);
    line-height: 1.6;
}

.text-body {
    font-size: var(--font-size-body);
    line-height: 1.6;
}

.text-body-small {
    font-size: var(--font-size-body-small);
    line-height: 1.5;
}

.text-caption {
    font-size: var(--font-size-caption);
    line-height: 1.5;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Spacing Utility Classes */
.mb-xs {
    margin-bottom: var(--space-xs);
}

.mb-sm {
    margin-bottom: var(--space-sm);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.mb-xl {
    margin-bottom: var(--space-xl);
}

.mb-2xl {
    margin-bottom: var(--space-2xl);
}

/* Color Utility Classes */
.text-white {
    color: var(--white);
}

.text-primary {
    color: var(--primary-blue);
}

.text-gold {
    color: var(--accent-gold);
}

.text-muted {
    color: var(--text-muted);
}

.text-light {
    color: var(--text-light);
}

.bg-light {
    background-color: var(--light-gray);
}

/* Card System */
.card-primary {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.card-secondary {
    background-color: var(--primary-blue-light);
    border-radius: var(--radius-lg);
    padding: 50px;
    color: var(--white);
}

.card-square {
    border-radius: 0;
    /* Intentional for ecommerce ops */
}

/* Layout Utilities */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.flex-center {
    display: flex;
    align-items: center;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    /* Account for fixed header (80px) + some breathing room */
    /* Required for iOS Safari — body overflow-x:hidden alone is ignored */
    overflow-x: hidden;
}

/* Accessibility: Respect user preferences for reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--light-gray);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent touch callout on long-press */
    -webkit-tap-highlight-color: transparent;
    /* Account for fixed header */
    padding-top: 80px;
}

/* ============================================
   GLOBAL MOBILE TOUCH FIXES
   - Removes iOS tap delay on all interactive elements
   - Ensures minimum 44px touch targets (Apple/Google HIG)
   - Makes cursor:pointer consistent
   ============================================ */
a,
button,
[onclick],
[role="button"] {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    /* removes 300ms tap delay on iOS */
    cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: color var(--transition-speed);
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Utilities --- */
.text-gold {
    color: var(--accent-gold) !important;
}

.whatsapp-widget {
    bottom: 30px;
}

@media (max-width: 768px) {
    .whatsapp-widget {
        bottom: 80px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-white {
    background-color: var(--white);
}

.bg-blue {
    background-color: var(--primary-blue);
    color: var(--white);
}

.bg-blue h1,
.bg-blue h2,
.bg-blue h3,
.bg-blue h4 {
    color: var(--white);
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    transition: all var(--transition-speed);
    cursor: pointer;
    border: none;
    font-size: 16px;
    /* Mobile touch quality */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    /* Ensure minimum 44px height for touch targets */
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-blue-light);
    color: var(--white);
}

.btn-gold {
    background-color: var(--accent-gold);
    color: var(--primary-blue);
}

.btn-gold:hover {
    background-color: var(--accent-gold-hover);
    color: var(--primary-blue);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

/* Nav CTA Button */
.btn-nav-cta {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    background-color: var(--accent-gold);
    color: var(--primary-blue);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.btn-nav-cta:hover {
    background-color: var(--accent-gold-hover);
    color: var(--primary-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}


.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
}

.header-hidden {
    transform: translateY(-100%);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo img {
    height: 40px;
}

.logo-text {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-blue {
    color: var(--primary-blue);
}

.logo-gold {
    color: var(--accent-gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
    list-style: none;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-gold);
}

.mobile-menu-btn {
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-blue);
    /* Hidden by default on desktop; shown via @media below */
    display: none;
    /* Minimum 44×44px touch target (Apple/Google HIG) */
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}



/* Dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 260px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 8px;
    padding: 10px 0;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: var(--text-dark) !important;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 15px !important;
    font-weight: 500;
    white-space: normal;
    /* Make sure each link is a proper touch target */
    min-height: 44px;
    display: flex;
    align-items: center;
}

.dropdown-content a:hover {
    background-color: #f8fafc;
    color: var(--primary-blue) !important;
}

/* Desktop: show dropdown on hover */
@media (hover: hover) and (pointer: fine) {
    .dropdown:hover .dropdown-content {
        display: block;
    }
}

/* Mobile/touch: dropdown toggled via JS class instead of :hover */
.dropdown-content.open {
    display: block;
}

.dropdown-icon {
    font-size: 10px;
    margin-left: 4px;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        box-shadow: none;
        display: none;
        padding-left: 15px;
        min-width: 100%;
    }

    /* On mobile, dropdown shown via .open class toggled by JS — not :hover */
    .dropdown-content.open {
        display: block;
    }
}

/* Hero Section Intelligent */
.hero-intelligent {
    background-color: #000B1D;
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-intelligent-container {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-intelligent-content {
    max-width: 800px;
    margin-left: -40px;
}

.hero-badge {
    display: inline-block;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 20px;
    padding: 6px 16px;
    margin-bottom: 30px;
}

.hero-badge span {
    color: var(--accent-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero-intelligent-content h1 {
    font-size: var(--font-size-display);
    line-height: 1.15;
    margin-bottom: 25px;
    color: var(--white);
    font-weight: 700;
    letter-spacing: -1px;
}

.hero-intelligent-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #aeb9cc;
    font-weight: 400;
    max-width: 700px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.hero-buttons .btn {
    padding: 14px 28px;
    font-size: 16px;
}

.hero-buttons .btn-gold {
    background-color: var(--accent-gold);
    color: #000;
    font-weight: 600;
    border: 1px solid var(--accent-gold);
}

.hero-buttons .btn-gold:hover {
    background-color: var(--accent-gold-hover);
}

.hero-buttons .btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-buttons .btn-outline:hover {
    border-color: var(--white);
    background-color: rgba(255, 255, 255, 0.05);
}

.hero-features {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d0d5e0;
    font-size: 14px;
    font-weight: 500;
}

.feature-icon {
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 12px;
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-intelligent-graphic {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    min-height: 500px;
}

.hero-combo-graphic {
    position: relative;
    width: 100%;
    max-width: 650px;
}

.demo-human-large {
    width: 100%;
    height: auto;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    z-index: 2;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.demo-human-large img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
}

.demo-human-large .demo-human-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 11, 29, 0.95) 0%, transparent 40%);
    pointer-events: none;
}

/* Isometric Accents */
.iso-box {
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(212, 175, 55, 0.85);
    transform: rotateX(60deg) rotateZ(-45deg);
    box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.4);
    z-index: 3;
}

.iso-box::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 30px;
    background: rgba(212, 175, 55, 0.5);
    transform: skewX(-45deg);
    transform-origin: top;
}

.iso-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 100%;
    width: 30px;
    height: 100%;
    background: rgba(212, 175, 55, 0.3);
    transform: skewY(-45deg);
    transform-origin: left;
}

.combo-iso-1 {
    top: -40px;
    right: -40px;
    transform: scale(0.7) rotateX(60deg) rotateZ(-45deg);
    animation: float-iso 6s ease-in-out infinite;
}

.combo-iso-2 {
    bottom: -30px;
    left: -50px;
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0.9) rotateX(60deg) rotateZ(-45deg);
    z-index: 1;
    animation: float-iso 8s ease-in-out infinite reverse;
}

.combo-iso-2::before {
    background: rgba(255, 255, 255, 0.05);
}

.combo-iso-2::after {
    background: rgba(255, 255, 255, 0.02);
}

@keyframes float-iso {
    0% {
        transform: scale(0.8) rotateX(60deg) rotateZ(-45deg) translateY(0);
    }

    50% {
        transform: scale(0.8) rotateX(60deg) rotateZ(-45deg) translateY(-20px);
    }

    100% {
        transform: scale(0.8) rotateX(60deg) rotateZ(-45deg) translateY(0);
    }
}

@media (max-width: 992px) {
    .hero-intelligent-container {
        flex-direction: column;
    }

    .hero-intelligent-content {
        margin-left: 0;
    }

    .hero-intelligent-content h1 {
        font-size: clamp(2.25rem, 5vw, 2.75rem);
        /* 36–44px at tablet */
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-features {
        gap: 15px;
    }

    .hero-combo-graphic {
        margin-top: 40px;
    }
}

/* Full Background Hero */
.hero-full-bg {
    background-color: #000B1D;
    /* Fallback color to blend with the image */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center right;
    color: var(--white);
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark gradient on the left side to make text pop, fading out completely to the right */
    background: linear-gradient(to right, rgba(0, 11, 29, 0.95) 0%, rgba(0, 11, 29, 0.7) 45%, transparent 100%);
    z-index: 1;
}

.hero-full-bg .hero-intelligent-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* About Page & E-commerce Hero */
.about-hero,
.ecomm-hero {
    background-color: #000B1D;
    background-image:
        linear-gradient(rgba(0, 11, 29, 0.8), rgba(0, 11, 29, 0.7)),
        url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 150px 0 100px;
    position: relative;
    text-align: center;
}

.about-hero {
    background-image:
        linear-gradient(rgba(0, 11, 29, 0.8), rgba(0, 11, 29, 0.7)),
        url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1920&q=80');
}

.ecomm-hero {
    background-image:
        linear-gradient(rgba(0, 11, 29, 0.8), rgba(0, 11, 29, 0.7)),
        url('https://images.unsplash.com/photo-1553413077-190dd305871c?auto=format&fit=crop&w=1920&q=80');
}


.about-hero-content,
.ecomm-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.about-hero-content h1,
.ecomm-hero-content h1 {
    font-size: var(--font-size-h1);
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.about-hero-content p,
.ecomm-hero-content p {
    font-size: var(--font-size-body-large);
    color: #e2e8f0;
    line-height: 1.6;
}

/* about.html H1 has a <br/> that works well on desktop;
   on mobile the natural wrap is fine so we leave it. */

/* Editorial Hero Layout */
.hero-editorial-content {
    max-width: 100%;
    margin: 0;
    text-align: left;
    border-left: 2px solid var(--accent-gold);
    padding-left: 40px;
    position: relative;
    z-index: 2;
}

.hero-editorial-content h1 {
    font-size: var(--font-size-h1);
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-editorial-content p {
    font-size: var(--font-size-body-large);
    color: #e2e8f0;
    line-height: 1.6;
}

.hero-editorial-columns {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
    text-align: left;
}

@media (max-width: 992px) {
    .hero-editorial-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-editorial-content {
        padding-left: 20px;
    }
}

/* E-Commerce Hero */
.ecomm-hero {
    background-color: #000B1D;
    background-image:
        linear-gradient(rgba(0, 11, 29, 0.8), rgba(0, 11, 29, 0.6)),
        url('https://images.unsplash.com/photo-1586528116311-ad8ed745eb33?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 150px 0 100px;
    position: relative;
    text-align: center;
}

.ecomm-hero .hero-title {
    font-size: var(--font-size-h1);
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 700;
}

.ecomm-hero .hero-subtitle {
    font-size: var(--font-size-body-large);
    color: #e2e8f0;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Shared Hero Class for other pages */
.page-hero {
    background-color: #000B1D;
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 150px 0 100px;
    position: relative;
    text-align: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 18, 44, 0.75);
    z-index: 1;
}

.page-hero>.container {
    position: relative;
    z-index: 2;
}

.page-hero .hero-title {
    font-size: var(--font-size-h1);
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 700;
}

.page-hero .hero-subtitle {
    font-size: var(--font-size-body-large);
    color: #e2e8f0;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.hero-bpo {
    background-image: url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?auto=format&fit=crop&w=1920&q=80');
}

.hero-digital {
    background-image: url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1920&q=80');
}

.hero-mortgage {
    background-image: url('https://images.unsplash.com/photo-1554224155-8d04cb21cd6c?auto=format&fit=crop&w=1920&q=80');
}

.hero-careers {
    background-image: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1920&q=80');
}

.hero-industries {
    background-image: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1920&q=80');
}

/* Cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 0;
    border: 1px solid #eef0f5;
    border-top: 4px solid transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-top-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border-top-color: var(--accent-gold);
}

.card h3 {
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 600;
}

.card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    flex: 1;
}

.card-link {
    display: inline-block;
    margin-top: 20px;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-blue);
    letter-spacing: 0.3px;
    transition: color 0.3s ease, gap 0.3s ease;
}

.card-link:hover {
    color: var(--accent-gold);
}

.card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    object-fit: contain;
}

.side-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* E-Commerce Idea 1 (Dark Glassmorphism) */
.ecommerce-dark {
    background-color: var(--primary-blue);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.ecommerce-dark::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
    /* Prevent this oversized decorative element from leaking into scroll width */
    overflow: hidden;
}

/* Clip the full-bleed carousel so it never leaks outside the dark section */
.carousel-wrapper {
    overflow: hidden;
    position: relative;
}

.ecommerce-header-split {
    max-width: 1200px;
    margin: 0 auto 50px auto;
    position: relative;
    z-index: 2;
}

.ecommerce-header-title h2 {
    font-size: var(--font-size-h2);
    color: white;
    margin-bottom: 30px;
    text-align: center;
}

@media (max-width: 768px) {
    .ecommerce-header-title h2 {
        /* Token clamp handles mobile sizing automatically */
        text-align: left;
    }
}

.ecommerce-split-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
    margin-bottom: 50px;
}

.ecommerce-split-layout {
    display: flex;
    gap: 80px;
}

.ecommerce-split-col {
    flex: 1;
}

.ecommerce-split-col h3 {
    font-size: 11px;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 700;
    margin-bottom: 20px;
}

.ecommerce-split-col p {
    font-size: 17px;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 25px;
    text-align: left;
}

@media (max-width: 900px) {
    .ecommerce-split-layout {
        flex-direction: column;
        gap: 40px;
    }
}

.glass-grid.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 30px;
    padding-bottom: 20px;
    scrollbar-width: none;
    /* Firefox */

    /* Perfect alignment padding (container is 1200px max-width) */
    padding-left: max(20px, calc(50% - 600px + 20px));
    padding-right: max(20px, calc(50% - 600px + 20px));
    scroll-padding-left: max(20px, calc(50% - 600px + 20px));
    /* Prevent the scroll container itself from leaking out of its parent */
    width: 100%;
    box-sizing: border-box;
}

.glass-grid.carousel-track::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.glass-grid.carousel-track .glass-card {
    flex: 0 0 calc(33.333% - 20px);
    scroll-snap-align: start;
    min-width: 320px;
}

@media (max-width: 992px) {
    .glass-grid.carousel-track .glass-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .glass-grid.carousel-track .glass-card {
        flex: 0 0 85%;
    }
}

.carousel-nav {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 10px;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding-bottom: 4px;
    /* Mobile touch fixes */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    position: relative;
    z-index: 10;
    /* Prevent iOS from treating as text */
    -webkit-appearance: none;
    appearance: none;
}

.carousel-btn:hover {
    background: var(--accent-gold);
    color: var(--primary-blue);
    border-color: var(--accent-gold);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    /* completely removed roundness */
    border-top: 4px solid transparent;
    /* ready for hover */
    padding: 40px 30px;
    transition: all 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--accent-gold);
    /* hover top border */
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.glass-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

.glass-card p {
    font-size: 15px;
    color: #aeb9cc;
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works-section {
    background-color: var(--primary-blue);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.how-it-works-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.how-it-works-section .container {
    position: relative;
    z-index: 1;
}

.hiw-subtitle {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hiw-title {
    font-size: var(--font-size-h2);
    color: #ffffff;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 25px;
}

.hiw-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-gold);
}

.hiw-desc {
    max-width: 800px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 60px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

.hiw-card {
    background: var(--white);
    padding: 40px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid #f2f2f2;
}

.hiw-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 25px;
}

.hiw-card h3 {
    font-size: 20px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.hiw-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Journey Section */
.journey-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.journey-content {
    max-width: 500px;
}

.section-subtitle {
    color: var(--accent-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.journey-title {
    font-size: var(--font-size-h2);
    line-height: 1.2;
    color: var(--primary-blue);
    margin-bottom: 30px;
    font-weight: 700;
}

.journey-content p {
    color: var(--text-muted);
    font-size: var(--font-size-body);
    line-height: 1.7;
    margin-bottom: 20px;
}

.journey-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.journey-card {
    background: #ffffff;
    border: 1px solid #eef0f5;
    border-radius: 12px;
    padding: 30px 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.journey-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.6);
    background: linear-gradient(to bottom right, #ffffff, #fffdf8);
}

.j-icon {
    margin-bottom: 15px;
}

.j-icon svg {
    color: var(--accent-gold);
}

.j-title {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 16px;
    margin-bottom: 10px;
}

/* Why Card Styles */
.why-card {
    background: var(--white);
    border: 1px solid #e1e8f0;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
}

.why-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.why-icon-box {
    width: 48px;
    height: 48px;
    background: #f4f6fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    color: var(--primary-blue);
}

.why-card:hover .why-icon-box {
    background: var(--accent-gold);
}

.why-icon-box svg {
    width: 24px;
    height: 24px;
}

.j-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .journey-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .journey-content {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .journey-grid {
        grid-template-columns: 1fr;
    }
}

/* Numbers Section */
.numbers-section {
    background-color: var(--primary-blue-light);
    color: var(--white);
    padding: 60px 0;
}

.number-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    text-align: center;
}

.number-stat {
    font-size: clamp(1.875rem, 3.5vw, 2.625rem);
    /* 30–42px */
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.number-label {
    font-size: var(--font-size-body);
    font-weight: 500;
}

@media (max-width: 768px) {
    .numbers-section {
        padding: 40px 0;
    }

    .number-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 15px;
    }

    .number-stat {
        font-size: 30px;
        margin-bottom: 5px;
    }

    .number-label {
        font-size: 13px;
        line-height: 1.4;
    }

    /* 5th element centered gracefully */
    .number-grid>div:last-child {
        grid-column: span 2;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 5px;
    }
}

/* Footer */
.footer {
    background-color: var(--primary-blue);
    background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--white);
    padding: 60px 0 20px;
    z-index: 1;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 18, 44, 0.92);
    z-index: -1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
        gap: 50px;
    }
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 55px;
}

.footer-logo .logo-text {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.footer-logo .logo-white {
    color: var(--white);
}

.footer-logo .logo-gold {
    color: var(--accent-gold);
}

.footer-tagline {
    color: #9CA3AF;
    font-size: 14px;
    line-height: 1.6;
    max-width: 320px;
}

.footer-heading {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #9CA3AF;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    color: #9CA3AF;
    font-size: 14px;
    line-height: 1.5;
}

.footer-contact a {
    color: #9CA3AF;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #9CA3AF;
    font-size: 12px;
    text-align: center;
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px 30px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        align-items: flex-start;
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links li:last-child {
        border-bottom: none;
        margin-top: 15px;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
        width: 100%;
        font-size: 16px;
    }

    .mobile-menu-btn {
        display: flex;
        /* flex needed for align/justify-content centering of the icon */
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-buttons {
        flex-direction: column;
    }
}

.mobile-hero-graphic {
    display: none;
}

@media (max-width: 768px) {
    .hero-intelligent-content h1 {
        /* clamp() already handles small screens; override only if needed */
        letter-spacing: -0.5px;
    }

    .hero-intelligent-content p {
        font-size: var(--font-size-body);
        margin-bottom: 30px;
    }

    .hero-full-bg {
        background-image: none !important;
        background-color: #000B1D;
        padding: 120px 0 60px;
        min-height: auto;
    }

    .hero-overlay-gradient {
        display: none;
    }

    .mobile-hero-graphic {
        display: block;
        margin-top: 45px;
        position: relative;
        z-index: 5;
    }

    .mobile-hero-img {
        width: 100%;
        height: auto;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 175, 55, 0.15);
        display: block;
        position: relative;
        z-index: 2;
    }

    .mobile-hero-glow {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, rgba(0, 11, 29, 0) 70%);
        transform: translate(-50%, -50%);
        z-index: 1;
        pointer-events: none;
    }

    .about-hero,
    .ecomm-hero,
    .page-hero {
        padding: 120px 0 80px;
    }

    /* Token-based clamp already handles mobile sizing for these */
    .about-hero-content h1,
    .ecomm-hero-content h1,
    .page-hero .hero-title {
        /* clamp() in token resolves cleanly; keep letter-spacing tighter */
        letter-spacing: -0.3px;
    }
}

@media (max-width: 576px) {
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .hero-features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 15px;
    }

    .feature-item {
        font-size: 12px;
        gap: 5px;
    }

    .feature-icon {
        width: 14px;
        height: 14px;
        font-size: 10px;
    }
}

/* Forms */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 16px;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Service Detail */
.service-header {
    background-color: var(--primary-blue-light);
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--white);
    padding: 100px 0 60px;
    text-align: center;
    z-index: 1;
}

.service-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(13, 40, 80, 0.85);
    /* primary-blue-light with opacity */
    z-index: -1;
}

.service-header h1 {
    color: var(--white);
}

.cta-bg {
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
}

.cta-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 18, 44, 0.85);
    z-index: -1;
}

/* Utility Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Journey Dark Mode (Option 5) */
.journey-dark-bg {
    background-color: var(--primary-blue-light);
    padding: 100px 0;
}

.journey-dark-bg .section-subtitle {
    color: var(--accent-gold);
    letter-spacing: 2px;
}

.journey-dark-bg .journey-title {
    color: #ffffff;
}

.journey-dark-bg p {
    color: #aeb9cc;
}

.j-dark-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 35px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.02);
}

.j-dark-dot {
    position: absolute;
    top: 35px;
    right: 35px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.4s ease;
}

.j-dark-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    transform: scale(1.02);
}

.j-dark-card:hover .j-dark-dot {
    background: var(--accent-gold);
    box-shadow: 0 0 12px var(--accent-gold);
    transform: scale(1.5);
}

.j-dark-num {
    font-size: 36px;
    font-weight: 300;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1;
}

.j-dark-title {
    font-size: 18px;
    font-weight: 500;
    color: #e4e4e7;
    margin-bottom: 12px;
}

.j-dark-desc {
    color: #aeb9cc;
    font-size: 14px;
    line-height: 1.6;
}

/* Ticker Marquee Ribbon (Option 6) */
.ticker-bg {
    background-color: var(--primary-blue-light);
    overflow: hidden;
    padding: 25px 0;
    border-top: 1px solid #1a2533;
    border-bottom: 1px solid #1a2533;
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
}

.ticker-track {
    display: inline-block;
    animation: ticker 25s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-block;
    padding: 0 30px;
}

.ticker-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-gold);
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}

.ticker-label {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    vertical-align: middle;
}

.ticker-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin: 0 15px;
    vertical-align: middle;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Bento Grid Layout (Why Inspire Capital) */
.bento-dark-bg {
    background-color: var(--primary-blue-light);
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bento-title-text {
    color: #fff;
}

.bento-desc-text {
    color: #aeb9cc;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    grid-auto-rows: minmax(180px, auto);
}

.bento-span-2 {
    grid-column: span 2;
}

@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-span-2 {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
}

.bento-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.06);
}

.bento-card .icon-wrap {
    margin-bottom: 15px;
    background: rgba(212, 175, 55, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bento-card .bento-icon {
    width: 24px;
    height: 24px;
    stroke: var(--accent-gold);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bento-card .bento-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.bento-card .bento-desc {
    font-size: 13px;
    color: #aeb9cc;
    line-height: 1.6;
}

/* Vision Section */
.vision-section {
    padding: 80px 0;
    background-color: var(--white);
}

.vision-card {
    background: var(--white);
    border-radius: 16px;
    padding: 60px 80px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 8px 30px rgba(0, 18, 44, 0.06), 0 1px 3px rgba(0, 18, 44, 0.03);
    border: 1px solid rgba(0, 18, 44, 0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.vision-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 18, 44, 0.08), 0 2px 6px rgba(0, 18, 44, 0.04);
}

.vision-header {
    text-transform: uppercase;
    color: var(--accent-gold);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 25px;
    font-family: var(--font-heading);
}

.vision-quote {
    color: var(--primary-blue);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 30px;
    font-family: var(--font-heading);
}

.vision-divider {
    width: 50px;
    height: 3px;
    background-color: var(--accent-gold);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .vision-card {
        padding: 40px 30px;
    }

    .vision-quote {
        font-size: 20px;
    }
}

/* Custom CTA Section */
.cta-section {
    padding: 100px 0;
    background-color: var(--white);
}

.cta-card {
    background-color: var(--primary-blue-light);
    border-radius: 12px;
    padding: 80px 40px;
    text-align: center;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 15px 40px rgba(0, 18, 44, 0.15);
}

.cta-card h2 {
    font-size: var(--font-size-h2);
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-card p {
    font-size: var(--font-size-body-large);
    color: #aeb9cc;
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cta-buttons .btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    background: transparent;
}

.cta-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
}

@media (max-width: 768px) {
    .cta-card {
        padding: 44px 24px;
    }

    /* cta-card h2 uses var(--font-size-h2) with clamp — no override needed */

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

/* E-Commerce Concept 8: Clean Staggered Cards */
.c8-header-area {
    max-width: 1200px;
    margin: 0 auto 60px;
    text-align: left;
}

.c8-pre-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.c8-main-title {
    font-size: var(--font-size-h2);
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.c8-divider {
    width: 50px;
    height: 2px;
    background-color: var(--accent-gold);
    margin-bottom: 30px;
}

.c8-desc {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    max-width: 600px;
}

.c8-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.c8-card {
    background: var(--white);
    padding: 40px;
    border-radius: 0;
    border: 1px solid #e2e8f0;
    transition: var(--transition-speed);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.c8-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.c8-card h3 {
    font-size: 20px;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 15px;
}

.c8-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.c8-card:nth-child(2) {
    margin-top: 40px;
}

.c8-card:nth-child(3) {
    margin-top: 80px;
}

@media (max-width: 992px) {
    .c8-grid {
        grid-template-columns: 1fr;
        padding-bottom: 0;
    }

    .c8-card:nth-child(2),
    .c8-card:nth-child(3) {
        margin-top: 0;
    }
}

/* Zig-Zag Capabilities Sections */
.story-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.story-pre-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.story-header h2 {
    font-size: var(--font-size-h1);
    color: var(--primary-blue);
    margin-bottom: 25px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.story-divider {
    width: 50px;
    height: 2px;
    background-color: var(--accent-gold);
    margin: 0 auto 30px auto;
}

.story-header p {
    color: var(--text-muted);
    font-size: var(--font-size-body-large);
    line-height: 1.6;
    margin: 0 auto;
    max-width: 600px;
}

.feature-row {
    padding: 100px 0;
    display: flex;
    align-items: center;
    gap: 80px;
}

.zig-bg-gray {
    background-color: var(--light-gray);
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-image-wrapper {
    flex: 1;
    position: relative;
}

.feature-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 18, 44, 0.08);
    display: block;
}

.feature-image-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
    border-radius: 16px;
    top: -20px;
    left: -20px;
    z-index: -1;
}

.feature-row.reverse .feature-image-wrapper::before {
    left: 20px;
    right: -20px;
    background: linear-gradient(225deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
}

.feature-content {
    flex: 1;
}

.feature-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 15px;
    display: inline-block;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 5px;
    letter-spacing: 1px;
}

.feature-title {
    font-size: var(--font-size-h2);
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.feature-desc {
    font-size: var(--font-size-body);
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.feature-desc:last-child {
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .feature-row {
        flex-direction: column !important;
        gap: 50px;
        padding: 80px 0;
    }

    .feature-image-wrapper::before {
        display: none;
    }

    .feature-content {
        text-align: center;
    }

    .feature-number {
        margin: 0 auto 15px;
    }

    /* story-header h2 and feature-title use token clamp — no explicit override needed */
    .story-header h2 {
        letter-spacing: -0.3px;
    }
}

/* ------------------------------------ */
/* Horizontal Track                     */
/* ------------------------------------ */
.track-section {
    overflow: visible;
}

.track-header {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.track-header h2 {
    font-size: var(--font-size-h2);
    font-weight: 400;
    letter-spacing: -0.5px;
}

.track-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
}

.track-container::-webkit-scrollbar {
    display: none;
}

.track-item {
    flex: 1 1 260px;
    min-width: 220px;
    scroll-snap-align: start;
    border-top: 1px solid rgba(0, 18, 44, 0.1);
    padding-top: 30px;
    position: relative;
}

.track-item::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-gold);
}

.track-num {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
    letter-spacing: 1px;
}

.track-item h3 {
    font-size: var(--font-size-h3);
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--primary-blue);
}

.track-item p {
    font-size: var(--font-size-body);
    color: var(--text-muted);
    line-height: 1.7;
}

/* Laptop / medium screens: 2-column grid */
@media (min-width: 769px) and (max-width: 1199px) {
    .track-container {
        gap: 32px;
    }

    .track-item {
        flex: 1 1 calc(50% - 16px);
        max-width: calc(50% - 16px);
    }
}

/* Mobile: single column */
@media (max-width: 768px) {
    .track-container {
        flex-direction: column;
        padding: 0 20px 20px 20px;
        gap: 36px;
    }

    .track-item {
        flex: 1 1 100%;
        min-width: 0;
        scroll-snap-align: none;
    }
}

/* Timeline Specific Styles */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 40px auto 0;
    padding: 40px 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    position: relative;
    max-width: 1200px;
    margin: 40px auto 0;
}

@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(0, 18, 44, 0.1);
    transform: translateX(-50%);
}

.timeline-item {
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-gold);
}

.timeline-item:nth-child(2) {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(4) {
    animation-delay: 0.3s;
}

.timeline-item:nth-child(5) {
    animation-delay: 0.4s;
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 15px;
    font-weight: 700;
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    font-size: 1.05rem;
    margin: 0;
}

.left-content {
    text-align: right;
}

.right-content {
    text-align: left;
}

/* Number Circle */
.timeline-number {
    width: 64px;
    height: 64px;
    background: #ffffff;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-gold);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-number {
    background: var(--accent-gold);
    color: #ffffff;
    transform: translateX(-50%) scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline-line {
        left: 30px;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 40px;
    }

    .timeline-number {
        left: 30px;
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    .timeline-item:hover .timeline-number {
        transform: translateX(-50%) scale(1.05);
    }

    .timeline-empty {
        display: none;
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin: 0 0 0 80px;
        text-align: left;
        padding: 30px 25px;
    }

    .left-content,
    .right-content {
        margin: 0 0 0 80px;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   WHY CHOOSE US - ACCORDION
======================================== */
.acc-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.acc-img {
    border-radius: 16px;
    width: 100%;
    object-fit: cover;
    box-shadow: 0 20px 50px rgba(0, 18, 44, 0.12);
    height: 100%;
    min-height: 560px;
}

.accordion {
    border-top: 1px solid #eef0f5;
}

.acc-item {
    border-bottom: 1px solid #eef0f5;
}

.acc-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    /* Mobile touch — ensure minimum touch target and no tap delay */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    min-height: 44px;
}

.acc-btn-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 12px;
}

.acc-icon-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.acc-icon-circle svg {
    width: 13px;
    height: 13px;
    stroke: #00122c;
    stroke-width: 2.5;
    fill: none;
}

.acc-chevron {
    width: 18px;
    height: 18px;
    stroke: var(--text-muted);
    stroke-width: 2;
    fill: none;
    transition: transform .3s;
    flex-shrink: 0;
}

.acc-item.open .acc-chevron {
    transform: rotate(180deg);
}

.acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

.acc-item.open .acc-body {
    max-height: 400px;
}

.acc-body p {
    font-size: var(--font-size-body-small);
    /* 15px — intentional compact accordion text */
    color: var(--text-muted);
    line-height: 1.7;
    padding: 0 0 18px 38px;
}

@media(max-width:900px) {
    .acc-wrap {
        grid-template-columns: 1fr;
    }

    .acc-img {
        min-height: auto;
    }
}

.feature-image-wrapper {
    overflow: visible;
}

.feature-image {
    transform: scale(1.25);
    transform-origin: center;
}

/* Dark theme overrides for story-header */
.bg-blue .story-header h2,
.bg-blue .story-header p {
    color: var(--white);
}

/* ============================================
   MOBILE RESPONSIVE SPACING
   Add padding reductions for all full-height
   sections that inherit large desktop padding
   ============================================ */
@media (max-width: 768px) {
    .section-padding {
        padding: 52px 0;
    }

    .cta-section {
        padding: 52px 0;
    }

    .how-it-works-section {
        padding: 60px 0;
    }

    .ecommerce-dark {
        padding: 60px 0;
    }

    .bento-dark-bg {
        padding: 60px 0;
    }

    .journey-dark-bg {
        padding: 60px 0;
    }

    .vision-section {
        padding: 50px 0;
    }

    /* Hero vertical rhythm */
    .about-hero,
    .ecomm-hero {
        padding: 100px 0 60px;
    }

    /* Reduce hero badge bottom gap */
    .hero-badge {
        margin-bottom: 20px;
    }
}

/* ============================================
   SELECTIVE BR HANDLING ON MOBILE
   Only hide <br> tags that cause genuinely
   awkward wrapping on small screens.
   The about page H1 wraps naturally and well,
   so its <br> is left alone.
   The index hero H1 break forces a mid-phrase
   split that is better left to natural wrapping.
   ============================================ */
@media (max-width: 600px) {

    /* index.html hero: "Smarter E-commerce Starts with [br] AI and Human Intelligence"
       On narrow mobile the break creates a very short first line.
       Natural wrapping produces a more balanced result. */
    .hero-intelligent-content h1 br {
        display: none;
    }
}

/* ============================================
   VISUAL HIERARCHY GUARDS
   Ensure body copy never drops below 17px
   and that card/section typography stays
   proportionate across all pages.
   ============================================ */

/* Card h3 consistently uses H3 token */
.card h3 {
    font-size: var(--font-size-h3);
}

/* Glass card h3 (dark ecommerce section) */
.glass-card h3 {
    font-size: var(--font-size-h3);
}

/* HIW card headings */
.hiw-card h3 {
    font-size: var(--font-size-h4);
}

/* ecommerce-header-title h2 — wired to token */
.ecommerce-header-title h2 {
    font-size: var(--font-size-h2);
}

/* Feature row reduced padding on small mobile */
@media (max-width: 576px) {
    .feature-row {
        padding: 52px 0;
        gap: 36px;
    }

    /* Bento grid single column already handled;
       reduce card padding for breathing room */
    .bento-card {
        padding: 24px;
    }

    /* Journey grid single column already handled */
    .journey-card {
        padding: 24px 20px;
    }

    /* c8 cards on very narrow screens */
    .c8-card {
        padding: 28px 24px;
    }

    /* Glass cards */
    .glass-card {
        padding: 28px 24px;
    }
}

/* ============================================
   LENIS SMOOTH SCROLLING
   ============================================ */
html.lenis,
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;
}