:root {
    /* Typography */
    --font-heading: 'Unbounded', sans-serif;
    --font-body: 'Manrope', sans-serif;
    --font-mono: 'Fira Code', monospace;

    /* Backgrounds */
    --bg-primary: #060608;
    --bg-secondary: #0A0A0A;
    --bg-tertiary: #1C1C1E;
    --bg-card: rgba(20, 20, 25, 0.6);
    --bg-elevated: rgba(30, 30, 38, 0.8);

    /* Text */
    --text-primary: #EAEAEA;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);

    /* Brand Accents (Purple) */
    --accent-base: #A231FF;
    --accent-light: #D97AFF;
    --accent-dark: #6700AA;

    /* Alpha Accents */
    --accent-alpha-05: rgba(162, 49, 255, 0.05);
    --accent-alpha-15: rgba(162, 49, 255, 0.15);
    --accent-alpha-20: rgba(162, 49, 255, 0.2);
    --accent-alpha-30: rgba(162, 49, 255, 0.3);
    --accent-alpha-60: rgba(162, 49, 255, 0.6);

    /* Status Colors */
    --success: #0CCE6B;
    --warning: #FBBF24;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-medium: rgba(255, 255, 255, 0.15);
}

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Custom focus ring for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Убиваем дефолтную синюю подсветку при тапе на мобилках */
a,
button,
input,
textarea,
[tabindex] {
    -webkit-tap-highlight-color: transparent !important;
}

html {
    font-size: 12px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hardening: Prevent long continuous strings from breaking layout */
p,
h1,
h2,
h3,
h4,
h5,
h6,
a,
span,
.faq__question,
.why-card__title,
.price-card__title {
    overflow-wrap: break-word;
    word-break: break-word;
}


body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: clip;
    /* Changed to allow scrolling down to portfolio */
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-divider,
.hero__headline,


.why-card__number,
.price-card__number,
.process-card__number,
.faq__number {
    font-family: var(--font-heading);
}

/* Subtle grain overlay for premium texture - fading out at bottom */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 100;
    -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 150px), transparent 100%);
    mask-image: linear-gradient(to bottom, black calc(100% - 150px), transparent 100%);
}

/* 1. Настройки для Firefox */
html {
    /* Оставляем дефолт для Firefox, чтобы Chrome не дублировал скроллбар */
}

/* 2. Настройки для Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
    background: #505050;
}


/* ═══════════════════════════════════════════
   HEADER — Floating Glass Pill
═══════════════════════════════════════════ */
.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100vw;
    z-index: 1000;
    padding: 24px 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0px;
    transition: top 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        width 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        max-width 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        padding 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        border-radius 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        background 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        backdrop-filter 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Floating Glass Pill — activated on scroll */
.header.scrolled {
    top: 20px;
    width: calc(100% - 40px);
    max-width: 1000px;
    padding: 15px 30px;
    border-radius: 100px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-medium);
    box-shadow: 0 0 30px rgba(162, 49, 255, 0.12),
        0 0 60px rgba(162, 49, 255, 0.06);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 max(clamp(24px, 6vw, 120px), calc((100vw - 1300px) / 2));
    transition: padding 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Remove container padding inside the pill — the pill itself handles spacing */
.header.scrolled .header__container {
    padding: 0;
}

.header__logo {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.header__logo-img {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: filter 0.3s ease, transform 0.3s ease, height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.header__logo:hover .header__logo-img {
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.6));
}

.header.scrolled .header__logo-img {
    height: 36px;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 48px;
}

.header__nav-link {
    display: flex;
    align-items: center;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.header__nav-link:hover {
    color: var(--text-primary);
}

/* Glassmorphism Button with Asymmetrical Glow */
.header__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: -15px 0 30px -10px var(--accent-alpha-30), inset -10px 0 20px -10px var(--accent-alpha-15);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, background 0.4s ease;
}

/* Gradient border mask */
.header__btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 100px;
    padding: 1px;
    background: linear-gradient(90deg, var(--accent-base) 0%, var(--accent-alpha-05) 80%);
    -webkit-mask: linear-gradient(var(--text-primary) 0 0) content-box, linear-gradient(var(--text-primary) 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.9;
    transition: opacity 0.4s ease, background 0.4s ease;
}

.header__btn:hover {
    transform: scale(1.05);
    background: var(--bg-elevated);
    box-shadow: -20px 0 40px -10px var(--accent-alpha-60), inset -15px 0 25px -10px var(--accent-alpha-30);
}

.header__btn:hover::before {
    opacity: 1;
    background: linear-gradient(90deg, var(--accent-light) 0%, var(--accent-alpha-20) 100%);
}

/* ═══════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════ */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: auto;
    width: 100%;
    padding: 200px max(clamp(24px, 6vw, 120px), calc((100vw - 1300px) / 2)) 0;
    position: relative;
}

/* Ambient glow — deep violet, positioned behind the visual */
.hero__visual::after {
    content: '';
    position: absolute;
    width: 900px;
    height: 900px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(120, 40, 200, 0.08) 0%, rgba(120, 40, 200, 0) 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

/* ═══════════════════════════════════════════
   LEFT SIDE — TYPOGRAPHY
═══════════════════════════════════════════ */
.hero__text {
    position: relative;
    z-index: 10;
    flex: 0 0 55%;
    max-width: 750px;
}

.hero__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.hero__label::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-base);
    box-shadow: 0 0 12px 3px var(--accent-alpha-60);
    animation: labelPulse 2.5s ease-in-out infinite;
}

@keyframes labelPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.85);
    }
}

