/* ============================================================
   IXWEB — Main Stylesheet
   Design System: Premium-Friendly, Modern, Spacious
   ============================================================ */

/* ── CSS Custom Properties (Design Tokens) ── */
:root {
    /* Primary Palette */
    --primary: #1a1a2e;
    --primary-light: #25254a;
    --primary-dark: #0f0f1a;

    /* Accent */
    --accent: #6c63ff;
    --accent-light: #8b83ff;
    --accent-dark: #5a52d5;
    --accent-glow: rgba(108, 99, 255, 0.3);

    /* Gradient */
    --gradient-main: linear-gradient(135deg, #6c63ff 0%, #e942f5 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(108,99,255,0.1) 0%, rgba(233,66,245,0.1) 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8f9fc;
    --gray-100: #eef0f6;
    --gray-200: #d8dce8;
    --gray-300: #b4bbd0;
    --gray-400: #8891a8;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Surface Colors */
    --surface: #ffffff;
    --surface-elevated: #ffffff;
    --surface-dark: #0d0d1a;
    --surface-card: rgba(255, 255, 255, 0.03);

    /* Text */
    --text-primary: #1a1a2e;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --text-on-dark: #e5e7eb;
    --text-on-dark-muted: #9ca3af;

    /* Feedback */
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Font Sizes (fluid) */
    --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.75rem);
    --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
    --text-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
    --text-lg: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --text-xl: clamp(1.15rem, 1rem + 0.5vw, 1.25rem);
    --text-2xl: clamp(1.4rem, 1.2rem + 0.7vw, 1.5rem);
    --text-3xl: clamp(1.7rem, 1.4rem + 1vw, 1.875rem);
    --text-4xl: clamp(2rem, 1.5rem + 1.5vw, 2.25rem);
    --text-5xl: clamp(2.5rem, 1.8rem + 2.5vw, 3rem);
    --text-6xl: clamp(3rem, 2rem + 3.5vw, 3.75rem);
    --text-hero: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-section: clamp(4rem, 3rem + 4vw, 8rem);

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
    --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.15);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.06);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;

    /* Z-index scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-toast: 500;

    /* Layout */
    --container-max: 1200px;
    --container-wide: 1440px;
    --header-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-main);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

ul, ol {
    list-style: none;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

::selection {
    background: var(--accent);
    color: var(--white);
}

/* ── Container ── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1rem, 2vw, 2rem);
}

/* ── Text Utilities ── */
.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Section Common ── */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: var(--space-md);
    padding: 6px 16px;
    background: rgba(108, 99, 255, 0.08);
    border-radius: var(--radius-full);
}

.section-title {
    font-size: var(--text-5xl);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}


/* ═══════════════════════════════════════
   SCROLL PROGRESS BAR
   ═══════════════════════════════════════ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-main);
    z-index: calc(var(--z-sticky) + 1);
    transition: width 50ms linear;
}


/* ═══════════════════════════════════════
   HEADER
   ═══════════════════════════════════════ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: var(--z-sticky);
    transition: background var(--duration-normal) ease,
                box-shadow var(--duration-normal) ease,
                backdrop-filter var(--duration-normal) ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header__logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    z-index: var(--z-sticky);
}

.logo-ix {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-web {
    color: #ffffff;
}

.scrolled .logo-web {
    color: var(--accent-dark);
}

.header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.header__link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
    transition: color var(--duration-fast) ease;
}

.header__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    border-radius: 2px;
    transition: width var(--duration-normal) var(--ease-out);
}

.header__link:hover {
    color: var(--text-primary);
}

.header:not(.scrolled) .header__link:hover {
    color: var(--gray-100);
}

.header__link:hover::after,
.header__link.active::after {
    width: 100%;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.header__messenger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    color: var(--accent);
    background: rgba(108, 99, 255, 0.08);
    transition: all var(--duration-fast) ease;
}

.header__messenger:hover {
    background: rgba(108, 99, 255, 0.15);
    transform: translateY(-1px);
}

.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    gap: 5px;
    z-index: var(--z-sticky);
}

.header__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--duration-normal) var(--ease-out);
    transform-origin: center;
}

.header__burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__burger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.header__burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-weight: 600;
    font-size: var(--text-sm);
    border-radius: var(--radius-sm);
    padding: 12px 24px;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    border: 2px solid transparent;
}

.btn--primary {
    background: var(--gradient-main);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.35);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.45);
}

.btn--primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(108, 99, 255, 0.3);
}

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

.btn--outline:hover {
    background: rgba(108, 99, 255, 0.06);
    transform: translateY(-2px);
}

.btn--ghost {
    background: rgba(108, 99, 255, 0.08);
    color: var(--accent);
}

.btn--ghost:hover {
    background: rgba(108, 99, 255, 0.14);
    transform: translateY(-1px);
}

.btn--sm {
    padding: 8px 18px;
    font-size: var(--text-xs);
}

.btn--lg {
    padding: 16px 32px;
    font-size: var(--text-base);
    border-radius: var(--radius-md);
}

.btn--full {
    width: 100%;
}

/* Ripple effect */
.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}


