/* ============================================
   Design Tokens (CSS Variables)
   ============================================ */
:root {
    /* Colors */
    --color-bg-primary: #0a0a0f;
    --color-bg-secondary: #111118;
    --color-bg-tertiary: #1a1a24;
    --color-surface: rgba(255, 255, 255, 0.05);
    --color-surface-hover: rgba(255, 255, 255, 0.08);
    --color-border: rgba(255, 255, 255, 0.12);
    --color-border-hover: rgba(255, 255, 255, 0.25);
    
    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-text-tertiary: rgba(255, 255, 255, 0.5);
    
    --color-accent: #6366f1;
    --color-accent-hover: #818cf8;
    --color-accent-glow: rgba(99, 102, 241, 0.4);
    --color-accent-glow-strong: rgba(99, 102, 241, 0.6);
    
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Typography */
    --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    --font-size-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --font-size-sm: clamp(0.875rem, 0.825rem + 0.25vw, 1rem);
    --font-size-lg: clamp(1.125rem, 1.05rem + 0.375vw, 1.5rem);
    --font-size-xl: clamp(1.5rem, 1.35rem + 0.75vw, 2.25rem);
    --font-size-2xl: clamp(2rem, 1.7rem + 1.5vw, 3.5rem);
    --font-size-3xl: clamp(2.5rem, 2rem + 2.5vw, 5rem);
    
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows & Glows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.5);
    
    --glow-sm: 0 0 15px var(--color-accent-glow);
    --glow-md: 0 0 30px var(--color-accent-glow), 0 0 60px var(--color-accent-glow-strong);
    --glow-lg: 0 0 50px var(--color-accent-glow), 0 0 100px var(--color-accent-glow-strong);
    --glow-xl: 0 0 80px var(--color-accent-glow), 0 0 150px var(--color-accent-glow-strong);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Layout */
    --container-max-width: 1280px;
    --container-padding: clamp(1rem, 4vw, 2rem);
    
    /* Grid Pattern */
    --grid-size: 24px;
    --grid-color: rgba(255, 255, 255, 0.04);
    --grid-line: 1px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        repeating-linear-gradient(0deg, transparent, transparent var(--grid-size), var(--grid-color) var(--grid-size), var(--grid-color) calc(var(--grid-size) + var(--grid-line))),
        repeating-linear-gradient(90deg, transparent, transparent var(--grid-size), var(--grid-color) var(--grid-size), var(--grid-color) calc(var(--grid-size) + var(--grid-line)));
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   Skip Link (A11y)
   ============================================ */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 1000;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-accent);
    color: var(--color-text-primary);
    text-decoration: none;
    border-radius: var(--radius-md);
}

.skip-link:focus {
    top: var(--spacing-md);
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    line-height: var(--line-height-tight);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
}

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

h2 {
    font-size: var(--font-size-2xl);
}

h3 {
    font-size: var(--font-size-xl);
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-secondary);
}

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

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

/* ============================================
   Main
   ============================================ */
main {
    position: relative;
    z-index: 1;
}

/* ============================================
   Container
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: none;
    transition: background var(--transition-base), border-color var(--transition-base);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header.scrolled {
    background: transparent;
    border-bottom-color: transparent;
}

.nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0.75rem var(--container-padding);
    gap: var(--spacing-lg);
}

.logo {
    display: flex;
    align-items: center;
    transition: transform var(--transition-base);
    height: 32px;
    justify-self: start;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-logo {
    height: 32px;
    margin-bottom: var(--spacing-sm);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
    margin-left: 0;
    padding: 0.3rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: linear-gradient(90deg, rgba(12, 14, 45, 0.55), rgba(22, 17, 62, 0.45));
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    position: relative;
    justify-self: center;
}

.nav-menu a {
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-medium);
    font-size: 1rem;
    padding: 0.52rem 1rem;
    border-radius: var(--radius-full);
    transition: color var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
    display: inline-flex;
    align-items: center;
    line-height: 1;
    position: relative;
    z-index: 2;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #10152a;
    background: transparent;
    box-shadow: none;
}

.nav-indicator {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 0 1px rgba(16, 21, 42, 0.12);
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), width 320ms cubic-bezier(0.22, 1, 0.36, 1), height 320ms cubic-bezier(0.22, 1, 0.36, 1), opacity 200ms ease;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: var(--radius-full);
    transition: transform var(--transition-base);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    justify-self: end;
}

.header .nav-cta,
.btn.nav-cta {
    white-space: nowrap;
    padding: 0.62rem 1.4rem !important;
    font-size: 1.06rem !important;
    font-weight: var(--font-weight-medium) !important;
    line-height: 1.2 !important;
    min-height: auto;
    border-radius: var(--radius-full) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.header .nav-cta:hover,
.btn.nav-cta:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-color: var(--color-border);
    color: var(--color-text-primary);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    border-color: var(--color-accent);
    color: var(--color-text-primary);
    box-shadow: var(--glow-sm), 0 4px 15px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-accent-hover) 0%, var(--color-accent) 100%);
    border-color: var(--color-accent-hover);
    box-shadow: var(--glow-md), 0 6px 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px) scale(1.02);
}

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

.btn-secondary:hover {
    background: var(--color-surface);
    border-color: var(--color-border-hover);
    box-shadow: var(--glow-sm);
}

.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
}

/* ============================================
   Badges
   ============================================ */
.badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding-top: calc(var(--spacing-3xl) + 50px);
    padding-bottom: 0;
    overflow: hidden;
}

/* Центрирование контента по вертикали в области над тикером */
.hero > .container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding-bottom: 5.5rem; /* запас под абсолютный hero-ticker */
}

.hero.hero-service > .container {
    padding-bottom: var(--spacing-2xl);
}

.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 
        0 0 10px var(--color-accent),
        0 0 20px var(--color-accent),
        0 0 30px var(--color-accent-glow);
    opacity: 0.8;
    animation: sparkle-float 8s ease-in-out infinite;
    filter: blur(0.5px);
}

.sparkle::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
    opacity: 0.5;
    animation: sparkle-pulse 3s ease-in-out infinite;
}

.sparkle-1 {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
    width: 8px;
    height: 8px;
}

.sparkle-2 {
    top: 55%;
    right: 12%;
    animation-delay: 2s;
    width: 6px;
    height: 6px;
}

.sparkle-3 {
    bottom: 25%;
    left: 18%;
    animation-delay: 4s;
    width: 5px;
    height: 5px;
}

.sparkle-4 {
    top: 40%;
    right: 25%;
    animation-delay: 1s;
    width: 4px;
    height: 4px;
}

.sparkle-5 {
    bottom: 15%;
    right: 8%;
    animation-delay: 3s;
    width: 7px;
    height: 7px;
}

@keyframes sparkle-float {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translate(15px, -15px) scale(1.3) rotate(90deg);
        opacity: 1;
    }
    50% {
        transform: translate(25px, -25px) scale(1.1) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translate(10px, -30px) scale(1.4) rotate(270deg);
        opacity: 1;
    }
}

@keyframes sparkle-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.5);
    }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
}

