/* ============================================
   RESET & BASE STYLES
   ============================================ */

:root {
    --color-brand-orange: #ff4d00;
}

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

html {
    scroll-behavior: auto;
}

/* Subtle scroll-driven animations replaced by JS Observer for broader support and control */

@keyframes subtle-slide-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================
   ANIMATION UTILITIES (PREMIUM FEEL)
   ============================================ */

:root {
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Initial state for scroll animations */
.fade-up-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--ease-out-expo), transform 1.2s var(--ease-out-expo);
    will-change: opacity, transform;
}

.fade-up-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Stagger Animation Classes */
.hero-animate {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 1s var(--ease-out-expo) forwards;
}

.hero-delay-1 { animation-delay: 0.1s; }
.hero-delay-2 { animation-delay: 0.2s; }
.hero-delay-3 { animation-delay: 0.3s; }
.hero-delay-4 { animation-delay: 0.4s; }

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: #000;
    background: #ffffff;
    overflow-x: hidden;
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

.about-section,
.authority-section,
.featured-work-stacked,
.logo-marquee-section,
.capabilities-section,
.pain-section,
.final-cta,
.footer {
    content-visibility: auto;
    contain-intrinsic-size: 800px; /* General fallback */
}

/* Section specific sizing estimates to minimize layout shift */
.logo-marquee-section { contain-intrinsic-size: 300px; }
.final-cta { contain-intrinsic-size: 600px; }
.footer { contain-intrinsic-size: 500px; }
.pain-section { contain-intrinsic-size: 900px; }

/* Responsive Sizing Adjustments */
@media (max-width: 768px) {
    .logo-marquee-section { contain-intrinsic-size: 200px; }
    .capabilities-section { contain-intrinsic-size: 1200px; } /* Taller on mobile due to stack */
    .featured-work-stacked { contain-intrinsic-size: 1400px; } /* Much taller on mobile */
}

/* ============================================
   HERO SECTION (DARK)
   ============================================ */

.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    background: linear-gradient(to bottom, #000000 0%, #050505 100%);
    color: #ffffff;
    overflow: hidden;
    padding: 40px 80px 60px;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

/* Hero Canvas Animation */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6; /* Adjust based on preference */
}

/* Navigation */
.hero-nav {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    /* Safari flexbox fixes */
    -webkit-box-pack: justify;
    -webkit-box-align: center;
}

.logo {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
}

.logo img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-top: -4px;
}

.nav-links {
    display: flex;
    gap: 48px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 300;
    letter-spacing: 0.3px;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.7;
}

