:root {
    /* ============================================
       COLORS
       ============================================ */
    --primary: #0A192F;
    /* Deep Navy */
    --accent: #64FFDA;
    /* Teal/Cyan for Tech/AI feel */
    --secondary: #172A45;
    /* Lighter Navy */
    --text-main: #CCD6F6;
    /* Off-white for dark bg */
    --text-dark: #1F2937;
    /* Gray-800: primary text on light bg, WCAG AAA (14:1) */
    --text-secondary: #4B5563;
    /* Gray-600: secondary text on light bg, WCAG AA 4.7:1 */
    --text-tertiary: #6B7280;
    /* Gray-500: meta on light bg, 4.6:1 */
    --text-muted: #8892b0;
    /* Off-white muted — USE ONLY on dark bg (fails 4.5:1 on white) */
    --text-on-dark-muted: rgba(204, 214, 246, 0.7);

    /* Semantic accents (WCAG AA compliant on white) */
    --success:        #047857;
    /* Emerald-700 — 5.4:1 on white */
    --success-light:  #10B981;
    /* Emerald-500 — only use on dark bg, icons-only on white */
    --warning:        #B45309;
    /* Amber-700 — 4.8:1 on white */
    --danger:         #B91C1C;
    /* Red-700 — 5.6:1 on white */
    /* For secondary text inside .bg-dark sections */
    --white: #ffffff;
    --light-bg: #F8F9FF;
    --dark-bg: #0A192F;

    /* ============================================
       TYPOGRAPHY — Type Scale (Major Third, 1.25)
       ============================================
       Body baseline: 16px (1rem)
       Use ONE token per role. Avoid arbitrary values.
       ============================================ */

    /* Font families */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Manrope', 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

    /* Font sizes — modular scale 1.25 */
    --fs-xs:   0.75rem;   /* 12px — caption, tag, footnote */
    --fs-sm:   0.875rem;  /* 14px — small, meta, dense UI */
    --fs-base: 1rem;      /* 16px — body, default */
    --fs-md:   1.125rem;  /* 18px — lead paragraph, large body */
    --fs-lg:   1.25rem;   /* 20px — sub-heading, large body */
    --fs-xl:   1.5rem;    /* 24px — H4 */
    --fs-2xl:  1.875rem;  /* 30px — H3 */
    --fs-3xl:  2.25rem;   /* 36px — H2 */
    --fs-4xl:  3rem;      /* 48px — H1 / hero */
    --fs-5xl:  4rem;      /* 64px — display only */

    /* Font weights — 4 stops, no in-between */
    --fw-regular:  400;
    --fw-medium:   500;
    --fw-semibold: 600;
    --fw-bold:     700;

    /* Line heights — only 3 */
    --lh-tight:   1.2;   /* headings, display */
    --lh-normal:  1.5;   /* UI text, body */
    --lh-relaxed: 1.7;   /* long-form reading */

    /* Letter spacing — only 3 */
    --tracking-tight:  -0.02em;  /* large display headings */
    --tracking-normal: 0;         /* body, default */
    --tracking-wide:   0.08em;    /* uppercase eyebrows, tags */

    /* ============================================
       SPACING
       ============================================ */
    --container-width: 1200px;
    --section-padding: 5rem 0;

    /* ============================================
       UI
       ============================================ */
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    --shadow-sm: 0 10px 30px -10px rgba(2, 12, 27, 0.1);
    --shadow-hover: 0 20px 30px -15px rgba(2, 12, 27, 0.2);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* leave room for sticky header when jumping to #anchors */
}

section[id] {
    scroll-margin-top: 80px;
}

/* Lock body scroll while mobile menu is open.
   JS sets body.style.top to preserve scroll position;
   .header is forced fixed so the X button stays in viewport. */
body.menu-open {
    position: fixed;
    left: 0;
    right: 0;
    overflow: hidden;
    width: 100%;
}

/* Header sits at viewport top regardless of body scroll offset */
body.menu-open .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1010;
    background: transparent;
    border-bottom: none;
}

body.menu-open .header .logo-link {
    visibility: hidden;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
    font-weight: var(--fw-regular);
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ============================================
   FOCUS STATES — keyboard accessibility
   ============================================ */
:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.btn:focus-visible,
.btn-cta:focus-visible,
.nav-dropdown-toggle:focus-visible,
.nav-link-plain:focus-visible,
.mobile-menu-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(100, 255, 218, 0.2);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 0;
    border-color: var(--accent);
}

/* Skip animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .fade-up, .fade-up.hidden {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Tap highlights — replace browser default with our accent */
a, button, [role="button"] {
    -webkit-tap-highlight-color: rgba(100, 255, 218, 0.18);
}

