/* ============================================
   David Soden - AI Consulting Landing Page
   Design System & Layout
   ============================================ */

:root {
    /* Colors - Background */
    --bg-primary: #0A0A0B;
    --bg-secondary: #111113;
    --bg-card: #141417;
    --bg-input: #1A1A1D;

    /* Colors - Brand */
    --blue-primary: #2B88D8;
    --blue-light: #5AADE8;
    --blue-glow: rgba(43, 136, 216, 0.13);
    --blue-border: rgba(43, 136, 216, 0.2);
    --teal: #5DC4BA;
    --teal-glow: rgba(93, 196, 186, 0.1);
    --teal-border: rgba(93, 196, 186, 0.2);
    --teal-dark: #073D5A;
    --green: #22C55E;

    /* Colors - Text */
    --text-white: #FFFFFF;
    --text-light: #ADADB0;
    --text-muted: #8B8B90;
    --text-dim: #6B6B70;
    --text-subtle: #4A4A4E;

    /* Colors - Borders */
    --border: #1F1F23;
    --border-light: #2A2A2E;

    /* Typography */
    --font-heading: 'Instrument Serif', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'DM Mono', 'Fira Code', monospace;

    /* Spacing */
    --section-py: 100px;
    --section-px: 80px;
    --container-max: 1280px;

    /* Animation */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);
    --duration-fast: 0.3s;
    --duration-normal: 0.6s;
    --duration-slow: 0.8s;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: clip;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--section-px);
}

/* Mobile-only line break */
.mobile-br { display: none; }
@media (max-width: 768px) { .mobile-br { display: block; } }

/* Section base */
.section {
    padding: var(--section-py) 0;
}

.section--alt {
    background: var(--bg-secondary);
}

/* Section headers */
.section-tag {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--blue-primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 48px);
    color: var(--text-white);
    letter-spacing: -1px;
    text-align: center;
    margin-bottom: 16px;
    font-weight: 400;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-dim);
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: background var(--duration-fast), box-shadow var(--duration-fast), backdrop-filter var(--duration-fast);
}

.header.scrolled {
    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border);
}

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

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.header-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.header-nav a {
    font-size: 14px;
    color: var(--text-light);
    transition: color var(--duration-fast);
    position: relative;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue-primary);
    transition: width var(--duration-fast) var(--ease-out-cubic);
}

.header-nav a:hover {
    color: var(--text-white);
}

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

.header-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-contact {
    font-size: 14px;
    font-weight: 500;
    color: var(--blue-primary);
    transition: color var(--duration-fast);
}

.header-contact:hover {
    color: var(--blue-light);
}

/* Mobile nav + overlay hidden on desktop */
.mobile-nav,
.mobile-overlay {
    display: none;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-white);
    transition: transform var(--duration-fast), opacity var(--duration-fast);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 8px;
    transition: all var(--duration-fast) var(--ease-out-cubic);
}

.btn--primary {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
    color: var(--text-white);
    box-shadow: 0 4px 20px rgba(43, 136, 216, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(43, 136, 216, 0.4);
}

.btn--secondary {
    color: var(--text-white);
    border: 1px solid var(--border-light);
    background: transparent;
}

.btn--secondary:hover {
    border-color: var(--blue-primary);
    background: rgba(43, 136, 216, 0.08);
}

.btn--large {
    font-size: 16px;
    padding: 18px 36px;
}

.btn--teal {
    background: var(--teal);
    color: var(--teal-dark);
    box-shadow: 0 4px 20px rgba(93, 196, 186, 0.3);
}

.btn--teal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(93, 196, 186, 0.4);
}

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

.btn svg,
.btn i {
    width: 18px;
    height: 18px;
}

/* ============================================
   HERO
   ============================================ */

.hero {
    padding: 160px 0 var(--section-py);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border: 1px solid var(--blue-border);
    border-radius: 100px;
    width: fit-content;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--blue-primary);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--blue-primary);
}

.hero-badge span {
    font-size: 12px;
    font-weight: 500;
    color: var(--blue-light);
    letter-spacing: 0.5px;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(40px, 5vw, 64px);
    color: var(--text-white);
    letter-spacing: -2px;
    line-height: 1.05;
    font-weight: 400;
    max-width: 600px;
}

.hero-headline .typing-cursor {
    display: inline-block;
    width: 3px;
    height: 0.9em;
    background: var(--blue-primary);
    margin-left: 4px;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}