/* ═══════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
    overflow: hidden;
    background: var(--primary-dark);
    color: var(--white);
}

.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.hero__orb--1 {
    width: 600px;
    height: 600px;
    background: var(--accent);
    top: -200px;
    right: -100px;
}

.hero__orb--2 {
    width: 400px;
    height: 400px;
    background: #e942f5;
    bottom: -100px;
    left: -100px;
}

.hero__orb--3 {
    width: 300px;
    height: 300px;
    background: #4facfe;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero__grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

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

.hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero__badge {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 8px 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-full);
    color: var(--accent-light);
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(10px);
}

.hero__title {
    font-size: var(--text-hero);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
}

.hero__title .text-gradient {
    background: linear-gradient(135deg, #a78bfa 0%, #f472b6 50%, #fb923c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: var(--text-lg);
    color: var(--text-on-dark-muted);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    max-width: 520px;
}

.hero__features {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
}

.hero__feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--text-on-dark);
}

.hero__cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Hero Visual */
.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__mockup {
    width: 100%;
    max-width: 460px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.hero__mockup-browser {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #ffbd2e; }
.mockup-dots span:nth-child(3) { background: #28c840; }

.mockup-url {
    flex: 1;
    text-align: center;
    font-size: var(--text-xs);
    font-family: var(--font-mono);
    color: var(--text-on-dark-muted);
    background: rgba(255,255,255,0.05);
    padding: 4px 12px;
    border-radius: 4px;
}

.hero__mockup-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mockup-block {
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
}

.mockup-block--header {
    height: 16px;
    width: 60%;
}

.mockup-block--hero {
    height: 80px;
    background: linear-gradient(135deg, rgba(108,99,255,0.3) 0%, rgba(233,66,245,0.2) 100%);
}

.mockup-row {
    display: flex;
    gap: 10px;
}

.mockup-block--card {
    flex: 1;
    height: 60px;
}

.mockup-block--text {
    height: 24px;
    width: 80%;
}

.mockup-block--cta {
    height: 28px;
    width: 40%;
    background: linear-gradient(135deg, rgba(108,99,255,0.4) 0%, rgba(233,66,245,0.3) 100%);
    border-radius: 4px;
}

/* Floating Badges */
.hero__badges {
    position: absolute;
    inset: -20px;
    pointer-events: none;
}

.hero__badge-item {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(10px);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--white);
    white-space: nowrap;
}

.hero__badge-item:nth-child(1) { top: 5%; left: -10%; }
.hero__badge-item:nth-child(2) { top: 20%; right: -5%; }
.hero__badge-item:nth-child(3) { bottom: 25%; left: -8%; }
.hero__badge-item:nth-child(4) { bottom: 10%; right: -10%; }

/* Hero Scroll Indicator */
.hero__scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-on-dark-muted);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.scroll-mouse {
    width: 24px;
    height: 36px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-mouse__wheel {
    width: 3px;
    height: 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.3; }
}


/* ═══════════════════════════════════════
   SOCIAL PROOF
   ═══════════════════════════════════════ */
.social-proof {
    padding: var(--space-section) 0;
    background: var(--gray-50);
}

.social-proof__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.stat-item {
    text-align: center;
    padding: var(--space-xl);
}

.stat-item__number {
    font-size: var(--text-5xl);
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.stat-item__plus {
    font-size: var(--text-4xl);
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item__label {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

/* Logos Carousel */
.social-proof__logos {
    overflow: hidden;
    margin-bottom: var(--space-3xl);
    padding: var(--space-xl) 0;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.logos-track {
    display: flex;
    gap: var(--space-3xl);
    animation: scroll-logos 30s linear infinite;
    width: max-content;
}

.logo-item {
    flex-shrink: 0;
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--gray-300);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    user-select: none;
}

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

/* Reviews */
.social-proof__reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.review-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--gray-100);
    transition: all var(--duration-normal) var(--ease-out);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.review-card__stars {
    color: #f59e0b;
    font-size: var(--text-lg);
    margin-bottom: var(--space-md);
    letter-spacing: 2px;
}

.review-card__text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.review-card__author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.review-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--text-sm);
    font-weight: 700;
    flex-shrink: 0;
}

.review-card__name {
    font-weight: 600;
    font-size: var(--text-sm);
}

.review-card__role {
    font-size: var(--text-xs);
    color: var(--text-muted);
}


/* ═══════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════ */
.services {
    padding: var(--space-section) 0;
    background: var(--white);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.service-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    border: 1px solid var(--gray-100);
    transition: all var(--duration-normal) var(--ease-out);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(108, 99, 255, 0.2);
}

.service-card--featured {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.service-card__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gradient-main);
    color: var(--white);
    font-size: var(--text-xs);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.service-card__glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(108,99,255,0.08) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--duration-normal) ease;
}

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