/* ============================================
   TYPE HIERARCHY — single source of truth
   ============================================ */
h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    letter-spacing: var(--tracking-tight);
    margin-bottom: 1rem;
    color: inherit;
}

h1 {
    font-size: var(--fs-4xl);  /* 48px */
}

h2 {
    font-size: var(--fs-3xl);  /* 36px */
}

h3 {
    font-size: var(--fs-2xl);  /* 30px */
    letter-spacing: var(--tracking-normal);
}

h4 {
    font-size: var(--fs-xl);   /* 24px */
    font-weight: var(--fw-semibold);
    letter-spacing: var(--tracking-normal);
}

h5 {
    font-size: var(--fs-lg);   /* 20px */
    font-weight: var(--fw-semibold);
    letter-spacing: var(--tracking-normal);
}

p {
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
}

.lead {
    font-size: var(--fs-md);   /* 18px */
    line-height: var(--lh-relaxed);
    font-weight: var(--fw-regular);
    color: var(--text-secondary);
}

.caption,
.small-text {
    font-size: var(--fs-sm);   /* 14px */
    line-height: var(--lh-normal);
    color: var(--text-tertiary);
}

/* Auto-flip lead/caption colors when inside dark sections */
.bg-dark .lead,
.bg-dark .caption,
.bg-gradient .lead,
.bg-gradient .caption {
    color: var(--text-on-dark-muted);
}

/* Responsive scale-down for hero H1 on mobile */
@media (max-width: 768px) {
    h1 { font-size: var(--fs-3xl); }  /* 36px */
    h2 { font-size: var(--fs-2xl); }  /* 30px */
    h3 { font-size: var(--fs-xl); }   /* 24px */
}

@media (max-width: 480px) {
    h1 { font-size: var(--fs-2xl); }  /* 30px */
    h2 { font-size: var(--fs-xl); }   /* 24px */
}

/* ============================================
   TYPE UTILITIES — use as escape hatch
   Prefer h1-h5/p/lead semantics first.
   ============================================ */
.text-xs   { font-size: var(--fs-xs); }
.text-sm   { font-size: var(--fs-sm); }
.text-base { font-size: var(--fs-base); }
.text-md   { font-size: var(--fs-md); }
.text-lg   { font-size: var(--fs-lg); }
.text-xl   { font-size: var(--fs-xl); }
.text-2xl  { font-size: var(--fs-2xl); }
.text-3xl  { font-size: var(--fs-3xl); }
.text-4xl  { font-size: var(--fs-4xl); }
.text-5xl  { font-size: var(--fs-5xl); }

.font-regular  { font-weight: var(--fw-regular); }
.font-medium   { font-weight: var(--fw-medium); }
.font-semibold { font-weight: var(--fw-semibold); }
.font-bold     { font-weight: var(--fw-bold); }

.lh-tight   { line-height: var(--lh-tight); }
.lh-normal  { line-height: var(--lh-normal); }
.lh-relaxed { line-height: var(--lh-relaxed); }

.tracking-tight  { letter-spacing: var(--tracking-tight); }
.tracking-normal { letter-spacing: var(--tracking-normal); }
.tracking-wide   { letter-spacing: var(--tracking-wide); text-transform: uppercase; }

.font-display { font-family: var(--font-display); }
.font-body    { font-family: var(--font-body); }
.font-mono    { font-family: var(--font-mono); }

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

ul {
    list-style: none;
}

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

.container-narrow {
    max-width: 600px;
    margin: 0 auto;
}

.section {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--light-bg);
}

.bg-dark {
    background-color: var(--primary);
    color: var(--text-main);
}

/* Pages with full dark body (inline style="background-color: var(--primary)") */
body[style*="--primary"] {
    color: var(--text-main);
}

body[style*="--primary"] h1,
body[style*="--primary"] h2,
body[style*="--primary"] h3,
body[style*="--primary"] h4,
body[style*="--primary"] h5 {
    color: var(--white);
}

body[style*="--primary"] .section-title {
    color: var(--white);
}

body[style*="--primary"] .lead {
    color: var(--text-on-dark-muted);
}

body[style*="--primary"] .eyebrow {
    color: var(--accent);
}

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

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

.text-muted-light { color: var(--text-secondary); }
.text-muted-dark  { color: var(--text-on-dark-muted); }

/* Typography Helpers */
.eyebrow {
    display: block;
    color: var(--primary);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: 1rem;
}

/* Auto-flip eyebrow on dark sections */
.bg-dark .eyebrow,
.bg-gradient .eyebrow,
.cta-section .eyebrow {
    color: var(--accent);
}