.hero-subtext {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 560px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.hero-image-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle, rgba(43, 136, 216, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-image-border {
    position: relative;
    width: 286px;
    height: 286px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-light), rgba(43, 136, 216, 0.3), var(--blue-primary));
    z-index: 1;
    animation: heroEntrance 1s 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.hero-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* ============================================
   STATS BAR
   ============================================ */

.stats {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60px;
    background: var(--border-light);
}

.stat-value {
    font-family: var(--font-mono);
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 500;
    color: var(--blue-primary);
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

/* ============================================
   CLIENT TICKER
   ============================================ */

.ticker-bar {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    overflow: hidden;
    position: relative;
}

.ticker-bar::before,
.ticker-bar::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.ticker-bar::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-secondary), transparent);
}

.ticker-bar::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-secondary), transparent);
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: tickerScroll 60s linear infinite;
}

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

.ticker-content {
    display: flex;
    align-items: center;
    gap: 48px;
    padding-right: 48px;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.ticker-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
}

.ticker-badge.f100 {
    background: rgba(43, 136, 216, 0.15);
    color: var(--blue-primary);
}

.ticker-badge.f500 {
    background: rgba(43, 136, 216, 0.08);
    color: var(--blue-light);
}

.ticker-badge.big4 {
    background: rgba(93, 196, 186, 0.12);
    color: var(--teal);
}

.ticker-badge.amlaw {
    background: rgba(168, 130, 255, 0.12);
    color: #A882FF;
}

.ticker-badge.ent {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-dim);
}

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

/* ============================================
   CLIENT EXPERIENCE
   ============================================ */

.exp-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.exp-filter {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 8px 18px;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out-cubic);
    display: flex;
    align-items: center;
    gap: 6px;
}

.exp-filter:hover {
    color: var(--text-white);
    border-color: var(--border-light);
}

.exp-filter.active {
    background: var(--blue-primary);
    color: var(--text-white);
    border-color: var(--blue-primary);
}

.exp-filter-count {
    font-family: var(--font-mono);
    font-size: 11px;
    background: rgba(255, 255, 255, 0.15);
    padding: 1px 6px;
    border-radius: 8px;
}

.exp-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.exp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
    transition: all var(--duration-fast) var(--ease-out-cubic);
}

.exp-card:hover {
    border-color: var(--blue-border);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.exp-card.hidden {
    display: none;
}

.exp-tier {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
}

.exp-tier.f100 {
    background: rgba(43, 136, 216, 0.15);
    color: var(--blue-primary);
}

.exp-tier.f500 {
    background: rgba(43, 136, 216, 0.08);
    color: var(--blue-light);
}

.exp-tier.big4 {
    background: rgba(93, 196, 186, 0.12);
    color: var(--teal);
}

.exp-tier.amlaw {
    background: rgba(168, 130, 255, 0.12);
    color: #A882FF;
}

.exp-tier.ent {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-dim);
}

.exp-tier.smb {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-subtle);
}

.exp-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    line-height: 1.3;
}

/* Experience responsive */
@media (max-width: 1200px) {
    .exp-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .exp-grid { grid-template-columns: repeat(3, 1fr); }
    .ticker-content { gap: 32px; padding-right: 32px; }
}

@media (max-width: 480px) {
    .exp-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   SERVICES / FOUR PILLARS
   ============================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 64px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform var(--duration-fast) var(--ease-out-cubic),
                box-shadow var(--duration-fast),
                border-color var(--duration-fast);
}

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

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--blue-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-primary);
    transition: background var(--duration-fast);
}

.service-card:hover .service-icon {
    background: rgba(43, 136, 216, 0.2);
}

.service-icon i {
    width: 24px;
    height: 24px;
}

.service-title {
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-white);
}

.service-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
}

/* Service card "Learn More" button */
.btn--ghost {
    background: transparent;
    color: var(--blue-primary);
    border: 1px solid var(--blue-border);
    padding: 10px 20px;
    font-size: 13px;
}

.btn--ghost:hover {
    background: var(--blue-glow);
    border-color: var(--blue-primary);
    color: var(--blue-light);
}

.btn--card-cta {
    margin-top: auto;
    align-self: flex-start;
}

.service-card {
    cursor: pointer;
}

/* ============================================
   SERVICE MODALS
   ============================================ */

.service-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease-out-cubic), visibility 0.3s;
}

.service-modal.active {
    opacity: 1;
    visibility: visible;
}

.service-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.service-modal-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 48px;
    max-width: 680px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(24px) scale(0.96);
    transition: transform 0.35s var(--ease-out-expo);
}

.service-modal.active .service-modal-content {
    transform: translateY(0) scale(1);
}