.hero__headline {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(32px, 4vw, 60px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 28px;
}

.hero__headline span {
    display: block;
}

/* Gradient accent on middle line */
.hero__headline .accent {
    background: linear-gradient(135deg, var(--accent-base) 0%, var(--accent-light) 50%, var(--accent-base) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero__subtitle {
    font-size: clamp(14px, 1.1vw, 18px);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 420px;
    margin-bottom: 40px;
}

.hero__cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    text-decoration: none;

    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: -15px 0 30px -10px var(--accent-alpha-30), inset -10px 0 20px -10px var(--accent-alpha-15);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, background 0.4s ease;
}

/* Gradient border mask */
.hero__cta::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(90deg, var(--accent-base) 0%, var(--accent-alpha-05) 80%);
    -webkit-mask: linear-gradient(var(--text-primary) 0 0) content-box, linear-gradient(var(--text-primary) 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.9;
    transition: opacity 0.4s ease, background 0.4s ease;
}

.hero__cta:hover {
    transform: scale(1.05);
    background: var(--bg-elevated);
    box-shadow: -20px 0 40px -10px var(--accent-alpha-60), inset -15px 0 25px -10px var(--accent-alpha-30);
}

.hero__cta:hover::before {
    opacity: 1;
    background: linear-gradient(90deg, var(--accent-light) 0%, var(--accent-alpha-20) 100%);
}

.hero__cta svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero__cta:hover svg {
    transform: translateX(4px);
}

/* ═══════════════════════════════════════════
   RIGHT SIDE — 3D VISUAL COMPOSITION
═══════════════════════════════════════════ */
.hero__visual {
    position: relative;
    flex: 0 0 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.composition {
    position: relative;
    width: 580px;
    height: 580px;
    overflow: visible;
    transform: scale(0.85);
    /* Scales down the entire 3D block to add spacing */
}

/* ── VIDEO BLOB ── */
.video-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.55);
    z-index: 1;
    pointer-events: none;
    /* Радиальная маска: растворяет прямоугольные края видео в фон */
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at center, #000 40%, transparent 72%);
    mask-image: radial-gradient(ellipse 70% 70% at center, #000 40%, transparent 72%);
}

.video-blob video {
    display: block;
    mix-blend-mode: screen;
    pointer-events: none;
}

/* ═══════════════════════════════════════════
   GLASSMORPHISM CARDS — COMMON
═══════════════════════════════════════════ */
.glass-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top-color: var(--border-medium);
    border-left-color: rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 22px 24px;
    color: var(--text-primary);
    will-change: transform;
}

/* Subtle light refraction edge */
.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.25) 0%,
            rgba(255, 255, 255, 0) 25%,
            rgba(255, 255, 255, 0) 75%,
            var(--accent-alpha-20) 100%);
    -webkit-mask: linear-gradient(var(--text-primary) 0 0) content-box, linear-gradient(var(--text-primary) 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ── CARD 1 — BEHIND THE VIDEO (code snippet) ── */
/* 3D: tilted back-left, like lying on an invisible shelf */
.card-behind {
    width: 320px;
    height: 200px;
    bottom: 22%;
    left: -32%;
    z-index: 5;
    animation: floatBehind 12s ease-in-out infinite;
    opacity: 0.85;
}

/* ── CARD 2 — FRONT TOP-RIGHT (metric card) ── */
/* 3D: tilted forward-right, angled towards the viewer */
.card-front-top {
    width: 230px;
    height: 140px;
    top: -6%;
    right: -10%;
    z-index: 5;
    animation: floatFrontTop 10s ease-in-out infinite;
}

/* ── CARD 3 — FRONT BOTTOM-RIGHT (status card) ── */
/* 3D: tilted slightly left, leaning away */
.card-front-bottom {
    width: 250px;
    height: 115px;
    bottom: -5%;
    right: -14%;
    z-index: 5;
    animation: floatFrontBottom 14s ease-in-out infinite;
}

/* ═══════════════════════════════════════════
   ANTI-GRAVITY FLOATING KEYFRAMES
   Each card has a unique 3D base rotation
   baked into every keyframe so it persists.
═══════════════════════════════════════════ */

/* Card behind: base rotateX(8deg) rotateY(22deg) rotateZ(-3deg) */
@keyframes floatBehind {
    0% {
        transform: translate3d(0px, 0px, 0px) rotateX(8deg) rotateY(22deg) rotateZ(-3deg);
    }

    25% {
        transform: translate3d(12px, -18px, 0px) rotateX(10deg) rotateY(21deg) rotateZ(-2.2deg);
    }

    50% {
        transform: translate3d(-8px, -28px, 0px) rotateX(6deg) rotateY(23deg) rotateZ(-3.5deg);
    }

    75% {
        transform: translate3d(15px, -10px, 0px) rotateX(9deg) rotateY(20deg) rotateZ(-1.8deg);
    }

    100% {
        transform: translate3d(0px, 0px, 0px) rotateX(8deg) rotateY(22deg) rotateZ(-3deg);
    }
}

/* Card front top: base rotateX(-6deg) rotateY(-10deg) rotateZ(2deg) */
@keyframes floatFrontTop {
    0% {
        transform: translate3d(0px, 0px, 0px) rotateX(-6deg) rotateY(-10deg) rotateZ(2deg);
    }

    30% {
        transform: translate3d(-10px, -22px, 0px) rotateX(-4deg) rotateY(-11deg) rotateZ(0.8deg);
    }

    60% {
        transform: translate3d(8px, -12px, 0px) rotateX(-7deg) rotateY(-9deg) rotateZ(2.7deg);
    }

    100% {
        transform: translate3d(0px, 0px, 0px) rotateX(-6deg) rotateY(-10deg) rotateZ(2deg);
    }
}

/* Card front bottom: base rotateX(5deg) rotateY(-8deg) rotateZ(-1.5deg) */
@keyframes floatFrontBottom {
    0% {
        transform: translate3d(0px, 0px, 0px) rotateX(5deg) rotateY(-8deg) rotateZ(-1.5deg);
    }

    20% {
        transform: translate3d(14px, -8px, 0px) rotateX(6deg) rotateY(-7deg) rotateZ(-0.9deg);
    }

    40% {
        transform: translate3d(-6px, -20px, 0px) rotateX(4deg) rotateY(-9deg) rotateZ(-2.5deg);
    }

    60% {
        transform: translate3d(10px, -30px, 0px) rotateX(7deg) rotateY(-7.5deg) rotateZ(-0.5deg);
    }

    80% {
        transform: translate3d(-12px, -14px, 0px) rotateX(4.5deg) rotateY(-9deg) rotateZ(-2deg);
    }

    100% {
        transform: translate3d(0px, 0px, 0px) rotateX(5deg) rotateY(-8deg) rotateZ(-1.5deg);
    }
}

/* ═══════════════════════════════════════════
   CARD INNER CONTENT STYLES
═══════════════════════════════════════════ */

/* — Code snippet card (behind) — */
.code-block {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    font-weight: 400;
}

.code-block .kw {
    color: #c084fc;
}

.code-block .fn {
    color: var(--success);
}

.code-block .str {
    color: var(--warning);
}

.code-block .op {
    color: #94a3b8;
}

.code-block .var {
    color: #e2e8f0;
}

.code-block .comment {
    color: rgba(148, 163, 184, 0.5);
    font-style: italic;
}

/* — Metric card (front top) — */
/* — Lighthouse Scores (front top) — */
.lh-scores {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.lh-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.lh-circular-chart {
    display: block;
    width: 54px;
    height: 54px;
}

.lh-circle-bg {
    fill: none;
    stroke: rgba(12, 206, 107, 0.15);
    /* Lighthouse Green */
    stroke-width: 3;
}

.lh-circle {
    fill: none;
    stroke: var(--success);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 0, 100;
    animation: progress 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes progress {
    100% {
        stroke-dasharray: 100, 100;
    }
}

.lh-percentage {
    fill: var(--success);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 11px;
    text-anchor: middle;
}

.lh-label {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    line-height: 1.2;
}

/* — Status card (front bottom) — */
.status-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-icon svg {
    width: 20px;
    height: 20px;
    color: var(--success);
}

.status-text__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.status-text__desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.4;
}

.status-badge {
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    font-size: 11px;
    font-weight: 600;
    color: var(--success);
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        padding: 60px 24px;
    }

    .hero__text {
        flex: none;
        max-width: 100%;
        text-align: center;
    }

    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__visual {
        flex: none;
        height: auto;
    }

    .composition {
        width: 400px;
        height: 400px;
    }



    .card-behind {
        width: 240px;
        height: 160px;
        top: 52%;
        left: 0%;
    }

    .card-front-top {
        width: 200px;
        height: 120px;
    }

    .card-front-bottom {
        width: 220px;
        height: 100px;
    }
}

@media (max-width: 600px) {
    .composition {
        width: 300px;
        height: 300px;
    }


    .hero__headline {
        font-size: 7.5vw;
    }

    .card-behind {
        width: 200px;
        height: 140px;
        font-size: 11px;
    }

    .card-front-top {
        width: 170px;
        height: 110px;
        top: 2%;
        right: -2%;
    }

    .card-front-bottom {
        width: 190px;
        height: 90px;
    }

    .metric-card__value {
        font-size: 28px;
    }
}

/* ═══════════════════════════════════════════
   FIGMA DESIGN GRID INTRO STYLES
═══════════════════════════════════════════ */
/* The full-page design grid */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(var(--accent-alpha-15) 1px, transparent 1px),
        linear-gradient(90deg, var(--accent-alpha-15) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: center center;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease;
}

/* Show grid during intro */
body.figma-wireframe::before {
    opacity: 1;
}

/* Smooth, fast transitions for assembly */
.hero__label,
.hero__headline,
.hero__subtitle,
.hero__cta,
.video-blob,
.card-behind,
.card-front-top,
.card-front-bottom {
    transition: opacity 0.3s cubic-bezier(0.25, 1, 0.25, 1), transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), margin 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease-out;
    opacity: 1;
}

/* Staggered Delays for Assembly */
.hero__label {
    transition-delay: 0s;
}

.hero__headline {
    transition-delay: 0.03s;
}

.hero__subtitle {
    transition-delay: 0.06s;
}

.hero__cta {
    transition-delay: 0.09s;
}

.video-blob {
    transition-delay: 0s;
}

.card-behind {
    transition-delay: 0.06s;
}

.card-front-top {
    transition-delay: 0.09s;
}

.card-front-bottom {
    transition-delay: 0.12s;
}

/* Remove staggered delays after animation completes to fix hover delays */
body.ready .hero__label,
body.ready .hero__headline,
body.ready .hero__subtitle,
body.ready .hero__cta,
body.ready .video-blob,
body.ready .card-behind,
body.ready .card-front-top,
body.ready .card-front-bottom {
    transition-delay: 0s;
}

/* Initial scattered states during grid phase */
body.figma-wireframe .hero__label {
    opacity: 0;
    transform: translateX(-40px);
}

body.figma-wireframe .hero__headline {
    opacity: 0;
    transform: translateX(-60px) scale(0.95);
}

body.figma-wireframe .hero__subtitle {
    opacity: 0;
    transform: translateX(-40px);
}

body.figma-wireframe .hero__cta {
    opacity: 0;
    transform: translateY(30px);
}

