/* ============================================================
   ALPHA IMPACT - Design System & Complete Styles
   Color Palette: Dark Navy #0f172a, Indigo #1e1b4b, 
   Gradient: #ec4899 → #8b5cf6, White #ffffff
   ============================================================ */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* Primary Colors (from current site) */
    --color-navy: #0f172a;
    --color-indigo: #1e1b4b;
    --color-navy-dark: #0c1322;
    --color-navy-mid: #1a1744;

    /* Accent Gradient */
    --color-pink: #ec4899;
    --color-purple: #8b5cf6;
    --gradient-accent: linear-gradient(135deg, #ec4899, #8b5cf6);
    --gradient-accent-hover: linear-gradient(135deg, #f472b6, #a78bfa);
    --gradient-hero: linear-gradient(135deg, rgba(30, 27, 75, 0.95), rgba(15, 23, 42, 0.9));

    /* Text Colors */
    --color-white: #ffffff;
    --color-heading: #1e293b;
    --color-body: #475569;
    --color-muted: #94a3b8;
    --color-light-text: rgba(255, 255, 255, 0.85);
    --color-lighter-text: rgba(255, 255, 255, 0.6);

    /* Background Colors */
    --color-bg-white: #ffffff;
    --color-bg-light: #f8fafc;
    --color-bg-card: #f1f5f9;
    --color-bg-dark: #0f172a;
    --color-bg-darker: #0c1322;

    /* Utility */
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-light: #e2e8f0;
    --color-glow-pink: rgba(236, 72, 153, 0.15);
    --color-glow-purple: rgba(139, 92, 246, 0.15);

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Sizing */
    --container-width: 1200px;
    --header-height: 80px;
    --section-padding: 120px;
    --section-padding-mobile: 72px;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-sm: 8px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-body);
    background-color: var(--color-bg-white);
    overflow-x: hidden;
}

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

ul, ol {
    list-style: none;
}

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

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

strong {
    font-weight: 600;
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--color-heading);
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-title-center {
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-body);
    max-width: 680px;
    margin: 0 auto 60px;
    text-align: center;
    line-height: 1.75;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 9999;
    padding: 12px 24px;
    background: var(--gradient-accent);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: 50px;
    transition: all var(--transition-base);
    cursor: pointer;
    gap: 8px;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.3);
}

.btn-primary:hover {
    background: var(--gradient-accent-hover);
    box-shadow: 0 6px 30px rgba(236, 72, 153, 0.4);
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-heading);
    border: 2px solid var(--color-border-light);
}

.btn-outline:hover {
    border-color: var(--color-pink);
    color: var(--color-pink);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.05rem;
}

/* ===== FOCUS VISIBLE — WCAG 2.1 AA ===== */
/* Purple ring on light backgrounds; brighter ring on dark/gradient backgrounds */
:focus-visible {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}

/* Buttons — on dark hero background, use white outline + purple glow */
.btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(139, 92, 246, 0.35);
}

/* Ghost button already has a white border — reinforce with glow */
.btn-ghost:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(139, 92, 246, 0.3);
}

/* Primary button — pink glow to match brand */
.btn-primary:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(236, 72, 153, 0.35);
}

/* Nav links — on dark header */
.nav-link:focus-visible {
    outline: 2px solid #8b5cf6;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Hamburger */
.hamburger:focus-visible {
    outline: 2px solid #8b5cf6;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Language switcher options */
.lang-switcher-option:focus-visible {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* FAQ question buttons — on light background */
.faq-question:focus-visible {
    outline: 2px solid #8b5cf6;
    outline-offset: 0px;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
    border-radius: var(--border-radius-sm, 8px);
}

/* Footer links */
.footer-links a:focus-visible,
.footer-legal a:focus-visible {
    outline: 2px solid #8b5cf6;
    outline-offset: 3px;
    border-radius: 3px;
}

/* Footer social icon links */
.footer-socials a:focus-visible {
    outline: 2px solid #8b5cf6;
    outline-offset: 3px;
    border-radius: 50%;
}

/* Client logo cards */
.client-logo:focus-visible {
    outline: 2px solid #8b5cf6;
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

/* Skip link — already visible on focus, add ring too */
.skip-link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.4);
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-base);
    height: var(--header-height);
    /* iOS notch / Dynamic Island safe area */
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.site-header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    z-index: 1001;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--gradient-accent);
    border-radius: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    color: var(--color-white);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-white);
    letter-spacing: 0.05em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-light-text);
    padding: 8px 16px;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
}

.nav-cta {
    margin-left: 16px;
    padding: 10px 24px;
    font-size: 0.88rem;
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
    display: flex;
    align-items: center;
    align-self: center;
    gap: 3px;
    padding: 3px;
    margin-left: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(71, 85, 105, 0.42);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 8px 24px rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.lang-switcher-option {
    min-width: 34px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    transition: all var(--transition-base);
}

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

.lang-switcher-option.is-active {
    background: rgba(255, 255, 255, 0.16);
    color: var(--color-white);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 6px 18px rgba(15, 23, 42, 0.14);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    transition: transform var(--transition-fast), background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all var(--transition-base);
}

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

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

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

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--color-indigo);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(139, 92, 246, 0.3), transparent),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(236, 72, 153, 0.2), transparent),
        radial-gradient(ellipse 50% 60% at 80% 60%, rgba(139, 92, 246, 0.15), transparent),
        linear-gradient(180deg, var(--color-indigo) 0%, var(--color-navy) 100%);
}


.hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: min(1320px, calc(100vw - 48px));
    padding: 60px 0;
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-pink);
    margin-bottom: 28px;
    padding: 6px 20px;
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 50px;
    background: rgba(236, 72, 153, 0.08);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.15;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.hero-title-line {
    display: block;
}

.hero-title-nowrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.12em;
    width: 100%;
    margin: 0 auto;
    font-size: 1em;
    line-height: inherit;
    white-space: nowrap;
}

.hero-title-prefix {
    display: inline-block;
}

.hero-mobile-break {
    display: none;
}