/* Scrollbar styling for modal */
.service-modal-content::-webkit-scrollbar {
    width: 6px;
}

.service-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.service-modal-content::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 3px;
}

.service-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--text-muted);
    transition: background var(--duration-fast), color var(--duration-fast);
}

.service-modal-close:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-white);
}

.service-modal-close i {
    width: 20px;
    height: 20px;
}

.service-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: var(--blue-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-primary);
    margin-bottom: 24px;
}

.service-modal-icon i {
    width: 28px;
    height: 28px;
}

.service-modal-title {
    font-family: var(--font-heading);
    font-size: 36px;
    color: var(--text-white);
    margin-bottom: 8px;
}

.service-modal-tagline {
    font-size: 16px;
    color: var(--blue-primary);
    font-weight: 500;
    margin-bottom: 32px;
}

.service-modal-body {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

.service-modal-body p {
    margin-bottom: 20px;
}

.service-modal-body h3 {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-white);
    margin-top: 32px;
    margin-bottom: 16px;
}

.service-modal-body ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.service-modal-body li {
    padding: 12px 0 12px 28px;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.service-modal-body li:last-child {
    border-bottom: none;
}

.service-modal-body li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue-primary);
}

.service-modal-body li strong {
    color: var(--text-white);
}

.service-modal-cta {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.service-modal-cta-btn {
    width: 100%;
    justify-content: center;
}

/* Modal responsive */
@media (max-width: 768px) {
    .service-modal-content {
        padding: 0 24px 32px;
        max-height: 90vh;
        width: 95%;
        border-radius: 12px;
    }

    /* Sticky close bar pinned to top of modal scroll area */
    .service-modal-close {
        position: sticky;
        top: 0;
        right: auto;
        z-index: 10;
        width: calc(100% + 48px);
        margin-left: -24px;
        height: 48px;
        padding: 0 16px;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        border-radius: 12px 12px 0 0;
    }

    .service-modal-icon {
        margin-top: 24px;
    }

    .service-modal-title {
        font-size: 28px;
    }
}

/* ============================================
   INDUSTRIES
   ============================================ */

.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 64px;
}

.industry-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    transition: transform var(--duration-fast) var(--ease-out-cubic),
                border-color var(--duration-fast),
                box-shadow var(--duration-fast);
}

.industry-card:hover {
    transform: translateY(-4px);
    border-color: var(--blue-border);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.industry-card i {
    width: 32px;
    height: 32px;
    color: var(--blue-primary);
}

.industry-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
}

.industry-desc {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.5;
}

/* ============================================
   12 CAPABILITIES
   ============================================ */

.capabilities-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--blue-glow);
    border-radius: 100px;
    margin: 0 auto 24px;
}

.capabilities-badge i {
    width: 14px;
    height: 14px;
    color: var(--blue-primary);
}

.capabilities-badge span {
    font-size: 11px;
    font-weight: 600;
    color: var(--blue-light);
    letter-spacing: 2px;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 64px;
}

.capability-tile {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform var(--duration-fast) var(--ease-out-cubic),
                border-color var(--duration-fast),
                box-shadow var(--duration-fast);
}

.capability-tile:hover {
    transform: translateY(-4px);
    border-color: var(--blue-border);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.capability-num {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 500;
    color: rgba(43, 136, 216, 0.2);
    line-height: 1;
}

.capability-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
}

.capability-desc {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.5;
}

/* ============================================
   CX-BUILDER
   ============================================ */

.cxbuilder-logo {
    height: 60px;
    width: auto;
    margin: 0 auto 24px;
}

.cxbuilder-cards {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-top: 64px;
}

.cxbuilder-card {
    width: 350px;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    transition: transform var(--duration-fast) var(--ease-out-cubic),
                box-shadow var(--duration-fast);
}

.cxbuilder-card:nth-child(1) { border: 1px solid var(--border); }
.cxbuilder-card:nth-child(2) { border: 1px solid var(--teal-border); }
.cxbuilder-card:nth-child(3) { border: 1px solid rgba(93, 196, 186, 0.33); }

.cxbuilder-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cxbuilder-step {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    color: var(--teal);
    letter-spacing: 2px;
    padding: 6px 16px;
    background: var(--teal-glow);
    border-radius: 100px;
}

.cxbuilder-card-title {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--text-white);
    font-weight: 400;
}

.cxbuilder-card-desc {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
}

.cxbuilder-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
}

.cxbuilder-link {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    color: var(--teal);
}

/* ============================================
   DIFFERENTIATOR
   ============================================ */

