/* ═══════════════════════════════════════════════════════════════
   FUTUMORE — PREMIUM DESIGN SYSTEM
   Black/white glassmorphic minimalism with animations
   Designer: FUTUMORE Creative • 2026
   ═══════════════════════════════════════════════════════════════ */

/* ─── CUSTOM PROPERTIES (Design Tokens) ─────────────────────── */
:root {
    /* Colors */
    --c-black:        #000000;
    --c-black-rich:   #050505;
    --c-dark:         #0a0a0a;
    --c-dark-2:       #111111;
    --c-dark-3:       #1a1a1a;
    --c-gray-900:     #222222;
    --c-gray-800:     #333333;
    --c-gray-700:     #444444;
    --c-gray-600:     #555555;
    --c-gray-500:     #777777;
    --c-gray-400:     #999999;
    --c-gray-300:     #bbbbbb;
    --c-gray-200:     #dddddd;
    --c-gray-100:     #eeeeee;
    --c-white:        #ffffff;
    --c-white-soft:   rgba(255, 255, 255, 0.92);

    /* Accent — subtle warm white / ice */
    --c-accent:       #e0e0e0;
    --c-accent-glow:  rgba(255, 255, 255, 0.15);

    /* Glass */
    --glass-bg:       rgba(255, 255, 255, 0.04);
    --glass-border:   rgba(255, 255, 255, 0.08);
    --glass-blur:     20px;
    --glass-bg-hover: rgba(255, 255, 255, 0.07);

    /* Typography */
    --ff-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ff-heading: 'Space Grotesk', 'Inter', sans-serif;

    --fs-xs:   0.75rem;
    --fs-sm:   0.875rem;
    --fs-base: 1rem;
    --fs-md:   1.125rem;
    --fs-lg:   1.25rem;
    --fs-xl:   1.5rem;
    --fs-2xl:  2rem;
    --fs-3xl:  2.5rem;
    --fs-4xl:  3.5rem;
    --fs-5xl:  4.5rem;
    --fs-hero: clamp(2.8rem, 6vw, 5.5rem);

    --fw-light:     300;
    --fw-regular:   400;
    --fw-medium:    500;
    --fw-semibold:  600;
    --fw-bold:      700;
    --fw-extrabold: 800;
    --fw-black:     900;

    --lh-tight:   1.1;
    --lh-snug:    1.25;
    --lh-normal:  1.6;
    --lh-relaxed: 1.8;

    /* Spacing */
    --sp-xs:  0.25rem;
    --sp-sm:  0.5rem;
    --sp-md:  1rem;
    --sp-lg:  1.5rem;
    --sp-xl:  2rem;
    --sp-2xl: 3rem;
    --sp-3xl: 4rem;
    --sp-4xl: 6rem;
    --sp-5xl: 8rem;
    --section-pad: clamp(5rem, 12vh, 9rem);

    /* Radius */
    --r-sm:   0.375rem;
    --r-md:   0.625rem;
    --r-lg:   1rem;
    --r-xl:   1.5rem;
    --r-full: 9999px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur-fast: 200ms;
    --dur-normal: 400ms;
    --dur-slow: 700ms;

    /* Z-index */
    --z-bg:    -1;
    --z-base:  1;
    --z-card:  10;
    --z-nav:   100;
    --z-modal: 1000;
}

/* ─── RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--ff-body);
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    line-height: var(--lh-normal);
    color: var(--c-gray-300);
    background-color: var(--c-black);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

*::-webkit-scrollbar, ::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* ─── CUSTOM SCROLLBAR ──────────────────────────────────────── */
.custom-scrollbar {
    position: fixed;
    top: 0;
    right: 0;
    width: 6px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border-radius: 0;
    z-index: 99999;
    opacity: 0;
    /* Usunięto transition dla opacity - JS steruje tym w 60/120fps */
    transition: width 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}
