/* ============================================================
   NorthMountain.Uk  —  main stylesheet
   Aesthetic: Tech / Y2K Futuristic + Refined dark surface
   Themes: dark (default) + light
   ============================================================ */

/* ----- Reset & base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
input, textarea, select, button { font-family: inherit; }
[hidden] { display: none !important; }

/* ----- Tokens (DARK by default) ----- */
:root {
    --font-display: 'Space Grotesk', system-ui, -apple-system, Segoe UI, sans-serif;
    --font-body:    'Space Grotesk', system-ui, -apple-system, Segoe UI, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

    --text-xs: 0.8125rem;
    --text-sm: 0.9375rem;
    --text-base: 1.0625rem;
    --text-lg: 1.25rem;
    --text-xl: 1.5rem;
    --text-2xl: 2rem;
    --text-3xl: 2.75rem;
    --text-4xl: 3.5rem;
    --text-5xl: clamp(2.75rem, 6vw, 4.75rem);

    --leading-tight: 1.08;
    --leading-snug: 1.25;
    --leading-normal: 1.55;
    --leading-relaxed: 1.7;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);

    --container: 1240px;

    /* Brand */
    --accent: #7cf8ff;       /* cyan */
    --accent-2: #a070ff;     /* violet */
    --accent-soft: rgba(124, 248, 255, 0.18);
}

/* DARK theme tokens */
[data-theme="dark"] {
    --bg:                #0b0d12;
    --bg-elevated:       #11141b;
    --surface:           rgba(255,255,255,0.04);
    --surface-strong:    rgba(255,255,255,0.07);
    --text:              #eef1f7;
    --text-muted:        #a3aabd;
    --text-subtle:       #6b7388;
    --border:            rgba(255,255,255,0.08);
    --border-strong:     rgba(255,255,255,0.16);

    --glow-a: radial-gradient(circle at 30% 20%, rgba(124,248,255,0.18), transparent 60%);
    --glow-b: radial-gradient(circle at 75% 60%, rgba(160,112,255,0.22), transparent 65%);
    --grid-color: rgba(255,255,255,0.05);

    --shadow-soft: 0 1px 0 rgba(255,255,255,0.04), 0 20px 60px -30px rgba(0,0,0,0.7);
    --shadow-hover: 0 1px 0 rgba(255,255,255,0.08), 0 30px 80px -30px rgba(124,248,255,0.25);
}

/* LIGHT theme tokens */
[data-theme="light"] {
    --bg:                #f7f7f4;
    --bg-elevated:       #ffffff;
    --surface:           #ffffff;
    --surface-strong:    #fbfbf8;
    --text:              #14171f;
    --text-muted:        #545b6d;
    --text-subtle:       #8a91a3;
    --border:            rgba(20,23,31,0.10);
    --border-strong:     rgba(20,23,31,0.20);

    --accent: #2c6cff;
    --accent-2: #8b3dff;
    --accent-soft: rgba(44,108,255,0.10);

    --glow-a: radial-gradient(circle at 30% 20%, rgba(44,108,255,0.14), transparent 60%);
    --glow-b: radial-gradient(circle at 75% 60%, rgba(139,61,255,0.14), transparent 65%);
    --grid-color: rgba(20,23,31,0.05);

    --shadow-soft: 0 1px 0 rgba(20,23,31,0.04), 0 20px 50px -30px rgba(20,23,31,0.25);
    --shadow-hover: 0 1px 0 rgba(20,23,31,0.08), 0 30px 70px -30px rgba(44,108,255,0.25);
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background-color .35s var(--ease-out-expo), color .35s var(--ease-out-expo);
}

::selection { background: var(--accent); color: #0b0d12; }

/* ----- Background layers ----- */
.bg-grid {
    position: fixed; inset: 0; z-index: -3;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
    pointer-events: none;
}
.bg-glow {
    position: fixed; inset: 0; z-index: -2; pointer-events: none;
    filter: blur(20px);
    will-change: transform;
}
.bg-glow--a { background: var(--glow-a); animation: floatA 22s var(--ease-in-out) infinite alternate; }
.bg-glow--b { background: var(--glow-b); animation: floatB 28s var(--ease-in-out) infinite alternate; }
@keyframes floatA { from { transform: translate3d(0,0,0); } to { transform: translate3d(-4%, 6%, 0) scale(1.05); } }
@keyframes floatB { from { transform: translate3d(0,0,0); } to { transform: translate3d(5%, -4%, 0) scale(1.08); } }

#particles {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    width: 100%; height: 100%;
    opacity: .7;
}