/* ═══════════════════════════════════════════
   WHY ME CTA
═══════════════════════════════════════════ */
.why-me__cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
    z-index: 10;
}

.why-me__cta-pretitle {
    font-family: var(--font-body);
    font-size: 24px;
    color: rgba(234, 234, 234, 0.6);
    margin-bottom: 16px;
    font-weight: 500;
}

.why-me__lead {
    font-family: var(--font-body);
    font-size: 24px;
    color: rgba(234, 234, 234, 0.6);
    font-weight: 500;
    margin-top: 24px;
}

.why-me__cta-title {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 36px;
    line-height: 1.45;
    margin-bottom: 48px;

    /* Стили для блика */
    color: var(--text-primary);
    /* fallback */
    background: linear-gradient(100deg,
            var(--text-primary) 40%,
            var(--text-primary) 48%,
            var(--accent-base) 50%,
            var(--text-primary) 52%,
            var(--text-primary) 60%);
    background-size: 300% auto;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-position: 100% center;
}

.why-me__cta.revealed .why-me__cta-title {
    animation: textShimmer 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 1s;
    /* Ждем 1 секунду после появления блока */
}

@keyframes textShimmer {
    to {
        background-position: 0% center;
    }
}

.why-me__cta-buttons {
    display: flex;
    align-items: center;
    gap: 30px;
}

.btn-primary {
    padding: 18px 32px;
    background: linear-gradient(90deg, var(--accent-base) 0%, var(--accent-dark) 100%);
    border-radius: 100px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 16px;
    color: var(--text-primary);
    text-decoration: none;
    box-shadow: 0 7px 32px var(--accent-alpha-30), inset 0 1px 4px var(--border-medium);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    box-shadow: 0 8px 32px rgba(157, 0, 255, 0.4), inset 0 1px 4px var(--border-medium);
    transform: scale(1.04);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    animation: btnSecondaryBounce 2.5s ease-in-out infinite;
}

@keyframes btnSecondaryBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

.btn-secondary__text {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 16px;
    color: rgba(234, 234, 234, 0.25);
    transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-secondary__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(234, 234, 234, 0.25);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-secondary:hover .btn-secondary__text,
.btn-secondary:hover .btn-secondary__icon {
    color: rgba(234, 234, 234, 1);
}

.btn-secondary:hover .btn-secondary__icon {
    transform: translateY(3px);
}

/* Video starts small and blurred */
body.figma-wireframe .video-blob {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.1) !important;
    /* Overrides base transform */
    filter: blur(20px);
}

/* Cards use margins for translation to not break their existing 3D transform keyframes */
body.figma-wireframe .card-behind {
    opacity: 0;
    margin-bottom: -50px;
    margin-left: -50px;
}

body.figma-wireframe .card-front-top {
    opacity: 0;
    margin-top: -60px;
    margin-right: -60px;
}

body.figma-wireframe .card-front-bottom {
    opacity: 0;
    margin-bottom: -60px;
    margin-right: -40px;
}

/* ═══════════════════════════════════════════
   WHY ME SECTION
═══════════════════════════════════════════ */
.why-me {
    padding: 200px max(clamp(24px, 6vw, 120px), calc((100vw - 1300px) / 2)) 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 65px;
    position: relative;
    z-index: 10;
}

.why-me__title-container {
    position: relative;
    max-width: 940px;
}

.why-me__bg-ellipse {
    position: absolute;
    width: 1260px;
    height: 460px;
    background: radial-gradient(ellipse, rgba(202, 104, 255, 0.12) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

h2.why-me__title {
    position: relative;
    z-index: 1;
    color: var(--text-primary);
    text-align: left;
    width: 100%;
    line-height: 1.45;
    font-size: clamp(29px, calc(3vw - 2px), 46px);
}

.why-me__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.why-card {
    background: linear-gradient(135deg, var(--border-subtle) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 var(--border-medium), 0 4px 30px rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.why-card__header {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.why-card__number {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 16px;
    color: rgba(234, 234, 234, 0.6);
}

.why-card__title {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 24px;
    color: var(--text-primary);
}

.why-card__desc {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.89;
    /* 189% */
    color: rgba(234, 234, 234, 0.6);
}

.why-me__gray-block {
    background-color: rgba(17, 17, 17, 0.6);
    /* Negative margin to stretch full viewport width */
    margin-left: calc(-1 * max(clamp(24px, 6vw, 120px), calc((100vw - 1300px) / 2)));
    margin-right: calc(-1 * max(clamp(24px, 6vw, 120px), calc((100vw - 1300px) / 2)));
    /* Padding to keep inner content aligned */
    padding: 46px max(clamp(24px, 6vw, 120px), calc((100vw - 1300px) / 2));
    position: relative;
    overflow: hidden;
}

.why-me__gray-ellipse {
    position: absolute;
    width: 1300px;
    height: 1300px;
    background: radial-gradient(circle, var(--border-subtle) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.why-me__subtitle {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 24px;
    line-height: 1.45;
    /* 145% */
    color: var(--text-primary);
    position: relative;
    z-index: 1;
    margin-bottom: 50px;
}

.why-me__subtitle strong {
    font-weight: 600;
}

.why-me__features {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.why-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
}

.why-feature__icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.why-feature__text {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.45;
    /* 145% */
    color: #afabab;
}

/* ═══════════════════════════════════════════
   PORTFOLIO SECTION (GLOBAL PROJECT)
═══════════════════════════════════════════ */
.portfolio {
    padding: 200px max(clamp(24px, 6vw, 120px), calc((100vw - 1300px) / 2)) 0;
    width: 100%;
    position: relative;
    z-index: 10;
}

.portfolio__header {
    margin-bottom: 60px;
    text-align: center;
}

.portfolio__label {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.portfolio__title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 1300px;
    margin: 0 auto;
}

.project__visual-container {
    position: relative;
    width: 100%;
}

.project__visual {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
    aspect-ratio: 16 / 9;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.6s ease, box-shadow 0.6s ease;
}

/* ═══════════════════════════════════════════
   SAFARI BROWSER UI
═══════════════════════════════════════════ */
.browser-window {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(162, 49, 255, 0.1);
}

.browser-topbar {
    background: #2b2b2d;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.browser-tab-row {
    display: flex;
    align-items: flex-end;
    padding: 10px 12px 0;
    gap: 12px;
}

.browser-controls {
    display: flex;
    gap: 8px;
    margin-right: 16px;
    margin-bottom: 10px;
    align-items: center;
}

.browser-controls .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #4d4d4d;
    border: 1px solid #3d3d3d;
}

.dot.yellow {
    background: #4d4d4d;
    border: 1px solid #3d3d3d;
}

.dot.green {
    background: #4d4d4d;
    border: 1px solid #3d3d3d;
}

.browser-tabs {
    display: flex;
    gap: 2px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
}

.browser-tabs::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

.browser-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    background: rgba(0, 0, 0, 0.15);
    color: var(--text-muted);
    border-radius: 8px 8px 0 0;
    font-size: 13px;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    min-width: 140px;
}

.browser-tab:hover {
    background: var(--border-subtle);
    color: var(--text-secondary);
}

.browser-tab.active {
    background: #3a3a3c;
    color: var(--text-primary);
}

.browser-add-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: 8px;
    margin-bottom: 4px;
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    flex-shrink: 0;
}

.browser-add-tab:hover {
    background: var(--border-medium);
}

.browser-add-tab svg {
    width: 16px;
    height: 16px;
}

.browser-toolbar {
    display: flex;
    align-items: center;
    background: #3a3a3c;
    padding: 8px 16px;
    gap: 16px;
}

.browser-nav-arrows {
    display: flex;
    gap: 16px;
    color: rgba(255, 255, 255, 0.5);
}

.browser-nav-arrows svg {
    width: 16px;
    height: 16px;
    cursor: pointer;
    transition: color 0.2s;
}

.browser-nav-arrows svg:hover {
    color: var(--text-primary);
}

.browser-url-bar {
    flex: 1;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--text-primary);
    gap: 8px;
    position: relative;
    font-family: var(--font-body);
}

.browser-url-bar .lock-icon {
    width: 12px;
    height: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.browser-url-bar .reload-icon {
    position: absolute;
    right: 10px;
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: color 0.2s;
}

.browser-url-bar .reload-icon:hover {
    color: var(--text-primary);
}

.browser-actions {
    display: flex;
    gap: 16px;
    color: rgba(255, 255, 255, 0.5);
}

.browser-actions svg {
    width: 18px;
    height: 18px;
    cursor: pointer;
    transition: color 0.2s;
}

.browser-actions svg:hover {
    color: var(--text-primary);
}

.browser-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    width: 100%;
}

@keyframes projectShimmer {

    0%,
    100% {
        box-shadow: 0 0 15px var(--accent-alpha-20), inset 0 0 5px rgba(162, 49, 255, 0.1);
        border-color: rgba(162, 49, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 35px rgba(162, 49, 255, 0.5), inset 0 0 15px rgba(162, 49, 255, 0.25);
        border-color: rgba(162, 49, 255, 0.8);
    }
}

.project__visual:hover {
    transform: scale(1.015);
    animation: projectShimmer 2.5s ease-in-out infinite;
}

/* Subtle placeholder */
.project__visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--accent-alpha-05) 0%, transparent 70%);
    opacity: 0.5;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.project__visual:hover::after {
    opacity: 1;
}

.project__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0.85;
    transition: opacity 0.6s ease, transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), object-position 5s ease-in-out;
}