.center {
    text-align: center;
}

/* Header */
.header {
    background: #000000;
    /* Matching the logo's probable black background */
    /* backdrop-filter: blur(10px); Removed for solid blend with logo */
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
    /* Reduced padding slightly for image */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Responsive Visibility */
.desktop-only {
    display: inline-flex;
}

.mobile-only {
    display: none !important;
}

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

    .mobile-only {
        display: inline-flex !important;
        margin-top: 1rem;
        width: 100%;
        /* Full width in menu */
        justify-content: center;
    }

    .header-container {
        position: relative;
        justify-content: flex-end;
        min-height: 44px;
    }

    .logo-link {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 1;
    }

    .lang-switch {
        margin-left: 0;
        margin-bottom: 1rem;
    }

    .logo-img {
        height: 35px;
    }
}

/* Language Switch */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1.5rem;
    /* Changed from right to left as it's now last */
}

.lang-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-weight: var(--fw-semibold);
    transition: var(--transition);
    font-size: var(--fs-base);
}

.lang-btn:hover {
    color: var(--white);
}

.lang-btn.active {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.divider {
    color: rgba(255, 255, 255, 0.3);
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), filter 0.35s ease;
}

.logo-link:hover .logo-img {
    transform: scale(1.06);
    animation: logo-glow 2s ease-in-out infinite;
}

@keyframes logo-glow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(0, 160, 255, 0.6)) drop-shadow(0 0 14px rgba(0, 160, 255, 0.25));
    }
    50% {
        filter: drop-shadow(0 0 10px rgba(0, 160, 255, 0.95)) drop-shadow(0 0 26px rgba(0, 160, 255, 0.5));
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 40px;
    }
    .header {
        padding: 0.75rem 0;
    }
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-link {
    font-weight: var(--fw-medium);
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--fs-sm);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* =========================================
   NAV DROPDOWN
   ========================================= */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.92);
    font-family: inherit;
    font-weight: var(--fw-medium);
    font-size: var(--fs-sm);
    padding: 0.55rem 0.95rem;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}

.nav-dropdown-overview {
    background-color: rgba(100, 255, 218, 0.04);
    color: var(--accent) !important;
    font-weight: var(--fw-semibold) !important;
}

.nav-dropdown-overview:hover {
    background-color: rgba(100, 255, 218, 0.12);
}

.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle {
    color: var(--white);
    border-color: var(--accent);
    background-color: rgba(100, 255, 218, 0.06);
}

.nav-dropdown-caret {
    font-size: var(--fs-xs);
    transition: transform 0.25s ease;
    color: rgba(255, 255, 255, 0.55);
    padding: 0.4rem;
    margin: -0.4rem;
    border-radius: 4px;
    /* expand hit area for mobile tap */
}

.nav-dropdown-caret:hover {
    color: var(--accent);
    background-color: rgba(100, 255, 218, 0.1);
}

.nav-dropdown.open .nav-dropdown-caret {
    transform: rotate(180deg);
    color: var(--accent);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    min-width: 280px;
    background-color: #0F2540;
    border: 1px solid rgba(100, 255, 218, 0.18);
    border-radius: 10px;
    padding: 0.5rem;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s linear;
    z-index: 1100;
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 22px;
    width: 12px;
    height: 12px;
    background-color: #0F2540;
    border-left: 1px solid rgba(100, 255, 218, 0.18);
    border-top: 1px solid rgba(100, 255, 218, 0.18);
    transform: rotate(45deg);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.85rem;
    border-radius: 6px;
    color: rgba(204, 214, 246, 0.92);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-dropdown-item:hover {
    background-color: rgba(100, 255, 218, 0.08);
    color: var(--accent);
    transform: translateX(2px);
}

.nav-dropdown-item i {
    color: var(--accent);
    font-size: var(--fs-base);
    width: 18px;
    text-align: center;
}

.nav-dropdown-tag {
    display: inline-block;
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
    background-color: rgba(100, 255, 218, 0.12);
    color: var(--accent);
    margin-right: 0.3rem;
    flex-shrink: 0;
}

.nav-dropdown-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.07);
    margin: 0.4rem 0.25rem;
}

.nav-dropdown-all {
    color: var(--accent) !important;
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    justify-content: space-between;
}

.nav-dropdown-all i {
    color: var(--accent);
    transition: transform 0.2s ease;
}

.nav-dropdown-all:hover i {
    transform: translateX(4px);
}