.hero-slogan {
    display: block;
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-slogan-accent {
    display: block;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: var(--font-size-lg);
    line-height: 1.4;
    margin-bottom: var(--spacing-xl);
    color: var(--color-text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-bottom: var(--spacing-xl);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
}

/* ============================================
   Service Page Hero
   ============================================ */
.hero-service {
    padding-bottom: var(--spacing-3xl);
}

.hero-service .hero-content {
    text-align: left;
}

.hero-service .hero-cta {
    justify-content: flex-start;
}

.breadcrumb {
    display: inline-block;
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb:hover {
    color: var(--color-accent);
}

.service-hero-icon {
    margin-bottom: var(--spacing-md);
    color: var(--color-accent);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero-service .hero-content {
        text-align: center;
    }
    
    .hero-service .hero-cta {
        justify-content: center;
    }
}

/* ============================================
   Hero Partners
   ============================================ */
.hero-partners {
    position: absolute;
    bottom: 140px;
    left: 0;
    right: 0;
    padding: var(--spacing-lg) var(--container-padding);
    z-index: 10;
}

.partners-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-md);
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-2xl);
    flex-wrap: wrap;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-name {
    font-size: 1.55rem;
    font-weight: var(--font-weight-bold);
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
    line-height: 0.6;
    text-transform: uppercase;
}

/* ============================================
   Hero Ticker (Running Line)
   ============================================ */
.hero-ticker {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-md) 0;
    z-index: 10;
}

.ticker-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    white-space: nowrap;
    animation: ticker-scroll 40s linear infinite;
    will-change: transform;
}

.ticker-item {
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ticker-separator {
    color: var(--color-text-tertiary);
    font-size: 0.75rem;
}

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

@media (prefers-reduced-motion: reduce) {
    .ticker-content {
        animation: none;
    }
}

/* ============================================
   Section Styles
   ============================================ */
section {
    padding: var(--spacing-3xl) 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-2xl);
}

.section-subtitle {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    line-height: 1.4;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   What We Do / Features
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.feature-card {
    padding: var(--spacing-lg) var(--spacing-xl);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-card:hover {
    border-color: var(--color-border-hover);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--glow-lg), 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--spacing-md);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
}

.feature-card h3 {
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.feature-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--color-accent);
    border-radius: var(--radius-full);
}

.feature-description {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-secondary);
    line-height: 1.4;
    font-size: var(--font-size-sm);
}

.feature-services {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-tertiary);
    margin-bottom: 0;
    letter-spacing: 0.02em;
}

.feature-divider {
    font-size: 1.5rem;
    color: var(--color-text-tertiary);
    text-align: center;
    opacity: 0.3;
    margin-top: var(--spacing-md);
}

/* ============================================
   Services Grid
   ============================================ */
.services {
    padding-top: var(--spacing-2xl);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.service-card {
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: all var(--transition-base);
    position: relative;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.service-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: linear-gradient(135deg, var(--color-accent), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.service-card:hover {
    border-color: var(--color-border-hover);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--glow-xl), 0 12px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    margin-bottom: var(--spacing-md);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
}

.service-card h3 {
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-lg);
}

.service-card p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
}

a.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Главная: меньше зазор между «Услуги» и «Как мы работаем» */
body.page-home #services {
    padding-bottom: var(--spacing-2xl);
}

body.page-home #process.work-fit {
    padding-top: clamp(2.5rem, 6vw, 4.5rem);
    padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
    background: transparent;
    overflow: visible;
}

body.page-home .work-fit-outer {
    max-width: 100%;
    padding-left: clamp(1rem, 2.6vw, 2.4rem);
    padding-right: clamp(1rem, 2.6vw, 2.4rem);
}

body.page-home .work-fit-panel {
    border-radius: clamp(26px, 4.2vw, 46px);
    padding: clamp(1.75rem, 4vw, 3.25rem) clamp(1.35rem, 3.5vw, 2.85rem);
    background: #ececee;
    color: #0a0a0a;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.12),
        0 32px 80px rgba(0, 0, 0, 0.28);
}

body.page-home .work-fit-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(1rem, 2.5vw, 1.75rem);
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

body.page-home .work-fit-kicker {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    max-width: min(20rem, 100%);
    margin: 0;
    font-size: clamp(0.8rem, 1.05vw, 0.95rem);
    font-weight: 500;
    line-height: 1.45;
    color: rgba(20, 20, 24, 0.55);
}

body.page-home .work-fit-kicker-icon {
    flex-shrink: 0;
    margin-top: 0.12em;
    font-size: 0.75rem;
    line-height: 1;
    color: rgba(20, 20, 24, 0.45);
}

body.page-home .work-fit-title {
    margin: 0;
    flex: 1 1 min(16rem, 100%);
    text-align: right;
    font-size: clamp(1.65rem, 4.2vw, 3.35rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: #0a0a0a;
}

body.page-home .work-fit-title-gradient {
    background: linear-gradient(105deg, var(--home-vivid-mulberry) 0%, #a038c4 45%, var(--home-rich-lilac) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

body.page-home .work-fit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.35rem, 2.8vw, 2.35rem) clamp(1.25rem, 3vw, 2.5rem);
}

body.page-home .work-fit-cell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(0.65rem, 1.8vw, 1.15rem);
    align-items: start;
    min-width: 0;
}

body.page-home .work-fit-num {
    font-size: clamp(4.4rem, 12vw, 9.2rem);
    font-weight: 500;
    line-height: 0.88;
    letter-spacing: -0.045em;
    color: #544e62;
    user-select: none;
}

body.page-home .work-fit-cell-body h3 {
    margin: 0 0 0.45rem;
    font-size: clamp(1.4rem, 2.6vw, 2.25rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #0a0a0a;
}

body.page-home .work-fit-cell-body p {
    margin: 0;
    font-size: clamp(0.84rem, 1.1vw, 0.98rem);
    line-height: 1.55;
    color: rgba(20, 20, 24, 0.52);
}

#faq {
    padding-bottom: var(--spacing-2xl);
}

#contact {
    padding-top: var(--spacing-lg);
}

/* ============================================
   Process — Semi-transparent Carousel
   ============================================ */
.process {
    position: relative;
    overflow: hidden;
}

.process-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.process-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, black 20%, transparent 70%);
}

.process-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
}

.process-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.process-badge {
    display: inline-block;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-accent);
    letter-spacing: 0.15em;
    text-transform: lowercase;
    margin-bottom: var(--spacing-sm);
    opacity: 0.9;
}

/* Carousel */
.process-carousel {
    position: relative;
    z-index: 1;
    padding: var(--spacing-xl) 0;
    overflow: hidden;
}

.process-track {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--spacing-lg);
    perspective: 1200px;
    min-height: 380px;
    transition: transform var(--transition-slow);
}

.process-slide {
    flex: 0 0 auto;
    width: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-slow);
    transform-origin: center center;
}

.process-slide:not(.active) {
    opacity: 0.4;
    transform: scale(0.85);
    pointer-events: none;
}

.process-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
    pointer-events: auto;
}

/* Semi-transparent card (holographic style) */
.process-card {
    width: 100%;
    max-width: 360px;
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.process-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.process-slide.active .process-card {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 
        0 0 60px rgba(99, 102, 241, 0.15),
        0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.process-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.process-icon svg {
    width: 28px;
    height: 28px;
}

.process-card h3 {
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: #fff;
}

.process-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-md);
}

.process-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.process-tags span {
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 0.65rem;
    font-weight: var(--font-weight-medium);
    color: rgba(255, 255, 255, 0.5);
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
}

/* Navigation */
.process-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.process-nav-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    color: #fff;
    cursor: pointer;
    transition: all var(--transition-base);
}

.process-nav-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
}

.process-nav-btn svg {
    width: 20px;
    height: 20px;
}

.process-dots {
    display: flex;
    gap: var(--spacing-sm);
}