.service-card__icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    background: rgba(108, 99, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: var(--space-xl);
    transition: all var(--duration-normal) ease;
}

.service-card:hover .service-card__icon {
    background: var(--accent);
    color: var(--white);
    transform: scale(1.05);
}

.service-card__title {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.service-card__desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.service-card__features {
    flex: 1;
    margin-bottom: var(--space-xl);
}

.service-card__features li {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--gray-100);
    padding-left: 20px;
    position: relative;
}

.service-card__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.service-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--gray-100);
    margin-top: auto;
}

.service-card__price {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
}


/* ═══════════════════════════════════════
   CASES / PORTFOLIO
   ═══════════════════════════════════════ */
.cases {
    padding: var(--space-section) 0;
    background: var(--gray-50);
}

.cases__filters {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.cases__filter {
    padding: 8px 20px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    border: 1px solid var(--gray-200);
    background: var(--white);
    transition: all var(--duration-fast) ease;
}

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

.cases__filter.active {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.cases__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.case-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--gray-100);
    transition: all var(--duration-normal) var(--ease-out);
    cursor: pointer;
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

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

.case-card__image {
    position: relative;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.case-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--duration-normal) ease;
}

.case-card:hover .case-card__overlay {
    opacity: 1;
}

.case-card__view {
    color: var(--white);
    font-weight: 600;
    font-size: var(--text-sm);
    padding: 10px 24px;
    border: 2px solid var(--white);
    border-radius: var(--radius-full);
    transition: all var(--duration-fast) ease;
}

.case-card:hover .case-card__view {
    background: var(--white);
    color: var(--text-primary);
}

/* Mini mockup inside case card */
.case-card__mockup-mini {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    width: 70%;
}

.mini-block {
    height: 16px;
    background: rgba(255,255,255,0.25);
    border-radius: 4px;
    width: 70%;
}

.mini-block--wide {
    width: 100%;
    height: 24px;
}

.mini-block--sm {
    flex: 1;
    height: 20px;
}

.mini-row {
    display: flex;
    gap: 6px;
}

.case-card__info {
    padding: var(--space-lg);
}

.case-card__tag {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--accent);
    background: rgba(108, 99, 255, 0.08);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-sm);
}

.case-card__title {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

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

.case-card__result strong {
    color: var(--success);
    font-weight: 700;
}


/* ═══════════════════════════════════════
   CASE MODAL
   ═══════════════════════════════════════ */
.modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) ease;
}

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

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
}

.modal__content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: scale(0.95) translateY(20px);
    transition: transform var(--duration-normal) var(--ease-out);
}