.nav-link-plain {
    color: rgba(255, 255, 255, 0.92);
    font-weight: var(--fw-medium);
    font-size: var(--fs-sm);
    text-decoration: none;
    padding: 0.55rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.nav-link-plain:hover {
    color: var(--white);
    border-color: var(--accent);
    background-color: rgba(100, 255, 218, 0.06);
}

.btn-cta {
    background-color: var(--accent);
    color: var(--primary) !important;
    border: 1px solid var(--accent);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-sm);
    padding: 0.55rem 1.1rem;
    border-radius: 6px;
    transition: box-shadow 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.btn-cta:hover {
    background-color: #7dffe2;
    box-shadow: 0 0 28px rgba(100, 255, 218, 0.45);
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    position: relative;
    padding: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--white);
    /* White burger menu */
    position: absolute;
    left: 50%;
    margin-left: -11px;
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease, bottom 0.25s ease;
}

.mobile-menu-btn span:nth-child(1) {
    top: 14px;
}

.mobile-menu-btn span:nth-child(2) {
    top: 21px;
}

.mobile-menu-btn span:nth-child(3) {
    top: 28px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    /* Slightly sharper than typical rounded */
    font-weight: var(--fw-semibold);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 25, 47, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: rgba(10, 25, 47, 0.05);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: var(--fs-md);
}

.btn-block {
    width: 100%;
}

/* Hero */
.hero {
    position: relative;
    padding: 5rem 0;
    /* Updated background image with overlay */
    background: linear-gradient(180deg, rgba(10, 25, 47, 0.85) 0%, rgba(10, 25, 47, 0.7) 100%), url('hero-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    overflow: hidden;
    color: var(--white);
    /* Ensure text is white on dark bg */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: var(--fs-5xl);
    color: var(--white);
    /* White text for contrast */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: var(--tracking-tight);
    margin-bottom: 1.5rem;
    opacity: 0;
    /* Star hidden for reveal */
    animation: revealText 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.2s;
    transform-origin: bottom;
}

.hero p {
    font-size: var(--fs-lg);
    color: rgba(255, 255, 255, 0.9);
    /* Lighter white for subtext */
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-domain {
    display: block;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--accent);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: revealText 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.05s;
}

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

/* Grids */
.grid {
    display: grid;
    gap: 2rem;
}

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

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

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

/* Value Proposition */
.card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-align: center;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(2, 12, 27, 0.15);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: 0.5s;
    pointer-events: none;
}

.card:hover::before {
    left: 100%;
    transition: 0.5s;
}

.icon-box {
    font-size: var(--fs-2xl);
    color: #2e6db4;
    /* Brighter Blue */
    margin-bottom: 1.5rem;
}

/* Feature Cards (Benefits) */
.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Logo strip (used on projects page) */
.logo-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 1.75rem 0;
    border-top: 1px solid rgba(0,0,0,0.07);
    border-bottom: 1px solid rgba(0,0,0,0.07);
    flex-wrap: wrap;
}
.logo-strip-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s;
}
.logo-strip-item img {
    height: 44px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    opacity: 0.45;
    filter: grayscale(100%);
    transition: opacity 0.25s, filter 0.25s;
}
.logo-strip-item:hover img {
    opacity: 1;
    filter: grayscale(0%);
}

/* Partners block — main page */
.partners-block {
    padding: var(--section-padding);
    background: #fff;
}
.partners-label {
    text-align: center;
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--primary);
    margin-bottom: 2.5rem;
    line-height: var(--lh-tight);
}
.partners-logos {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.partner-logo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    padding: 1.75rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    min-width: 180px;
    flex: 1;
    max-width: 220px;
}
.partner-logo-card:hover {
    border-color: rgba(10,25,47,0.15);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}
.partner-logo-card img {
    height: 64px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    opacity: 0.55;
    filter: grayscale(100%);
    transition: opacity 0.25s, filter 0.25s;
}
.partner-logo-card:hover img {
    opacity: 1;
    filter: grayscale(0%);
}
.partner-logo-card span {
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    color: #6B7280;
    text-align: center;
    line-height: var(--lh-normal);
    transition: color 0.2s;
}
.partner-logo-card:hover span {
    color: var(--primary);
}
@media (max-width: 600px) {
    .partners-logos {
        gap: 0.75rem;
    }
    .partner-logo-card {
        min-width: 140px;
        padding: 1.25rem 1rem;
    }
    .partner-logo-card img {
        height: 48px;
    }
}

/* 4-column case study grid */
.cs-grid-4 {
    grid-template-columns: repeat(4, 1fr) !important;
}
.cs-grid-4 .feature-card {
    padding: 1.5rem;
    font-size: var(--fs-sm);
}
.cs-grid-4 .feature-card h4 {
    font-size: var(--fs-base);
}
@media (max-width: 1100px) {
    .cs-grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 600px) {
    .cs-grid-4 {
        grid-template-columns: 1fr !important;
    }
}