.custom-scrollbar:hover,
.custom-scrollbar.dragging {
    width: 10px;
    background: rgba(255, 255, 255, 0.7);
    opacity: 1 !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

::selection {
    background: rgba(255, 255, 255, 0.2);
    color: var(--c-white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea { font: inherit; color: inherit; }

/* ─── LAYOUT ────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--sp-xl);
}

.section {
    position: relative;
    padding: var(--section-pad) 0;
    overflow: hidden;
}

/* ─── GLASS COMPONENT ───────────────────────────────────────── */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--r-lg);
}

/* ─── TYPOGRAPHY HELPERS ─────────────────────────────────────── */
.text-accent {
    background: linear-gradient(135deg, var(--c-white) 0%, var(--c-gray-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section__header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--sp-4xl);
}

.section__tag {
    display: inline-block;
    font-family: var(--ff-body);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--c-gray-500);
    margin-bottom: var(--sp-lg);
    padding: var(--sp-xs) var(--sp-md);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-full);
    background: var(--glass-bg);
}

.section__title {
    font-family: var(--ff-heading);
    font-size: clamp(2rem, 4vw, var(--fs-4xl));
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    color: var(--c-white);
    margin-bottom: var(--sp-lg);
}

.section__desc {
    font-size: var(--fs-md);
    color: var(--c-gray-400);
    line-height: var(--lh-relaxed);
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    padding: var(--sp-md) 0;
    transition: background var(--dur-normal) var(--ease-out),
                padding var(--dur-normal) var(--ease-out),
                backdrop-filter var(--dur-normal) var(--ease-out);
}

.nav.nav--scrolled {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--sp-sm) 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--sp-xl);
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    z-index: var(--z-nav);
}

.nav__logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.nav__brand {
    font-family: var(--ff-heading);
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--c-white);
    letter-spacing: 0.05em;
}

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

.nav__link {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--c-gray-400);
    transition: color var(--dur-fast) var(--ease-out);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--c-white);
    transition: width var(--dur-normal) var(--ease-out);
}

.nav__link:hover {
    color: var(--c-white);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--cta {
    color: var(--c-black);
    background: var(--c-white);
    padding: var(--sp-sm) var(--sp-lg);
    border-radius: var(--r-full);
    font-weight: var(--fw-semibold);
    transition: transform var(--dur-fast) var(--ease-spring),
                box-shadow var(--dur-fast) var(--ease-out);
}

.nav__link--cta::after { display: none; }

.nav__link--cta:hover {
    color: var(--c-black);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

/* Burger */
.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    z-index: var(--z-nav);
    padding: var(--sp-sm);
}

.nav__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--c-white);
    transition: transform var(--dur-normal) var(--ease-out),
                opacity var(--dur-fast);
    transform-origin: center;
}

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

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

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

/* Nav right group */
.nav__right {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    z-index: var(--z-nav);
}

/* Language toggle — minimalist PL ↔ EN */
.lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: var(--r-full);
    border: 1px solid var(--glass-border);
    background: transparent;
    font-family: var(--ff-heading);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    color: var(--c-gray-400);
    letter-spacing: 0.05em;
    transition: border-color var(--dur-fast) var(--ease-out),
                color var(--dur-fast) var(--ease-out);
    cursor: pointer;
    gap: 0;
    overflow: hidden;
}

.lang-toggle:hover {
    border-color: var(--c-gray-600);
    color: var(--c-white);
}

.lang-toggle__letters {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.lang-toggle__from,
.lang-toggle__to {
    display: inline-block;
    transition: transform var(--dur-normal) var(--ease-spring),
                opacity var(--dur-normal) var(--ease-out);
    min-width: 18px;
    text-align: center;
}

.lang-toggle__arrow {
    transition: transform var(--dur-normal) var(--ease-spring);
    flex-shrink: 0;
    opacity: 0.5;
}

.lang-toggle.swapped .lang-toggle__from {
    transform: translateX(calc(100% + 22px));
}

.lang-toggle.swapped .lang-toggle__to {
    transform: translateX(calc(-100% - 22px));
}

.lang-toggle.swapped .lang-toggle__arrow {
    transform: rotate(180deg);
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px var(--sp-xl) var(--sp-4xl);
}

/* 3D Bonsai container */
.hero__3d {
    position: absolute;
    left: 0;
    top: 42%;
    transform: translateY(-50%);
    width: 45vw;
    max-width: 600px;
    height: 80vh;
    pointer-events: none;
    opacity: 0.9;
    z-index: 0;
}

.hero__3d canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Animated gradient orbs */
.hero__gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.08;
    pointer-events: none;
}

.hero__gradient-orb--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--c-white), transparent 70%);
    top: -200px;
    right: -200px;
    animation: orbFloat1 20s ease-in-out infinite;
}