/* ----- Layout ----- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-6);
}
@media (min-width: 768px) { .container { padding: 0 var(--space-10); } }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--accent); color: #000; padding: 10px 16px;
    z-index: 999; border-radius: 8px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ----- Header ----- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: color-mix(in srgb, var(--bg) 75%, transparent);
    border-bottom: 1px solid var(--border);
    transition: background-color .3s var(--ease-out-expo), border-color .3s var(--ease-out-expo);
}
.site-header__inner {
    display: flex; align-items: center; gap: var(--space-6);
    height: 72px;
}

.brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-display);
    font-weight: 600; letter-spacing: -0.01em;
    font-size: var(--text-lg);
    color: var(--text);
}
.brand__mark { width: 30px; height: 30px; flex: 0 0 30px; }
.brand__name--accent { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav {
    display: none;
    margin-left: auto;
    gap: var(--space-6);
}
.nav a {
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: 500;
    padding: 8px 10px; border-radius: 8px;
    transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: var(--surface); }

@media (min-width: 1024px) {
    .nav { display: inline-flex; }
}

.header-actions { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }
@media (min-width: 1024px) { .header-actions { margin-left: 0; } }

.lang-switch {
    display: inline-flex; align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px;
    gap: 2px;
}
.lang-switch__btn {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    transition: color .2s, background .2s;
}
.lang-switch__btn:hover { color: var(--text); }
.lang-switch__btn.is-active {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #0b0d12;
}
[data-theme="light"] .lang-switch__btn.is-active { color: #fff; }

.theme-toggle {
    width: 38px; height: 38px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    display: inline-flex; align-items: center; justify-content: center;
    position: relative;
    transition: background .2s, border-color .2s, transform .3s var(--ease-out-back);
}
.theme-toggle:hover { background: var(--surface-strong); border-color: var(--border-strong); }
.theme-toggle:active { transform: scale(.95); }
.theme-toggle .icon-sun, .theme-toggle .icon-moon { position: absolute; transition: opacity .25s, transform .35s var(--ease-out-back); }
[data-theme="dark"] .theme-toggle .icon-sun { opacity: 1; transform: rotate(0); }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(60deg) scale(.6); }
[data-theme="light"] .theme-toggle .icon-sun { opacity: 0; transform: rotate(-60deg) scale(.6); }
[data-theme="light"] .theme-toggle .icon-moon { opacity: 1; transform: rotate(0); }

.menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 38px; height: 38px;
    border-radius: 10px; background: var(--surface); border: 1px solid var(--border);
}
.menu-toggle span { display: block; width: 16px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; margin: 0 auto; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

body.is-menu-open .nav {
    display: flex; flex-direction: column;
    position: fixed; inset: 72px 0 0;
    background: var(--bg);
    padding: var(--space-8) var(--space-6);
    gap: var(--space-4);
    border-top: 1px solid var(--border);
}
body.is-menu-open .nav a { font-size: var(--text-xl); }
body.is-menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.is-menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.is-menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hide-sm { display: none; }
@media (min-width: 768px) { .hide-sm { display: inline-flex; } }

/* ----- Buttons ----- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s var(--ease-out-back), box-shadow .25s, background .25s, color .25s, border-color .25s;
    position: relative; overflow: hidden;
    white-space: nowrap;
}
.btn--sm { padding: 8px 16px; font-size: var(--text-xs); }
.btn--lg { padding: 16px 28px; font-size: var(--text-base); }
.btn--block { width: 100%; }

.btn--primary {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #0b0d12;
    box-shadow: 0 8px 30px -10px var(--accent-soft);
}
[data-theme="light"] .btn--primary { color: #fff; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px var(--accent-soft); }
.btn--primary:active { transform: translateY(0); }
.btn--primary::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.0), rgba(255,255,255,0.35), rgba(255,255,255,0.0));
    transform: translateX(-100%);
    transition: transform .8s var(--ease-out-expo);
}
.btn--primary:hover::after { transform: translateX(100%); }

.btn--ghost {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}
.btn--ghost:hover { background: var(--surface-strong); border-color: var(--border-strong); transform: translateY(-2px); }

/* ----- Hero ----- */
.hero {
    padding: var(--space-20) 0 var(--space-16);
    position: relative;
    perspective: 1400px;
    overflow: hidden;
}
@media (min-width: 768px) { .hero { padding: var(--space-24) 0 var(--space-20); } }