.hero-title-highlight {
    display: inline-block;
    position: relative;
    white-space: nowrap;
    text-align: left;
    padding-right: 0.18em;
    /* gradient base: pink → white flash → purple → pink (Claude-style shimmer) */
    background: linear-gradient(90deg,
        #ec4899 0%,
        #d946a8 20%,
        #a855f7 45%,
        #8b5cf6 60%,
        #c084fc 80%,
        #ec4899 100%);
    background-size: 300% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroThinkShimmer 2.2s ease-in-out infinite;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

/* is-changing no longer used — kept for safety */
.hero-title-highlight.is-changing {
    opacity: 0;
    transform: translateY(5px);
}

.hero-title-highlight::after {
    display: none;
}

/* ===== SCRAMBLE LETTERS ===== */
.hero-title-highlight .letter {
    display: inline-block;
    background: linear-gradient(90deg, #ec4899 0%, #d946a8 20%, #a855f7 45%, #8b5cf6 60%, #c084fc 80%, #ec4899 100%);
    background-size: 300% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroThinkShimmer 2.2s ease-in-out infinite;
    min-width: 0.3ch;
    transition: opacity 0.08s ease;
}
.hero-title-highlight .letter.scrambling { opacity: 0.4; }
.hero-title-highlight .letter.resolved   { opacity: 1; }

/* ===== CURSOR ===== */
.morph-cursor {
    display: inline-block;
    width: 2px;
    height: 0.85em;
    background: #ec4899;
    vertical-align: middle;
    margin-left: 1px;
    animation: morphCursorBlink 0.7s step-end infinite;
}
.morph-cursor.hidden { display: none; }
@keyframes morphCursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* Claude-style: smooth back-and-forth shimmer wave */
@keyframes heroThinkShimmer {
    0%   { background-position: 100% 0; }
    50%  { background-position: 0% 0; }
    100% { background-position: 100% 0; }
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--color-light-text);
    line-height: 1.8;
    max-width: 680px;
    margin: 0 auto 44px;
}

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

.hero-mail {
    margin: 24px 0 0;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.62);
    text-align: center;
}

.hero-mail a {
    position: relative;
    display: inline-block;
    margin-left: 6px;
    padding-bottom: 1px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    text-decoration: none;
    background-image: linear-gradient(90deg, #ec4899, #8b5cf6);
    background-size: 100% 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: color 0.25s ease, background-size 0.25s ease;
}

.hero-mail a:hover {
    color: #fff;
    background-size: 100% 2px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    opacity: 0.6;
    animation: scrollBounce 2s infinite;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    animation: scrollDot 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes scrollDot {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.3; transform: translateY(6px); }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    /* Kill all CSS animations and transitions site-wide */
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    /* Shimmer: freeze at mid-gradient instead of disappearing */
    .hero-title-highlight,
    .hero-title-highlight .letter {
        animation: none;
        background-position: 50% 0;
    }

    /* Cursor: stay visible, no blink */
    .morph-cursor {
        animation: none;
        opacity: 1;
    }

    /* Scroll indicator: hide entirely (purely decorative motion) */
    .hero-scroll-indicator {
        display: none;
    }

    /* Page fade-in: instant */
    body {
        animation: none;
    }
}

/* ===== VALUE PROPOSITION BAR ===== */
.value-bar {
    background: var(--color-navy);
    border-bottom: 1px solid var(--color-border);
    padding: 28px 0;
    position: relative;
    overflow: hidden;
}

.value-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.05), rgba(139, 92, 246, 0.05), rgba(236, 72, 153, 0.05));
}

.value-bar .container {
    max-width: none;
    padding: 0 clamp(24px, 3vw, 48px);
}

.value-items {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(18px, 1.2vw, 26px);
    max-width: min(1640px, 100%);
    margin: 0 auto;
    position: relative;
}

.value-item {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
    font-size: clamp(0.72rem, 0.82vw, 0.84rem);
    font-weight: 500;
    color: var(--color-light-text);
    text-align: left;
}

.value-item span {
    white-space: normal;
    line-height: 1.4;
}

.value-icon {
    width: 20px;
    height: 20px;
    color: var(--color-pink);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* ===== INTRO / ABOUT SECTION ===== */
.intro-section {
    padding: var(--section-padding) 0;
    background: var(--color-bg-white);
    position: relative;
    overflow: hidden;
}

.intro-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 10% 15%, rgba(236, 72, 153, 0.06), transparent 70%),
        radial-gradient(ellipse 600px 400px at 95% 90%, rgba(139, 92, 246, 0.05), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.intro-section > .container {
    position: relative;
    z-index: 1;
}

.intro-layout {
    display: grid;
    gap: 88px;
}

.intro-lead {
    max-width: 940px;
}

.intro-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--color-pink);
    margin-bottom: 26px;
}

.intro-eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, var(--color-pink), var(--color-purple));
}

.intro-heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.6vw, 3.3rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--color-heading);
    margin: 0 0 36px;
}

.intro-heading-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
    font-weight: 700;
}

.intro-copy {
    max-width: 800px;
    display: grid;
    gap: 18px;
}

.intro-copy p {
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--color-body);
    margin: 0;
}

.intro-copy strong {
    color: var(--color-heading);
    font-weight: 600;
}

.intro-pillars {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--color-border-light);
}

.intro-pillar {
    padding: 44px 32px 8px 0;
    position: relative;
    transition: transform var(--transition-base);
}

.intro-pillar::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.intro-pillar:hover::before {
    transform: scaleX(1);
}

.intro-pillar + .intro-pillar {
    padding-left: 36px;
    border-left: 1px solid var(--color-border-light);
}

.intro-pillar-index {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.intro-pillar-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.012em;
    color: var(--color-heading);
    margin: 0 0 12px;
    line-height: 1.28;
}

.intro-pillar-desc {
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--color-body);
    margin: 0;
}

/* ===== SERVICES / PILARES — editorial numbered layout ===== */
.services-section {
    padding: var(--section-padding) 0;
    background: var(--color-bg-light);
    position: relative;
    overflow: hidden;
}

/* Faint vertical-column texture behind the section — a subtle nod to "pilares" */
.services-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(15, 23, 42, 0.025) 1px, transparent 1px),
        radial-gradient(1200px 600px at 50% 0%, rgba(236, 72, 153, 0.04), transparent 60%);
    background-size: 160px 100%, 100% 100%;
    background-repeat: repeat-x, no-repeat;
    pointer-events: none;
    z-index: 0;
}

.services-section > .container {
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: calc(100vw - 48px);
    max-width: 1520px;
    margin-left: 50%;
    transform: translateX(-50%);
    counter-reset: pillar-counter;
}