.browser-content:hover .project__image {
    opacity: 1;
    transform: scale(1.02);
}

.browser-window.allow-scroll .browser-content:hover .project__image {
    object-position: bottom center;
    transition: opacity 0.6s ease, transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), object-position 9s linear;
}

@media (max-width: 1024px) {
    .browser-toolbar {
        padding: 8px 12px;
    }

    .browser-actions,
    .browser-nav-arrows {
        display: none;
    }

    .browser-tab {
        min-width: 100px;
        padding: 8px 12px;
    }
}

.project__info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.project__info-main {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.project__name {
    font-family: var(--font-heading);
    font-size: clamp(32px, 3vw, 48px);
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.project__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.project__tag {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    padding: 8px 16px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.project__tag:hover {
    color: var(--text-primary);
    border-color: var(--border-medium);
}

.project__info-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: 68px;
    justify-self: end;
}

.project__desc {
    font-size: 16px;
    line-height: 1.8;
    color: #E0E0E0;
}

.circular-btn {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-primary);
    z-index: 10;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.4s ease, border-color 0.4s ease;
}

.circular-btn:hover {
    transform: scale(1.1);
    background: var(--bg-elevated);
    /* border-color: rgba(162, 49, 255, 0.5); */
}

.circular-btn__text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: textRotate 10s linear infinite;
}

.circular-btn__text text {
    font-family: var(--font-body);
    font-size: 11.5px;
    font-weight: 600;
    fill: var(--text-primary);
    letter-spacing: 2.2px;
}

.circular-btn__icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.circular-btn__icon svg {
    width: 100%;
    height: 100%;
}

@keyframes textRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


@media (max-width: 1024px) {
    .project__visual {
        aspect-ratio: 16 / 9;
    }

    .project__info {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project__info-details {
        padding-top: 0;
    }
}

/* ═══════════════════════════════════════════
   REUSABLE SECTION HEADER (label + title)
═══════════════════════════════════════════ */
.section__label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.section__title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 3vw, 48px);
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* ═══════════════════════════════════════════
   PRICING SECTION
═══════════════════════════════════════════ */
.pricing {
    padding: 200px max(clamp(24px, 6vw, 120px), calc((100vw - 1300px) / 2)) 0;
    width: 100%;
    position: relative;
    z-index: 10;
}

.pricing__header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    max-width: 1300px;
    margin: 0 auto;
}

.pricing__header-main {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pricing__header-details {
    display: flex;
    flex-direction: column;
    padding-top: 68px;
    /* сдвиг к правому краю */
    justify-self: end;
}

@media (max-width: 1024px) {
    .pricing__header {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pricing__header-details {
        padding-top: 0;
        justify-self: start;
    }
}

/* ═══════════════════════════════════════════
   APPROACH SECTION
═══════════════════════════════════════════ */
.section__desc {
    font-size: 16px;
    line-height: 1.8;
    color: #E0E0E0;
}

/* ═══════════════════════════════════════════
   ABOUT ME SECTION
═══════════════════════════════════════════ */
.about {
    padding: 200px max(clamp(24px, 6vw, 120px), calc((100vw - 1300px) / 2)) 0;
    width: 100%;
    position: relative;
    z-index: 10;
}

.about__container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    width: 100%;
}

.about__photo {
    flex-shrink: 0;
    max-width: 50%;
    height: 600px;
    object-fit: cover;
}

.about__content {
    display: flex;
    flex-direction: column;
}

.about__header {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 42px;
}

.about__title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 32px;
    background: linear-gradient(90deg, var(--text-primary) 0%, #848484 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    width: 100%;
    margin: 0;
}

.about__subtitle {
    font-family: var(--font-body);
    font-weight: 100;
    font-size: 20px;
    color: rgba(234, 234, 234, 0.45);
    margin: 0;
}

.about__desc {
    display: flex;
    flex-direction: column;
    gap: 36px;
    max-width: 507px;
}

.about__desc p {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.8;
    text-align: left;
    background: linear-gradient(90deg, var(--text-primary) 0%, #848484 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

@media (max-width: 1024px) {
    .about__container {
        flex-direction: column;
        gap: 40px;
    }

    .about__photo {
        max-width: 100%;
    }

    .about__desc {
        max-width: 100%;
    }
}

@media (max-width: 1024px) {
    .about__container {
        gap: 0;
        /* Remove default gap to control spacing with margin */
    }

    .about__photo {
        -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);
        mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);
        margin-bottom: 24px;
    }

    /* Обертка для всего текста */
    .about__desc p {
        background: none;
        -webkit-text-fill-color: initial;
        font-size: 16px !important;
        /* Золотой стандарт для мобилок */
        line-height: 1.6 !important;
        /* Добавляем воздух между строками */
        color: rgba(255, 255, 255, 0.8);
        /* Слегка приглушаем, чтобы чистый белый не выжигал глаза */
        margin-bottom: 24px;
        /* Увеличиваем расстояние между абзацами */
    }

    /* Убираем отступ у самого последнего абзаца, чтобы не ломать нижний край блока */
    .about__desc p:last-of-type {
        margin-bottom: 0;
    }

    /* ФИШКА: Делаем первый абзац лидом */
    .about__desc p:first-of-type {
        font-size: 18px !important;
        color: #ffffff;
        /* Делаем его чисто белым и ярким */
        font-weight: 500;
    }
}

.approach {
    padding: 200px max(clamp(24px, 6vw, 120px), calc((100vw - 1300px) / 2)) 0;
    width: 100%;
    position: relative;
    z-index: 10;
}

.approach .section__label,
.approach .section__desc {
    font-family: var(--font-body);
}

.approach__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 32px;
    column-gap: 60px;
    align-items: start;
}

.approach__label-wrap {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: -32px;
}

.approach__title-wrap {
    grid-column: 1;
    grid-row: 2;
}

.approach__desc {
    grid-column: 2;
    grid-row: 2;
    padding-top: 0;
    justify-self: end;
}

/* ═══════════════════════════════════════════
   PROCESS GRID (How I create websites)
═══════════════════════════════════════════ */
.process-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 46px;
    margin-top: 60px;
    width: 100%;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

/* Мягкое белое свечение на фоне карточек */
.process-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1600px;
    height: 1600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.process-grid .process-card {
    position: relative;
    overflow: hidden;
    padding: 40px;
    background: var(--border-subtle);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 1;

    /* Блик по верхней грани (inner shadow) */
    box-shadow: inset 0 1px 1px var(--border-medium);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Эффект градиентной обводки через маску (жидкое стекло) */
.process-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    /* Толщина обводки */
    background: linear-gradient(135deg,
            var(--border-medium) 0%,
            rgba(255, 255, 255, 0.02) 100%);
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(var(--text-primary) 0 0) content-box, linear-gradient(var(--text-primary) 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    pointer-events: none;
    transition: background 0.6s ease;
}

.process-grid .process-card:hover {
    transform: translateY(-3px) scale(1.015);
    /* За счет scale(1.015) нижняя граница карточки остается на месте, предотвращая "дергание" (hover loop) при наведении на край */
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.25),
        0 20px 50px rgba(176, 38, 255, 0.12);
    /* Очень мягкое, дорогое фиолетовое облако сзади */
}

/* Медленный, благородный перелив вместо бешеной гирлянды */
.process-card:hover::before {
    background: linear-gradient(60deg,
            var(--border-subtle) 0%,
            rgba(176, 38, 255, 0.3) 35%,
            var(--text-muted) 50%,
            rgba(176, 38, 255, 0.3) 65%,
            var(--border-subtle) 100%);
    background-size: 300% 300%;
    animation: borderRun 6s linear infinite;
}