.diff .container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.diff-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.diff-tag {
    font-size: 12px;
    font-weight: 600;
    color: var(--blue-primary);
    letter-spacing: 3px;
}

.diff-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 4.5vw, 52px);
    color: var(--text-white);
    letter-spacing: -1px;
    line-height: 1.1;
    font-weight: 400;
}

.diff-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
}

.diff-checks {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.diff-check {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-light);
}

.diff-check i {
    width: 20px;
    height: 20px;
    color: var(--green);
    flex-shrink: 0;
}

/* Differentiator illustration */
.diff-visual {
    width: 480px;
    height: 500px;
    border-radius: 16px;
    background: #0D0D12;
    border: 1px solid rgba(43, 136, 216, 0.19);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.diff-blah-row {
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 700;
    color: var(--blue-primary);
    letter-spacing: 4px;
    line-height: 2;
    user-select: none;
}

.diff-zzz {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 120px;
    color: var(--text-white);
    opacity: 0.9;
    line-height: 1;
    margin: 16px 0;
    user-select: none;
}

.diff-slide-badge {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    color: var(--blue-primary);
    opacity: 0.8;
    background: rgba(43, 136, 216, 0.08);
    border: 1px solid rgba(43, 136, 216, 0.31);
    padding: 10px 32px;
    border-radius: 8px;
    margin-top: 16px;
}

/* ============================================
   CTA FORM
   ============================================ */

.cta-form-card {
    max-width: 700px;
    margin: 64px auto 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 48px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

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

.form-group:only-child {
    margin-bottom: 24px;
}

.form-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.form-label::after {
    content: ' *';
    color: #EF4444;
    font-weight: 600;
}

.form-input,
.form-select,
.form-textarea {
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-white);
    transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
    width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--blue-primary);
    box-shadow: 0 0 0 3px rgba(43, 136, 216, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-subtle);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236B6B70' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 20px;
}

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

/* Form field-level error */
.form-field-error {
    font-size: 12px;
    color: #EF4444;
    margin-top: 6px;
    min-height: 0;
    transition: all 0.2s;
}

.form-field-error:empty {
    display: none;
}

.form-input.input-error {
    border-color: #EF4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

/* Form status messages */
.form-message {
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    display: none;
}

.form-message.show {
    display: block;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22C55E;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

/* Turnstile widget */
.cf-turnstile {
    margin-bottom: 20px;
}

/* Button disabled/loading state */
.btn--submit.loading {
    opacity: 0.7;
    pointer-events: none;
}

.form-note {
    font-size: 12px;
    color: var(--text-subtle);
    text-align: center;
    margin-top: 20px;
}

/* Submit button shimmer */
.btn--submit {
    position: relative;
    overflow: hidden;
    height: 56px;
}

.btn--submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: none;
}

.btn--submit:hover::after {
    animation: shimmer 0.8s ease-out;
}

/* ============================================
   TRUST BRIDGE
   ============================================ */

.trust-bridge {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 56px 0;
}

.trust-bridge-inner {
    text-align: center;
}

.trust-bridge-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 28px;
}

.trust-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.trust-stat-value {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 500;
    color: var(--blue-primary);
    letter-spacing: -1px;
    line-height: 1;
}

.trust-stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: var(--border-light);
}

.trust-bridge-line {
    font-family: var(--font-heading);
    font-size: clamp(18px, 2.5vw, 22px);
    font-style: italic;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.5;
    font-weight: 400;
}

@media (max-width: 768px) {
    .trust-bridge-stats { gap: 24px; }
    .trust-stat-value { font-size: 22px; }
    .trust-divider { height: 32px; }
}

@media (max-width: 480px) {
    .trust-bridge-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    .trust-divider { display: none; }
    .trust-stat { flex: 1 1 40%; }
}

/* ============================================
   AIRA CTA BAR
   ============================================ */

.aira-cta-bar {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 48px 0;
}

.aira-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.aira-cta-text h3 {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3vw, 32px);
    color: var(--text-white);
    font-weight: 400;
    margin-bottom: 8px;
}

.aira-cta-text p {
    font-size: 15px;
    color: var(--text-dim);
    max-width: 500px;
}