.service-card {
    counter-increment: pillar-counter;
    position: relative;
    padding: 56px 32px 36px 36px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(252, 248, 253, 1) 100%);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--border-radius-lg);
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.3s ease;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Vertical accent bar on the left — the "pillar" */
.service-card::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--color-pink), var(--color-purple));
    opacity: 0.35;
    transition: opacity 0.35s ease, width 0.35s ease;
}

/* Oversized numeral top-right — editorial feature-spread energy */
.service-card::after {
    content: counter(pillar-counter, decimal-leading-zero);
    position: absolute;
    top: 14px;
    right: 22px;
    font-family: var(--font-heading);
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.9), rgba(139, 92, 246, 0.9));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.14;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(236, 72, 153, 0.18);
    box-shadow:
        0 24px 60px -20px rgba(139, 92, 246, 0.18),
        0 10px 24px -12px rgba(15, 23, 42, 0.08);
}

.service-card:hover::before {
    opacity: 1;
    width: 4px;
}

.service-card:hover::after {
    opacity: 0.28;
    transform: translateY(-2px);
}

/* Icon becomes a restrained inked glyph — no pastel tile */
.service-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    margin-bottom: 26px;
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 28px;
    height: 1.5px;
    background: linear-gradient(90deg, var(--color-pink), transparent);
    transition: width 0.35s ease;
}

.service-card:hover .service-icon::after {
    width: 48px;
}

.service-icon svg {
    width: 30px;
    height: 30px;
    color: var(--color-navy);
    opacity: 0.78;
    stroke-width: 1.4;
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover .service-icon svg {
    opacity: 1;
    transform: translateY(-2px);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--color-heading);
    margin-bottom: 14px;
    line-height: 1.25;
}

.service-desc {
    font-size: 0.94rem;
    color: var(--color-body);
    line-height: 1.7;
    margin-bottom: 22px;
}

/* Features: hairline separators + em-dash markers instead of dots */
.service-features {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 24px;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
    margin-top: auto;
}

.service-features li {
    font-size: 0.86rem;
    color: var(--color-body);
    padding: 12px 0 12px 24px;
    position: relative;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    line-height: 1.55;
}

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

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 19px;
    width: 14px;
    height: 1.5px;
    background: linear-gradient(90deg, var(--color-pink), var(--color-purple));
    border-radius: 1px;
    transition: width 0.3s ease;
}

.service-card:hover .service-features li::before {
    width: 18px;
}

.service-link {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-pink);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    align-self: flex-start;
}

.service-link:hover {
    color: var(--color-purple);
    gap: 10px;
}

/* ===== NEEDS SECTION ===== */
.needs-section {
    padding: var(--section-padding) 0;
    background: var(--color-navy);
    color: var(--color-white);
}

.needs-section .section-eyebrow {
    -webkit-text-fill-color: unset;
    background: none;
    color: var(--color-pink);
}

.needs-section .section-title {
    color: var(--color-white);
}

.needs-section .section-subtitle {
    color: var(--color-light-text);
}

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

.need-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
    padding: 40px 32px;
    transition: all var(--transition-base);
}

.need-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(236, 72, 153, 0.3);
    transform: translateY(-4px);
}

.need-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1;
}

.need-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 14px;
    line-height: 1.35;
}

.need-desc {
    font-size: 0.95rem;
    color: var(--color-light-text);
    line-height: 1.75;
}

.need-link {
    display: none;
    width: fit-content;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    padding-bottom: 2px;
    transition: color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.need-link:hover {
    color: #f9a8d4;
    border-color: rgba(236, 72, 153, 0.55);
    transform: translateX(2px);
}

.needs-guides-cta {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
}

.needs-guides-copy {
    max-width: 720px;
    color: var(--color-light-text);
    font-size: 0.98rem;
    line-height: 1.7;
}

.needs-guides-button {
    min-width: 220px;
    padding: 18px 42px;
    font-size: 1rem;
    box-shadow: 0 16px 34px rgba(236, 72, 153, 0.28);
}

.needs-guides-button:hover {
    box-shadow: 0 22px 40px rgba(236, 72, 153, 0.32);
}

/* ===== BENEFITS ===== */
.benefits-section {
    padding: var(--section-padding) 0;
    background: var(--color-navy);
    color: var(--color-white);
}

.benefits-section .section-eyebrow {
    -webkit-text-fill-color: unset;
    background: none;
    color: var(--color-pink);
}

.benefits-section .section-title {
    color: var(--color-white);
}

.benefits-section .section-subtitle {
    color: var(--color-light-text);
}

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

.benefit-card {
    padding: 36px 28px;
    border-radius: var(--border-radius-lg);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition-base);
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(236, 72, 153, 0.3);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 12px;
    margin-bottom: 20px;
}

.benefit-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-pink);
}

.benefit-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 12px;
}

.benefit-desc {
    font-size: 0.93rem;
    color: var(--color-light-text);
    line-height: 1.75;
}

/* ===== PORTFOLIO ===== */
.portfolio-section {
    padding: var(--section-padding) 0;
    background: var(--color-bg-light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    width: calc(100vw - 48px);
    max-width: 1640px;
    margin-left: 50%;
    transform: translateX(-50%);
    margin-bottom: 48px;
}

.portfolio-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-base);
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.portfolio-image {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--color-indigo), var(--color-navy));
    position: relative;
    overflow: hidden;
}

.portfolio-image-2 {
    background: linear-gradient(135deg, #1a1040, #2d1b69);
}

.portfolio-image-3 {
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
}

.portfolio-video-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(180deg, rgba(7, 10, 24, 0.18), rgba(7, 10, 24, 0.32));
    transition: background var(--transition-base);
}

.portfolio-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-white);
    background: rgba(236, 72, 153, 0.8);
    padding: 6px 14px;
    border-radius: 50px;
}

.portfolio-image-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    padding: 12px 22px;
    margin-top: 28px;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--color-white);
    text-decoration: none;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--transition-base), transform var(--transition-base), background var(--transition-base), border-color var(--transition-base);
}

.portfolio-image-cta:hover {
    background: rgba(236, 72, 153, 0.88);
    border-color: rgba(255, 255, 255, 0.3);
}

.portfolio-info {
    padding: 24px 24px 22px;
}