.modal.active .modal__content {
    transform: scale(1) translateY(0);
}

.modal__content--sm {
    max-width: 500px;
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--text-secondary);
    transition: all var(--duration-fast) ease;
    z-index: 10;
}

.modal__close:hover {
    background: var(--gray-200);
    color: var(--text-primary);
}

.modal__body {
    padding: var(--space-2xl);
}

/* Case Gallery */
.case-gallery {
    margin-bottom: 24px;
}

.case-gallery__main {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    background: var(--gray-100);
}

.case-gallery__img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.case-gallery__thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.case-gallery__thumb {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.case-gallery__thumb:hover {
    opacity: 0.9;
}

.case-gallery__thumb.active {
    border-color: var(--accent);
    opacity: 1;
}

/* Thank You */
.thank-you {
    text-align: center;
    padding: var(--space-2xl) var(--space-xl);
}

.thank-you__icon {
    margin-bottom: var(--space-xl);
}

.thank-you__icon svg {
    margin: 0 auto;
}

.thank-you__title {
    font-size: var(--text-3xl);
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.thank-you__text {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.thank-you__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 300px;
    margin: 0 auto;
}


/* ═══════════════════════════════════════
   PROCESS / TIMELINE
   ═══════════════════════════════════════ */
.process {
    padding: var(--space-section) 0;
    background: var(--white);
}

.process__timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.process__line {
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.process__step {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
    position: relative;
}

.process__step:last-child {
    margin-bottom: 0;
}

.process__step-number {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: var(--text-sm);
    color: var(--text-muted);
    position: relative;
    z-index: 2;
    transition: all var(--duration-normal) var(--ease-out);
}

.process__step:hover .process__step-number,
.process__step.active .process__step-number {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    box-shadow: 0 0 0 6px rgba(108, 99, 255, 0.15);
}

.process__step-content {
    flex: 1;
    padding-top: var(--space-md);
}

.process__step-content h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.process__step-content p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.process__step-meta {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.process__artifact,
.process__duration {
    font-size: var(--text-xs);
    font-weight: 500;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.process__artifact {
    background: rgba(108, 99, 255, 0.08);
    color: var(--accent);
}

.process__duration {
    background: var(--gray-100);
    color: var(--text-secondary);
}


/* ═══════════════════════════════════════
   PRICING
   ═══════════════════════════════════════ */
.pricing {
    padding: var(--space-section) 0;
    background: var(--primary-dark);
    color: var(--white);
}

.pricing .section-label {
    background: rgba(108, 99, 255, 0.15);
}

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

.pricing .section-subtitle {
    color: var(--text-on-dark-muted);
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    align-items: start;
}

.pricing-card {
    position: relative;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    transition: all var(--duration-normal) var(--ease-out);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-4px);
}

.pricing-card--featured {
    background: rgba(108, 99, 255, 0.12);
    border-color: rgba(108, 99, 255, 0.3);
    box-shadow: 0 0 50px rgba(108, 99, 255, 0.15);
    transform: scale(1.02);
}

.pricing-card--featured:hover {
    transform: scale(1.02) translateY(-4px);
}

.pricing-card__popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-main);
    color: var(--white);
    font-size: var(--text-xs);
    font-weight: 700;
    padding: 6px 20px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.pricing-card__header {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.pricing-card__name {
    font-size: var(--text-2xl);
    font-weight: 800;
    margin-bottom: var(--space-xs);
}

.pricing-card__desc {
    font-size: var(--text-sm);
    color: var(--text-on-dark-muted);
    margin-bottom: var(--space-lg);
}

.pricing-card__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-sm);
}

.pricing-card__amount {
    font-size: var(--text-4xl);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.pricing-card__period {
    font-size: var(--text-sm);
    color: var(--text-on-dark-muted);
}

.pricing-card__features {
    flex: 1;
    margin-bottom: var(--space-xl);
}

.pricing-card__features li {
    font-size: var(--text-sm);
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-on-dark);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.pricing-card__features li::before {
    position: absolute;
    left: 0;
    font-size: 14px;
}

.pricing-card__features li.included::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
}

.pricing-card__features li.excluded {
    color: var(--text-on-dark-muted);
    opacity: 0.5;
}

.pricing-card__features li.excluded::before {
    content: '—';
    color: var(--text-on-dark-muted);
}

.pricing-card__footer {
    text-align: center;
}

.pricing-card__timeline {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-on-dark-muted);
    margin-bottom: var(--space-md);
}

.pricing-card .btn--outline {
    border-color: rgba(255,255,255,0.2);
    color: var(--white);
}

.pricing-card .btn--outline:hover {
    background: rgba(255,255,255,0.08);
}


/* ═══════════════════════════════════════
   GUARANTEES
   ═══════════════════════════════════════ */
.guarantees {
    padding: var(--space-section) 0;
    background: var(--white);
}

.guarantees__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.guarantee-item {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    transition: all var(--duration-normal) var(--ease-out);
}

.guarantee-item:hover {
    border-color: rgba(108, 99, 255, 0.2);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.guarantee-item__icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-lg);
}