.hero__gradient-orb--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--c-white), transparent 70%);
    bottom: -100px;
    left: -150px;
    animation: orbFloat2 25s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(-80px, 60px) scale(1.1); }
    66%      { transform: translate(40px, -40px) scale(0.9); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(100px, -80px) scale(1.15); }
}

/* Noise texture */
.hero__noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* Canvas for particle animation */
.hero__canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__content {
    position: relative;
    z-index: var(--z-base);
    text-align: center;
    max-width: 860px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-sm);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--c-gray-400);
    padding: var(--sp-sm) var(--sp-lg);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-full);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    margin-bottom: var(--sp-2xl);
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-white);
    animation: pulse 2s ease-in-out infinite;
}

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

.hero__title {
    font-family: var(--ff-heading);
    font-size: var(--fs-hero);
    font-weight: var(--fw-black);
    line-height: 1.05;
    color: var(--c-white);
    margin-bottom: var(--sp-xl);
    letter-spacing: -0.02em;
}

.hero__title-accent {
    display: block;
    background: linear-gradient(135deg, var(--c-white) 0%, var(--c-gray-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: clamp(var(--fs-md), 2vw, var(--fs-lg));
    color: var(--c-gray-500);
    line-height: var(--lh-relaxed);
    max-width: 600px;
    margin: 0 auto var(--sp-2xl);
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-lg);
    flex-wrap: wrap;
}

/* Scroll indicator */
.hero__scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-sm);
    color: var(--c-gray-600);
    font-size: var(--fs-xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--c-gray-600), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    51%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-sm);
    padding: 14px 32px;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    border-radius: var(--r-full);
    transition: all var(--dur-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--c-white);
    color: var(--c-black);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.15);
}

.btn--primary:active {
    transform: translateY(0);
}

.btn--ghost {
    border: 1px solid var(--glass-border);
    color: var(--c-gray-300);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
}

.btn--ghost:hover {
    border-color: var(--c-gray-600);
    color: var(--c-white);
    background: rgba(255, 255, 255, 0.06);
}

.btn--full {
    width: 100%;
    justify-content: center;
    padding: 16px 32px;
    font-size: var(--fs-base);
}

.btn__loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: var(--c-black);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.btn.loading .btn__text { opacity: 0; }
.btn.loading .btn__loader { display: block; }
.btn.loading .btn__icon { display: none; }

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

/* ═══════════════════════════════════════════════════════════════
   SOLUTIONS SECTION
   ═══════════════════════════════════════════════════════════════ */
.section--solutions {
    background: linear-gradient(180deg, var(--c-black) 0%, var(--c-dark) 50%, var(--c-black) 100%);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-xl);
}

.solution-card {
    padding: var(--sp-2xl);
    transition: all var(--dur-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity var(--dur-normal) var(--ease-out);
}

.solution-card:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
}

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

.solution-card__icon {
    width: 48px;
    height: 48px;
    color: var(--c-white);
    margin-bottom: var(--sp-lg);
    opacity: 0.8;
}

.solution-card__icon svg {
    width: 100%;
    height: 100%;
}

.solution-card__title {
    font-family: var(--ff-heading);
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--c-white);
    margin-bottom: var(--sp-md);
}

.solution-card__desc {
    font-size: var(--fs-sm);
    color: var(--c-gray-400);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--sp-xl);
}

.solution-card__stat {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    padding-top: var(--sp-lg);
    border-top: 1px solid var(--glass-border);
}

.solution-card__stat-icon {
    font-size: var(--fs-md);
    line-height: 1;
}

.solution-card__stat-label {
    font-size: var(--fs-xs);
    color: var(--c-gray-500);
    font-weight: var(--fw-medium);
    letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════════
   RESULTS SECTION
   ═══════════════════════════════════════════════════════════════ */
.section--results {
    background: var(--c-black);
}

.results__bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 30%, transparent 100%);
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-xl);
    margin-bottom: var(--sp-4xl);
}

.result-stat {
    text-align: center;
    padding: var(--sp-2xl) var(--sp-lg);
}

.result-stat__number {
    font-family: var(--ff-heading);
    font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl));
    font-weight: var(--fw-black);
    color: var(--c-white);
    line-height: 1;
    margin-bottom: var(--sp-sm);
}