.process-dot {
    width: 10px;
    height: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.process-dot:hover {
    border-color: rgba(255, 255, 255, 0.6);
}

.process-dot.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

/* ============================================
   Pricing
   ============================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.pricing-card {
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: all var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.pricing-card:hover {
    border-color: var(--color-border-hover);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--glow-lg), 0 12px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card-featured {
    border-color: var(--color-accent);
    background: rgba(99, 102, 241, 0.08);
    box-shadow: var(--glow-md), 0 8px 32px rgba(99, 102, 241, 0.2);
    transform: scale(1.05);
}

.pricing-card-featured::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.6;
    z-index: -1;
}

.pricing-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    background: var(--color-accent);
    color: var(--color-text-primary);
    border-radius: var(--radius-full);
}

.pricing-card h3 {
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-xl);
}

.pricing-price {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
    margin-bottom: var(--spacing-lg);
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--spacing-xl);
    flex-grow: 1;
}

.pricing-features li {
    padding: var(--spacing-sm) 0;
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    border-bottom: 1px solid var(--color-border);
}

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

.pricing-features li::before {
    content: '✓';
    color: var(--color-accent);
    margin-right: var(--spacing-sm);
    font-weight: var(--font-weight-bold);
}

.pricing-care {
    margin-top: var(--spacing-3xl);
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.pricing-care h3 {
    margin-bottom: var(--spacing-lg);
}

.pricing-care-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.pricing-care-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
}

.care-label {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
}

.care-price {
    color: var(--color-accent);
    font-size: var(--font-size-lg);
}

/* VELOXIS Web — компактная секция (главная / web) */
.pricing-web {
    padding: var(--spacing-2xl) 0;
}

.pricing-web .section-title {
    margin-bottom: var(--spacing-sm);
}

.pricing-web .section-subtitle.pricing-web-lead {
    max-width: 720px;
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-base);
    line-height: 1.45;
}

.pricing-web .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.pricing-web .pricing-card {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
}

.pricing-web .pricing-card-featured {
    transform: scale(1.02);
}

.pricing-web .pricing-badge {
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
}

.pricing-web .pricing-card h3 {
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-lg);
}

.pricing-web .pricing-price {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
}

.pricing-web .pricing-features {
    margin-bottom: var(--spacing-md);
}

.pricing-web .pricing-features li {
    padding: var(--spacing-xs) 0;
    font-size: 0.8125rem;
}

.pricing-web .pricing-card .btn {
    padding: 0.55rem 1rem;
    font-size: var(--font-size-sm);
}

.pricing-web .pricing-care {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
}

.pricing-web .pricing-care h3 {
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-lg);
}

.pricing-web .pricing-care-grid {
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.pricing-web .pricing-care-item {
    padding: var(--spacing-sm) var(--spacing-md);
}

.pricing-web .care-price {
    font-size: var(--font-size-base);
}

/* VELOXIS Marketing — компактная секция (главная) */
.pricing-marketing {
    padding: var(--spacing-2xl) 0;
}

.pricing-marketing .section-title {
    margin-bottom: var(--spacing-sm);
}

.pricing-marketing .section-subtitle.pricing-marketing-lead {
    max-width: 720px;
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-base);
    line-height: 1.45;
}

.pricing-marketing .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.pricing-marketing .pricing-card {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
}

.pricing-marketing .pricing-card h3 {
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-lg);
}

.pricing-marketing .pricing-features {
    margin-bottom: var(--spacing-md);
}

.pricing-marketing .pricing-features li {
    padding: var(--spacing-xs) 0;
    font-size: 0.8125rem;
}

.pricing-marketing .pricing-card .btn {
    padding: 0.55rem 1rem;
    font-size: var(--font-size-sm);
}

.pricing-marketing .pricing-care {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
}

.pricing-marketing .pricing-care h3 {
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-lg);
}

.pricing-marketing .pricing-care > p {
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.45;
}

.pricing-marketing .pricing-care .btn {
    padding: 0.55rem 1.25rem;
    font-size: var(--font-size-sm);
}

/* ============================================
   Cases
   ============================================ */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.case-card {
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: all var(--transition-base);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.case-card:hover {
    border-color: var(--color-border-hover);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--glow-lg), 0 12px 40px rgba(0, 0, 0, 0.3);
}

.case-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--spacing-md);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
}

.case-card h3 {
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-lg);
}

.case-card p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
    max-width: 800px;
    margin: var(--spacing-2xl) auto 0;
}

@media (min-width: 769px) {
    .faq-list {
        max-width: 1100px;
    }
}