@media (max-width: 768px) {
    .aira-cta-inner {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    .aira-cta-text p { max-width: 100%; }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    padding: 64px 0;
    border-top: 1px solid var(--border);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.footer-brand-name {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: 3px;
}

.footer-brand-tagline {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
}

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

.footer-column-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: 0.5px;
}

.footer-column a {
    font-size: 13px;
    color: var(--text-dim);
    transition: color var(--duration-fast);
}

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

.footer-column a.highlight {
    color: var(--blue-primary);
}

.footer-column a.highlight:hover {
    color: var(--blue-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.footer-copyright {
    font-size: 12px;
    color: var(--text-subtle);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 12px;
    color: var(--text-subtle);
    transition: color var(--duration-fast);
}

.footer-legal a:hover {
    color: var(--text-light);
}

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

@media (max-width: 1200px) {
    :root {
        --section-px: 40px;
    }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .industries-grid { grid-template-columns: repeat(2, 1fr); }
    .capabilities-grid { grid-template-columns: repeat(3, 1fr); }
    .cxbuilder-cards { flex-wrap: wrap; }
    .cxbuilder-card { width: calc(50% - 16px); }

    .hero-image-border {
        width: 231px;
        height: 231px;
    }

    .diff .container { gap: 48px; }
    .diff-visual {
        width: 380px;
        height: 420px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-py: 64px;
        --section-px: 20px;
    }

    /* Prevent horizontal scroll / wobble (overflow:clip works on iOS unlike overflow:hidden) */
    html {
        overflow-x: clip;
    }
    body {
        overflow-x: clip;
        width: 100%;
    }

    /* Hide desktop nav AND the CTA button — everything goes into hamburger */
    .header-nav,
    .header-cta {
        display: none !important;
    }

    /* Kill horizontal translate animations that cause overflow on mobile */
    .animate-from-left,
    .animate-from-right {
        transform: translateY(30px) !important;
    }
    .animate-from-left.visible,
    .animate-from-right.visible {
        transform: translateY(0) !important;
    }

    .hamburger { display: flex; }

    /* Mobile nav overlay — use transform instead of right to avoid iOS width calc bug */
    .mobile-nav {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        border-left: 1px solid var(--border);
        padding: 80px 32px 32px;
        flex-direction: column;
        gap: 24px;
        transform: translateX(100%);
        transition: transform var(--duration-fast) var(--ease-out-cubic);
        z-index: 999;
    }

    .mobile-nav.open {
        transform: translateX(0);
    }

    .mobile-nav a {
        font-size: 16px;
        color: var(--text-light);
        padding: 8px 0;
        border-bottom: 1px solid var(--border);
    }

    .mobile-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--duration-fast);
    }

    .mobile-overlay.visible {
        opacity: 1;
        pointer-events: all;
    }

    /* Clip all sections to viewport to prevent any child bleed */
    .section, .hero, .ticker-bar, .aira-cta-bar, .trust-bridge {
        overflow-x: clip;
    }

    .hero {
        padding-top: 100px;
        min-height: auto;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 36px;
    }

    .hero-content { align-items: center; }
    .hero-badge { margin: 0 auto; }
    .hero-subtext { max-width: 100%; }

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

    .hero-ctas .btn {
        width: 100%;
        justify-content: center;
        font-size: 14px;
        padding: 14px 20px;
    }

    .hero-image-border {
        width: 190px;
        height: 190px;
    }

    .stats .container {
        flex-wrap: wrap;
        gap: 32px;
    }

    .stat { flex: 1 1 40%; }
    .stat::after { display: none; }

    /* Ticker */
    .ticker-bar { overflow: hidden; }

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

    .cxbuilder-cards { flex-direction: column; align-items: center; }
    .cxbuilder-card { width: 100%; max-width: 400px; }

    .diff .container {
        flex-direction: column;
        text-align: center;
        overflow: hidden;
    }

    .diff-visual {
        width: 100%;
        max-width: 100%;
        height: 300px;
        overflow: hidden;
    }

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

    /* Diff CTA button — center on mobile */
    .diff-content .btn {
        align-self: center;
    }

    .form-row { flex-direction: column; }

    .cta-form-card {
        padding: 32px 20px;
    }

    .exp-filters {
        gap: 6px;
    }

    .exp-filter {
        font-size: 12px;
        padding: 6px 12px;
    }

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

    .footer-top {
        flex-direction: column;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --section-px: 16px;
    }

    .industries-grid { grid-template-columns: 1fr; }
    .capabilities-grid { grid-template-columns: 1fr; }

    .hero-image-border {
        width: 150px;
        height: 150px;
    }

    .hero-ctas .btn {
        font-size: 13px;
        padding: 12px 16px;
    }

    .diff-zzz { font-size: 60px; }
    .diff-blah-row { font-size: 14px; letter-spacing: 2px; }
    .diff-visual { height: 260px; }

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

    .section-title { font-size: 28px; }
    .section-subtitle { font-size: 15px; }
}