.hero__inner {
    text-align: center;
    max-width: 880px;
    margin: 0 auto;
    transform-style: preserve-3d;
    --px: 0;
    --py: 0;
}
.hero__badge,
.hero__title,
.hero__subtitle,
.hero__cta,
.hero__stats {
    transition: transform .25s var(--ease-out-expo);
}
.hero__badge   { transform: translate3d(calc(var(--px) * 12px),  calc(var(--py) * 6px), 0); }
.hero__title   { transform: translate3d(calc(var(--px) * 20px),  calc(var(--py) * 10px), 0) rotateX(calc(var(--py) * -3deg)) rotateY(calc(var(--px) * 3deg)); }
.hero__subtitle{ transform: translate3d(calc(var(--px) * 14px),  calc(var(--py) * 8px),  0); }
.hero__cta     { transform: translate3d(calc(var(--px) * 8px),   calc(var(--py) * 4px),  0); }
.hero__stats   { transform: translate3d(calc(var(--px) * 4px),   calc(var(--py) * 2px),  0); }

.hero__badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-bottom: var(--space-8);
}
.hero__badge-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
    animation: pulseDot 2.4s var(--ease-in-out) infinite;
}
@keyframes pulseDot {
    0%,100% { box-shadow: 0 0 12px var(--accent); transform: scale(1); }
    50% { box-shadow: 0 0 24px var(--accent); transform: scale(1.15); }
}

.hero__title {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    line-height: var(--leading-tight);
    letter-spacing: -0.025em;
    font-weight: 600;
    margin: 0 0 var(--space-6);
}
.hero__title span { display: inline; }
.hero__title-accent {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero__subtitle {
    font-size: var(--text-lg);
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto var(--space-10);
    line-height: var(--leading-relaxed);
}

.hero__cta {
    display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap;
    margin-bottom: var(--space-16);
}

.hero__stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4);
    max-width: 700px; margin: 0 auto;
    padding: var(--space-6);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.hero__stat { text-align: center; }
.hero__stat dt {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--text-2xl);
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    margin-bottom: 4px;
}
.hero__stat dd {
    margin: 0;
    font-size: var(--text-xs);
    color: var(--text-muted);
    line-height: 1.35;
}
@media (max-width: 540px) {
    .hero__stats { grid-template-columns: 1fr; }
}

/* ----- Trust marquee ----- */
.trust {
    padding: var(--space-8) 0 0;
    position: relative;
}
.trust__head {
    text-align: center;
    margin-bottom: var(--space-5);
}
.trust__title {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}
.marquee {
    position: relative;
    overflow: hidden;
    padding: var(--space-3) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background:
        linear-gradient(90deg, var(--bg) 0%, transparent 8%, transparent 92%, var(--bg) 100%);
}
.marquee::before, .marquee::after {
    content: "";
    position: absolute; top: 0; bottom: 0; width: 120px;
    z-index: 2; pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after  { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }

.marquee__track {
    display: flex;
    width: max-content;
    animation: marquee 38s linear infinite;
}
.marquee__row {
    display: flex;
    gap: var(--space-10);
    padding: 14px var(--space-5);
    flex: 0 0 auto;
}
.tool {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-mono);
    font-size: var(--text-base);
    color: var(--text-muted);
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: color .2s;
}
.tool__dot {
    width: 6px; height: 6px;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-soft);
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.tool:hover { color: var(--text); }

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