.portfolio-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 10px;
}

.portfolio-desc {
    font-size: 0.93rem;
    color: var(--color-body);
    line-height: 1.7;
    margin-bottom: 0;
}

.portfolio-cta {
    text-align: center;
}

.portfolio-card:hover .portfolio-overlay {
    background: linear-gradient(180deg, rgba(7, 10, 24, 0.22), rgba(7, 10, 24, 0.52));
}

.portfolio-card:hover .portfolio-image-cta {
    opacity: 1;
    transform: translateY(0);
}

/* ===== CLIENTS ===== */
.clients-section {
    padding: var(--section-padding) 0;
    background: var(--color-bg-white);
}

.clients-logos {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.client-logo {
    width: 160px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius);
    background: var(--color-bg-light);
    transition: all var(--transition-base);
}

.client-logo:hover {
    border-color: rgba(236, 72, 153, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.client-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transform-origin: center;
}

.client-logo-square {
    padding: 10px 28px;
}

.client-logo-image-zoom-sm {
    transform: scale(1.08);
}

.client-logo-image-zoom-md {
    transform: scale(1.16);
}

.client-logo-image-zoom-lg {
    transform: scale(1.24);
}

/* ===== PROCESS ===== */
.process-section {
    padding: var(--section-padding) 0;
    background: var(--color-navy);
    color: var(--color-white);
}

.process-section .section-eyebrow {
    -webkit-text-fill-color: unset;
    background: none;
    color: var(--color-pink);
}

.process-section .section-title {
    color: var(--color-white);
}

.process-section .section-subtitle {
    color: var(--color-light-text);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.process-step {
    position: relative;
    padding: 32px 24px;
    text-align: center;
}

.process-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 20px;
}

.process-connector {
    position: absolute;
    top: 52px;
    right: -16px;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.5), rgba(139, 92, 246, 0.5));
}

.process-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 14px;
}

.process-desc {
    font-size: 0.93rem;
    color: var(--color-light-text);
    line-height: 1.75;
}

/* ===== MOBILE COMPACT TOGGLES ===== */
.mobile-compact-actions {
    display: none;
    justify-content: center;
    margin-top: 28px;
}

.mobile-compact-toggle {
    min-width: 148px;
    padding: 12px 24px;
    font-size: 0.88rem;
    border-width: 1.5px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.mobile-compact-toggle:hover {
    transform: translateY(-2px);
}

.services-section .mobile-compact-toggle,
.clients-section .mobile-compact-toggle {
    background: rgba(255, 255, 255, 0.92);
}

.needs-section .mobile-compact-toggle,
.benefits-section .mobile-compact-toggle,
.process-section .mobile-compact-toggle {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.needs-section .mobile-compact-toggle:hover,
.process-section .mobile-compact-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(236, 72, 153, 0.35);
}

/* ===== FAQ ===== */
.faq-section {
    padding: var(--section-padding) 0;
    background: var(--color-bg-light);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius);
    margin-bottom: 12px;
    background: var(--color-bg-white);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: rgba(236, 72, 153, 0.2);
}

.faq-item.active {
    border-color: rgba(236, 72, 153, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 22px 28px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-heading);
    text-align: left;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--color-pink);
}

.faq-arrow {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--color-muted);
    transition: transform var(--transition-base);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--color-pink);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.faq-answer p {
    padding: 0 28px 22px;
    font-size: 0.95rem;
    color: var(--color-body);
    line-height: 1.8;
}

.faq-cta {
    text-align: center;
    margin-top: 40px;
}

.faq-cta p {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 16px;
}

/* ===== FINAL CTA ===== */
.final-cta-section {
    padding: var(--section-padding) 0;
    background: var(--color-indigo);
    position: relative;
    overflow: hidden;
}

.final-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 60% 60% at 30% 50%, rgba(236, 72, 153, 0.15), transparent),
        radial-gradient(ellipse 50% 50% at 70% 50%, rgba(139, 92, 246, 0.15), transparent);
}

.final-cta-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.final-cta-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.final-cta-text {
    font-size: 1.1rem;
    color: var(--color-light-text);
    line-height: 1.8;
    margin-bottom: 40px;
}

.final-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.final-cta-contacts {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--color-light-text);
    transition: color var(--transition-fast);
}

.contact-link:hover {
    color: var(--color-white);
}

.contact-link svg {
    width: 20px;
    height: 20px;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--color-navy-dark);
    padding: 80px 0 0;
    color: var(--color-light-text);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 0.7fr 1.1fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--color-border);
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-tagline {
    font-size: 0.93rem;
    color: var(--color-lighter-text);
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-lighter-text);
    transition: all var(--transition-base);
}

.footer-socials a:hover {
    border-color: var(--color-pink);
    color: var(--color-pink);
    background: rgba(236, 72, 153, 0.08);
}

.footer-socials a svg {
    width: 20px;
    height: 20px;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-lighter-text);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-white);
    padding-left: 4px;
}