.faq-item {
    margin-bottom: var(--spacing-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.faq-item:hover {
    border-color: var(--color-border-hover);
}

.faq-question {
    width: 100%;
    padding: var(--spacing-lg);
    background: transparent;
    border: none;
    text-align: left;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    transition: color var(--transition-base);
}

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

.faq-icon {
    flex-shrink: 0;
    transition: transform var(--transition-base);
    color: var(--color-accent);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

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

.faq-question[aria-expanded="true"] + .faq-answer {
    max-height: 500px;
    padding: 0 var(--spacing-lg) var(--spacing-lg);
}

.faq-answer p {
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

/* ============================================
   Contact
   ============================================ */
.contact-intro {
    margin-bottom: var(--spacing-lg);
}

.contact-content {
    max-width: 560px;
    margin: var(--spacing-md) auto 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-group label {
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    font-size: var(--font-size-sm);
}

.form-group input,
.form-group textarea {
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-family: inherit;
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: var(--glow-sm);
}

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

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: clamp(1.2rem, 3vw, 2rem) 0 clamp(0.85rem, 2.2vw, 1.35rem);
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    margin-top: clamp(1.25rem, 3.5vw, 2rem);
}

.footer > .container {
    max-width: 100%;
    padding-left: clamp(1rem, 2.6vw, 2.4rem);
    padding-right: clamp(1rem, 2.6vw, 2.4rem);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0;
    flex-wrap: wrap;
    gap: clamp(0.6rem, 1.6vw, 1rem);
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-brand p {
    margin-top: 0.3rem;
    color: var(--color-text-tertiary);
    font-size: 0.82rem;
    line-height: 1.35;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.45rem, 1.2vw, 0.85rem);
}

.footer-nav a {
    color: var(--color-text-secondary);
    font-size: 0.82rem;
    transition: color var(--transition-base);
}

.footer-nav a:hover {
    color: var(--color-text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-border);
}

.footer-bottom p {
    color: var(--color-text-tertiary);
    font-size: var(--font-size-sm);
    margin: 0;
}

/* ============================================
   Legal Pages
   ============================================ */
body.page-legal {
    background: #000;
}

body.page-legal .legal-main {
    padding-top: calc(74px + clamp(1.2rem, 3vw, 2.4rem));
}

body.page-legal .legal-section {
    padding: 0 0 clamp(1.6rem, 4vw, 3rem);
}

body.page-legal .legal-container {
    max-width: min(980px, 100%);
    padding: clamp(1.2rem, 3vw, 2rem);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.2rem;
    background: rgba(18, 18, 24, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.page-legal .legal-container h1 {
    margin: 0 0 0.4rem;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.1;
}

body.page-legal .legal-date {
    margin: 0 0 1.2rem;
    color: rgba(241, 241, 241, 0.62);
    font-size: 0.9rem;
}

body.page-legal .legal-container h2 {
    margin: 1.35rem 0 0.5rem;
    font-size: clamp(1.08rem, 2.2vw, 1.4rem);
    line-height: 1.2;
}

body.page-legal .legal-container p,
body.page-legal .legal-container li {
    color: rgba(241, 241, 241, 0.86);
    line-height: 1.58;
}

body.page-legal .legal-container ul {
    margin: 0 0 0.75rem 1.2rem;
    padding: 0;
}

body.page-legal .legal-container a {
    color: var(--color-accent);
}

/* ============================================
   Reveal Animation (will be controlled by JS)
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .process-slide {
        width: 280px;
    }
    
    .process-track {
        min-height: 340px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        display: flex;
        justify-content: space-between;
    }

    .nav-menu {
        position: fixed;
        top: 45px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: var(--spacing-lg);
        border-radius: 0;
        border: none;
        border-bottom: 1px solid var(--color-border);
        box-shadow: none;
        gap: var(--spacing-sm);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-indicator {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .header-actions {
        display: none;
    }
    
    .hero {
        padding-top: calc(var(--spacing-2xl) + 50px);
    }
    
    .hero > .container {
        padding-bottom: 4.5rem;
    }
    
    .hero-title {
        line-height: 1.05;
        font-size: var(--font-size-xl);
    }
    
    .hero-description {
        line-height: 1.35;
        font-size: var(--font-size-base);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .hero-partners {
        bottom: 70px;
        padding: var(--spacing-md) var(--container-padding);
    }
    
    .partners-logos {
        gap: var(--spacing-md);
    }
    
    .partner-name {
        font-size: 1.1rem;
        line-height: 0.55;
    }
    
    .features-grid,
    .services-grid,
    .pricing-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .process-slide {
        width: 100%;
        max-width: 340px;
    }
    
    .process-slide:not(.active) {
        display: none;
    }
    
    .process-slide.active {
        display: flex;
    }
    
    .process-track {
        min-height: auto;
    }
    
    .process-header {
        margin-bottom: var(--spacing-2xl);
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    section {
        padding: var(--spacing-2xl) 0;
    }
    
    body.page-home #services {
        padding-bottom: var(--spacing-lg);
    }
    
    body.page-home #process.work-fit {
        padding-top: clamp(1.75rem, 5vw, 2.5rem);
        padding-bottom: clamp(1.75rem, 5vw, 2.5rem);
    }

    body.page-home .work-fit-head {
        flex-direction: column;
        align-items: stretch;
    }

    body.page-home .work-fit-kicker {
        max-width: none;
    }

    body.page-home .work-fit-title {
        text-align: left;
    }

    body.page-home .work-fit-grid {
        grid-template-columns: 1fr;
        gap: clamp(1.25rem, 4vw, 1.75rem);
    }
    
    #faq {
        padding-bottom: var(--spacing-lg);
    }
    
    #contact {
        padding-top: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
    }
    
    .hero-title {
        font-size: var(--font-size-xl);
        line-height: 1.05;
    }
    
    .hero-description {
        font-size: var(--font-size-sm);
        line-height: 1.3;
    }
    
    .partner-name {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: var(--font-size-xl);
    }
}

/* ============================================
   Home Visual Refresh (Nymera-like)
   ============================================ */
body.page-home {
    --home-raisin-black: #211a24;
    --home-granite-gray: #635766;
    --home-vivid-mulberry: #c109d9;
    --home-rich-lilac: #bc6ecc;
    --home-anti-flash-white: #f1f1f1;
    --home-spanish-gray: #9e9e9e;
    --home-vampire-black: #070707;
    position: relative;
    background-color: #000;
    background-image: none;
}

body.page-home main,
body.page-home .footer {
    position: relative;
    z-index: 1;
}

body.page-home .header {
    position: fixed;
    z-index: 1000;
}

body.page-home .global-sparkles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

body.page-home .global-sparkles .sparkle {
    opacity: 0.45;
}

body.page-home .sparkle-g1 { top: 8%; left: 24%; width: 5px; height: 5px; }
body.page-home .sparkle-g2 { top: 14%; right: 18%; width: 6px; height: 6px; }
body.page-home .sparkle-g3 { top: 32%; left: 10%; width: 4px; height: 4px; }
body.page-home .sparkle-g4 { top: 38%; right: 8%; width: 6px; height: 6px; }
body.page-home .sparkle-g5 { top: 57%; left: 28%; width: 5px; height: 5px; }
body.page-home .sparkle-g6 { top: 66%; right: 24%; width: 4px; height: 4px; }
body.page-home .sparkle-g7 { top: 82%; left: 14%; width: 6px; height: 6px; }
body.page-home .sparkle-g8 { top: 88%; right: 12%; width: 5px; height: 5px; }

body.page-home::before {
    background: none;
}

body.page-home .header {
    background: transparent;
    border-bottom: none;
}

body.page-home .nav-menu {
    border-color: rgba(241, 241, 241, 0.2);
    background: linear-gradient(90deg, rgba(33, 26, 36, 0.78), rgba(44, 30, 54, 0.65));
}

body.page-home .nav-indicator {
    background: var(--home-anti-flash-white);
    box-shadow: 0 0 0 1px rgba(7, 7, 7, 0.15), 0 8px 20px rgba(241, 241, 241, 0.17);
}

body.page-home .header .nav-cta,
body.page-home .btn.nav-cta {
    background: linear-gradient(135deg, var(--home-vivid-mulberry), var(--home-rich-lilac)) !important;
    border-color: rgba(241, 241, 241, 0.25) !important;
}

body.page-home .hero {
    min-height: 100vh;
    padding-top: calc(var(--spacing-3xl) + 42px);
}

body.page-home .hero > .container {
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: clamp(2rem, 6.2vw, 4.5rem);
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}

body.page-home #hero {
    isolation: isolate;
}

body.page-home #hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #000;
    z-index: -2;
}

body.page-home #hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: none;
    z-index: -1;
}

body.page-home .sparkle {
    opacity: 0.5;
    box-shadow: 0 0 10px var(--home-vivid-mulberry), 0 0 22px var(--home-rich-lilac);
}

body.page-home .hero-home-art {
    position: absolute;
    left: 50%;
    top: 52%;
    width: clamp(520px, 50vw, 760px);
    aspect-ratio: 683 / 1024;
    transform: translate(-50%, -50%);
    background: url("/assets/hero-octopus.png") center / contain no-repeat;
    z-index: -1;
    pointer-events: none;
    filter: saturate(1.08) contrast(1.04);
}

body.page-home .hero-content {
    max-width: 760px;
    text-align: left;
    margin: 0;
    padding-left: clamp(1rem, 2.7vw, 2.3rem);
}

body.page-home .hero-title {
    font-size: clamp(2.7rem, 5.8vw, 5.2rem);
    font-weight: 300;
    letter-spacing: -0.035em;
    line-height: 0.98;
    margin-bottom: var(--spacing-lg);
}

body.page-home .hero-slogan,
body.page-home .hero-slogan-accent {
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--home-anti-flash-white);
}

body.page-home .hero-home-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.42rem 0.42rem 0.42rem 1.3rem;
    min-width: 230px;
    justify-content: space-between;
    border-radius: var(--radius-full);
    border: 1px solid rgba(241, 241, 241, 0.28);
    background: rgba(7, 7, 7, 0.55);
    color: rgba(241, 241, 241, 0.92);
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1;
    position: relative;
    overflow: hidden;
}

body.page-home .hero-home-pill::before {
    content: "";
    position: absolute;
    top: 0;
    left: -140%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(241, 241, 241, 0.18), transparent);
    animation: hero-pill-shine 2.8s ease-in-out infinite;
}