/* ----- Sections ----- */
.section { padding: var(--space-20) 0; position: relative; }
@media (min-width: 768px) { .section { padding: var(--space-24) 0; } }

.section--alt {
    background:
        linear-gradient(180deg, transparent, var(--surface) 30%, var(--surface) 70%, transparent);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section__head { text-align: center; max-width: 720px; margin: 0 auto var(--space-16); }
.section__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: var(--leading-snug);
    letter-spacing: -0.02em;
    font-weight: 600;
    margin: var(--space-3) 0 var(--space-4);
}
.section__subtitle {
    color: var(--text-muted);
    font-size: var(--text-lg);
    margin: 0;
}

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.eyebrow::before {
    content: ""; display: inline-block;
    width: 24px; height: 1px; background: var(--accent);
}

/* ----- Showcase: terminal + neural ----- */
.section--showcase { padding-top: var(--space-12); }

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}
@media (min-width: 900px) {
    .showcase-grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-6); }
}

.showcase-panel {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: border-color .3s, transform .3s var(--ease-out-expo);
}
.showcase-panel:hover { border-color: var(--border-strong); transform: translateY(-3px); }

.showcase-panel__head {
    display: flex; align-items: center; gap: var(--space-3);
    padding: 10px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-muted);
}
.showcase-panel__dots { display: inline-flex; gap: 6px; }
.showcase-panel__dots i {
    width: 11px; height: 11px; border-radius: 50%;
    background: var(--border-strong);
    display: inline-block;
}
.showcase-panel__dots i:nth-child(1) { background: #ff5f57; }
.showcase-panel__dots i:nth-child(2) { background: #febc2e; }
.showcase-panel__dots i:nth-child(3) { background: #28c840; }

.showcase-panel__title { flex: 1; color: var(--text); font-weight: 500; }
.showcase-panel__badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.showcase-panel__pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: pulseDot 1.4s var(--ease-in-out) infinite;
}
.showcase-panel__pulse--violet {
    background: var(--accent-2);
    box-shadow: 0 0 8px var(--accent-2);
}

/* Terminal */
.terminal-body {
    padding: var(--space-5) var(--space-5) var(--space-6);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.65;
    color: var(--text);
    min-height: 380px;
    max-height: 460px;
    overflow: hidden;
    background:
        linear-gradient(180deg, transparent 0%, rgba(124,248,255,0.025) 100%),
        var(--bg-elevated);
    position: relative;
}
.terminal-body::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        0deg,
        rgba(255,255,255,0.015) 0px,
        rgba(255,255,255,0.015) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
}
.term-line { white-space: pre-wrap; word-break: break-word; }
.term-line .prompt { color: var(--accent); margin-right: 6px; }
.term-line .ok { color: #4ade80; }
.term-line .warn { color: #fbbf24; }
.term-line .muted { color: var(--text-muted); }
.term-line .accent { color: var(--accent-2); }
.term-caret {
    display: inline-block;
    width: 8px; height: 14px;
    background: var(--accent);
    vertical-align: -2px;
    margin-left: 2px;
    animation: caret 1s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* Neural canvas */
.neural-canvas {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 380px;
    max-height: 460px;
    background:
        radial-gradient(circle at 30% 40%, rgba(160,112,255,0.15), transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(124,248,255,0.15), transparent 50%),
        var(--bg-elevated);
}

[data-theme="light"] .terminal-body { color: #14171f; }
[data-theme="light"] .terminal-body::before { background-image: none; }

/* ----- Services grid ----- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}
@media (min-width: 700px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
    position: relative;
    perspective: 1200px;
    min-height: 460px;
    outline: none;
}
.service-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    transform-style: preserve-3d;
    transition: transform .9s var(--ease-out-expo);
    will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
    .service-card:hover .service-card__inner,
    .service-card:focus-visible .service-card__inner {
        transform: rotateY(180deg);
    }
}
.service-card.is-flipped .service-card__inner {
    transform: rotateY(180deg);
}

.service-card__face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-8) var(--space-6);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: border-color .3s, box-shadow .3s;
}
.service-card__face--back {
    transform: rotateY(180deg);
    background:
        linear-gradient(135deg, var(--accent-soft), transparent 60%),
        var(--surface);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-4);
}
.service-card__face::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 40%);
    opacity: 0; transition: opacity .35s;
    pointer-events: none;
}
.service-card:hover .service-card__face,
.service-card:focus-visible .service-card__face {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-hover);
}
.service-card:hover .service-card__face::before { opacity: 1; }

.service-card__back-eyebrow {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.service-card__best {
    display: grid;
    gap: var(--space-3);
    margin-top: var(--space-3);
    flex: 1;
}
.service-card__best li {
    position: relative;
    padding-left: 28px;
    font-size: var(--text-base);
    line-height: 1.45;
    color: var(--text);
}
.service-card__best li::before {
    content: "→";
    position: absolute; left: 0; top: 0;
    color: var(--accent-2);
    font-family: var(--font-mono);
    font-weight: 600;
}
.service-card__back-price {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--text-muted);
    padding-top: var(--space-3);
    border-top: 1px dashed var(--border);
}
.service-card__cta {
    align-self: flex-start;
    margin-top: var(--space-1);
}

.service-card__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-soft), transparent);
    border: 1px solid var(--border-strong);
    color: var(--accent);
    margin-bottom: var(--space-5);
}
.service-card__title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    margin: 0 0 var(--space-3);
    letter-spacing: -0.01em;
}
.service-card__desc {
    color: var(--text-muted);
    margin: 0 0 var(--space-5);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}
.service-card__features {
    display: grid; gap: 8px;
    margin-bottom: var(--space-5);
}
.service-card__features li {
    position: relative;
    padding-left: 22px;
    font-size: var(--text-sm);
    color: var(--text);
}
.service-card__features li::before {
    content: ""; position: absolute; left: 0; top: 8px;
    width: 12px; height: 12px;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    border-radius: 3px;
    transform: rotate(45deg);
}
.service-card__price {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px;
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* ----- Process ----- */
.process-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
    counter-reset: step;
}
@media (min-width: 700px) { .process-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process-list { grid-template-columns: repeat(4, 1fr); } }

.process-step {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    display: flex; gap: var(--space-4);
    transition: transform .3s var(--ease-out-expo), border-color .3s;
}
.process-step:hover { transform: translateY(-4px); border-color: var(--accent); }
.process-step__num {
    font-family: var(--font-mono);
    font-size: var(--text-xl);
    color: var(--accent);
    flex: 0 0 auto;
    font-weight: 500;
}
.process-step__title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    margin: 0 0 var(--space-2);
}
.process-step__text {
    margin: 0;
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}

/* ----- Why ----- */
.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}
@media (min-width: 700px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }

.why-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    transition: border-color .3s, transform .3s var(--ease-out-expo);
}
.why-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.why-card__bullet {
    width: 14px; height: 14px;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    border-radius: 50%;
    margin-bottom: var(--space-4);
    box-shadow: 0 0 24px var(--accent-soft);
}
.why-card__title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    margin: 0 0 var(--space-3);
}
.why-card__text {
    color: var(--text-muted);
    margin: 0;
    line-height: var(--leading-relaxed);
}