.footer-contact-text {
    font-size: 0.9rem;
    color: var(--color-lighter-text);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-contact-link {
    display: block;
    font-size: 0.93rem;
    color: var(--color-light-text);
    margin-bottom: 8px;
    transition: color var(--transition-fast);
}

.footer-contact-link:hover {
    color: var(--color-pink);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 28px 0;
    font-size: 0.82rem;
    color: var(--color-lighter-text);
}

.footer-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.footer-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

.footer-legal a {
    color: var(--color-lighter-text);
    transition: color var(--transition-fast);
}

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

/* ===== SCROLL REVEAL ANIMATION ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1400px) {
    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .services-grid {
        width: auto;
        max-width: none;
        margin-left: 0;
        transform: none;
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        width: auto;
        max-width: none;
        margin-left: 0;
        transform: none;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (max-width: 1024px) {
    :root {
        --section-padding: 96px;
    }

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

    .value-item span {
        white-space: normal;
        overflow-wrap: anywhere;
        text-wrap: balance;
    }

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

    .services-grid {
        width: auto;
        max-width: none;
        margin-left: 0;
        transform: none;
    }

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

    .process-connector {
        display: none;
    }

    .intro-layout {
        gap: 64px;
    }

    .intro-pillars {
        grid-template-columns: 1fr;
        border-top: none;
    }

    .intro-pillar {
        padding: 32px 0;
        border-top: 1px solid var(--color-border-light);
    }

    .intro-pillar:first-child {
        padding-top: 0;
        border-top: none;
    }

    .intro-pillar + .intro-pillar {
        padding-left: 0;
        border-left: none;
    }

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

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
    }

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

.hero-cta-mobile-call { display: none; }
@media (max-width: 768px) { .hero-cta-mobile-call { display: inline-flex; } }

@media (max-width: 768px) {
    :root {
        --section-padding: var(--section-padding-mobile);
        --header-height: 68px;
    }

    .hamburger {
        display: flex;
        gap: 5px;
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
        padding: 0;
        margin-left: 6px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.07);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .hamburger-line {
        width: 18px;
        height: 1.75px;
    }

    .lang-switcher {
        position: static;
        top: auto;
        right: auto;
        transform: none;
        margin-left: 6px;
        flex: 0 0 auto;
    }

    .lang-switcher-option {
        min-width: 32px;
        height: 28px;
        padding: 0 8px;
        font-size: 0.66rem;
        letter-spacing: 0.04em;
        white-space: nowrap;
        border-radius: 7px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        height: 100svh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        transition: right var(--transition-base);
        z-index: 1000;
    }

    .main-nav.open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 14px 24px;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 16px;
        font-size: 1rem;
        padding: 14px 32px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.6rem);
        margin-bottom: 16px;
    }

    .hero-title-line {
        display: block;
    }

    .hero-title-nowrap {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        width: 100%;
        font-size: 1em;
        line-height: 1.08;
        white-space: normal;
        margin-top: 0;
    }

    .hero-title-prefix {
        display: inline;
        width: auto;
        text-align: center;
        line-height: 1.08;
    }

    .hero-mobile-break {
        display: none;
    }

    .hero-title-highlight {
        display: inline-block;
        width: auto;
        flex: initial;
        min-width: 0;
        text-align: center;
        min-height: 1.25em;
        line-height: 1.15;
        margin-top: 0.1em;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .value-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .mobile-compact-actions:not([hidden]) {
        display: flex;
    }

    .mobile-compact-hidden {
        display: none !important;
    }

    .services-grid,
    .benefits-grid,
    .needs-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 44px 26px 30px 28px;
    }

    .service-card::after {
        font-size: 2.8rem;
        top: 12px;
        right: 18px;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 28px;
        max-width: none;
    }

    .contact-intro,
    .contact-panel,
    .contact-form {
        max-width: none;
        width: 100%;
    }

    .contact-intro { order: 2; }
    .contact-panel { order: 1; padding: 28px; }

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

    .contact-card {
        padding: 20px;
    }

    .contact-form .form-group,
    .contact-panel .form-group {
        margin-bottom: 18px;
    }

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

    .final-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .final-cta-contacts {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .clients-logos {
        gap: 20px;
    }

    .client-logo {
        width: 130px;
        height: 64px;
    }

    .needs-grid .need-card:nth-child(4),
    .needs-grid .need-card:nth-child(5) {
        grid-column: 1;
    }

    .needs-guides-cta {
        margin-top: 28px;
        gap: 16px;
    }

    .needs-guides-copy {
        font-size: 0.92rem;
    }

    .needs-guides-button {
        width: auto;
        min-width: 200px;
        padding: 16px 32px;
        font-size: 0.95rem;
    }

    .need-card {
        padding: 24px 22px;
    }

    .need-title {
        margin-bottom: 0;
        font-size: 1.02rem;
    }

    .need-desc {
        display: none;
    }

    .need-link {
        display: inline-flex;
        align-items: center;
        margin-top: 14px;
    }

    .faq-question {
        padding: 18px 20px;
        font-size: 0.93rem;
    }

    .faq-answer p {
        padding: 0 20px 18px;
    }

    /* Prevent hover states sticking on touch */
    .btn-primary:hover,
    .btn-ghost:hover,
    .btn-outline:hover {
        transform: none;
    }

    .service-card:hover,
    .need-card:hover,
    .benefit-card:hover,
    .resource-card:hover,
    .guide-nav-link:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    /* Mobile cluster sizing handled in the unified header override below */

    .contact-panel {
        padding: 24px 16px;
    }

    .contact-card {
        padding: 18px 16px;
    }

    .hero-content {
        padding: 40px 0;
    }

    .btn-lg {
        padding: 16px 32px;
        font-size: 1rem;
        width: 100%;
    }

    .service-card,
    .need-card,
    .benefit-card {
        padding: 28px 24px;
    }

    .need-card {
        padding: 22px 20px;
    }

    .portfolio-image {
        height: 200px;
    }

}

/* ===== MOBILE FIXES — iPhone/Android ===== */

/* 1. Nav: use dvh + overflow scroll + safe area bottom inset */
@media (max-width: 768px) {
    .main-nav {
        height: 100dvh;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-bottom: env(safe-area-inset-bottom, 16px);
    }
}

/* 2. Hero subtitle: enforce minimum readable size on phones */
@media (max-width: 768px) {
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.15rem);
    }
}

/* 3. Hero title last line: allow wrap + reset fixed width on mobile
   (lockWidth JS already removes minWidth at ≤768px via removeProperty) */
@media (max-width: 768px) {
    .hero-title-highlight {
        width: auto !important;
        min-width: 0 !important;
        overflow: visible !important;
    }
}

/* 4. Value bar: readable font size on mobile */
@media (max-width: 768px) {
    .value-bar {
        padding: 18px 0;
    }

    .value-bar .container {
        padding: 0 16px;
    }

    .value-items {
        gap: 10px;
    }

    .value-item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px 12px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.04);
        font-size: 0.8rem;
        text-align: left;
    }

    .value-item span {
        font-size: 0.8rem;
        white-space: normal;
        line-height: 1.4;
        text-align: left;
    }

    .value-icon {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
}

/* 5. Process numbers: scale down on mobile */
@media (max-width: 768px) {
    .process-number {
        font-size: 2rem;
    }
}