body.page-home .hero-home-pill-label {
    position: relative;
    z-index: 1;
    font-weight: 500;
}

body.page-home .hero-home-pill-arrow {
    width: 1.95rem;
    height: 1.95rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--home-vivid-mulberry), var(--home-rich-lilac));
    color: #fff;
    box-shadow: 0 4px 14px rgba(193, 9, 217, 0.45);
    position: relative;
    z-index: 1;
}

body.page-home .hero-home-actions {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    margin-top: 0.25rem;
}

body.page-home .hero-home-note {
    margin: 0;
    max-width: 245px;
    font-size: 0.78rem;
    line-height: 1.25;
    color: rgba(241, 241, 241, 0.68);
}

body.page-home .hero-home-stats {
    display: flex;
    gap: 0.85rem;
    margin-top: 3rem;
}

body.page-home .hero-home-stat-card {
    width: 170px;
    min-height: 128px;
    padding: 0.9rem 0.85rem 0.55rem;
    border-radius: 1rem;
    border: 1px solid rgba(241, 241, 241, 0.25);
    background: rgba(241, 241, 241, 0.92);
    box-shadow: 0 10px 28px rgba(7, 7, 7, 0.42);
}

body.page-home .hero-home-stat-value {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
    color: var(--home-vivid-mulberry);
    text-align: right;
}

body.page-home .hero-home-stat-label {
    margin-top: 0.05rem;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--home-raisin-black);
    text-transform: lowercase;
    text-align: right;
}

body.page-home .hero-home-stat-text {
    margin-top: 0.95rem;
    font-size: 0.74rem;
    line-height: 1.33;
    color: rgba(33, 26, 36, 0.72);
    text-align: left;
}

body.page-home .hero-home-corner-text {
    position: absolute;
    right: clamp(1.2rem, 3.8vw, 3.4rem);
    top: clamp(9.2rem, 17vh, 12.3rem);
    width: min(260px, 26vw);
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.4;
    color: rgba(241, 241, 241, 0.78);
    z-index: 2;
}

body.page-home .hero-home-bottom-text {
    position: absolute;
    right: clamp(1rem, 3.5vw, 3rem);
    bottom: clamp(3.4rem, 8vh, 6.2rem);
    width: 60vw;
    max-width: 60vw;
    margin: 0;
    font-size: clamp(1.45rem, 2.45vw, 2.7rem);
    line-height: 1.05;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: rgba(241, 241, 241, 0.94);
    z-index: 2;
    text-align: right;
}

body.page-home .hero-home-corner-link {
    position: absolute;
    left: clamp(1rem, 2.8vw, 2.5rem);
    bottom: clamp(3.6rem, 8vh, 6.2rem);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: rgba(241, 241, 241, 0.76);
    z-index: 2;
}

body.page-home .hero-home-corner-link-icon {
    font-size: 1rem;
    color: var(--home-rich-lilac);
    line-height: 1;
}

body.page-home .hero-home-corner-link-text {
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    line-height: 1.05;
}

body.page-home .hero-home-corner-link:hover .hero-home-corner-link-text {
    color: var(--home-anti-flash-white);
}

body.page-home .hero-home-highlight {
    color: var(--home-vivid-mulberry);
}

body.page-home .hero-home-highlight-soft {
    color: var(--home-rich-lilac);
}

@keyframes hero-pill-shine {
    0% {
        left: -140%;
    }
    55% {
        left: 140%;
    }
    100% {
        left: 140%;
    }
}

body.page-home .btn-primary {
    background: linear-gradient(135deg, var(--home-vivid-mulberry), var(--home-rich-lilac));
    border-color: rgba(241, 241, 241, 0.2);
}

body.page-home .btn-secondary {
    border-color: rgba(241, 241, 241, 0.3);
    background: rgba(241, 241, 241, 0.08);
}

body.page-home .feature-card,
body.page-home .service-card,
body.page-home .process-card,
body.page-home .pricing-card,
body.page-home .case-card,
body.page-home .contact-form,
body.page-home .pricing-care {
    background: rgba(33, 26, 36, 0.68);
    border-color: rgba(241, 241, 241, 0.14);
}

body.page-home .trust-section {
    position: relative;
    z-index: 0;
    background: transparent;
    padding-top: clamp(2.2rem, 5vw, 3.6rem);
    padding-bottom: clamp(2.4rem, 6vw, 4.5rem);
    overflow: visible;
}

body.page-home .trust-section::before,
body.page-home .trust-section::after {
    content: "";
    position: absolute;
    width: clamp(180px, 22vw, 300px);
    height: clamp(180px, 22vw, 300px);
    border-radius: 999px;
    filter: blur(18px);
    pointer-events: none;
    display: none;
}

body.page-home .trust-section::before {
    left: -6%;
    top: 24%;
    background: radial-gradient(circle, rgba(193, 9, 217, 0.55) 0%, rgba(193, 9, 217, 0) 72%);
}

body.page-home .trust-section::after {
    right: -7%;
    top: 38%;
    background: radial-gradient(circle, rgba(188, 110, 204, 0.48) 0%, rgba(188, 110, 204, 0) 72%);
}

body.page-home .trust-section .container {
    position: relative;
    z-index: 1;
    max-width: 100%;
    padding-left: clamp(1rem, 2.6vw, 2.4rem);
    padding-right: clamp(1rem, 2.6vw, 2.4rem);
}

body.page-home .trust-head {
    display: grid;
    justify-items: center;
    margin-bottom: clamp(1rem, 2.4vw, 1.9rem);
}

body.page-home .trust-kicker {
    margin: 0;
    justify-self: center;
    font-size: 0.75rem;
    line-height: 1.15;
    color: rgba(241, 241, 241, 0.62);
    text-transform: lowercase;
}

body.page-home .trust-title {
    margin: 0;
    text-align: center;
    font-size: clamp(2rem, 5.4vw, 4.2rem);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: rgba(241, 241, 241, 0.96);
}

body.page-home .trust-title-accent {
    color: var(--home-vivid-mulberry);
}

body.page-home .trust-orbit {
    position: relative;
    min-height: clamp(420px, 52vw, 680px);
}

body.page-home .trust-octopus {
    position: absolute;
    left: 50%;
    bottom: -46%;
    transform: translateX(-50%);
    width: min(100vw, 1400px);
    opacity: 0.9;
    pointer-events: none;
    user-select: none;
}

body.page-home .trust-card {
    position: absolute;
    width: min(27vw, 285px);
    margin: 0;
    padding: 0.8rem 0.9rem 0.86rem;
    border-radius: 1rem;
    border: 1px solid rgba(241, 241, 241, 0.12);
    background: rgba(29, 24, 35, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(7, 7, 7, 0.35);
}

body.page-home .trust-card h3 {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(241, 241, 241, 0.95);
}

body.page-home .trust-role {
    margin: 0.18rem 0 0.42rem;
    font-size: 0.7rem;
    color: rgba(241, 241, 241, 0.46);
}

body.page-home .trust-card p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.32;
    color: rgba(241, 241, 241, 0.78);
}

body.page-home .trust-card--lt { top: 18%; left: 10%; }
body.page-home .trust-card--ct { top: 8%; left: 50%; transform: translateX(-50%); }
body.page-home .trust-card--rt { top: 20%; right: 10%; }
body.page-home .trust-card--lb { bottom: 20%; left: 2%; }
body.page-home .trust-card--rb { bottom: 20%; right: 3%; }