@keyframes borderRun {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.process-card.card-full {
    grid-column: 1 / -1;
}

.process-card.card-full .process-card__content {
    max-width: 800px;
}

.process-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.process-card__number {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-base) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    flex-shrink: 0;
}

.process-card__title {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
}

.process-card__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Spacing between subtitle and main text */
    position: relative;
    z-index: 2;
}

.process-card__subtitle {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.5;
}

.process-card__text {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.9;
}

.process-card__icon {
    position: absolute;
    width: 125px;
    height: 125px;
    pointer-events: none;
    z-index: 1;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease;
}

.process-card:hover .process-card__icon {
    opacity: 0.15;
    transform: scale(1.1) rotate(-5deg);
}

/* Индивидуальная корректировка для иконки layout (СМЫСЛОВОЙ UI/UX) */
.process-grid .process-card:nth-child(1) .process-card__icon {
    bottom: -1px;
    right: -1px;
}

/* Индивидуальная корректировка для иконки code (ЧИСТЫЙ КОД) */
.process-grid .process-card:nth-child(2) .process-card__icon {
    bottom: -15px;
    right: -2px;
}

/* Индивидуальная корректировка для иконки speed (SEO И СКОРОСТЬ) */
.process-grid .process-card:nth-child(3) .process-card__icon {
    bottom: -20px;
    right: 0px;
}

/* Индивидуальная корректировка для иконки date (ПРОЦЕСС И СРОКИ) */
.process-grid .process-card:nth-child(4) .process-card__icon {
    bottom: -1px;
    right: -3px;
}


@media (max-width: 1024px) {
    .approach__content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .approach__label-wrap,
    .approach__title-wrap,
    .approach__desc {
        grid-column: 1;
        grid-row: auto;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 50px;
    }

    .process-card.card-full,
    .process-card.card-half {
        grid-column: 1;
    }

    .process-card {
        padding: 24px;
    }

    .process-card__icon {
        height: 100px;
        right: -10px;
        bottom: -10px;
    }
}

/* ═══════════════════════════════════════════
   PRICING CARDS
═══════════════════════════════════════════ */
.pricing__cards {
    display: flex;
    gap: 180px;
    justify-content: center;
    align-items: stretch;
    margin-top: 60px;
}

.price-card {
    flex: 1;
    max-width: 500px;
    background: linear-gradient(135deg, var(--border-subtle) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 var(--border-medium), 0 4px 30px rgba(0, 0, 0, 0.5);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Увеличенный хитбокс, чтобы карточка не дергалась при наведении снизу */
.price-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -15px;
    z-index: -1;
}

.pricing__cards .price-card:hover {
    transform: translateY(-8px);
    box-shadow: inset 0 1px 0 var(--border-medium), 0 20px 40px rgba(0, 0, 0, 0.4);
}

.price-card--flagship {
    border-color: var(--accent-alpha-30);
}

.pricing__cards .price-card--flagship:hover {
    border-color: rgba(162, 49, 255, 0.8);
    box-shadow: inset 0 1px 0 var(--border-medium), 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(157, 0, 255, 0.15);
}

.price-card__badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 12px 24px;
    border-radius: 100px;
    white-space: nowrap;
    overflow: hidden;
}

.price-card__badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-25deg);
}

@media (min-width: 1025px) {
    .price-card:hover .price-card__badge::after {
        animation: badge-shine 0.7s ease-in-out forwards;
    }
}

/* Mobile: triggered by JS on tab switch */
.price-card__badge.badge-shine-active::after {
    animation: badge-shine 0.7s ease-in-out forwards;
}

@keyframes badge-shine {
    0% {
        left: -150%;
    }

    100% {
        left: 200%;
    }
}

.price-card__badge::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 100px;
    padding: 1px;
    background: linear-gradient(90deg, var(--accent-base) 0%, var(--accent-alpha-05) 80%);
    -webkit-mask: linear-gradient(var(--text-primary) 0 0) content-box, linear-gradient(var(--text-primary) 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.9;
}

.price-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.price-card__number {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-muted);
}

.price-card {
    font-family: var(--font-body);
}

.price-card__title {
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-base) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.price-card__desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-subtle);
}

.price-card__features {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.price-card__features li {
    position: relative;
    padding-left: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    transition: color 0.3s ease;
}

.price-card__features li:hover {
    color: rgba(255, 255, 255, 1);
}

.price-card__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.price-card__features li:hover::before {
    background: var(--accent-base);
    box-shadow: 0 0 8px rgba(162, 49, 255, 0.8);
    transform: scale(1.5);
}

.price-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.price-card__meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-card__meta-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.3);
}

.price-card__meta-val {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-body);
}

.price-card__btn {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    border-radius: 100px;
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 400;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, background 0.4s ease;
    width: 100%;
}

.price-card__btn--outline {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: -15px 0 30px -10px var(--accent-alpha-30), inset -10px 0 20px -10px var(--accent-alpha-15);
    color: var(--text-primary);
    border: none;
}

.price-card__btn--outline::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 100px;
    padding: 1px;
    background: linear-gradient(90deg, var(--accent-base) 0%, var(--accent-alpha-05) 80%);
    -webkit-mask: linear-gradient(var(--text-primary) 0 0) content-box, linear-gradient(var(--text-primary) 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.9;
    transition: opacity 0.4s ease, background 0.4s ease;
}

.price-card__btn--outline:hover {
    background: var(--bg-elevated);
    box-shadow: -20px 0 40px -10px var(--accent-alpha-60), inset -15px 0 25px -10px var(--accent-alpha-30);
}

.price-card__btn--outline:hover::before {
    opacity: 1;
    background: linear-gradient(90deg, var(--accent-light) 0%, var(--accent-alpha-20) 100%);
}

.price-card__btn--solid {
    background: linear-gradient(90deg, var(--accent-base) 0%, var(--accent-dark) 100%);
    color: var(--text-primary);
    box-shadow: 0 7px 32px var(--accent-alpha-30), inset 0 1px 4px var(--border-medium);
    border: none;
}

.price-card__btn--solid:hover {
    box-shadow: 0 10px 40px var(--accent-alpha-60), inset 0 1px 4px rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
}

@media (max-width: 1024px) {
    .pricing__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .pricing__cards {
        flex-direction: column;
        align-items: center;
    }

    .price-card {
        width: 100%;
    }
}

/* ═══════════════════════════════════════════
   SCROLL REVEAL — Bottom-to-top entrance
═══════════════════════════════════════════ */
.reveal-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for cascading appearance */
.reveal-delay-1 {
    transition-delay: 0.15s;
}

.reveal-delay-2 {
    transition-delay: 0.3s;
}

.reveal-delay-3 {
    transition-delay: 0.45s;
}

/* ═══════════════════════════════════════════
   SECTION DIVIDER BACKGROUND TEXT
═══════════════════════════════════════════ */
.section-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 200px;
    margin-bottom: -200px;
    overflow: visible;
    pointer-events: none;
    user-select: none;

    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 160px;
    line-height: 0;
    text-transform: uppercase;
    white-space: nowrap;

    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.03);
    z-index: -1;
    position: relative;
}

@media (max-width: 1024px) {
    .section-divider {
        font-size: 100px;
        height: 120px;
        margin-bottom: -120px;
    }
}

@media (max-width: 768px) {
    .section-divider {
        font-size: 46px;
        height: 70px;
        margin-bottom: -70px;
    }
}



/* ═══════════════════════════════════════════
   FAQ SECTION
═══════════════════════════════════════════ */
.faq {
    position: relative;
    z-index: 10;
    padding: 200px max(clamp(24px, 6vw, 120px), calc((100vw - 1300px) / 2)) 0;
    width: 100%;
}

.faq__container {
    display: flex;
    flex-direction: column;
}

.faq__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 60px;
}

.faq__list {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 900px;
    align-self: center;
}

.faq__item {
    padding: 36px 0;
    border-bottom: 1px solid var(--border-medium);
}

.faq__item:first-child {
    border-top: none;
}

.faq__question-wrap {
    display: grid;
    grid-template-columns: 24px 1fr 24px;
    align-items: center;
    gap: 24px;
    cursor: pointer;
}

.faq__number {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: rgba(234, 234, 234, 0.57);
    justify-self: center;
}

.faq__question {
    position: relative;
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
}