/* 6. Portfolio images: aspect ratio instead of fixed height */
@media (max-width: 768px) {
    .portfolio-image {
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* 7. Form labels & inputs: bump to min 14px */
@media (max-width: 768px) {
    .form-label {
        font-size: 0.9rem;
    }
    .form-input,
    .form-textarea,
    .form-select {
        font-size: 16px; /* hard px — prevents iOS zoom on focus */
        padding: 16px 18px;
    }
}

/* 8. FAQ tap targets: taller touch area */
@media (max-width: 768px) {
    .faq-question {
        padding: 20px 20px;
        min-height: 56px;
    }
}

/* 9. Section eyebrow: min readable size */
@media (max-width: 768px) {
    .section-eyebrow,
    .hero-eyebrow,
    .page-hero-eyebrow {
        font-size: 0.75rem;
    }
}

/* 10. Active states for touch feedback */
html {
    -webkit-tap-highlight-color: transparent;
}

@media (hover: none) {
    .btn-primary:active {
        transform: scale(0.97);
        opacity: 0.9;
        transition: transform 80ms ease, opacity 80ms ease;
    }
    .btn-ghost:active,
    .btn-outline:active {
        transform: scale(0.97);
        opacity: 0.85;
        transition: transform 80ms ease, opacity 80ms ease;
    }
    .service-card:active,
    .need-card:active,
    .benefit-card:active,
    .portfolio-card:active {
        transform: scale(0.98);
        transition: transform 80ms ease;
    }
    .nav-link:active {
        opacity: 0.7;
        transition: opacity 80ms ease;
    }
    .faq-question:active {
        color: var(--color-pink);
        transition: color 80ms ease;
    }

    .hamburger:active {
        transform: scale(0.96);
        opacity: 0.92;
        transition: transform 80ms ease, opacity 80ms ease;
    }

    .footer-links a:active {
        opacity: 0.7;
        padding-left: 4px;
    }
}

/* Minimum 48x48px touch targets on coarse pointer devices */
@media (pointer: coarse) {
    .btn {
        min-height: 48px;
    }
    .nav-link {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
    }
    .faq-question {
        min-height: 48px;
    }
    /* .hamburger touch-target managed by mobile header rules (42px) */
    /* .lang-switcher-option touch-target managed by mobile header rules */
    .footer-links a,
    .footer-legal a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* Portfolio CTA: on mobile show always but with a softer reveal via scroll-reveal class */
@media (max-width: 768px) {
    .portfolio-image-cta {
        opacity: 1;
        transform: translateY(0);
        transition: background var(--transition-fast), border-color var(--transition-fast);
    }
}


/* 11b. Landscape on short phones — don't force 100vh hero */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0 40px;
    }
    .hero-title {
        font-size: clamp(1.4rem, 4vw, 2rem);
    }
    .hero-subtitle {
        display: none;
    }
    .hero-scroll-indicator {
        display: none;
    }
}

/* 12. Prevent horizontal overflow on hero title */
@media (max-width: 480px) {
    .hero-title-nowrap {
        overflow: hidden;
        max-width: 100%;
    }
    .hero-title-prefix {
        white-space: normal;
    }
}

/* ===== PAGE TRANSITION ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body {
    animation: fadeIn 0.5s ease;
}

/* ===== INTERNAL PAGES SHARED STYLES ===== */
.page-hero {
    padding: calc(var(--header-height) + 80px) 0 80px;
    background: var(--color-indigo);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 60% 50% at 30% 30%, rgba(236, 72, 153, 0.15), transparent),
        radial-gradient(ellipse 40% 50% at 70% 70%, rgba(139, 92, 246, 0.1), transparent),
        linear-gradient(180deg, var(--color-indigo) 0%, var(--color-navy) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.page-hero-eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-pink);
    margin-bottom: 16px;
}

.page-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.page-hero-text {
    font-size: 1.1rem;
    color: var(--color-light-text);
    line-height: 1.8;
}

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

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

.page-content {
    max-width: 800px;
}

.page-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 20px;
    margin-top: 48px;
}

.page-content h2:first-child {
    margin-top: 0;
}

.page-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-heading);
    margin: 32px 0 14px;
}

.page-content p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--color-body);
    margin-bottom: 20px;
}

.page-content ul {
    margin-bottom: 20px;
}

.page-content ul li {
    font-size: 1rem;
    color: var(--color-body);
    padding-left: 24px;
    margin-bottom: 10px;
    position: relative;
    line-height: 1.7;
}

.page-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--gradient-accent);
    border-radius: 50%;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.resource-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius-lg);
    padding: 32px 28px;
    transition: all var(--transition-base);
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    border-color: rgba(236, 72, 153, 0.2);
}

.resource-card-eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-pink);
    margin-bottom: 14px;
}

.resource-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 12px;
}

.resource-card p {
    font-size: 0.98rem;
    color: var(--color-body);
    line-height: 1.75;
    margin-bottom: 18px;
}

.resource-card-insight {
    font-size: 0.92rem;
    color: var(--color-muted);
    line-height: 1.8;
    border-left: 3px solid var(--color-pink);
    padding-left: 16px;
    margin-bottom: 18px;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 16px 0 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '›';
    color: var(--color-muted);
}

.breadcrumb-list a {
    color: var(--color-body);
}

.breadcrumb-list a:hover {
    color: var(--color-pink);
}

/* Page hero meta */
.page-hero-meta {
    font-size: 0.88rem;
    color: var(--color-muted);
    margin-top: 16px;
    line-height: 1.6;
}

.resource-card ul {
    margin-bottom: 20px;
}

.resource-card ul li {
    font-size: 0.95rem;
    color: var(--color-body);
    padding-left: 22px;
    margin-bottom: 8px;
    position: relative;
}

.resource-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 7px;
    height: 7px;
    background: var(--gradient-accent);
    border-radius: 50%;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-pink);
}

.resource-link:hover {
    color: var(--color-purple);
}

.related-guides {
    margin-top: 40px;
    padding: 28px 32px;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius);
}

.related-guides h3 {
    margin-top: 0;
}

.related-guides ul {
    margin-bottom: 0;
}

/* Guide Navigation */
.guide-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 24px;
    margin-top: 40px;
}

.guide-nav-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 24px;
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
    text-decoration: none;
    min-width: 0;
}

.guide-nav-link:hover {
    border-color: rgba(236, 72, 153, 0.3);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    transform: translateY(-2px);
}

.guide-nav-back {
    align-items: flex-start;
}

.guide-nav-next {
    align-items: flex-end;
    margin-left: auto;
    text-align: right;
}

.guide-nav-label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-pink);
}

.guide-nav-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-heading);
    line-height: 1.4;
}