body.page-home #faq {
    position: relative;
    z-index: 10;
    margin-top: clamp(-4.8rem, -6.2vw, -2.4rem);
    overflow: visible;
    padding-top: clamp(2.8rem, 7vw, 5.2rem);
    padding-bottom: clamp(2.8rem, 7vw, 5.2rem);
    isolation: isolate;
}

body.page-home #faq .container {
    max-width: 100%;
    padding-left: clamp(1rem, 2.6vw, 2.4rem);
    padding-right: clamp(1rem, 2.6vw, 2.4rem);
}

body.page-home #faq::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: transparent;
}

body.page-home #faq::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: transparent;
    pointer-events: none;
}

body.page-home .faq-home-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    row-gap: 0.2rem;
    padding-inline: clamp(0.7rem, 2vw, 2.2rem);
    margin-bottom: clamp(1.2rem, 2.2vw, 1.8rem);
    margin-top: clamp(-0.9rem, -1.3vw, -0.35rem);
    position: relative;
    z-index: 14;
}

body.page-home .faq-home-head::before {
    content: "";
    position: absolute;
    inset: -1.25rem -0.75rem -0.6rem;
    z-index: -1;
    border-radius: 1.2rem;
    background: transparent;
    pointer-events: none;
}

body.page-home .faq-home-title {
    margin: 0;
    font-size: clamp(2.5rem, 8.5vw, 5.5rem);
    line-height: 0.95;
    font-weight: 300;
    letter-spacing: -0.03em;
    color: rgba(241, 241, 241, 0.96);
    transform: translateY(-0.22em);
}

body.page-home .faq-home-title-right {
    text-align: right;
}

body.page-home .faq-home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(0.7rem, 1.2vw, 1rem);
    width: 85vw;
    max-width: none;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

body.page-home .faq-column {
    display: grid;
    gap: clamp(0.65rem, 1vw, 0.9rem);
}

body.page-home .faq-item {
    margin: 0;
    border-radius: 1rem;
    border: 1px solid rgba(16, 16, 19, 0.22);
    background: rgba(238, 238, 242, 0.94);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

body.page-home .faq-question {
    padding: 0.95rem 1rem;
    font-size: clamp(0.98rem, 1.35vw, 1.12rem);
    line-height: 1.2;
    font-weight: 500;
    color: #1c1b22;
}

body.page-home .faq-question:hover {
    color: #1c1b22;
}

body.page-home .faq-icon-wrap {
    display: inline-flex;
    width: 1.75rem;
    height: 1.75rem;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 999px;
    background: #1f1a24;
}

body.page-home .faq-icon {
    color: rgba(241, 241, 241, 0.94);
}

body.page-home .faq-answer {
    padding: 0 1rem;
}

body.page-home .faq-question[aria-expanded="true"] + .faq-answer {
    padding: 0 1rem 0.9rem;
}

body.page-home #faq.faq-home .faq-answer p {
    color: #111111;
    font-size: 0.92rem;
    line-height: 1.42;
}

/* Cases showcase (reference-like) */
body.page-home .cases-bridge {
    position: relative;
    z-index: 0;
    width: 100%;
    height: clamp(260px, 34vw, 520px);
    background: #000;
    overflow: visible;
}

body.page-home .cases-bridge-image {
    position: absolute;
    right: 0;
    bottom: -20%;
    width: min(60vw, 820px);
    height: auto;
    display: block;
    pointer-events: none;
    user-select: none;
}

body.page-home .pricing-marketing {
    position: relative;
    z-index: 3;
}

body.page-home .pricing-marketing .pricing-care {
    position: relative;
    z-index: 4;
}

body.page-home .cases-showcase {
    position: relative;
    z-index: 2;
    margin-top: clamp(-5.2rem, -7vw, -3rem);
    background: transparent;
    padding-top: clamp(2.2rem, 5vw, 3.6rem);
    padding-bottom: clamp(2.4rem, 5vw, 4.2rem);
}

body.page-home .cases-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: transparent;
}

body.page-home .cases-showcase .container {
    position: relative;
    z-index: 1;
    max-width: 100%;
    padding-left: clamp(1rem, 2.6vw, 2.4rem);
    padding-right: clamp(1rem, 2.6vw, 2.4rem);
}

body.page-home .cases-showcase-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(1rem, 4vw, 2rem);
    margin-bottom: clamp(1rem, 2.2vw, 1.65rem);
}

body.page-home .cases-showcase-title {
    margin: 0;
    font-size: clamp(2.15rem, 6vw, 5rem);
    line-height: 0.95;
    font-weight: 300;
    color: rgba(241, 241, 241, 0.96);
    letter-spacing: -0.03em;
}

body.page-home .cases-showcase-title-accent {
    color: var(--home-vivid-mulberry);
}

body.page-home .cases-showcase-side {
    display: grid;
    justify-items: end;
    gap: 0.7rem;
}

body.page-home .cases-showcase-note {
    margin: 0;
    max-width: 12rem;
    font-size: 0.74rem;
    line-height: 1.2;
    color: rgba(241, 241, 241, 0.64);
}

body.page-home .cases-showcase-nav {
    display: flex;
    gap: 0.55rem;
}

body.page-home .cases-showcase-arrow {
    width: 3.35rem;
    height: 3.35rem;
    border: 1px solid rgba(241, 241, 241, 0.18);
    border-radius: 0.88rem;
    background: rgba(241, 241, 241, 0.96);
    color: rgba(22, 18, 28, 0.9);
    font-size: 1.25rem;
}

body.page-home .cases-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.7rem, 1vw, 0.9rem);
}

body.page-home .cases-showcase-card {
    position: relative;
    min-height: clamp(240px, 32vw, 420px);
    border-radius: 1.05rem;
    border: 1px solid rgba(241, 241, 241, 0.14);
    overflow: hidden;
    background:
        radial-gradient(120% 90% at 20% 10%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 44%),
        linear-gradient(160deg, rgba(54, 56, 70, 0.45) 0%, rgba(18, 18, 22, 0.9) 58%, rgba(8, 8, 10, 0.98) 100%);
}

body.page-home .cases-showcase-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7, 7, 7, 0.08) 0%, rgba(7, 7, 7, 0.56) 72%, rgba(7, 7, 7, 0.85) 100%),
        radial-gradient(90% 70% at 80% 20%, rgba(193, 9, 217, 0.26) 0%, rgba(193, 9, 217, 0) 70%);
}

body.page-home .cases-showcase-card-inner {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1;
}

body.page-home .cases-showcase-card h3 {
    margin: 0;
    font-size: clamp(1.05rem, 1.7vw, 1.6rem);
    font-weight: 400;
    line-height: 1.1;
    color: rgba(241, 241, 241, 0.96);
}

body.page-home .cases-showcase-card p {
    margin: 0.6rem 0 0;
    font-size: 0.8rem;
    line-height: 1.35;
    color: rgba(241, 241, 241, 0.72);
}

body.page-home .cases-showcase-metrics {
    margin-top: 0.78rem;
    display: grid;
    gap: 0.35rem;
}

body.page-home .cases-showcase-metrics span {
    font-size: 0.74rem;
    color: rgba(241, 241, 241, 0.74);
}

body.page-home .cases-showcase-metrics strong {
    color: var(--home-vivid-mulberry);
    font-size: 1.05rem;
    font-weight: 500;
}

body.page-home .cases-showcase-tags {
    margin-top: 0.68rem;
    display: flex;
    gap: 0.42rem;
    flex-wrap: wrap;
}