.feature-card h3 {
    color: var(--primary);
}

/* Use Cases List */
.card-list {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.card-list h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.card-list ul li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
}

.card-list ul li i {
    color: var(--success);
}

/* Integrations */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.col-half {
    flex: 1;
    min-width: 300px;
}

.align-center {
    align-items: center;
}

.integrations-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    font-family: monospace;
    transition: all 0.3s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tag:hover {
    background: rgba(100, 255, 218, 0.15);
    border-color: rgba(100, 255, 218, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(100, 255, 218, 0.1);
}

/* How It Works */
.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
}

.step {
    flex: 1;
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    border-top: 4px solid #eee;
    transition: var(--transition);
}

.step:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.step-number {
    font-size: var(--fs-4xl);
    font-weight: var(--fw-bold);
    color: rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    line-height: var(--lh-tight);
}

/* Business Impact */
.bg-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #112240 100%);
    color: var(--white);
}

.bg-gradient h2 {
    color: var(--white);
    margin-bottom: 3rem;
}

.impact-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    cursor: default;
}

.impact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--accent);
}

.impact-item:hover .impact-val {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.impact-val {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.impact-item p {
    color: var(--text-main);
    font-size: var(--fs-sm);
    margin: 0;
}

/* Contact / CTA */
.cta-section {
    position: relative;
    background: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.8)), url('rig-bg.webp');
    background-size: cover;
    background-position: center;
    padding: 6rem 0;
}

.cta-box {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    /* Glassmorphism */
    backdrop-filter: blur(10px);
    padding: 4rem;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.cta-box h2 {
    color: var(--white);
}

.cta-box p {
    color: rgba(255, 255, 255, 0.8);
}

.cta-text {
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
    color: var(--white) !important;
    margin-bottom: 2rem;
    line-height: var(--lh-normal);
}

/* New 2-col CTA layout */
.cta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: start;
    color: var(--white);
}

.cta-pitch .eyebrow {
    display: inline-block;
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    padding: 0.4rem 0.85rem;
    border: 1px solid rgba(100, 255, 218, 0.4);
    border-radius: 999px;
    background-color: rgba(100, 255, 218, 0.08);
    margin-bottom: 1.5rem;
}

.cta-headline {
    font-size: var(--fs-3xl);
    line-height: var(--lh-tight);
    margin-bottom: 1.25rem;
    color: var(--white);
    font-weight: var(--fw-bold);
    letter-spacing: var(--tracking-tight);
}

.cta-sub {
    font-size: var(--fs-base);
    color: rgba(255, 255, 255, 0.78);
    line-height: var(--lh-normal);
    margin-bottom: 2.25rem;
    max-width: 480px;
}

.cta-deliverables {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cta-deliverables li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cta-deliverables li i {
    flex: 0 0 38px;
    height: 38px;
    width: 38px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.18), rgba(100, 255, 218, 0.05));
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-base);
    border: 1px solid rgba(100, 255, 218, 0.25);
    margin-top: 0.15rem;
}

.cta-deliverables li div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.cta-deliverables li strong {
    color: var(--white);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
}

.cta-deliverables li span {
    color: rgba(255, 255, 255, 0.65);
    font-size: var(--fs-sm);
    line-height: var(--lh-normal);
}

.cta-trust {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--fs-sm);
    padding: 0.7rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
    width: 100%;
}

.cta-trust i {
    color: var(--accent);
}

.cta-form-wrap .cta-box {
    text-align: left;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6);
}

.cta-form-title {
    color: var(--white);
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
    margin-bottom: 0.25rem;
}

.cta-form-sub {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--fs-sm);
    margin-bottom: 1.5rem;
}

.cta-form-wrap .contact-form {
    max-width: none;
    margin: 0;
}

.cta-privacy {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1rem !important;
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: var(--fs-xs) !important;
    line-height: var(--lh-normal);
}

.cta-privacy i {
    color: var(--accent);
    font-size: var(--fs-xs);
}

/* Honeypot — kept off-screen for humans, irresistible to bots */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Inline submit feedback (collapsed until shown) */
.form-msg {
    margin: 0;
    padding: 0 0.9rem;
    max-height: 0;
    overflow: hidden;
    border-radius: 8px;
    font-size: var(--fs-sm);
    line-height: var(--lh-normal);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease,
        padding 0.3s ease, margin 0.3s ease;
}