@media (max-width: 600px) {
    .guide-nav-inner {
        flex-direction: column;
    }

    .guide-nav-next {
        align-items: flex-start;
        text-align: left;
    }
}

/* Page CTA */
.page-cta {
    padding: 72px 0;
    background: var(--color-indigo);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(236, 72, 153, 0.1), transparent);
}

.page-cta-inner {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.page-cta h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 16px;
}

.page-cta p {
    font-size: 1.05rem;
    color: var(--color-light-text);
    line-height: 1.8;
    margin-bottom: 32px;
}

/* Shared Contact Section */
.contact-section {
    padding: var(--section-padding) 0;
    background: var(--color-bg-white);
}

.contact-section-dark {
    background: var(--color-indigo);
    position: relative;
    overflow: hidden;
}

.contact-section-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 60% at 22% 24%, rgba(236, 72, 153, 0.16), transparent),
        radial-gradient(ellipse 50% 50% at 78% 70%, rgba(139, 92, 246, 0.16), transparent),
        linear-gradient(180deg, var(--color-indigo) 0%, var(--color-navy) 100%);
}

.contact-section .container {
    position: relative;
    z-index: 1;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 64px;
    align-items: start;
}

.contact-intro {
    max-width: 560px;
}

.contact-title {
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    font-weight: 800;
    color: var(--color-heading);
    line-height: 1.2;
    margin-bottom: 20px;
}

.contact-text {
    font-size: 1.04rem;
    color: var(--color-body);
    line-height: 1.85;
    margin-bottom: 32px;
}

.contact-points {
    display: grid;
    gap: 18px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 24px;
    border-radius: var(--border-radius);
    background: var(--color-bg-light);
    border: 1px solid var(--color-border-light);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-pink);
    background: linear-gradient(135deg, var(--color-glow-pink), var(--color-glow-purple));
}

.contact-card-icon svg {
    width: 22px;
    height: 22px;
}

.contact-card-label {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 4px;
}

.contact-card-link {
    color: var(--color-pink);
    font-weight: 600;
}

.contact-card-copy {
    color: var(--color-body);
    font-size: 0.94rem;
    line-height: 1.65;
}

.contact-socials {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.contact-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    border: 1px solid var(--color-border-light);
    color: var(--color-body);
    background: var(--color-bg-white);
    transition: all var(--transition-base);
}

.contact-socials a:hover {
    border-color: rgba(236, 72, 153, 0.35);
    color: var(--color-pink);
    transform: translateY(-2px);
}

.contact-socials a svg {
    width: 20px;
    height: 20px;
}

.contact-panel {
    padding: 36px;
    border-radius: var(--border-radius-lg);
    background: var(--color-bg-white);
    border: 1px solid var(--color-border-light);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.contact-panel-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--color-heading);
    margin-bottom: 12px;
}

.contact-panel-text {
    font-size: 0.98rem;
    color: var(--color-body);
    line-height: 1.75;
    margin-bottom: 28px;
}

.contact-section-dark .contact-title,
.contact-section-dark .contact-panel-title,
.contact-section-dark .form-label {
    color: var(--color-white);
}

.contact-section-dark .contact-text,
.contact-section-dark .contact-panel-text,
.contact-section-dark .contact-card-copy,
.contact-section-dark .form-hint,
.contact-section-dark .form-status {
    color: var(--color-light-text);
}

.contact-section-dark .contact-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.contact-section-dark .contact-card-label {
    color: var(--color-white);
}

.contact-section-dark .contact-card-link {
    color: var(--color-white);
}

.contact-section-dark .contact-card-link:hover {
    color: #ffd1e7;
}

.contact-section-dark .contact-socials a {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--color-light-text);
}

.contact-section-dark .contact-socials a:hover {
    color: var(--color-white);
    border-color: rgba(236, 72, 153, 0.45);
    background: rgba(255, 255, 255, 0.1);
}

.contact-section-dark .contact-panel {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: none;
}

.contact-section-dark .form-input,
.contact-section-dark .form-textarea {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--color-white);
}

.contact-section-dark .form-input::placeholder,
.contact-section-dark .form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.58);
}

.contact-section-dark .form-label-muted {
    color: rgba(255, 255, 255, 0.65);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
}

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

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 8px;
}

.form-label-muted {
    color: var(--color-muted);
    font-weight: 400;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-heading);
    background: var(--color-bg-light);
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none; /* replaced by box-shadow for custom focus ring */
    border-color: var(--color-pink);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15);
}

.form-input:focus-visible,
.form-textarea:focus-visible {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

/* Select — normalised across platforms */
select.form-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

select.form-input:focus-visible {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

/* Link affordance in body copy */
.prose a,
.contact-panel-text a,
.section-subtitle a,
.hero-subtitle a,
.page-hero-description a {
    text-decoration: underline;
    text-underline-offset: 3px;
    color: var(--color-purple);
}

.prose a:hover,
.contact-panel-text a:hover {
    color: var(--color-pink);
}

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

.contact-submit {
    width: 100%;
}

.form-hint {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--color-body);
    line-height: 1.7;
}

.form-hint a {
    color: var(--color-pink);
    font-weight: 600;
}

.form-status {
    min-height: 24px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--color-body);
}

.form-status--success {
    color: #16a34a;
}

.form-status--error {
    color: #dc2626;
}

.contact-section-dark .form-status--success {
    color: #4ade80;
}

.contact-section-dark .form-status--error {
    color: #f87171;
}

/* ===== PROMPT 10: SUBMIT BUTTON LOADING STATE ===== */
.btn[disabled] {
    opacity: 0.65;
    cursor: wait;
    pointer-events: none;
}

.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.75;
}

.btn-loading .btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnSpin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .btn-loading .btn-spinner {
        animation: none;
        opacity: 0.5;
    }
}

/* Portfolio Filter */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 50px;
    color: var(--color-body);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-base);
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--color-white);
    background: var(--gradient-accent);
    border-color: transparent;
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 10, 24, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.is-active {
    display: flex;
    opacity: 1;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16/9;
}

.video-modal-content video {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.video-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: var(--color-white);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.video-modal-close:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.08);
}

.video-modal-close:focus-visible {
    outline: 2px solid #8b5cf6;
    outline-offset: 3px;
}

body.modal-open {
    overflow: hidden;
}