.result-stat__prefix,
.result-stat__suffix {
    font-size: 0.6em;
    color: var(--c-gray-500);
    font-weight: var(--fw-semibold);
}

.result-stat__label {
    font-size: var(--fs-sm);
    color: var(--c-gray-500);
    margin-bottom: var(--sp-lg);
}

.result-stat__bar {
    width: 100%;
    height: 2px;
    background: var(--c-dark-3);
    border-radius: var(--r-full);
    overflow: hidden;
}

.result-stat__bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--c-gray-600), var(--c-white));
    border-radius: var(--r-full);
    transition: width 1.5s var(--ease-out);
    /* Note: .animated class width is set via JS */
}

/* Features row */
.results-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-xl);
}

.results-feature {
    padding: var(--sp-2xl);
    text-align: center;
    transition: all var(--dur-normal) var(--ease-out);
}

.results-feature:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-4px);
}

.results-feature__icon {
    font-size: var(--fs-3xl);
    margin-bottom: var(--sp-lg);
}

.results-feature__title {
    font-family: var(--ff-heading);
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--c-white);
    margin-bottom: var(--sp-md);
}

.results-feature__desc {
    font-size: var(--fs-sm);
    color: var(--c-gray-400);
    line-height: var(--lh-relaxed);
}

/* ═══════════════════════════════════════════════════════════════
   PORTFOLIO / CAROUSEL
   ═══════════════════════════════════════════════════════════════ */
.section--portfolio {
    background: linear-gradient(180deg, var(--c-black) 0%, var(--c-dark) 50%, var(--c-black) 100%);
    padding-bottom: var(--sp-4xl);
}

.carousel-wrapper {
    overflow: hidden;
    width: 100%;
    padding: var(--sp-md) 0;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.carousel-track {
    display: flex;
    width: max-content;
}

.carousel-row {
    display: flex;
    gap: var(--sp-lg);
    width: max-content;
    will-change: transform;
    animation: carouselScrollLeft 40s linear infinite;
}

.carousel-row--right {
    will-change: transform;
    animation: carouselScrollRight 50s linear infinite;
}

@media (hover: hover) and (pointer: fine) {
    .carousel-row:hover {
        animation-play-state: paused;
    }
}

/* Force animations regardless of reduced-motion (carousels are decorative, not functional) */
@media (prefers-reduced-motion: reduce) {
    .carousel-row,
    .carousel-row--right {
        animation-duration: 80s !important;
        animation-play-state: running !important;
    }
}

@keyframes carouselScrollLeft {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@keyframes carouselScrollRight {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

.carousel-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    padding: var(--sp-lg) var(--sp-xl);
    min-width: 240px;
    transition: all var(--dur-normal) var(--ease-out);
    cursor: default;
}

.carousel-item:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

.carousel-item__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: var(--c-white);
    opacity: 0.7;
}

.carousel-item__icon svg {
    width: 100%;
    height: 100%;
}

.carousel-item__name {
    font-family: var(--ff-heading);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--c-white);
    white-space: nowrap;
}

.carousel-item__tag {
    font-size: var(--fs-xs);
    color: var(--c-gray-500);
    padding: 2px 8px;
    border: 1px solid var(--glass-border);
    border-radius: var(--r-full);
    white-space: nowrap;
}

/* ─── Project carousel cards (Row 2) ─────────────────────────── */
.carousel-wrapper--projects {
    margin-top: var(--sp-md);
}

.project-card {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    padding: var(--sp-md) var(--sp-lg);
    min-width: 220px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-lg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    cursor: pointer;
    transition: all var(--dur-normal) var(--ease-out);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.03);
}

.project-card__favicon {
    width: 32px;
    height: 32px;
    border-radius: var(--r-sm);
    object-fit: contain;
    flex-shrink: 0;
}

.project-card__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.project-card__name {
    font-family: var(--ff-heading);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--c-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-card__type {
    font-size: var(--fs-xs);
    color: var(--c-gray-500);
    white-space: nowrap;
}

/* Hover tooltip overlay */
.project-card__tooltip {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--sp-md);
    background: rgba(0, 0, 0, 0.92);
    border-radius: var(--r-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-fast) var(--ease-out);
    text-align: center;
}