.guarantee-item h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.guarantee-item p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}


/* ═══════════════════════════════════════
   FAQ
   ═══════════════════════════════════════ */
.faq {
    padding: var(--space-section) 0;
    background: var(--gray-50);
}

.faq__list {
    max-width: 750px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    background: var(--white);
    overflow: hidden;
    transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.faq-item:hover {
    border-color: rgba(108, 99, 255, 0.2);
}

.faq-item.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.08);
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-lg) var(--space-xl);
    font-weight: 600;
    font-size: var(--text-base);
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    transition: color var(--duration-fast) ease;
}

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

.faq-item__icon {
    flex-shrink: 0;
    transition: transform var(--duration-normal) var(--ease-out);
    color: var(--accent);
}

.faq-item.active .faq-item__icon {
    transform: rotate(45deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-normal) var(--ease-out),
                padding var(--duration-normal) var(--ease-out);
}

.faq-item.active .faq-item__answer {
    max-height: 300px;
}

.faq-item__answer p {
    padding: 0 var(--space-xl) var(--space-lg);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.8;
}


/* ═══════════════════════════════════════
   CONTACT / FORM
   ═══════════════════════════════════════ */
.contact {
    padding: var(--space-section) 0;
    background: var(--white);
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact__info .section-title {
    text-align: left;
}

.contact__text {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.contact__channels {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact__channel {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--gray-50);
    transition: all var(--duration-fast) ease;
    width: fit-content;
}

.contact__channel:hover {
    background: rgba(108, 99, 255, 0.08);
    color: var(--accent);
}

.contact__channel svg {
    flex-shrink: 0;
}

/* Form */
.contact__form {
    background: var(--gray-50);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: var(--text-sm);
    color: var(--text-primary);
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) ease;
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

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

.form-error {
    display: none;
    font-size: var(--text-xs);
    color: var(--error);
    margin-top: 4px;
}

.form-group.has-error .form-error {
    display: block;
}

.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea {
    border-color: var(--error);
}

.form-hint {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-md);
    text-align: center;
}

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


/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer {
    background: var(--primary-dark);
    color: var(--text-on-dark);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__top {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: var(--space-xl);
}

.footer__brand .header__logo {
    margin-bottom: var(--space-md);
}

.footer__brand .logo-web {
    color: var(--white);
}

.footer__tagline {
    font-size: var(--text-sm);
    color: var(--text-on-dark-muted);
    line-height: 1.7;
}

.footer__links {
    display: flex;
    gap: var(--space-3xl);
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__col h4 {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.footer__col a {
    font-size: var(--text-sm);
    color: var(--text-on-dark-muted);
    transition: color var(--duration-fast) ease;
}

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

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer__bottom p {
    font-size: var(--text-xs);
    color: var(--text-on-dark-muted);
}

.footer__legal {
    display: flex;
    gap: var(--space-lg);
}

.footer__legal a {
    font-size: var(--text-xs);
    color: var(--text-on-dark-muted);
    transition: color var(--duration-fast) ease;
}

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


/* ═══════════════════════════════════════
   CURSOR GLOW (WOW effect)
   ═══════════════════════════════════════ */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108,99,255,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    will-change: left, top;
}

/* ── Body lock for modal ── */
body.modal-open {
    overflow: hidden;
}