/* ----- FAQ ----- */
.section--faq { background: var(--surface-strong); border-top: 1px solid var(--border); }
.faq-list { max-width: 880px; margin: 0 auto; }
.faq-cat {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: var(--space-10) 0 var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border);
}
.faq-cat:first-of-type { margin-top: 0; }

.faq-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
    transition: border-color .25s, box-shadow .25s;
    overflow: hidden;
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item[open] {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.faq-item__q {
    list-style: none;
    cursor: pointer;
    padding: var(--space-5) var(--space-6);
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text);
    user-select: none;
    transition: color .2s;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q:hover { color: var(--accent); }
.faq-item__chev {
    flex: 0 0 auto;
    color: var(--text-muted);
    transition: transform .3s var(--ease-out-expo), color .2s;
}
.faq-item[open] .faq-item__chev {
    transform: rotate(180deg);
    color: var(--accent);
}
.faq-item__a {
    padding: 0 var(--space-6) var(--space-5);
    color: var(--text-muted);
    line-height: var(--leading-relaxed);
    animation: faqOpen .35s var(--ease-out-expo);
}
@keyframes faqOpen {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ----- Contact ----- */
.section--contact { background: var(--surface-strong); border-top: 1px solid var(--border); }
.contact-wrap {
    display: grid; gap: var(--space-12);
    grid-template-columns: 1fr;
}
@media (min-width: 900px) {
    .contact-wrap { grid-template-columns: 1fr 1.1fr; gap: var(--space-16); align-items: start; }
}

.contact-info .eyebrow { margin-bottom: var(--space-3); }
.contact-info .section__title { text-align: left; }
.contact-info .section__subtitle { text-align: left; margin-bottom: var(--space-10); }

.contact-direct {
    padding: var(--space-5) var(--space-6);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-6);
}
.contact-direct__title {
    margin: 0 0 6px;
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: var(--font-mono);
}
.contact-direct__link {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text);
    transition: color .2s;
}
.contact-direct__link:hover { color: var(--accent); }