.project-card:hover .project-card__tooltip {
    opacity: 1;
    pointer-events: all;
}

.project-card__tooltip-type {
    font-size: var(--fs-xs);
    color: var(--c-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.project-card__tooltip-desc {
    font-size: var(--fs-xs);
    color: var(--c-gray-300);
    line-height: var(--lh-relaxed);
    max-width: 200px;
}

/* ═══════════════════════════════════════════════════════════════
   PROCESS / COOPERATION
   ═══════════════════════════════════════════════════════════════ */
.section--process {
    background: var(--c-black);
}

.process-timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto var(--sp-4xl);
}

.process-line {
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--c-dark-3);
}

.process-line__fill {
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, var(--c-white), var(--c-gray-600));
    transition: height 2s var(--ease-out);
}

.process-step {
    display: flex;
    gap: var(--sp-xl);
    margin-bottom: var(--sp-2xl);
    position: relative;
}

.process-step__marker {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    background: var(--c-dark);
    font-family: var(--ff-heading);
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    color: var(--c-gray-500);
    z-index: var(--z-base);
    transition: all var(--dur-normal) var(--ease-out);
}

.process-step.anim-visible .process-step__marker {
    border-color: var(--c-white);
    color: var(--c-white);
    box-shadow: 0 0 30px rgba(255,255,255,0.05);
}

.process-step__content {
    flex: 1;
    padding: var(--sp-xl);
}

.process-step__title {
    font-family: var(--ff-heading);
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--c-white);
    margin-bottom: var(--sp-sm);
}

.process-step__desc {
    font-size: var(--fs-sm);
    color: var(--c-gray-400);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--sp-md);
}

.process-step__duration {
    font-size: var(--fs-xs);
    color: var(--c-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: var(--fw-semibold);
}

/* CTA Block */
.process-cta {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.process-cta__glow {
    position: absolute;
    inset: -60px;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.04) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

.process-cta__content {
    position: relative;
    padding: var(--sp-3xl);
    text-align: center;
}

.process-cta__title {
    font-family: var(--ff-heading);
    font-size: clamp(var(--fs-xl), 3vw, var(--fs-3xl));
    font-weight: var(--fw-bold);
    color: var(--c-white);
    margin-bottom: var(--sp-md);
}

.process-cta__desc {
    font-size: var(--fs-md);
    color: var(--c-gray-400);
    margin-bottom: var(--sp-2xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── CONTACT FORM STYLING ───────────────────────────────────── */
.contact-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-md);
}

.contact-form__field {
    margin-bottom: var(--sp-md);
}

.contact-form__label {
    display: block;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    color: var(--c-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--sp-xs);
}

.contact-form__label .optional {
    color: var(--c-gray-600);
    text-transform: none;
    font-weight: var(--fw-regular);
    letter-spacing: 0;
}

.contact-form__input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-md);
    color: var(--c-white);
    font-size: var(--fs-sm);
    outline: none;
    transition: border-color var(--dur-fast) var(--ease-out),
                background var(--dur-fast) var(--ease-out),
                box-shadow var(--dur-fast) var(--ease-out);
}

.contact-form__input::placeholder {
    color: var(--c-gray-700);
}

.contact-form__input:focus {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.03);
}

.contact-form__input:invalid:not(:placeholder-shown) {
    border-color: rgba(255, 100, 100, 0.3);
}

.contact-form__textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form__status {
    margin-top: var(--sp-md);
    padding: var(--sp-md);
    border-radius: var(--r-md);
    font-size: var(--fs-sm);
    text-align: center;
    display: none;
}

.contact-form__status.success {
    display: block;
    background: rgba(100, 255, 100, 0.05);
    border: 1px solid rgba(100, 255, 100, 0.15);
    color: #a0f0a0;
}

.contact-form__status.error {
    display: block;
    background: rgba(255, 100, 100, 0.05);
    border: 1px solid rgba(255, 100, 100, 0.15);
    color: #f0a0a0;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
    position: relative;
    border-top: 1px solid var(--glass-border);
    padding: var(--sp-4xl) 0 var(--sp-xl);
    background: var(--c-black-rich);
}

.footer__glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(255,255,255,0.03), transparent);
    pointer-events: none;
}