.form-msg.is-visible {
    margin-top: 0.9rem;
    padding: 0.75rem 0.9rem;
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
}

.form-msg.form-msg-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #A7F3D0;
}

.form-msg.form-msg-error {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #FCA5A5;
}

@media (max-width: 900px) {
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .cta-headline {
        font-size: var(--fs-2xl);
    }
    .cta-form-wrap .cta-box {
        padding: 2rem 1.5rem;
    }
}

.contact-form {
    max-width: 400px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    /* Dark transparent input */
    border-radius: 6px;
    font-family: inherit;
    transition: var(--transition);
    color: var(--white);
}

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

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1);
    background: rgba(0, 0, 0, 0.4);
}

.form-footer {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--fs-sm);
}

.form-footer a {
    color: var(--accent);
    text-decoration: underline;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    align-items: center;
}

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

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.contact-methods i {
    margin-right: 0.5rem;
}

/* Footer */
.footer {
    background: #020c1b;
    color: var(--text-muted);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    color: var(--white);
    font-weight: var(--fw-bold);
    font-size: var(--fs-lg);
}

.footer-links a {
    margin-left: 2rem;
    font-size: var(--fs-sm);
}

.footer-links a:hover {
    color: var(--accent);
}

.copyright {
    text-align: center;
    font-size: var(--fs-xs);
}