.nav-cta {
    background: #ffffff;
    color: #000;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    justify-content: center;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #8b8b8b;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

/* Service Tags */
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.tag {
    display: inline-flex;
    align-items: center;
    background: #e8e8e8;
    color: #000000;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.2px;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #d8d8d8;
    transform: translateY(-2px);
}

/* Hero Headline */
.hero-headline {
    font-size: clamp(38px, 5vw, 68px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin: 0 0 40px 0;
    padding: 0;
    position: relative;
    max-width: 900px;
}

.hero-headline .line-1 {
    display: block;
    color: #9CA3AF;
}

.hero-headline .line-2 {
    display: block;
    color: #9CA3AF;
}

.hero-headline .highlight {
    color: #ffffff;
    font-weight: 400;
}

/* Animated Dot Between Lines */
.headline-dot {
    display: block;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    margin: 30px 0;
    animation: dotFloat 3s ease-in-out infinite;
}

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

/* Subheadline */
.hero-subheadline {
    font-size: 24px;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    max-width: 700px;
}

/* Supporting Text */
.hero-supporting {
    font-size: 18px;
    font-weight: 300;
    color: #8b8b8b;
    letter-spacing: 0.2px;
    line-height: 1.7;
    margin-bottom: 60px;
    max-width: 700px;
}

/* CTA Buttons */
.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 120px;
}

.btn-primary {
    background: var(--color-brand-orange);
    color: #ffffff;
    border: none;
    padding: 18px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: all 0.4s ease;
    box-shadow: 0 0 30px rgba(255, 77, 0, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 50px rgba(255, 77, 0, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 18px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 300;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* Hero Bottom Info */
.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-left p {
    font-size: 15px;
    font-weight: 300;
    color: #8b8b8b;
    letter-spacing: 0.3px;
}

.bottom-left .underline {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity 0.3s ease;
}

.bottom-left .underline:hover {
    opacity: 0.7;
}

.bottom-right {
    display: flex;
    gap: 40px;
    font-size: 14px;
    color: #8b8b8b;
    letter-spacing: 0.5px;
}

/* ============================================
   FEATURED WORK SECTION (STACKED REDESIGN)
   ============================================ */

.featured-work-stacked {
    background: #f5f5f7; /* Light grey background from exactly.html */
    padding: 120px 80px;
    position: relative;
    overflow: hidden;
}

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

.work-split-layout {
    display: flex;
    align-items: flex-start;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Left Content - Sticky */
.work-text-content {
    width: 35%;
    position: sticky;
    top: 150px;
    z-index: 10;
    padding-right: 20px;
}

.work-text-content .statement-headline {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -1px;
    margin: 0 0 24px 0;
}

.work-text-content .emphasis-text {
    font-weight: 500;
    color: #000000;
}

.work-text-content .grey-italic {
    color: #9CA3AF;
    font-weight: 400;
}

.work-text-content .work-description {
    font-size: 16px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 32px;
    font-weight: 300;
}

.see-more-link-small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    text-decoration: none;
    border-bottom: 1px solid #000000;
    padding-bottom: 4px;
    transition: opacity 0.3s ease;
}

.see-more-link-small:hover {
    opacity: 0.6;
}

/* Right Cards Container */
.work-cards-container {
    width: 65%;
    position: relative;
    min-height: 600px;
    perspective: 1000px;
}

/* Card Item */
.card-stack-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 550px;
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
    cursor: pointer;
}

/* Initial States (Overridden by JS) */
.card-stack-item.active {
    z-index: 3;
    transform: translateY(0) scale(1);
    opacity: 1;
}

.card-stack-item.next {
    z-index: 2;
    transform: translateY(32px) scale(0.95);
    opacity: 0.6;
}

.card-stack-item.back {
    z-index: 1;
    transform: translateY(64px) scale(0.9);
    opacity: 0.3;
}

.card-image-wrapper {
    aspect-ratio: 4/3;
    background: #f0f0f0;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
}

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

.card-stack-item:hover .card-image-wrapper img {
    transform: scale(1.02);
}

.card-content {
    padding: 0 8px 8px;
}

.card-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9CA3AF;
    margin-bottom: 12px;
}

.card-content h3 {
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 12px 0;
    color: #111;
    letter-spacing: -0.5px;
}

.card-content p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    font-weight: 300;
    margin: 0;
}

/* List View Modifier for Case Studies Page */
.work-cards-list {
    display: flex;
    flex-direction: column;
    gap: 60px; /* Space between cards in list */
}

.work-cards-list .card-stack-item {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none !important;
    opacity: 1 !important;
    margin-bottom: 0;
    max-width: 100%; /* Fill the container */
}

.work-cards-list .card-image-wrapper {
    aspect-ratio: 16/9; /* Slightly wider for full list view */
}

/* Responsive */
@media (max-width: 1024px) {
    .featured-work-stacked {
        padding: 80px 40px;
    }

    .work-split-layout {
        flex-direction: column;
        gap: 60px;
    }
    
    .work-text-content {
        width: 100%;
        position: static;
        padding-right: 0;
        text-align: center;
        margin-bottom: 20px;
    }

    .work-text-content .work-description {
        margin: 0 auto 32px;
    }
    
    .work-cards-container {
        width: 100%;
        min-height: 550px;
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .featured-work-stacked {
        padding: 60px 20px;
    }
    
    .card-stack-item {
        padding: 16px;
    }
    
    .card-content h3 {
        font-size: 20px;
    }
}


/* ============================================
   CASE STUDIES REDESIGN (NEW)
   ============================================ */

/* The colored card that holds the image */
.case-study-card-top {
    border-radius: 12px; /* Very slight border radius as requested */
    padding: 60px 40px; /* Generous padding around the image */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px; /* Space between image card and text */
    position: relative;
    overflow: hidden;
}

.case-study:hover .case-study-card-top {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* The image wrapper inside the colored card */
.case-study-image-inner {
    width: 100%;
    position: relative;
    z-index: 2;
}

.case-study-image-inner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Slight radius on the image itself */
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12); /* Shadow to make it pop off the background */
    transition: transform 0.4s ease;
}

.case-study:hover .case-study-image-inner img {
    transform: scale(1.02);
}

/* Content below the image */
.case-study-content-new {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Tags */
.case-study-content-new .service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.case-study-content-new .tag {
    background: #F3F4F6; /* Light grey background */
    color: #1F2937; /* Darker grey text */
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 100px; /* Pill shape */
    letter-spacing: 0.3px;
}

/* Title */
.case-study-content-new h3 {
    font-size: 24px;
    font-weight: 600; /* Bold */
    font-style: normal; /* Removed italic */
    color: #111827; /* Almost black */
    letter-spacing: -0.5px;
    margin: 0;
    line-height: 1.2;
}

/* Subtitle / Description */
.case-study-content-new .case-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #6B7280; /* Medium grey */
    line-height: 1.5;
    margin: 0;
}

/* Pastel Background Colors (Retained but ensuring they work with new class) */
.blue-bg { background: #E8F0FE; }
.purple-bg { background: #F3EFFF; }
.green-bg { background: #E6F7E6; }
.yellow-bg { background: #FFF8E1; }


/* ------------------------------------------------------
   OLD STYLES (Overwritten or Unused below)
   ------------------------------------------------------ */
/*
.case-study-container { ... }
.case-study-image { ... }
.view-case-badge { ... }
*/


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

.see-more-container {
    margin-top: 60px;
    text-align: right;
    padding-right: 20px;
}

.see-more-link {
    font-weight: 600;
    color: #000000;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: 32px;
    letter-spacing: -1px;
    transition: all 0.3s ease;
}

.see-more-link svg {
    width: 32px;
    height: 32px;
    stroke-width: 2.5px;
    transition: transform 0.3s ease;
}

.see-more-link:hover {
    opacity: 0.7;
}

.see-more-link:hover svg {
    transform: translate(4px, -4px);
}

.case-study-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
    margin-bottom: 20px;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-label {
    font-size: 12px;
    font-weight: 400;
    color: #8b8b8b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 28px;
    font-weight: 400;
    color: #000000;
    letter-spacing: -0.5px;
}

/* Show More Button */
.show-more-btn {
    background: transparent;
    border: 1px solid #E5E5E5;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.show-more-btn:hover {
    border-color: #000000;
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ============================================
   ABOUT/MISSION SECTION (LIGHT)
   ============================================ */

.about-section {
    background: #ffffff;
    padding: 80px 80px 180px;
    position: relative;
    overflow: hidden;
}

/* Subtle Grid Background - REMOVED for Minimalist Look */

/* Technical Header */
.about-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.about-header-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0px 5px;
}

.about-header-right {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.section-number-light {
    font-size: 14px;
    font-weight: 300;
    color: #999999;
    letter-spacing: 0.5px;
}

.technical-ref {
    font-size: 11px;
    font-weight: 400;
    color: #8b8b8b;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.technical-spec {
    font-size: 11px;
    font-weight: 400;
    color: #8b8b8b;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 120px;
    align-items: start;
    position: relative;
    z-index: 2;
}

.about-headline {
    font-size: clamp(48px, 5vw, 80px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin: 0;
    padding: 0;
    text-align: left;
}

.about-headline .light {
    color: #9CA3AF;
    display: inline;
}

.about-headline .emphasis {
    color: #000000;
    font-weight: 400;
}

.about-left .lead-text {
    font-size: 21px;
    font-weight: 300;
    line-height: 1.6;
    color: #000000;
    letter-spacing: -0.2px;
    margin-top: 40px;
    padding: 0;
}

/* Technical Specs Box */
.technical-specs-box {
    margin-top: 40px;
    padding: 30px;
    background: #F8F8F8;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #E5E5E5;
}

.spec-row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.spec-label {
    font-size: 11px;
    font-weight: 500;
    color: #8b8b8b;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.spec-value {
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    letter-spacing: 0.3px;
}

.about-right {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
}

.about-image-placeholder {
    width: 100%;
    position: relative;
}

/* Image Frame with Minimalist Look */
.image-frame {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    /* Subtle shadow instead of border for clean look */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.7s ease;
}

.image-frame:hover img {
    transform: scale(1.03);
}

.about-visual {
    text-align: center;
    z-index: 2;
    color: #ffffff;
}

.visual-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.about-visual p {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.about-description {
    max-width: 900px;
    margin-bottom: 80px;
}

.lead-text {
    font-size: 22px;
    font-weight: 300;
    line-height: 1.6;
    color: #000000;
    letter-spacing: -0.2px;
    margin: 0;
    padding: 0;
}

/* Features Minimalist Accordion */
.features-minimalist-section {
    margin-top: 120px;
    margin-left: 0;
}

.features-accordion {
    display: flex;
    flex-direction: column;
}

.accordion-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.accordion-header:hover {
    opacity: 0.7;
}

.accordion-header h4 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 400;
    color: #000000;
    margin: 0;
    letter-spacing: -0.5px;
}

.accordion-icon {
    width: 24px;
    height: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
}

.accordion-icon svg {
    position: absolute;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icon States */
.accordion-item .icon-minus {
    opacity: 0;
    transform: rotate(-90deg);
}

.accordion-item .icon-plus {
    opacity: 1;
    transform: rotate(0);
}

.accordion-item.active .icon-minus {
    opacity: 1;
    transform: rotate(0);
}

.accordion-item.active .icon-plus {
    opacity: 0;
    transform: rotate(90deg);
}

/* Content Animation */
.accordion-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                padding-bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding-bottom: 0;
}

.accordion-item.active .accordion-content {
    max-height: 300px; /* Large enough to fit content */
    opacity: 1;
    padding-bottom: 40px;
}

.accordion-content p {
    font-size: 18px;
    line-height: 1.6;
    color: #666666;
    margin: 0;
    max-width: 700px;
    font-weight: 300;
}

.emphasis-statement {
    padding: 40px 0;
    border-top: 1px solid #E5E5E5;
}

.emphasis-statement p {
    font-size: 16px;
    line-height: 2;
    color: #000000;
    letter-spacing: 0.3px;
}

/* About Disclaimer */
.about-disclaimer {
    margin-top: 60px;
    padding: 40px;
    background: #F5F5F5;
    border-radius: 12px;
}

.disclaimer-text {
    font-size: 18px;
    line-height: 1.8;
    color: #000000;
    letter-spacing: -0.2px;
}

.disclaimer-text strong {
    font-weight: 500;
}

/* Logo Marquee Section (Apple Style) */
.logo-marquee-section {
    background: #ffffff;
    padding: 120px 0;
    border-bottom: none;
}

.logo-marquee-section .container {
    display: block;
    max-width: 100%;
    padding: 0 40px;
    margin: 0 auto;
}

.marquee-centered-label {
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 60px;
}

.logo-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Removed mask */
}

.logo-track {
    display: flex;
    gap: 80px;
    animation: scroll 80s linear infinite; /* Much slower */
    width: fit-content;
}

.logo-track img {
    height: 28px; /* Smaller, more elegant */
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.3); /* Very subtle */
    transition: all 0.5s ease;
    flex-shrink: 0;
}

.logo-track img:hover {
    filter: grayscale(100%) opacity(0.8); /* Stay monochrome */
    transform: scale(1.05);
}

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

/* Pause animation on hover */
.logo-marquee:hover .logo-track {
    animation-play-state: paused;
}

/* ============================================
   CAPABILITIES SECTION (LIGHT)
   ============================================ */

.capabilities-section {
    background: #F5F5F5;
    padding: 180px 80px;
    overflow: hidden;
}

.capabilities-headline {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -1.5px;
    margin: 0 0 100px 0;
    padding: 0;
    text-indent: 0;
}

.capabilities-headline .grey {
    color: #9CA3AF;
    display: inline;
}

.capabilities-headline .black {
    color: #000000;
    font-weight: 400;
}

/* Marquee Container */
.capabilities-marquee-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    transform: rotate(2deg);
    margin: 60px 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Individual Marquee Row */
.capabilities-marquee-row {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 20px 0;
}

/* Capabilities Track */
.capabilities-track {
    display: flex;
    gap: 40px;
    animation: scroll-left 50s linear infinite;
    width: fit-content;
}

/* Reverse direction for second row */
.capabilities-track-reverse {
    animation: scroll-right 55s linear infinite;
}

/* Pause animation on hover */
.capabilities-marquee-row:hover .capabilities-track {
    animation-play-state: paused;
}

/* Scroll Animations */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

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

/* Capability Card (Redesigned - V2) */
.capability-card {
    background: #E6E6E6; /* Closer match to the reference notification grey */
    padding: 50px; /* Match problem-card padding */
    border-radius: 24px; /* Match problem-card radius */
    border: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-width: 440px; /* Wider to let text breathe like the reference */
    max-width: 440px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 24px; /* Match problem-card gap */
    /* Removed shadow for flatter, cleaner look unless hovered */
    box-shadow: none; 
}

.capability-card:hover {
    background: #dedede;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-top-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 0; /* Let gap handle spacing */
}

.icon-circle, .card-emoji {
    /* width: 40px;  removed fixed width */
    /* height: 40px; removed fixed height */
    background: transparent; /* Removed black background */
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    flex-shrink: 0;
    font-size: 32px; /* Large emoji size */
    line-height: 1;
    padding: 0;
    margin-right: 4px; /* Visual spacing compensation */
}

.icon-circle svg {
    display: none; /* Hide any residual SVGs if present */
}

.capability-card .card-label {
    font-size: 13px;
    font-weight: 600;
    color: #666666; /* Metadata grey */
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.capability-card h3 {
    font-size: 28px; /* Match card-title */
    font-weight: 400; /* Match card-title */
    color: #000000; /* Match light-card title */
    letter-spacing: -0.5px; /* Match card-title */
    line-height: 1.2; /* Match card-title */
    margin: 0;
}

.card-desc {
    font-size: 15px; /* Match card-description */
    font-weight: 300; /* Match card-description */
    color: #666666; /* Match light-card description */
    line-height: 1.6; /* Match card-description */
    margin: 0;
    max-width: 100%;
}

/* ============================================
   AUTHORITY SECTION (DARK/INVERTED)
   ============================================ */

.authority-section {
    background: #0a0a0a;
    padding: 140px 80px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Split Layout */
.authority-split-layout {
    display: flex;
    gap: 80px;
    align-items: flex-start;
    position: relative;
}

/* Left Visual Area */
.authority-visual-area {
    width: 45%;
    position: sticky;
    top: 120px;
    z-index: 1;
}

.authority-headline {
    font-size: clamp(42px, 4vw, 64px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin: 0 0 24px 0;
    color: #ffffff;
}

.italic-highlight {
    font-style: normal;
    color: #666666;
    font-weight: 400;
    display: block;
    margin-top: 8px;
}

.authority-intro {
    font-size: 18px;
    font-weight: 300;
    color: #999999;
    line-height: 1.6;
    max-width: 480px;
    margin-bottom: 40px;
}

/* Map Visuals */
.authority-map-visual {
    position: relative;
    height: 400px;
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
    display: block; /* Ensure map is visible by default */
}

/* Map Background */
.world-map-bg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.15; /* Subtle background */
    filter: invert(1) grayscale(100%); /* Ensure it's white/light on dark bg */
    display: block; /* Ensure image is visible */
}

/* Map Overlay */
.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Map Continents */
/* Removed as we are using image background */

/* Connections */
.map-connection {
    fill: none;
    stroke: #ff4d00;
    stroke-width: 1.5;
    stroke-dasharray: 600; /* Increased for longer lines */
    stroke-dashoffset: 600;
    opacity: 0.6;
    animation: drawLine 4s ease-out infinite;
}

.map-connection:nth-child(1) { animation-delay: 0s; }
.map-connection:nth-child(2) { animation-delay: 0.5s; }
.map-connection:nth-child(3) { animation-delay: 1s; }
.map-connection:nth-child(4) { animation-delay: 1.5s; }

/* Dots */
.map-dot {
    fill: #ffffff;
    opacity: 0.6;
}

.map-dot.primary {
    fill: #ff4d00;
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255, 77, 0, 0.5));
    animation: dotPulsePrimary 3s infinite;
    transform-origin: 760px 380px; /* Match CX CY */
}

/* Map Labels */
.map-label {
    font-size: 24px; /* Significantly larger for SVG scaling */
    fill: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    animation: labelFadeIn 1s ease-out forwards;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); /* Stronger shadow */
    letter-spacing: 0.5px;
}

.map-label.highlight {
    fill: #ff4d00;
    font-weight: 700;
    font-size: 30px; /* Larger highlight */
    opacity: 1; /* Vietnam always visible or different fade */
    text-shadow: 0 2px 12px rgba(255, 77, 0, 0.5);
}

@keyframes labelFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 0.95; transform: translateY(0); }
}

.map-label:nth-of-type(1) { animation-delay: 2s; } /* USA */
.map-label:nth-of-type(2) { animation-delay: 1.5s; } /* Europe */
.map-label:nth-of-type(4) { animation-delay: 1s; } /* Singapore */
.map-label:nth-of-type(5) { animation-delay: 0.5s; } /* Australia */

@keyframes drawLine {
    0% {
        stroke-dashoffset: 600;
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    50% {
        stroke-dashoffset: 0;
        opacity: 0.8;
    }
    80% {
        opacity: 0;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

@keyframes dotPulsePrimary {
    0%, 100% {
        r: 5;
        opacity: 1;
    }
    50% {
        r: 8;
        opacity: 0.6;
    }
}

/* Right Cards Stack */
.authority-cards-stack {
    width: 55%;
    display: flex;
    flex-direction: column;
    gap: 0; /* Gap handled by margins for overlap */
    padding-top: 60px; /* Offset to align nicely */
    position: relative;
    z-index: 5;
}

.authority-floating-card {
    /* Glassmorphism Dark */
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 50px; /* Match problem-card */
    position: relative;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    gap: 24px; /* Match problem-card */
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.authority-floating-card:hover {
    border-color: rgba(255, 77, 0, 0.3);
    background: rgba(30, 30, 30, 0.95);
    box-shadow: 
        0 12px 40px rgba(255, 77, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 77, 0, 0.1) inset;
    transform: translateY(-8px) scale(1.02);
    z-index: 100 !important;
}

/* Staggering/Overlapping effect */
.authority-floating-card.card-1 {
    margin-right: 120px; /* Shift left */
    z-index: 3;
}

.authority-floating-card.card-2 {
    margin-left: 60px; /* Shift right */
    margin-top: -60px; /* Overlap upwards */
    margin-right: 60px;
    z-index: 4;
}

.authority-floating-card.card-3 {
    margin-right: 120px; /* Shift left again */
    margin-top: -60px;
    z-index: 5;
}

.card-number {
    display: inline-block;
    font-family: 'Courier New', monospace; /* Tech feel */
    font-size: 12px;
    font-weight: 600;
    color: var(--color-brand-orange);
    margin-bottom: 0; /* Let gap handle spacing */
    letter-spacing: 1px;
    background: rgba(255, 77, 0, 0.1);
    padding: 6px 12px;
    border-radius: 100px;
    border: 1px solid rgba(255, 77, 0, 0.2);
    width: fit-content;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.authority-floating-card:hover .card-number {
    background: rgba(255, 77, 0, 0.2);
    border-color: rgba(255, 77, 0, 0.5);
    color: #ffffff;
    transform: scale(1.05);
}

.authority-floating-card h4 {
    font-size: 28px; /* Match card-title */
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.authority-floating-card p {
    font-size: 15px; /* Match card-description */
    color: #999999; /* Match dark card-description */
    line-height: 1.6;
    margin: 0;
    font-weight: 300;
    transition: color 0.3s ease;
}

.authority-floating-card:hover p {
    color: #cccccc;
}

@media (max-width: 1024px) {
    .authority-split-layout {
        flex-direction: column;
        gap: 60px;
    }
    
    .authority-visual-area {
        width: 100%;
        position: static;
        margin-bottom: 0;
    }

    .authority-intro {
        max-width: 100%;
    }
    
    .authority-map-visual {
        height: 300px;
        margin: 40px auto 0;
    }

    .authority-cards-stack {
        width: 100%;
        padding-top: 0;
        gap: 24px;
    }
    
    .authority-floating-card.card-1,
    .authority-floating-card.card-2,
    .authority-floating-card.card-3 {
        margin: 0;
        background: #141414;
    }
    
    .authority-floating-card:hover {
        background: #1a1a1a;
        transform: translateY(-4px);
    }
}

@media (max-width: 768px) {
    .authority-section {
        padding: 80px 30px;
    }
    
    .authority-map-visual {
        display: block !important; /* Force show map on mobile */
        height: 280px; /* Smaller height for mobile */
        margin: 30px auto 0;
        max-width: 100%;
        visibility: visible;
        border: 1px solid rgba(255, 255, 255, 0.1); /* Debug border to see container */
    }
    
    .world-map-bg {
        opacity: 0.3 !important; /* Make more visible on mobile */
    }
    
    /* Adjust map elements for mobile */
    .map-overlay {
        transform: scale(0.9); /* Slightly smaller for better fit */
        transform-origin: center;
    }
    
    .map-label {
        font-size: 36px; /* Much larger to compensate for mobile SVG scaling */
    }
    
    .map-label.highlight {
        font-size: 42px; /* Maintain prominence for Vietnam on mobile */
    }
    
    .map-dot {
        r: 3; /* Smaller dots on mobile */
    }
    
    .map-dot.primary {
        r: 5; /* Smaller primary dot */
    }
}

/* ============================================
   PAIN SECTION (DARK/INVERTED) - COMPACT CARDS
   ============================================ */

.pain-section {
    background: linear-gradient(to bottom, #000000 0%, #0a0a0a 100%);
    padding: 120px 80px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.pain-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    opacity: 0.4;
}

.pain-section .container {
    position: relative;
    z-index: 2;
}

.pain-compact-headline {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -1px;
    margin: 0 0 80px 0;
    padding: 0;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #9CA3AF;
}

.pain-compact-headline .emphasis {
    font-weight: 400;
    color: #ffffff;
}

/* Problem Cards Grid */
.problem-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual Card */
.problem-card {
    background: #1a1a1a;
    border-radius: 24px;
    padding: 50px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.problem-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Light Card Variant */
.light-card {
    background: #f5f5f5;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.light-card .card-icon {
    color: #000000;
}

.light-card .card-title {
    color: #000000;
}

.light-card .card-description {
    color: #666666;
}

.light-card .card-list {
    color: #000000;
}

.light-card .card-list li {
    color: #000000;
}

.light-card .card-list li::before {
    color: #000000;
}

.light-card .card-label {
    color: #666666;
}

.light-card .card-value {
    color: #000000;
}

/* Card Icon */
.card-icon {
    font-size: 32px;
    color: #ffffff;
    line-height: 1;
}

/* Card Title */
.card-title {
    font-size: 28px;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin: 0;
    line-height: 1.2;
}

/* Card Description */
.card-description {
    font-size: 15px;
    font-weight: 300;
    color: #999999;
    line-height: 1.6;
    margin: 0;
}

/* Card List */
.card-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-list li {
    font-size: 15px;
    font-weight: 300;
    color: #ffffff;
    line-height: 1.6;
    padding-left: 28px;
    position: relative;
}

.card-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ffffff;
    font-size: 14px;
}

/* Card Footer */
.card-footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.light-card .card-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.card-footer .footer-left {
    flex: 1;
}

.footer-asterisk {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.15);
    font-weight: 300;
    line-height: 1;
}

.card-label {
    font-size: 11px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    letter-spacing: 0.5px;
    margin: 0 0 8px 0;
}

.card-value {
    font-size: 24px;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin: 0;
}

.problem-card .btn-primary {
    margin-top: 20px;
    width: 100%;
}

/* Card CTA Row */
.card-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.card-cta .cta-text {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

.btn-cta-small {
    background: var(--color-brand-orange);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-cta-small:hover {
    background: #ff6a32;
    transform: translateX(2px);
}

/* Card Button - Smaller Size */
.card-btn {
    margin-top: 0;
    width: auto;
    padding: 6px 12px;
    font-size: 11px;
    white-space: nowrap;
    font-weight: 400;
}

/* ============================================
   FINAL CTA SECTION (DARK)
   ============================================ */

.final-cta {
    background: var(--color-brand-orange);
    padding: 0;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CTA Canvas Animation */
#cta-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4; /* Subtle effect */
}

/* Slanted Top Transition */
.cta-accent-stripe {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 150px;
    background: #0a0a0a; /* Matches bottom of pain-section */
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 100%);
    z-index: 1;
}

.final-cta .container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    padding: 120px 80px;
}

.cta-statement {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: -1px;
    color: #ffffff;
    margin: 0 0 60px 0;
    padding: 0;
}

.cta-statement em {
    font-style: italic;
    font-weight: 300;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.final-cta .btn-primary {
    background: #ffffff;
    color: var(--color-brand-orange);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.final-cta .btn-primary:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.btn-primary.large {
    padding: 22px 48px;
    font-size: 18px;
    position: relative;
    z-index: 3;
}

.cta-supporting {
    font-size: 16px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.3px;
    line-height: 1.8;
    margin: 0;
}

/* ============================================
   FOOTER (PREMIUM)
   ============================================ */

.footer {
    background: #000000;
    padding: 80px 80px 40px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    opacity: 0.3;
}

.footer .container {
    position: relative;
    z-index: 2;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 80px;
}

/* Brand Column */
.footer-col-brand {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-right: 40px;
}

.footer-logo {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
}

.footer-logo img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-top: -3px;
}

.footer-mission {
    font-size: 15px;
    line-height: 1.6;
    color: #999999;
    font-weight: 300;
    max-width: 300px;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #8b8b8b;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.3px;
    margin-top: auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 50px;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Simple Footer CTA Button */
.footer-simple-cta {
    margin-top: 24px;
    font-size: 15px;
    padding: 12px 24px;
    width: auto;
    display: inline-block;
}

/* Columns Common */
.footer-heading {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666666;
    font-weight: 500;
    margin-bottom: 24px;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-nav a {
    color: #999999;
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-nav a:hover {
    color: #ffffff;
    padding-left: 4px;
}

/* Location Column */
.footer-col-locations {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-end;
    text-align: right;
}

.location-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.location-label {
    font-size: 11px;
    color: var(--color-brand-orange);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.location-item p {
    font-size: 14px;
    color: #ffffff;
    margin: 0;
    font-weight: 300;
}

.partner-link {
    font-size: 13px;
    color: #666666;
    text-decoration: none;
    margin-top: 4px;
    transition: color 0.3s ease;
}

.partner-link:hover {
    color: #ffffff;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 13px;
    color: #666666;
    font-weight: 300;
}

.legal-links {
    display: flex;
    gap: 30px;
}

.legal-links a {
    font-size: 13px;
    color: #666666;
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #ffffff;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .hero {
        padding: 30px 60px;
    }
    
    .hero-headline {
        font-size: clamp(40px, 6vw, 80px);
    }
    
    .featured-work {
        padding: 120px 60px;
    }
    
    .statement-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-section {
        padding: 120px 60px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .capabilities-section {
        padding: 120px 60px;
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
    
    .authority-section {
        padding: 120px 60px;
    }
    
    .authority-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .authority-grid {
        grid-template-columns: 1fr;
    }
    
    .pain-section {
        padding: 120px 60px;
    }
    
    .pain-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .final-cta {
        padding: 150px 60px;
    }
    
    /* Footer updates for tablet */
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 40px 32px 60px 32px;
        height: auto;
        min-height: 100vh;
    }
    
    .hero-nav {
        margin-bottom: 60px;
        margin-top: 8px; /* Add breathing room from top */
        gap: 16px;
        /* Safari mobile fixes */
        -webkit-box-pack: justify;
        -webkit-box-align: center;
        width: 100%;
        box-sizing: border-box;
    }
    
    .logo {
        font-size: 18px;
        gap: 8px;
        flex-shrink: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: calc(100vw - 160px); /* Reserve space for CTA button */
        /* Safari text truncation fixes */
        -webkit-text-overflow: ellipsis;
        word-break: keep-all;
        flex-basis: auto;
        width: auto;
        /* Safari iOS specific fixes */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .logo img {
        height: 28px;
        flex-shrink: 0;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-cta {
        padding: 10px 20px;
        font-size: 14px;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .hero-headline {
        font-size: clamp(32px, 8vw, 48px);
        letter-spacing: -1px;
    }
    
    .hero-subheadline {
        font-size: 20px;
    }
    
    .hero-supporting {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .hero-bottom {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }
    
    .hero-diagram {
        right: -100px;
        max-width: 400px;
        opacity: 0.4;
        top: 45%;
    }

    .hero-diagram::before {
        background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, transparent 60%);
    }


    .grid-pattern {
        width: 100%;
        opacity: 0.5;
    }
    
    /* Featured Work Responsive */
    .featured-work {
        padding: 80px 32px;
    }
    
    .statement-headline {
        font-size: clamp(28px, 7vw, 48px);
    }
    
    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .case-study-bg {
        padding: 40px;
        min-height: 400px;
    }
    
    /* About Section Responsive */
    .about-section {
        padding: 80px 32px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-headline {
        font-size: clamp(36px, 8vw, 56px);
    }
    
    .about-image-placeholder {
        height: 300px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .feature-item {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 60px 0;
    }
    
    .feature-number {
        margin-bottom: 0;
    }
    
    .lead-text {
        font-size: 18px;
    }
    
    /* Logo Marquee Responsive */
    .logo-marquee-section {
        padding: 60px 32px;
    }
    
    .marquee-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    
    .logo-track img {
        height: 32px;
    }
    
    /* Capabilities Responsive */
    .capabilities-section {
        padding: 80px 32px;
    }
    
    .capabilities-headline {
        font-size: clamp(28px, 7vw, 48px);
        margin-bottom: 60px;
    }
    
    .capabilities-marquee-container {
        margin: 40px 0;
        transform: rotate(1.5deg);
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }
    
    .capabilities-track {
        gap: 20px;
    }
    
    .capability-card {
        padding: 28px;
        min-width: 280px;
        max-width: 280px;
    }
    
    .capability-card h3 {
        font-size: 22px;
    }
    
    .capability-card .card-desc {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* Authority Section Responsive */
    .authority-section {
        padding: 80px 32px;
    }
    
    .authority-split-layout {
        flex-direction: column;
        gap: 40px;
    }
    
    .authority-visual-area {
        width: 100%;
        position: static;
        display: block;
        visibility: visible;
    }
    
    .authority-map-visual {
        display: block !important; /* Force visibility on mobile */
        height: 250px; /* Smaller on mobile */
        margin: 20px auto 0;
        visibility: visible;
    }
    
    .authority-cards-stack {
        width: 100%;
    }
    
    .authority-header {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .authority-header-right {
        justify-content: flex-start;
    }
    
    .authority-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .authority-headline {
        font-size: clamp(32px, 8vw, 56px);
    }
    
    .authority-feature {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 60px 0;
    }
    
    .authority-number {
        margin-bottom: 0;
    }
    
    /* Pain Section Responsive */
    .pain-section {
        padding: 80px 32px;
    }
    
    .pain-compact-headline {
        font-size: clamp(24px, 6vw, 40px);
        margin-bottom: 60px;
    }
    
    .problem-cards {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .problem-card {
        padding: 36px;
    }
    
    .card-title {
        font-size: 24px;
    }
    
    .card-list li {
        font-size: 14px;
    }
    
    /* Final CTA Responsive */
    .final-cta {
        min-height: 80vh;
    }
    
    .final-cta .container {
        padding: 80px 32px;
    }
    
    .cta-statement {
        font-size: clamp(32px, 8vw, 60px);
    }
    
    .cta-supporting {
        font-size: 14px;
    }
    
    /* Footer Responsive */
    .footer {
        padding: 60px 32px 40px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-col-brand {
        padding-right: 0;
    }
    
    .footer-simple-cta {
        width: 100%;
        text-align: center;
        margin-top: 20px;
    }

    .footer-col-locations,
    .location-item {
        align-items: flex-start;
        text-align: left;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 12px;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    .hero {
        padding: 32px 24px 60px 24px;
    }
    
    .hero-nav {
        margin-bottom: 40px;
        margin-top: 6px; /* Add breathing room from top */
        gap: 12px;
        /* Safari mobile fixes */
        -webkit-box-pack: justify;
        -webkit-box-align: center;
        width: 100%;
        box-sizing: border-box;
    }
    
    .logo {
        font-size: 16px;
        gap: 6px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: calc(100vw - 120px); /* Reserve space for CTA button */
        /* Safari text truncation fixes */
        -webkit-text-overflow: ellipsis;
        word-break: keep-all;
        flex-basis: auto;
        width: auto;
        /* Safari iOS specific fixes */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .logo img {
        height: 24px;
    }
    
    .nav-cta {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 40px;
    }
    
    .hero-headline {
        font-size: clamp(28px, 7vw, 40px);
        line-height: 1.1;
    }
    
    .hero-subheadline {
        font-size: 18px;
        line-height: 1.4;
    }
    
    .hero-buttons {
        gap: 10px;
    }
    
    .btn-primary {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .btn-secondary {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    /* Authority Section - Extra Small Mobile */
    .authority-map-visual {
        display: block !important; /* Force visibility on extra small mobile */
        height: 200px; /* Even smaller on very small screens */
        margin: 15px auto 0;
        visibility: visible;
    }
    
    .map-overlay {
        transform: scale(0.8); /* Smaller scale for tiny screens */
    }
    
    .map-label {
        font-size: 44px; /* Very large to compensate for small mobile SVG scaling */
    }
    
    .map-label.highlight {
        font-size: 50px; /* Keep Vietnam prominent on small screens */
    }
    
    /* Capabilities Section - Extra Small Mobile */
    .capabilities-section {
        padding: 120px 24px;
    }
    
    .capabilities-headline {
        font-size: clamp(28px, 8vw, 40px);
        margin-bottom: 60px;
    }
    
    .capability-card {
        padding: 20px;
        min-width: 240px;
        max-width: 240px;
    }
    
    .capability-card h3 {
        font-size: 18px;
        line-height: 1.2;
    }
    
    .capability-card .card-desc {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .card-emoji {
        font-size: 24px;
    }
    
    .capabilities-track {
        gap: 16px;
    }
}

/* Safari-specific fixes for mobile navigation */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .hero {
            /* Add safe area padding for Safari mobile */
            padding-top: max(40px, env(safe-area-inset-top, 20px) + 20px);
        }
        
        .logo {
            max-width: 60vw; /* Fallback for Safari calc() issues */
        }
        
        .hero-nav {
            /* Force Safari to respect flexbox */
            display: -webkit-box;
            display: -webkit-flex;
            display: flex;
            -webkit-flex-wrap: nowrap;
            flex-wrap: nowrap;
        }
        
        /* Safari marquee fixes */
        .capabilities-marquee-container {
            -webkit-transform: rotate(1.5deg);
            transform: rotate(1.5deg);
            width: 100vw;
            margin-left: -50vw;
            margin-right: -50vw;
            left: 50%;
            right: 50%;
            position: relative;
        }
        
        .capabilities-marquee-row {
            width: 100%;
            overflow: hidden;
        }
    }
    
    @media (max-width: 480px) {
        .hero {
            /* Add safe area padding for small Safari screens */
            padding-top: max(32px, env(safe-area-inset-top, 20px) + 12px);
        }
        
        .logo {
            max-width: 55vw; /* Tighter constraint for small Safari screens */
        }
    }
}

/* Social Media In-App Browser Fixes */
@media screen and (max-device-width: 480px) {
    /* Twitter/X webview detection and fixes */
    .hero-nav {
        /* Ensure navigation works in webviews */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .capabilities-marquee-container {
        /* Fallback for webviews that don't handle complex transforms well */
        transform: none;
        -webkit-transform: none;
    }
    
    /* Ensure animations work in webviews */
    .map-connection {
        -webkit-animation: drawLine 4s ease-out infinite;
        animation: drawLine 4s ease-out infinite;
    }
}

/* Detect if running in webview/iframe (social media apps) */
@media screen and (max-width: 768px) {
    /* Additional webview compatibility */
    body {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    /* Ensure fonts load properly in webviews */
    * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* ============================================
   MODAL STYLES
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: #ffffff;
    width: 90%;
    max-width: 580px;
    border-radius: 20px;
    padding: 48px;
    position: relative;
    transform: translateY(20px) scale(0.98);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: #f5f5f5;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #e5e5e5;
    color: #000;
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 40px;
    text-align: center;
}

.modal-header h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #111;
    letter-spacing: -1px;
}

.modal-header p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    max-width: 380px;
    margin: 0 auto;
}

.modal-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    color: #111;
    background: #ffffff;
    transition: all 0.2s ease;
    outline: none;
    width: 100%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #ccc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #000;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.05);
    transform: translateY(-1px);
}

.btn-primary.full-width {
    width: 100%;
    grid-column: span 2;
    margin-top: 16px;
    text-align: center;
    justify-content: center;
    font-weight: 500;
    height: 56px;
}

/* Premium Black Button for Modal */
.modal-form .btn-primary {
    background: #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-form .btn-primary:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.form-footer {
    grid-column: span 2;
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

@media (max-width: 600px) {
    .modal-container {
        padding: 32px 20px;
        width: 95%;
    }
    .modal-form {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
    .btn-primary.full-width {
        grid-column: span 1;
    }
    .form-footer {
        grid-column: span 1;
    }
    .modal-header h2 {
        font-size: 24px;
    }
}