body.page-home .cases-showcase-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.62rem;
    border-radius: 999px;
    border: 1px solid rgba(241, 241, 241, 0.36);
    background: rgba(7, 7, 7, 0.34);
    color: rgba(241, 241, 241, 0.92);
    font-size: 0.7rem;
    line-height: 1;
}

body.page-home .cases-showcase-card--laptop::after,
body.page-home .cases-showcase-card--phone::after,
body.page-home .cases-showcase-card--brand::after,
body.page-home .cases-showcase-card--crypto::after,
body.page-home .cases-showcase-card--pets::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.42;
}

body.page-home .cases-showcase-card--laptop::after {
    background:
        linear-gradient(180deg, rgba(7, 7, 7, 0.04) 0%, rgba(7, 7, 7, 0.34) 78%, rgba(7, 7, 7, 0.58) 100%),
        url("/assets/king-laptop.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.98;
}

body.page-home .cases-showcase-card--phone::after {
    background:
        linear-gradient(180deg, rgba(7, 7, 7, 0.04) 0%, rgba(7, 7, 7, 0.28) 78%, rgba(7, 7, 7, 0.5) 100%),
        url("/assets/evdokimova-design-laptop.png");
    background-position: center;
    background-size: 130%;
    background-repeat: no-repeat;
    opacity: 0.98;
}

body.page-home .cases-showcase-card--brand::after {
    background:
        linear-gradient(180deg, rgba(7, 7, 7, 0.24) 0%, rgba(7, 7, 7, 0.58) 76%, rgba(7, 7, 7, 0.82) 100%),
        url("/assets/constant-appliance-phone.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.98;
}

body.page-home .cases-showcase-card--crypto::after {
    background:
        linear-gradient(180deg, rgba(7, 7, 7, 0.02) 0%, rgba(7, 7, 7, 0.14) 72%, rgba(7, 7, 7, 0.28) 100%),
        url("/assets/clo-brand-laptop.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 1;
}

body.page-home .cases-showcase-card--pets::after {
    background:
        linear-gradient(180deg, rgba(7, 7, 7, 0.04) 0%, rgba(7, 7, 7, 0.34) 78%, rgba(7, 7, 7, 0.58) 100%),
        url("/assets/pets-empire-tracker.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.98;
}

body.page-home .cases-showcase-pages {
    position: relative;
}

body.page-home .cases-showcase-page {
    display: none;
}

body.page-home .cases-showcase-page.is-active {
    display: grid;
}

body.page-home .cases-showcase-card--phone h3,
body.page-home .cases-showcase-card--crypto h3 {
    font-size: clamp(1.35rem, 2.3vw, 2.05rem);
    font-weight: 500;
    letter-spacing: -0.02em;
}

body.page-home .what-we-do-slider {
    display: grid;
    grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 2rem);
    align-items: end;
    margin-top: 0;
}

/* Clip translated track so cards never paint over the left column (buttons + lead). */
body.page-home .what-we-do-viewport {
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

body.page-home #what-we-do .container {
    max-width: 100%;
    padding-left: clamp(1rem, 2.6vw, 2.4rem);
    padding-right: clamp(1rem, 2.6vw, 2.4rem);
}

body.page-home .what-we-do-side {
    padding-bottom: 0.5rem;
}

body.page-home .what-we-do-lead {
    margin: 0 0 1rem;
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    line-height: 1.35;
    font-weight: 500;
    color: rgba(241, 241, 241, 0.88);
}

body.page-home .what-we-do-nav {
    display: flex;
    gap: 0.5rem;
}

body.page-home .what-we-do-arrow {
    width: 54px;
    height: 46px;
    border-radius: 0.95rem;
    border: 1px solid rgba(241, 241, 241, 0.22);
    background: rgba(241, 241, 241, 0.88);
    color: #211a24;
    font-size: 1.2rem;
    cursor: pointer;
}

body.page-home .what-we-do-track {
    display: flex;
    gap: 0.95rem;
    width: max-content;
}

body.page-home .what-we-do-progress {
    margin-top: 0.9rem;
    height: 2px;
    border-radius: 999px;
    background: rgba(241, 241, 241, 0.2);
    overflow: hidden;
}

body.page-home .what-we-do-progress-fill {
    display: block;
    width: 100%;
    height: 100%;
    transform-origin: right center;
    transform: scaleX(1);
    background: linear-gradient(90deg, rgba(193, 9, 217, 0.95), rgba(188, 110, 204, 0.9));
    box-shadow: 0 0 8px rgba(193, 9, 217, 0.55);
    transition: transform 320ms ease;
}

body.page-home .what-we-do-card {
    flex: 0 0 min(292px, 34vw);
    min-height: 278px;
    border-radius: 1.35rem;
    border: 1px solid rgba(241, 241, 241, 0.12);
    background: rgba(33, 26, 36, 0.85);
    padding: 1.35rem 1.2rem;
    color: rgba(241, 241, 241, 0.88);
    transition: transform 280ms ease, background 280ms ease, color 280ms ease;
}

body.page-home .what-we-do-card.is-active {
    background: rgba(241, 241, 241, 0.95);
    color: #000000;
}

body.page-home .what-we-do-num {
    display: block;
    font-size: 3.15rem;
    line-height: 1;
    margin-bottom: 1.05rem;
    font-weight: 300;
}

body.page-home .what-we-do-card.is-active h3,
body.page-home .what-we-do-card.is-active p {
    color: #000000;
}

body.page-home .what-we-do-card.is-active .what-we-do-num {
    color: var(--home-vivid-mulberry);
}

body.page-home .what-we-do-card h3 {
    font-size: 1.26rem;
    margin: 0 0 0.78rem;
    line-height: 1.15;
}

body.page-home .what-we-do-card p {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.32;
}

/* Approach tools (next section after directions) */
body.page-home .approach-tools {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

body.page-home .approach-tools .container {
    max-width: 100%;
    padding-left: clamp(1rem, 2.6vw, 2.4rem);
    padding-right: clamp(1rem, 2.6vw, 2.4rem);
}

body.page-home .approach-tools-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(11rem, 15.5rem);
    gap: clamp(1.25rem, 3vw, 2.75rem);
    align-items: end;
    margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

body.page-home .approach-tools-title {
    margin: 0;
    max-width: 22em;
    font-size: clamp(1.65rem, 3.6vw, 3.1rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--home-anti-flash-white);
}

body.page-home .approach-tools-title .approach-tools-highlight {
    color: var(--home-vivid-mulberry);
}

body.page-home .approach-tools-head-note {
    margin: 0;
    justify-self: end;
    max-width: 16.5em;
    text-align: right;
    font-size: clamp(0.8rem, 1.15vw, 0.95rem);
    line-height: 1.4;
    font-weight: 500;
    color: rgba(241, 241, 241, 0.52);
}

body.page-home .approach-tools-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: clamp(0.75rem, 1.5vw, 1.15rem);
}

body.page-home .approach-tools-card {
    flex: 1 1 min(260px, 28vw);
    min-height: 220px;
    padding: 1.35rem 1.25rem;
    border-radius: 1.35rem;
    border: 1px solid rgba(188, 110, 204, 0.28);
    background: linear-gradient(
        165deg,
        rgba(120, 55, 140, 0.55) 0%,
        rgba(33, 26, 36, 0.92) 48%,
        rgba(7, 7, 10, 0.98) 100%
    );
    cursor: pointer;
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.25s ease;
    outline: none;
}

body.page-home .approach-tools-card:hover:not(.is-active) {
    border-color: rgba(188, 110, 204, 0.45);
    transform: translateY(-2px);
}

body.page-home .approach-tools-card:focus-visible {
    box-shadow: 0 0 0 2px var(--home-vampire-black), 0 0 0 4px var(--home-rich-lilac);
}

body.page-home .approach-tools-card.is-active {
    flex: 1.35 1 min(320px, 36vw);
    min-height: 260px;
    cursor: default;
    background: rgba(250, 250, 252, 0.98);
    border-color: rgba(7, 7, 7, 0.06);
    box-shadow: 0 18px 40px rgba(7, 7, 7, 0.35);
}

body.page-home .approach-tools-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.12rem;
    line-height: 1.2;
    font-weight: 600;
}

body.page-home .approach-tools-card.is-active h3 {
    color: var(--home-vivid-mulberry);
}

body.page-home .approach-tools-card:not(.is-active) h3 {
    color: rgba(241, 241, 241, 0.94);
}

body.page-home .approach-tools-tagline {
    margin: 0 0 0.85rem;
    font-size: 0.92rem;
    line-height: 1.3;
}

body.page-home .approach-tools-card.is-active .approach-tools-tagline {
    color: rgba(33, 26, 36, 0.78);
}

body.page-home .approach-tools-card:not(.is-active) .approach-tools-tagline {
    color: rgba(230, 210, 245, 0.82);
}

body.page-home .approach-tools-body {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
}

body.page-home .approach-tools-card.is-active .approach-tools-body {
    color: rgba(55, 52, 60, 0.72);
}

body.page-home .approach-tools-card:not(.is-active):not(.approach-tools-card--static) .approach-tools-body {
    display: none;
}

/* Second row: same card shell as inactive row-1 cards; description always visible */
body.page-home .approach-tools-card.approach-tools-card--static {
    flex: 1 1 min(168px, 19vw);
    cursor: default;
    min-height: 220px;
}

body.page-home .approach-tools-card.approach-tools-card--static:hover {
    border-color: rgba(188, 110, 204, 0.45);
    transform: translateY(-2px);
}

body.page-home .approach-tools-card--static h3 {
    color: rgba(241, 241, 241, 0.94);
}

body.page-home .approach-tools-card.approach-tools-card--static .approach-tools-body {
    display: block;
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(230, 210, 245, 0.82);
}

body.page-home .approach-tools-secondary {
    position: relative;
    margin-top: clamp(2rem, 4.2vw, 3.25rem);
    padding-top: clamp(1.65rem, 3.2vw, 2.45rem);
    border-top: 1px solid rgba(241, 241, 241, 0.07);
}

body.page-home .approach-tools-secondary::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: min(140px, 32vw);
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--home-vivid-mulberry), var(--home-rich-lilac), transparent);
}