/* Animations */
.fade-up {
    opacity: 1;
    /* JS will handle this, but default to visible for no-js */
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.hidden {
    opacity: 0;
    transform: translateY(20px);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* New Animations */
@keyframes revealText {
    from {
        opacity: 0;
        transform: translateY(30px);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(100, 255, 218, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(100, 255, 218, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(100, 255, 218, 0);
    }
}

/* Gallery */
.gallery {
    margin-top: 3rem;
}

.gallery h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: var(--fs-xl);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}


/* Responsive */
@media (max-width: 900px) {

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

    .hero h1 {
        font-size: var(--fs-4xl);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .process-steps {
        flex-direction: column;
    }

    .step {
        border-top: none;
        border-left: 4px solid #eee;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .step:hover {
        border-color: var(--primary);
        transform: translateX(5px);
    }

    .step-number {
        margin: 0;
        font-size: var(--fs-2xl);
        width: 50px;
    }

    .hero h1 {
        font-size: var(--fs-3xl);
    }

    .cta-box {
        padding: 2rem;
    }
}

/* Specialists Section */
.specialists-grid {
    margin-top: 3rem;
}

.specialist-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.specialist-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.specialist-img-box {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-3xl);
    color: var(--primary);
    border: 2px solid rgba(10, 25, 47, 0.1);
    overflow: hidden;
}

.specialist-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.specialist-card h4 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.specialist-card .role {
    color: #2563EB;
    font-weight: var(--fw-semibold);
    font-size: var(--fs-sm);
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}


.section-title {
    font-size: var(--fs-3xl);
    font-family: var(--font-body);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: var(--lh-tight);
}

/* Partners Section */
.partner-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.partner-icon {
    font-size: var(--fs-3xl);
    color: var(--primary);
    margin-bottom: 1rem;
    height: 60px;
    /* Fixed height for alignment */
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: var(--dark-bg);
    margin: 5% auto;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

.close-modal {
    color: rgba(255, 255, 255, 0.5);
    float: right;
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    cursor: pointer;
    transition: var(--transition);
    line-height: var(--lh-tight);
}

.close-modal:hover {
    color: var(--white);
}

.privacy-text-content h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.privacy-text-content h3 {
    color: var(--white);
    font-size: var(--fs-lg);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.privacy-text-content p,
.privacy-text-content li {
    font-size: var(--fs-base);
    color: var(--white);
    margin-bottom: 0.5rem;
    line-height: var(--lh-normal);
}

.privacy-text-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.privacy-text-content a {
    color: var(--white);
    text-decoration: underline;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Footer Address */
.footer-address {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    max-width: 300px;
    text-align: center;
    line-height: var(--lh-normal);
}

.footer-address a {
    display: inline-block;
    padding: 0.5rem 0.25rem;
    min-height: 44px;
    line-height: 28px;
    color: var(--accent);
    margin-top: 0.25rem;
}

.footer-address a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-links a {
        margin-left: 0;
    }
}

/* Animation Overrides for Specialists */
.specialist-img-box {
    transition: var(--transition);
}

.specialist-card:hover .specialist-img-box {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.3);
    transform: scale(1.05);
}

.specialist-img-box img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.specialist-card:hover .specialist-img-box img {
    transform: scale(1.1);
}

.specialist-card h4 {
    transition: var(--transition);
}

.specialist-card:hover h4 {
    color: #2563EB;
}

/* =========================================
   MOBILE RESPONSIVENESS FIXES (Appended)
   ========================================= */

/* 1. GLOBAL & TYPOGRAPHY */
html, body {
    overflow-x: hidden !important;
}

/* Ensure minimum touch targets */
.nav-link, .lang-btn, .btn, .footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.lang-btn {
    min-width: 44px;
}
.footer-links a {
    padding: 0.5rem;
}

/* 2. MOBILE NAVIGATION */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block !important;
        z-index: 1001;
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(10, 25, 47, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
        gap: 2rem;
    }

    .nav.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: var(--fs-xl);
    }

    .lang-switch {
        margin: 1rem 0;
        justify-content: center;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        top: 21px;
        transform: rotate(45deg);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        top: 21px;
        transform: rotate(-45deg);
    }

    /* Mobile dropdown — inline accordion inside fullscreen menu */
    .nav {
        gap: 0.5rem;
        padding: 5rem 1.5rem 2rem;
        justify-content: flex-start;
        overflow-y: auto;
    }

    .nav-dropdown {
        width: 100%;
        max-width: 380px;
    }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: center;
        gap: 0.6rem;
        font-size: var(--fs-md);
        padding: 0.85rem 1rem;
        background-color: rgba(255, 255, 255, 0.03);
    }

    .nav-dropdown-caret {
        padding: 0;
        margin: 0;
        /* caret is decorative on mobile — entire toggle expands accordion */
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        padding: 0 0.5rem;
        background-color: transparent;
        border: none;
        box-shadow: none;
        transition: max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
        margin-top: 0;
    }

    .nav-dropdown-menu::before {
        display: none;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        max-height: 600px;
        padding: 0.5rem;
        margin-top: 0.25rem;
    }

    .nav-dropdown-item {
        font-size: var(--fs-base);
        padding: 0.85rem 1rem;
    }

    .nav-link-plain {
        width: 100%;
        max-width: 380px;
        text-align: center;
        font-size: var(--fs-md);
        padding: 0.85rem 1rem;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 6px;
        justify-content: center;
        background-color: rgba(255, 255, 255, 0.03);
    }

    .btn-cta {
        width: 100%;
        max-width: 380px;
        font-size: var(--fs-base);
        padding: 0.95rem 1.1rem;
    }
}

/* 3. HERO SECTION */
@media (max-width: 400px) {
    .hero h1 {
        font-size: var(--fs-3xl);
        word-wrap: break-word;
    }
    .hero-sub {
        font-size: var(--fs-base);
    }
}

/* 4. GRIDS */
@media (max-width: 900px) {
    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .grid-4, .grid-3, .grid-2 {
        grid-template-columns: 1fr !important;
    }
    
    /* 5. CARDS */
    .card, .feature-card, .card-list, .specialist-card, .partner-card, .impact-item {
        padding: 1.5rem;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: var(--fs-xl);
    }
}

/* 6. CONTACT FORM */
@media (max-width: 600px) {
    .contact-form {
        width: 100%;
        max-width: 100%;
    }
    .form-group input, 
    .form-group select {
        width: 100%;
        min-height: 48px;
        padding: 0.75rem 1rem;
        box-sizing: border-box;
    }
    .btn {
        width: 100%;
    }
}

/* 7. TEAM PAGES (Profile Grid override) */
@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 2rem;
    }
    .profile-card {
        position: relative !important;
        top: 0 !important;
    }
    .profile-img-large {
        max-width: 250px;
        margin: 0 auto 1.5rem;
    }
    .article-content p {
        font-size: var(--fs-base) !important;
        text-align: left;
    }
    .role-badge::after {
        margin: 1rem auto;
    }
}

/* 8. FOOTER */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    .footer-left {
        align-items: center;
    }
    .footer-right {
        align-items: center;
    }
    .footer-links {
        justify-content: center;
        gap: 0.5rem 1.25rem;
    }
    .footer-address {
        max-width: 100%;
        padding: 0 1rem;
    }
}

/* 9. INTEGRATIONS PAGE */
@media (max-width: 600px) {
    .integrations-cloud {
        flex-direction: column;
        align-items: stretch;
    }
    .tag {
        width: 100%;
        text-align: center;
        display: block;
        box-sizing: border-box;
    }
}


@media (max-width: 768px) {
    .feature-row {
        flex-direction: column !important;
        gap: 1.5rem !important;
        text-align: center;
    }
}


@media (max-width: 768px) {
    .feature-img-wrap {
        flex: 0 0 auto !important;
        width: 100% !important;
    }
}