.faq__question span {
    color: var(--text-primary);
    transition: opacity 0.4s ease;
}

.faq__question::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-base) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.faq__item.active .faq__question span {
    opacity: 0;
}

.faq__item.active .faq__question::before {
    opacity: 1;
}

.faq__icon {
    width: 18px;
    height: 18px;
    justify-self: center;
    transition: transform 0.4s ease;
}

.faq__icon img {
    width: 100%;
    height: 100%;
}

.faq__item.active .faq__icon {
    transform: rotate(45deg);
}

.faq__answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
}

.faq__item.active .faq__answer {
    grid-template-rows: 1fr;
}

.faq__answer-inner {
    overflow: hidden;
    display: grid;
    grid-template-columns: 24px 1fr 24px;
    gap: 24px;
}

.faq__answer-text {
    grid-column: 2 / 3;
    margin-top: 24px;
    margin-bottom: 0;
    font-family: var(--font-body);
    font-size: 16px;
    color: rgba(234, 234, 234, 0.7);
    line-height: 1.6;
    max-width: 693px;
}

@media (max-width: 600px) {
    .faq__question {
        font-size: 20px;
    }
}

/* ═══════════════════════════════════════════
   CONTACT SECTION
═══════════════════════════════════════════ */
.contact {
    padding: 200px max(clamp(24px, 6vw, 120px), calc((100vw - 1300px) / 2)) 0;
    width: 100%;
    position: relative;
    z-index: 10;
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    width: 100%;
}

@media (max-width: 1024px) {
    .contact__container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

/* Left Column */
.contact__info {
    display: flex;
    flex-direction: column;
    position: relative;
}

@keyframes levitate-ellipse {
    0% {
        transform: translate(-50%, -50%) translateY(0) scale(1) translateZ(0);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-30px) scale(1.05) translateZ(0);
    }

    100% {
        transform: translate(-50%, -50%) translateY(0) scale(1) translateZ(0);
    }
}

.contact__bg-ellipse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle,
            rgba(171, 71, 188, 0.05) 0%,
            rgba(171, 71, 188, 0.01) 40%,
            transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: screen;
    animation: levitate-ellipse 12s ease-in-out infinite;
}

.contact__bg-ellipse::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' 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;
}

.contact__title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.contact__desc {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(234, 234, 234, 0.7);
    margin: 0 0 50px 0;
}