.socials__title {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: var(--font-mono);
    margin: 0 0 var(--space-3);
}
.socials__row { display: flex; gap: var(--space-3); flex-wrap: wrap; }

.social-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    font-weight: 500;
    transition: transform .2s, border-color .2s, color .2s, background .2s;
}
.social-btn:hover { transform: translateY(-2px); }
.social-btn--tg:hover { color: #29a3eb; border-color: #29a3eb; }
.social-btn--wa:hover { color: #25d366; border-color: #25d366; }

/* Form */
.contact-form {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    box-shadow: var(--shadow-soft);
    position: relative;
}
.hp { position: absolute; left: -9999px; top: 0; height: 0; overflow: hidden; }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--space-5); }
.field label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text);
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.field label strong {
    font-family: var(--font-mono);
    color: var(--accent);
    font-weight: 500;
    background: var(--accent-soft);
    padding: 2px 8px; border-radius: 6px;
}
.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: var(--text-base);
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: var(--leading-relaxed); }
.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-elevated);
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-subtle); }
.field__hint { font-size: var(--text-xs); color: var(--text-muted); }

.field--check label {
    flex-direction: row; align-items: flex-start;
    cursor: pointer; font-weight: 400; color: var(--text-muted);
    font-size: var(--text-sm); line-height: 1.45;
}
.field--check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }

.btn__loading { display: none; }
.contact-form.is-loading .btn__label { display: none; }
.contact-form.is-loading .btn__loading { display: inline; }

.form-status {
    margin-top: var(--space-4);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    display: none;
}
.form-status.is-success { display: block; background: rgba(34,197,94,0.12); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.form-status.is-error { display: block; background: rgba(239,68,68,0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }

/* ----- Footer ----- */
.site-footer {
    border-top: 1px solid var(--border);
    margin-top: var(--space-16);
    padding: var(--space-16) 0 var(--space-8);
}
.site-footer__inner {
    display: grid;
    gap: var(--space-10);
    grid-template-columns: 1fr;
    margin-bottom: var(--space-12);
}
@media (min-width: 700px) {
    .site-footer__inner { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
}
.site-footer__tagline {
    color: var(--text-muted);
    margin: var(--space-4) 0 0;
    max-width: 280px;
    font-size: var(--text-sm);
}
.site-footer__services-text {
    margin: var(--space-3) 0 0;
    max-width: 320px;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    line-height: 1.7;
    color: var(--text-subtle);
    letter-spacing: 0.02em;
}
.site-footer__col h4 {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0 0 var(--space-4);
    font-weight: 500;
}
.site-footer__col li { margin-bottom: 10px; }
.site-footer__col a {
    color: var(--text);
    font-size: var(--text-sm);
    transition: color .2s;
}
.site-footer__col a:hover { color: var(--accent); }

.site-footer__bottom {
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
    color: var(--text-subtle);
    font-size: var(--text-xs);
}

/* ----- Reveal animation ----- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--ease-out-expo), transform .8s var(--ease-out-expo);
    transition-delay: calc(var(--i, 0) * 60ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
    #particles { display: none; }
}