/* Logo strip mobile */
@media (max-width: 600px) {
    .logo-strip {
        gap: 1.5rem 2rem;
    }
    .logo-strip-item img {
        height: 34px;
        max-width: 90px;
    }
}

/* Product page bottom block (next + CTA) */
.product-next-block {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 4rem auto 0;
}

.product-next-card,
.product-cta-card {
    display: flex;
    align-items: center;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(100, 255, 218, 0.12);
    background-color: rgba(255, 255, 255, 0.03);
    transition: border-color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
    text-decoration: none;
    color: var(--text-main);
}

.product-next-card:hover,
.product-cta-card:hover {
    border-color: var(--accent);
    background-color: rgba(100, 255, 218, 0.05);
    transform: translateY(-2px);
}

.product-next-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    position: relative;
}

.product-next-eyebrow,
.product-cta-eyebrow {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--accent);
    font-weight: var(--fw-semibold);
}

.product-next-title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.product-next-title i {
    color: var(--accent);
}

.product-next-arrow {
    position: absolute;
    right: 1.75rem;
    bottom: 1.5rem;
    color: var(--accent);
    font-size: var(--fs-base);
    transition: transform 0.25s ease;
}

.product-next-card:hover .product-next-arrow {
    transform: translateX(6px);
}

.product-cta-card {
    justify-content: space-between;
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.08), rgba(100, 255, 218, 0.02));
    border-color: rgba(100, 255, 218, 0.25);
}

.product-cta-card > div {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.product-cta-title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    color: var(--white);
}

.product-cta-sub {
    font-size: var(--fs-sm);
    color: rgba(204, 214, 246, 0.7);
}

.product-cta-card .btn-cta {
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .product-next-block {
        grid-template-columns: 1fr;
    }
    .product-cta-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .product-cta-card .btn-cta {
        width: 100%;
    }
}

/* 10. MOBILE CARD DENSITY — tighter grid, 2-col where it fits */
@media (max-width: 768px) {
    .grid {
        gap: 1rem;
    }
    .grid-4.key-outcomes {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.85rem;
    }
    .key-outcomes .card {
        padding: 1.25rem 0.75rem !important;
        min-height: 0;
        min-width: 0;
        text-align: center;
    }
    .key-outcomes .card h4 {
        font-size: var(--fs-sm);
        line-height: var(--lh-tight);
        word-break: normal;
        overflow-wrap: break-word;
        hyphens: none;
    }
    .key-outcomes .icon-box {
        margin-bottom: 0.6rem;
    }
}

@media (max-width: 480px) {
    .grid {
        gap: 0.85rem;
    }
    .feature-card, .card-list {
        padding: 1.25rem !important;
    }
    .hero h1 {
        font-size: var(--fs-2xl);
    }
    .hero {
        min-height: 520px;
        padding: 4rem 0 3rem;
    }
}

/* Partners block: contrast fix for white logos on white card */
.partner-logo-card {
    background: linear-gradient(180deg, #f6f8ff 0%, #ffffff 100%);
    border: 1px solid rgba(10, 25, 47, 0.06);
}
.partner-logo-card img {
    filter: contrast(1.05);
}

/* ============================================
   FLOATING WHATSAPP BUTTON
   ============================================ */
.floating-contacts {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    align-items: flex-end;
}

.float-btn {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.65rem;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(2, 12, 27, 0.3);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.float-btn:hover {
    transform: scale(1.09);
}

.float-btn:active {
    transform: scale(0.96);
}

.float-btn-whatsapp {
    background: #25D366;
}

.float-btn-whatsapp:hover {
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.55);
}

/* Attention pulse ring */
.float-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    z-index: -1;
    animation: fab-pulse 2.4s ease-out infinite;
}

.float-btn-whatsapp::before {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
}

@keyframes fab-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Tooltip label (desktop hover) */
.float-btn-tooltip {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: var(--primary);
    color: #fff;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 6px 18px rgba(2, 12, 27, 0.25);
    border: 1px solid rgba(100, 255, 218, 0.15);
}

.float-btn-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--primary);
}

.float-btn:hover .float-btn-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Hide floating buttons while mobile menu overlay is open */
body.menu-open .floating-contacts {
    display: none;
}

@media (max-width: 768px) {
    .floating-contacts {
        bottom: 16px;
        right: 16px;
        gap: 0.7rem;
    }
    .float-btn {
        width: 54px;
        height: 54px;
        font-size: 1.55rem;
    }
    .float-btn-tooltip {
        display: none;
        /* no hover on touch devices */
    }
}

@media (prefers-reduced-motion: reduce) {
    .float-btn::before {
        animation: none;
    }
}