.footer__top {
    display: flex;
    justify-content: space-between;
    gap: var(--sp-4xl);
    margin-bottom: var(--sp-4xl);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    font-family: var(--ff-heading);
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--c-white);
    letter-spacing: 0.05em;
    margin-bottom: var(--sp-md);
}

.footer__logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer__tagline {
    font-size: var(--fs-sm);
    color: var(--c-gray-600);
    line-height: var(--lh-relaxed);
}

.footer__links {
    display: flex;
    gap: var(--sp-4xl);
}

.footer__col-title {
    font-family: var(--ff-heading);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--c-gray-500);
    margin-bottom: var(--sp-lg);
}

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

.footer__col a {
    font-size: var(--fs-sm);
    color: var(--c-gray-500);
    transition: color var(--dur-fast) var(--ease-out);
}

.footer__col a:hover {
    color: var(--c-white);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--sp-xl);
    border-top: 1px solid var(--glass-border);
    font-size: var(--fs-xs);
    color: var(--c-gray-700);
}

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

.footer__legal a {
    color: var(--c-gray-600);
    transition: color var(--dur-fast);
}

.footer__legal a:hover {
    color: var(--c-gray-400);
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS (Intersection Observer driven)
   ═══════════════════════════════════════════════════════════════ */
.anim-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--dur-slow) var(--ease-out),
                transform var(--dur-slow) var(--ease-out);
}

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

.anim-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out),
                transform 0.8s var(--ease-out);
}

.anim-reveal.anim-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays */
.anim-delay-1 { transition-delay: 100ms; }
.anim-delay-2 { transition-delay: 200ms; }
.anim-delay-3 { transition-delay: 350ms; }
.anim-delay-4 { transition-delay: 500ms; }

/* Stagger children */
.solutions-grid .solution-card:nth-child(1) { transition-delay: 0ms; }
.solutions-grid .solution-card:nth-child(2) { transition-delay: 100ms; }
.solutions-grid .solution-card:nth-child(3) { transition-delay: 200ms; }
.solutions-grid .solution-card:nth-child(4) { transition-delay: 300ms; }

.results-stats .result-stat:nth-child(1) { transition-delay: 0ms; }
.results-stats .result-stat:nth-child(2) { transition-delay: 100ms; }
.results-stats .result-stat:nth-child(3) { transition-delay: 200ms; }
.results-stats .result-stat:nth-child(4) { transition-delay: 300ms; }

.results-features .results-feature:nth-child(1) { transition-delay: 0ms; }
.results-features .results-feature:nth-child(2) { transition-delay: 150ms; }
.results-features .results-feature:nth-child(3) { transition-delay: 300ms; }

.process-step:nth-child(2) { transition-delay: 0ms; }
.process-step:nth-child(3) { transition-delay: 150ms; }
.process-step:nth-child(4) { transition-delay: 300ms; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .results-features {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .footer__top {
        flex-direction: column;
        gap: var(--sp-2xl);
    }

    .footer__links {
        flex-wrap: wrap;
        gap: var(--sp-2xl);
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-pad: clamp(3.5rem, 8vh, 6rem);
    }

    .nav__links {
        position: fixed;
        inset: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--sp-2xl);
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--dur-normal) var(--ease-out);
    }

    .nav__links.active {
        opacity: 1;
        pointer-events: all;
    }

    .nav__links .nav__link {
        font-size: var(--fs-xl);
    }

    .nav__burger {
        display: flex;
    }

    .hero {
        padding-top: 60px;
        min-height: 100svh;
        flex-direction: column;
    }

    .hero__3d {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 300px;
        height: 250px;
        margin: -70px auto var(--sp-sm);
        opacity: 0.9;
    }

    .hero__title {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
    }

    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

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

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

    .results-stats {
        grid-template-columns: 1fr 1fr;
    }

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

    .process-step {
        flex-direction: column;
    }

    .process-line {
        display: none;
    }

    .process-step__marker {
        width: 50px;
        height: 50px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--sp-md);
        text-align: center;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--sp-md);
    }

    .results-stats {
        grid-template-columns: 1fr;
    }

    .solution-card {
        padding: var(--sp-xl);
    }

    .process-cta__content {
        padding: var(--sp-xl);
    }
}

/* ─── REDUCED MOTION (Accessibility) ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .anim-fade-up,
    .anim-reveal {
        opacity: 1;
        transform: none;
    }
}