.contact__links {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact__link {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    position: relative;
    width: max-content;
}

.contact__icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.contact__link:hover .contact__icon {
    transform: translateY(-2px);
}

.contact__link-text {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 500;
    background: linear-gradient(90deg, var(--text-primary) 0%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact__link-underline {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(17, 17, 17, 0) 0%, rgba(200, 200, 200, 0.5) 50%, rgba(17, 17, 17, 0) 100%);
    transition: opacity 0.3s ease;
}

.contact__link:hover .contact__link-underline {
    opacity: 0.7;
}

/* Right Column: Form Card */
.contact__form-card {
    background-color: rgba(17, 17, 17, 0.74);
    background-image: radial-gradient(circle at 50% 0%, rgba(0, 0, 0, 0.07) 0%, rgba(176, 38, 255, 0.07) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(176, 38, 255, 0.1);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.form__error-message {
    color: #ef4444;
    /* Standard error red */
    font-size: 12px;
    margin-top: 4px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.form__input.error {
    border-color: rgba(239, 68, 68, 0.5);
    /* Red border */
    background: rgba(239, 68, 68, 0.05);
    /* Slight red tint */
}

.form__input.error+.form__error-message,
.form__textarea.error+.form__error-message {
    display: block;
}

.form__label {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: rgba(234, 234, 234, 0.6);
    transition: color 0.3s ease;
}

.form__input {
    width: 100%;
    height: 53px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    padding: 0 16px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-primary);
    transition: border-color 0.3s ease, background 0.3s ease;
    box-sizing: border-box;
}

.form__input::placeholder {
    color: rgba(234, 234, 234, 0.3);
}

.form__textarea {
    height: 170px;
    padding: 16px;
    resize: none;
}

/* Focus States */
.form__input:focus {
    outline: none;
    border-color: var(--accent-light);
    background: rgba(176, 38, 255, 0.03);
}

.form__input:focus+.form__label,
.form__group:focus-within .form__label {
    color: var(--accent-light);
}

/* Custom Checkbox */
.form__group--checkbox {
    margin-bottom: 24px;
}

.agreement-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.agreement-container {
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.checkmark {
  --clr: var(--accent-base);
  position: relative;
  top: 0;
  left: 0;
  height: 1.3em;
  width: 1.3em;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-medium);
  border-radius: 50%;
  transition: 300ms;
  flex-shrink: 0;
  margin-right: 12px;
}

.agreement-container input:checked ~ .checkmark {
  background-color: var(--clr);
  border-radius: .5rem;
  border-color: var(--clr);
  animation: pulse 500ms ease-in-out;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.agreement-container input:checked ~ .checkmark:after {
  display: block;
}

.agreement-container .checkmark:after {
  left: 0.45em;
  top: 0.25em;
  width: 0.25em;
  height: 0.5em;
  border: solid #FFF;
  border-width: 0 0.15em 0.15em 0;
  transform: rotate(45deg);
}

.agreement-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
  text-align: left;
}

.policy-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.policy-link:hover {
  color: var(--text-primary);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--accent-alpha-60);
    rotate: 20deg;
  }

  50% {
    rotate: -20deg;
  }

  75% {
    box-shadow: 0 0 0 10px var(--accent-alpha-30);
  }

  100% {
    box-shadow: 0 0 0 13px rgba(162, 49, 255, 0);
    rotate: 0;
  }
}

/* Button */
.contact__submit {
    position: relative;
    overflow: hidden;
    margin-top: 8px;
    width: 100%;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-radius: 100px;
    background: var(--accent-alpha-15);
    box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease;
}

.contact__submit-text {
    position: relative;
    z-index: 10;
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 500;
    color: #fff;
    transition: opacity 0.3s ease;
}

.contact__submit-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    margin-top: -300px;
    margin-left: -300px;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1;
}

.hover-bg {
    background: linear-gradient(90deg, var(--accent-base) 0%, var(--accent-dark) 100%);
}

.success-bg {
    background: #10b981;
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.error-bg {
    background: #ef4444;
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Submit Button States */
.contact__submit:disabled,
.contact__submit.is-disabled {
    cursor: not-allowed;
}

/* Fill button purple ONLY when valid (not disabled) */
.contact__submit:not(:disabled):not(.is-disabled) .hover-bg {
    transform: scale(1);
}

@media (max-width: 1024px) {
    /* Ensure the background circle is large enough to cover the button on tablets */
    .contact__submit-bg {
        width: 1500px;
        height: 1500px;
        margin-top: -750px;
        margin-left: -750px;
    }
}

/* Success & Error States */
.contact__submit.submit-success .success-bg {
    transform: scale(1);
}

.contact__submit.submit-error .error-bg {
    transform: scale(1);
}

/* Waves */
.contact__submit-wave {
    position: absolute;
    top: 0;
    height: 100%;
    z-index: 2;
    opacity: 0.2;
    pointer-events: none;
    display: flex;
    align-items: stretch;
}

.left-wave {
    left: 0;
    width: 60px;
    margin-left: -8px;
}

.right-wave {
    right: 0;
    width: 48px;
    margin-right: -12px;
}

.contact__submit-wave svg {
    width: 100%;
    height: 100%;
}

@media (max-width: 600px) {
    .contact__form-card {
        padding: 24px;
    }
}

/* ═══════════════════════════════════════════
   FOOTER SECTION
═══════════════════════════════════════════ */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 150px;
    padding: 30px 120px;
    border-top: 1px solid var(--border-subtle);
}

.footer__left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.7;
}

.footer__right {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.7;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.footer__right:hover {
    opacity: 1;
}


@media (max-width: 1024px) {
    .footer {
        padding: 30px 24px;
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 110px;
    left: 30px;
    background: var(--bg-elevated);
    color: var(--text-primary);
    padding: 16px 24px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-medium);
    z-index: 9999;
    transform: translateX(-150%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* =========================================
   NEW MOBILE HEADER & MENU (max-width: 768px)
   ========================================= */
.header-mobile {
    display: none;
}

.mobile-menu-overlay {
    display: none;
}

@media (max-width: 1024px) {

    /* Hide desktop header completely */
    .header {
        display: none !important;
    }

    /* Show new mobile header */
    .header-mobile {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.85) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        /* Exact color from user screenshot */
        z-index: 9999;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .header-mobile__container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 24px;
        height: 70px;
    }

    .header-mobile .header__logo-img {
        max-width: 140px;
        height: auto;
    }

    .header-mobile__burger {
        background: none;
        border: none;
        cursor: pointer;
        position: relative;
        z-index: 10000;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-mobile__burger svg {
        height: 2.5em; /* Scaled slightly down to fit header */
        transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    .header-mobile__burger .line {
        fill: none;
        stroke: white;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 3;
        transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
                    stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    .header-mobile__burger .line-top-bottom {
        stroke-dasharray: 12 63;
    }

    /* Menu Open State (Burger becomes X) */
    .header-mobile.menu-open .header-mobile__burger svg {
        transform: rotate(-45deg);
    }

    .header-mobile.menu-open .header-mobile__burger svg .line-top-bottom {
        stroke-dasharray: 20 300;
        stroke-dashoffset: -32.42;
    }

    /* Mobile Menu Dropdown (Replaced Overlay) */
    .mobile-menu-overlay {
        display: block;
        position: fixed;
        top: 80px;
        right: 20px;
        width: 260px;
        background: var(--bg-card);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid var(--border-medium);
        border-radius: 16px;
        z-index: 9998;
        overflow: hidden;
        
        /* The pathikcomp Mechanics */
        clip-path: inset(10% 50% 90% 50% round 16px);
        transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
        pointer-events: none;
        opacity: 0;
    }

    .mobile-menu-overlay.open {
        clip-path: inset(0% 0% 0% 0% round 16px);
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu__nav {
        display: flex;
        flex-direction: column;
        padding: 8px 12px;
        gap: 0;
    }

    .mobile-menu__link {
        font-family: var(--font-body);
        font-size: 18px;
        font-weight: 500;
        color: var(--text-primary);
        text-decoration: none;
        padding: 16px 16px;
        border-radius: 12px;
        transition: transform 0.3s, opacity 0.3s, background-color 0.2s;
        
        /* Stagger Mechanics */
        position: relative;
        transform: translateY(30px);
        opacity: 0;
    }

    .mobile-menu__link:active {
        background-color: var(--bg-elevated);
    }

    /* Add subtle border between items */
    .mobile-menu__link:not(:last-of-type)::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 10%;
        height: 1px;
        background-color: var(--border-subtle);
        width: 80%;
    }

    /* Staggered transition delays for nav links and buttons */
    .mobile-menu-overlay.open .mobile-menu__nav > :nth-child(1) { transition: transform 0.4s 0.05s, opacity 0.4s 0.05s; }
    .mobile-menu-overlay.open .mobile-menu__nav > :nth-child(2) { transition: transform 0.4s 0.10s, opacity 0.4s 0.10s; }
    .mobile-menu-overlay.open .mobile-menu__nav > :nth-child(3) { transition: transform 0.4s 0.15s, opacity 0.4s 0.15s; }
    .mobile-menu-overlay.open .mobile-menu__nav > :nth-child(4) { transition: transform 0.4s 0.20s, opacity 0.4s 0.20s; }
    .mobile-menu-overlay.open .mobile-menu__nav > :nth-child(5) { transition: transform 0.4s 0.25s, opacity 0.4s 0.25s, box-shadow 0.3s, transform 0.3s; }

    /* For the btn-primary in the nav */
    .mobile-menu__nav .btn-primary {
        display: block;
    width: 100%;
    padding: 14px 0;
    margin-top: 20px;
    background: #8b34dd;
    color: #ffffff;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    border: none;
    box-shadow: none !important;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease;
    }

    .mobile-menu__nav .btn-primary:hover {
        box-shadow: none !important;
        transform: none !important;
    }

    .mobile-menu__nav .btn-primary:active {
        background: #6a22b0 !important;
        transform: scale(0.97) !important;
    }

    .mobile-menu-overlay.open .mobile-menu__link,
    .mobile-menu-overlay.open .btn-primary {
        transform: translateY(0);
        opacity: 1;
        
    }
}

html {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    overflow-x: clip;
    width: 100%;
    position: relative;
}

@media (max-width: 1024px) {
    .hero {
        padding-top: 120px !important;
    }

    .why-me,
    .portfolio,
    .pricing,
    .about,
    .approach,
    .faq,
    .contact {
        padding-top: 70px !important;
    }

    .hero__subtitle {
        font-size: clamp(12px, 3.8vw, 16px) !important;
        line-height: 1.8 !important;
        color: rgba(255, 255, 255, 0.75) !important;
        text-align: center !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }

    .hero__cta {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .hero__text {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        line-height: 1.1;
        white-space: nowrap; /* Жестко запрещаем перенос на новые строки */
    
    /* Убираем лишние отступы по бокам, чтобы тексту было куда расти */
        padding-left: 0;
        padding-right: 0;
    }

    .hero__headline {
        font-size: 6.9vw !important;
    }

    .hero__visual {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 150vw !important;
        height: 150vw !important;
        max-width: none !important;
        opacity: 0.25 !important;
        z-index: 0 !important;
        pointer-events: none !important;
    }

    .composition {
        width: 100% !important;
        height: 100% !important;
        transform: scale(1.6) !important;
    }

    .why-me__cards {
        grid-template-columns: 1fr !important;
    }

    .why-card {
        width: 100% !important;
        box-sizing: border-box !important;
        transform: scale(1) translateY(0) !important;
        box-shadow: none !important;
        border-color: rgba(255, 255, 255, 0.05) !important;
        transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }

    .why-card__title,
    .why-card__number {
        color: rgba(255, 255, 255, 0.4) !important;
        transition: color 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }

    .why-card::before,
    .why-card::after {
        display: none !important;
    }

    .why-card.is-in-focus {
        transform: scale(1.02) translateY(-4px) !important;
        box-shadow: 0 12px 32px rgba(138, 43, 226, 0.2) !important;
        border-color: rgba(255, 255, 255, 0.15) !important;
    }

    .why-card.is-in-focus .why-card__title,
    .why-card.is-in-focus .why-card__number {
        color: #ffffff !important;
    }

    .why-me__features {
        flex-direction: column !important;
        gap: 40px !important;
    }

    .why-feature {
        width: 100% !important;
    }

    .why-me__cta-pretitle {
        font-size: 14px !important;
    }

    .why-me__cta-title {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }

    .why-me__cta-buttons {
        flex-direction: column !important;
        width: 100% !important;
        align-items: stretch !important;
    }

    .why-me__cta-buttons .btn-primary,
    .why-me__cta-buttons .btn-secondary {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    .why-me__title-desktop {
        display: none !important;
    }

    .why-me__title-mobile {
        display: inline !important;
    }
}



/* Base styles for title swapping (desktop first) */
.why-me__title-mobile {
    display: none;
}

.why-me__title-desktop {
    display: inline;
}

/* ═══════════════════════════════════════════
   MOBILE SAFARI BROWSER UI
═══════════════════════════════════════════ */
.mobile-window {
    width: 100%;
    border-radius: 40px;
    background: #1c1c1e;
    border: 12px solid #000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 0 2px rgba(255, 255, 255, 0.05);
    aspect-ratio: 9 / 19.5;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-statusbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px 8px;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    background: #1c1c1e;
    z-index: 10;
}

.mobile-status-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mobile-status-icons svg {
    height: 12px;
}

.mobile-url-bar {
    background: #1c1c1e;
    padding: 6px 16px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 10;
}

.mobile-url-input {
    background: #3a3a3c;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
}

.url-domain {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mobile-window .browser-content {
    flex: 1;
    background: #000;
    overflow: hidden;
}

.mobile-window .project__image {
    width: 100%;
    height: auto;
    display: block;
}


/* ═══════════════════════════════════════════
   MOCKUP VISIBILITY TOGGLE (DESKTOP VS MOBILE)
═══════════════════════════════════════════ */
/* By default, hide mobile mockup */
.mobile-only {
    display: none !important;
}

/* By default, show desktop mockup */
.desktop-only {
    display: flex !important;
}

@media (max-width: 1024px) {

    /* Hide desktop mockup on mobile */
    .desktop-only {
        display: none !important;
    }

    /* Show mobile mockup on mobile */
    .mobile-only {
        display: flex !important;
    }

    /* Wrap the container tightly around the phone mockup */
    .project__visual-container {
        max-width: 340px;
        margin: 0 auto;
    }

    /* Resize circular button on mobile */
    .circular-btn {
        width: 100px;
        height: 100px;
        right: -20px;
    }
}

@keyframes projectShimmerMobilePulse {

    0%,
    100% {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }

    50% {
        box-shadow: 0 0 35px rgba(162, 49, 255, 0.6), inset 0 0 15px rgba(162, 49, 255, 0.3);
    }
}

@media (max-width: 1024px) {
    .mobile-window {
        border: none !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }

    /* Disable all hover scaling on mobile mockup */
    .mobile-window:hover,
    .project__visual-container:hover .mobile-window {
        transform: none !important;
    }

    .mobile-window .browser-content:hover .project__image {
        transform: none !important;
    }

    .mobile-window.is-centered {
        animation: projectShimmerMobilePulse 1s ease-in-out 1;
    }

    /* Initially darkened screen */
    .mobile-window .project__image {
        filter: brightness(0.4);
        opacity: 0.5;
        transition: filter 0.5s ease-out, opacity 0.5s ease-out;
    }

    /* Light up screen when scrolled to */
    .mobile-window.is-centered .project__image {
        filter: brightness(1);
        opacity: 1;
    }
}








@media (max-width: 1024px) {
    .project-card {
        gap: 58px;
    }
}



@media (max-width: 1024px) {

    /* ══════ Liquid Glass Track ══════ */
    .mobile-tabs {
        position: relative;
        display: flex;
        background: #111;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 100px;
        padding: 4px;
        margin-bottom: 38px;
        margin-top: 42px;
        z-index: 1;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    /* ══════ Floating Indicator ══════ */
    .mobile-tabs__indicator {
        position: absolute;
        top: 4px;
        bottom: 4px;
        left: 4px;
        width: calc(50% - 4px);
        background: linear-gradient(135deg, #9B30FF 0%, #7B1FA2 100%);
        border-radius: 100px;
        transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 1;
        box-shadow: 0 0 16px rgba(155, 48, 255, 0.35),
            0 2px 8px rgba(0, 0, 0, 0.3);
    }

    /* ══════ Tab Buttons ══════ */
    .mobile-tab__btn {
        flex: 1;
        position: relative;
        z-index: 2;
        background: transparent !important;
        border: none;
        color: rgba(255, 255, 255, 0.7) !important;
        padding: 14px 0;
        font-family: inherit;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: color 0.3s ease, transform 0.1s ease;
    }

    .mobile-tab__btn.is-active {
        color: #ffffff !important;
    }

    .mobile-tab__btn:active {
        transform: scale(0.96);
    }

    /* ══════ Custom Stacked Animation Logic ══════ */
    .mobile-cards-viewport {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        overflow-x: clip;
        overflow-y: visible;
        width: 100%;
        position: relative;
    }

    .mobile-card {
        grid-area: 1 / 1;
        /* Stack cards on top of each other */
        opacity: 0;
        pointer-events: none;
        z-index: 1;
        width: 100%;
        box-sizing: border-box;
        padding: 0 0px;
        display: flex !important;
        justify-content: center !important;
        max-width: none !important;
        flex: none !important;
    }

    .mobile-card.is-active {
        opacity: 1;
        pointer-events: auto;
        z-index: 2;
    }

    /* Animation classes triggered by JS */
    .anim-out-left {
        animation: outLeft 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    }

    .anim-out-right {
        animation: outRight 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    }

    .anim-in-right {
        animation: inRight 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    }

    .anim-in-left {
        animation: inLeft 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    }

    @keyframes outLeft {
        0% {
            transform: scale(1) translateX(0);
            opacity: 1;
        }

        100% {
            transform: scale(0.85) translateX(-100%);
            opacity: 0;
        }
    }

    @keyframes outRight {
        0% {
            transform: scale(1) translateX(0);
            opacity: 1;
        }

        100% {
            transform: scale(0.85) translateX(100%);
            opacity: 0;
        }
    }

    @keyframes inRight {
        0% {
            transform: translateX(100%);
            opacity: 0;
        }

        100% {
            transform: translateX(0);
            opacity: 1;
        }
    }

    @keyframes inLeft {
        0% {
            transform: translateX(-100%);
            opacity: 0;
        }

        100% {
            transform: translateX(0);
            opacity: 1;
        }
    }
}

@media (max-width: 1024px) {
    .price-card__title {
        font-size: 21px;
    }

    .price-card__meta-val {
        font-size: 20px;
    }

    /* Process Cards Mobile Styles */
    .process-card__text,
    .process-card__subtitle {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }

    /* Disable hover on mobile for process cards */
    .process-grid .process-card:hover {
        transform: none !important;
        box-shadow: inset 0 1px 1px var(--border-medium) !important;
    }

    .process-card:hover::before {
        background: linear-gradient(135deg, var(--border-medium) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
        animation: none !important;
    }

    .process-card:hover .process-card__icon {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Trigger the hover-like effect when scrolled into view on mobile */
    .process-grid .process-card.scroll-active {
        transform: translateY(-3px) scale(1.015) !important;
        box-shadow:
            inset 0 1px 1px rgba(255, 255, 255, 0.25),
            0 20px 50px rgba(176, 38, 255, 0.12) !important;
    }

    .process-card.scroll-active::before {
        background: linear-gradient(60deg,
                var(--border-subtle) 0%,
                rgba(176, 38, 255, 0.6) 35%,
                var(--text-muted) 50%,
                rgba(176, 38, 255, 0.6) 65%,
                var(--border-subtle) 100%) !important;
        background-size: 300% 300% !important;
        animation: borderRun 6s linear infinite !important;
    }

    .process-card.scroll-active .process-card__icon {
        opacity: 0.15 !important;
        transform: scale(1.1) rotate(-5deg) !important;
    }

    /* Disable price card hover effects on mobile */
    .pricing__cards .price-card:hover {
        transform: none !important;
        box-shadow: inset 0 1px 0 var(--border-medium) !important;
    }

    .pricing__cards .price-card--flagship:hover {
        border-color: var(--accent-alpha-30) !important;
        box-shadow: none !important;
    }

    /* Disable list item hover effects on mobile */
    .price-card__features li:hover {
        color: var(--text-secondary) !important;
    }

    .price-card__features li:hover::before {
        background: rgba(255, 255, 255, 0.3) !important;
        box-shadow: none !important;
        transform: scale(1) !important;
    }
}

/* ═══════════════════════════════════════════
   SHINE ANIMATION FOR SOLID PURPLE BUTTONS
═══════════════════════════════════════════ */
@media (hover: hover) and (pointer: fine) {

    .btn-primary,
    .price-card__btn--solid {
        position: relative;
        overflow: hidden;
    }

    .btn-primary::before,
    .price-card__btn--solid::before {
        content: '';
        display: block;
        width: 20px;
        height: 100%;
        position: absolute;
        top: 0%;
        left: 0%;
        opacity: 0;
        background: #fff;
        box-shadow: 0 0 80px 40px #fff;
        transform: skewX(-25deg);
        pointer-events: none;
    }

    .btn-primary:hover::before,
    .price-card__btn--solid:hover::before {
        animation: shine-flash 0.3s 0s linear;
    }
}

@keyframes shine-flash {
    from {
        opacity: 0;
        left: 0%;
    }

    50% {
        opacity: 1;
    }

    to {
        opacity: 0;
        left: 100%;
    }
}

/* ═══════════════════════════════════════════
   ACCESSIBILITY: REDUCED MOTION
═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {

    /* Disable smooth scrolling */
    html {
        scroll-behavior: auto !important;
    }

    /* Disable continuous and heavy animations */
    .hero__title span,
    .uiverse-btn::before,
    .uiverse-btn:hover .gradient-text,
    .btn-primary:hover::before,
    .price-card__btn--solid:hover::before,
    .why-me__gray-ellipse,
    .process-grid::before {
        animation: none !important;
        transform: none !important;
    }

    /* Disable scroll reveals (show elements immediately) */
    .reveal-up {
        opacity: 1 !important;
        transform: translate3d(0, 0, 0) !important;
        transition: none !important;
    }

    /* Simplify interactive hovers (preserve color, drop scale/movement) */
    .btn-primary:hover,
    .price-card__btn--solid:hover,
    .hero__cta:hover,
    .uiverse-btn:hover,
    .contact__submit:hover,
    .project__link:hover .project__image {
        transform: none !important;
    }

    /* Disable the expanding circle on form submit */
    .contact__submit .hover-bg {
        transition: none !important;
    }
}