/* Honeypot field — hidden from users, visible only to bots */
.form-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ====== MOBILE HEADER: FLOW LAYOUT + iOS CONTROLS ====== */
.header-mobile-icons {
    display: none;
}

@media (max-width: 768px) {
    /* Single-line wordmark — tighter + smaller so it never wraps */
    .logo {
        gap: 9px;
    }

    .logo-icon {
        width: 34px;
        height: 34px;
        border-radius: 9px;
        font-size: 0.88rem;
    }

    .logo-text {
        display: inline-block;
        white-space: nowrap;
        font-size: 0.82rem;
        letter-spacing: 0.14em;
        line-height: 1;
    }

    /* Icon cluster — unified iOS-style glass buttons */
    .header-mobile-icons {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-left: auto;
    }

    .header-mobile-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 12px;
        color: var(--color-white);
        background: rgba(255, 255, 255, 0.07);
        border: 1px solid rgba(255, 255, 255, 0.14);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        text-decoration: none;
        transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .header-mobile-icon svg {
        width: 19px;
        height: 19px;
        stroke-width: 1.75;
    }

    /* WhatsApp = the one restrained accent — softer gradient, no heavy glow */
    .header-mobile-icon[href*="whatsapp"] {
        background: linear-gradient(135deg, rgba(236, 72, 153, 0.88) 0%, rgba(139, 92, 246, 0.88) 100%);
        border-color: rgba(255, 255, 255, 0.18);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.18),
            0 2px 8px rgba(139, 92, 246, 0.22);
    }

    .header-mobile-icon:active {
        transform: scale(0.92);
        background: rgba(255, 255, 255, 0.12);
    }

    .header-mobile-icon[href*="whatsapp"]:active {
        background: linear-gradient(135deg, rgba(236, 72, 153, 1) 0%, rgba(139, 92, 246, 1) 100%);
    }

    /* Desktop-style pill toggle at same height as icon buttons */
    .lang-switcher {
        height: 42px;
        padding: 4px;
        gap: 2px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 999px;
        background: rgba(71, 85, 105, 0.38);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 4px 14px rgba(15, 23, 42, 0.18);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .lang-switcher-option {
        min-width: 34px;
        min-height: 0;
        height: 32px;
        padding: 0 12px;
        font-weight: 700;
        font-size: 0.72rem;
        letter-spacing: 0.08em;
        color: rgba(255, 255, 255, 0.7);
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: color 0.2s, background 0.2s, box-shadow 0.2s;
    }

    .lang-switcher-option.is-active {
        background: rgba(255, 255, 255, 0.18);
        color: #ffffff;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.12),
            0 2px 6px rgba(0, 0, 0, 0.2);
    }
}

@media (max-width: 480px) {
    .logo {
        gap: 8px;
    }

    .logo-icon {
        width: 34px;
        height: 34px;
        border-radius: 8px;
        font-size: 0.84rem;
    }

    .logo-text {
        font-size: 0.76rem;
        letter-spacing: 0.12em;
    }

    .header-mobile-icons {
        gap: 5px;
    }

    .header-mobile-icon {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .header-mobile-icon svg {
        width: 17px;
        height: 17px;
    }

    .hamburger {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        margin-left: 5px !important;
        border-radius: 11px !important;
    }

    .hamburger-line {
        width: 16px;
    }

    .lang-switcher {
        height: 38px;
        padding: 3px;
        margin-left: 5px !important;
    }

    .lang-switcher-option {
        min-width: 30px;
        height: 30px;
        padding: 0 10px;
        font-size: 0.66rem;
    }
}

@media (max-width: 380px) {
    .logo-text {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }

    .header-mobile-icons {
        gap: 4px;
    }

    .header-mobile-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .header-mobile-icon svg {
        width: 16px;
        height: 16px;
    }

    .hamburger {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        border-radius: 10px !important;
    }

    .hamburger-line {
        width: 15px;
    }

    .lang-switcher {
        height: 36px;
        padding: 3px;
    }

    .lang-switcher-option {
        min-width: 28px;
        height: 28px;
        padding: 0 8px;
        font-size: 0.62rem;
    }
}

/* ===== MOBILE CONTACT SECTION — FINAL OVERRIDE ===== */
/* Placed last to win cascade against the base .contact-layout rule above. */
@media (max-width: 1024px) {
    .contact-layout {
        display: block;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-intro,
    .contact-panel {
        max-width: none;
        width: 100%;
    }

    .contact-intro {
        margin-bottom: 32px;
        text-align: left;
    }

    .contact-intro .contact-title {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
        line-height: 1.12;
        margin-bottom: 14px;
    }

    .contact-intro .contact-text {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 24px;
    }

    .contact-intro .contact-points {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 20px;
    }

    .contact-intro .contact-card {
        padding: 14px 16px;
        gap: 14px;
        border-radius: 14px;
    }

    .contact-intro .contact-card-icon {
        width: 38px;
        height: 38px;
    }

    .contact-intro .contact-card-icon svg {
        width: 18px;
        height: 18px;
    }

    .contact-intro .contact-card-label {
        font-size: 0.78rem;
        margin-bottom: 2px;
        letter-spacing: 0.02em;
    }

    .contact-intro .contact-card-link,
    .contact-intro .contact-card-copy {
        font-size: 0.95rem;
    }

    .contact-intro .contact-socials {
        margin-top: 4px;
    }

    .contact-panel {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .contact-panel-title {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .contact-panel-text {
        font-size: 0.94rem;
        line-height: 1.55;
        margin-bottom: 20px;
    }

    .contact-form .form-group {
        margin-bottom: 16px;
    }

    .contact-form .form-input,
    .contact-form .form-textarea {
        padding: 13px 16px;
        font-size: 16px; /* prevents iOS zoom */
    }

    .contact-form .contact-submit {
        width: 100%;
        padding: 16px 24px;
    }
}

@media (max-width: 480px) {
    .contact-layout {
        max-width: none;
    }

    .contact-panel {
        padding: 22px 16px;
    }
}

/* ===== Rendering performance — paint-containment on heavy sections ===== */
/* `contain: paint layout` scopes layout/paint work without the anchor-scroll
   side-effects of `content-visibility: auto`. Safer on a single-page site with
   many #-anchors. */
.benefits-section,
.needs-section,
.process-section,
.faq-section,
.clients-section {
    contain: paint layout;
}