body.page-home .approach-tools-secondary-kicker {
    margin: 0 0 1rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(241, 241, 241, 0.42);
}

body.page-home .feature-card:hover,
body.page-home .service-card:hover,
body.page-home .pricing-card:hover,
body.page-home .case-card:hover,
body.page-home .process-slide.active .process-card {
    border-color: rgba(188, 110, 204, 0.35);
    box-shadow: 0 0 0 1px rgba(188, 110, 204, 0.25), 0 24px 48px rgba(7, 7, 7, 0.45);
}

body.page-home .section-subtitle,
body.page-home .feature-description,
body.page-home .service-card p,
body.page-home .process-card p,
body.page-home .faq-answer p,
body.page-home .pricing-care > p,
body.page-home .contact-intro {
    color: rgba(241, 241, 241, 0.72);
}

body.page-home .pricing-price,
body.page-home .care-price,
body.page-home .process-icon {
    color: var(--home-rich-lilac);
}

@media (max-width: 768px) {
    body.page-home .hero-content {
        text-align: center;
    }

    body.page-home .hero-home-actions {
        flex-direction: column;
        align-items: center;
    }

    body.page-home .hero-home-pill {
        margin: 0 auto;
    }

    body.page-home .hero-home-note {
        max-width: 320px;
    }

    body.page-home .hero-home-stats {
        justify-content: center;
    }

    body.page-home .hero-home-corner-text {
        position: static;
        width: min(92vw, 560px);
        margin: 1rem auto 0;
        text-align: center;
    }

    body.page-home .hero-home-bottom-text {
        position: static;
        width: min(92vw, 680px);
        margin: 1.25rem auto 0;
        text-align: center;
        font-size: clamp(1.25rem, 5.6vw, 2rem);
        line-height: 1.12;
    }

    body.page-home .hero-home-corner-link {
        position: static;
        margin: 1rem auto 0;
        justify-content: center;
    }

    body.page-home .hero-home-art {
        width: min(98vw, 700px);
        top: 56%;
    }

    body.page-home .what-we-do-slider {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    body.page-home .what-we-do-side {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
    }

    body.page-home .what-we-do-lead {
        margin: 0;
        max-width: 62%;
        font-size: 0.95rem;
    }

    body.page-home .what-we-do-card {
        flex-basis: 88vw;
        min-height: 248px;
    }

    body.page-home .approach-tools-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 0.35rem;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        gap: 0.75rem;
    }

    body.page-home .approach-tools-card {
        flex: 0 0 min(86vw, 300px);
        scroll-snap-align: start;
    }

    body.page-home .approach-tools-card.is-active {
        flex: 0 0 min(88vw, 320px);
    }

    body.page-home .approach-tools-head {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 1rem;
        margin-bottom: 1.35rem;
    }

    body.page-home .approach-tools-head-note {
        justify-self: start;
        max-width: 26rem;
        text-align: left;
        font-size: 0.88rem;
    }

    body.page-home .approach-tools-row--secondary {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 0.35rem;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    body.page-home .approach-tools-card.approach-tools-card--static {
        flex: 0 0 min(78vw, 280px);
        scroll-snap-align: start;
    }

    body.page-home .cases-showcase-head {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    body.page-home .cases-bridge {
        height: clamp(190px, 46vw, 320px);
    }

    body.page-home .cases-bridge-image {
        width: min(80vw, 620px);
        bottom: -16%;
    }

    body.page-home .cases-showcase {
        margin-top: clamp(-3.4rem, -8vw, -1.8rem);
    }

    body.page-home .cases-showcase-side {
        justify-items: start;
        gap: 0.55rem;
    }

    body.page-home .cases-showcase-note {
        max-width: 20rem;
    }

    body.page-home .cases-showcase-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    body.page-home .cases-showcase-card {
        min-height: clamp(220px, 66vw, 360px);
    }

    body.page-home .trust-head {
        justify-items: start;
        gap: 0.5rem;
    }

    body.page-home .trust-title {
        text-align: left;
    }

    body.page-home .trust-orbit {
        min-height: auto;
        display: grid;
        gap: 0.65rem;
    }

    body.page-home .trust-octopus {
        position: static;
        transform: none;
        width: min(82vw, 760px);
        margin: 0 auto 0.55rem;
    }

    body.page-home .trust-card {
        position: static;
        width: 100%;
        transform: none;
    }

    body.page-home .faq-home-head {
        grid-template-columns: 1fr;
        gap: 0.2rem;
        margin-top: 0;
    }

    body.page-home .faq-home-title-right {
        text-align: left;
    }

    body.page-home .faq-home-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    body.page-home .faq-question {
        font-size: 1rem;
        padding: 0.9rem 0.95rem;
    }
}
