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

/* ===== Preloader ===== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgb(249, 250, 251);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.preloader__logo {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgb(30, 120, 230);
    animation: preloaderPulse 1s ease-in-out infinite;
}

.preloader__logo span { color: rgb(30, 120, 230); }

.preloader__bar {
    width: 8rem;
    height: 3px;
    background: rgba(30, 120, 230, 0.15);
    border-radius: 2px;
    overflow: hidden;
}

.preloader__fill {
    width: 0%;
    height: 100%;
    background: rgb(30, 120, 230);
    animation: preloaderFill 1.2s ease-out forwards;
}

@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes preloaderFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ===== Custom Cursor ===== */
.cursor {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(30, 120, 230, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: width 0.2s, height 0.2s, border-color 0.2s;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    display: none;
}

.cursor.active {
    width: 52px;
    height: 52px;
    border-color: rgba(30, 120, 230, 0.7);
}

.cursor-dot {
    position: fixed;
    width: 5px;
    height: 5px;
    background: rgb(30, 120, 230);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    display: none;
}

@media (pointer: fine) {
    .cursor, .cursor-dot { display: block; }
    body { cursor: none; }
    a, button, input, textarea, .btn, .service-card, .case-card, .stack__item { cursor: none; }
}

/* ===== Scroll Progress ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, rgb(30, 120, 230), #a855f7);
    z-index: 10001;
    transition: width 0.05s linear;
}

:root {
    --bg: rgb(249, 250, 251);
    --white: #ffffff;
    --black: rgb(0, 0, 0);
    --text: rgb(0, 0, 0);
    --text-secondary: rgb(120, 120, 120);
    --accent: rgb(30, 120, 230);
    --border: rgba(150, 150, 150, 0.4);
    --border-light: rgb(234, 236, 242);
    --border-accent: rgba(30, 120, 230, 0.2);
    --border-accent-hover: rgba(30, 120, 230, 0.5);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-hand: 'Caveat', cursive;
}

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

@media (max-width: 375px) { html { font-size: 14px; } }
@media (max-width: 320px) { html { font-size: 12px; } }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-weight: 500;
    font-size: 1rem;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

.container {
    max-width: 78rem;
    margin: 0 auto;
    padding: 0 3rem;
}

@media (max-width: 80rem) {
    .container { padding: 0 1.5rem; }
}

a { text-decoration: none; color: inherit; transition: all 0.25s; }

/* ===== Background Dots ===== */
.bg-dots {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-dot {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: dotFade 4s ease-in-out infinite;
}

@keyframes dotFade {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.5; }
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 78rem;
    height: 6rem;
    padding: 0 3rem;
}

@media (max-width: 80rem) {
    .header__inner { width: 100%; padding: 0 1.5rem; }
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--black);
    z-index: 10;
}

.logo span { color: var(--accent); }

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
}
.nav a:hover { color: var(--accent); }

.header__right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header__phone {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

.header__tg {
    color: var(--accent);
    display: flex;
    align-items: center;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 10;
}
.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    transition: all 0.25s;
}

/* ===== Buttons ===== */
.btn {
    font-family: inherit;
    font-weight: 600;
    white-space: nowrap;
    outline: none;
    border: 0.0625rem solid var(--border-accent-hover);
    border-radius: 0;
    color: var(--accent);
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 2.5rem;
    font-size: 1rem;
    transition: all 0.25s ease;
    cursor: pointer;
}
.btn:hover { background: rgba(30, 120, 230, 0.05); }
.btn__icon { font-size: 1.1rem; }

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    z-index: 1;
    background: linear-gradient(135deg, #0a0e1a 0%, #0f172a 40%, #1a1040 100%);
    overflow: hidden;
    padding: 8rem 0 4rem;
}

.hero__stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero__star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    animation: starTwinkle var(--dur) ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.8; }
}

.hero__glow {
    position: absolute;
    width: 50rem;
    height: 50rem;
    right: -10rem;
    top: -10rem;
    background: radial-gradient(circle, rgba(30, 120, 230, 0.12) 0%, rgba(124, 58, 237, 0.06) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
}

.hero__container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 26rem 1fr;
    align-items: center;
    gap: 3rem;
}

/* ===== Hero Text ===== */
.hero__text {
    position: relative;
    z-index: 2;
}

.hero__label {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: rgba(30, 120, 230, 0.9);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    opacity: 0;
    animation: heroFadeUp 0.6s ease-out 1.6s forwards;
}

.hero__title {
    font-size: 3.5rem;
    line-height: 1.12;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: heroFadeUp 0.8s ease-out 1.8s forwards;
}

.hero__accent {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__sub {
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
    max-width: 26rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: heroFadeUp 0.8s ease-out 2s forwards;
}

.hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 0;
    color: #3b82f6;
    font-weight: 600;
    font-size: 1rem;
    transition: border-color 0.3s, color 0.3s, box-shadow 0.3s, background 0.3s;
    opacity: 0;
    animation: heroFadeUp 0.8s ease-out 2.2s forwards;
}

.hero__btn:hover {
    border-color: rgba(59, 130, 246, 0.8);
    color: #fff;
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(1.5rem); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Hero Scroll Indicator ===== */
.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 3;
    opacity: 0;
    animation: heroFadeUp 0.6s ease-out 3s forwards;
}

.hero__scroll span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.3);
}

.hero__scroll-line {
    width: 1px;
    height: 3rem;
    background: linear-gradient(to bottom, rgba(59, 130, 246, 0.6), transparent);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(0.5rem); opacity: 0.3; }
}

/* ===== 3D Code Editor ===== */
.hero__editor-wrap {
    perspective: 1200px;
    z-index: 1;
    width: 34rem;
    max-width: 100%;
    justify-self: end;
    opacity: 0;
    animation: editorAppear 1s cubic-bezier(0.16, 1, 0.3, 1) 2.4s forwards;
}

@keyframes editorAppear {
    from { opacity: 0; transform: translateY(3rem) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero__editor {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(59, 130, 246, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    will-change: transform;
    /* Default slight tilt */
    transform: rotateY(-8deg) rotateX(4deg);
}

/* ===== Editor Title Bar ===== */
.editor__titlebar {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(30, 41, 59, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 0.75rem;
}

.editor__dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot--red { background: #ef4444; }
.dot--yellow { background: #eab308; }
.dot--green { background: #22c55e; }

.editor__filename {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    padding: 2px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.editor__tab--dim {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
    margin-left: auto;
}

/* ===== Code Area ===== */
.editor__code {
    display: flex;
    padding: 1.25rem 0;
    height: 18rem;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}
.editor__code::-webkit-scrollbar { display: none; }

.editor__lines {
    flex-shrink: 0;
    padding: 0 0.75rem 0 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.15);
    user-select: none;
    text-align: right;
    width: 3rem;
    white-space: pre;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.editor__content {
    flex: 1;
    min-width: 0;
    padding: 0 1rem 0 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    overflow: visible;
}

.code-line {
    display: block;
    line-height: 1.65;
    white-space: nowrap;
}

/* Syntax colors */
.syn-kw { color: #c084fc; }       /* purple - keywords */
.syn-fn { color: #60a5fa; }       /* blue - functions */
.syn-str { color: #34d399; }      /* green - strings */
.syn-num { color: #f59e0b; }      /* amber - numbers */
.syn-cm { color: rgba(255,255,255,0.25); font-style: italic; } /* comments */
.syn-type { color: #38bdf8; }     /* cyan - types */
.syn-op { color: rgba(255,255,255,0.5); } /* operators */
.syn-br { color: rgba(255,255,255,0.35); } /* brackets */

.editor__cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #3b82f6;
    animation: cursorBlink 1s step-end infinite;
    vertical-align: text-bottom;
    margin-left: 1px;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ===== Terminal ===== */
.editor__terminal {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal__bar {
    padding: 0.4rem 1rem;
    background: rgba(30, 41, 59, 0.5);
}

.terminal__label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.terminal__body {
    padding: 0.75rem 1rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    height: 10rem;
    overflow-y: auto;
    scrollbar-width: none;
}
.terminal__body::-webkit-scrollbar { display: none; }

.terminal__prompt {
    color: #22c55e;
    margin-right: 0.5rem;
}

.terminal__cursor {
    color: #22c55e;
    animation: cursorBlink 1s step-end infinite;
}

.terminal__output {
    display: block;
    margin-top: 0.25rem;
}

.terminal__output--success { color: #34d399; }
.terminal__output--info { color: #60a5fa; }
.terminal__output--dim { color: rgba(255,255,255,0.3); }

/* ===== Hero Responsive ===== */
@media (max-width: 72rem) {
    .hero__container { grid-template-columns: 22rem 1fr; }
    .hero__title { font-size: 2.75rem; }
}

@media (max-width: 64rem) {
    .hero__container { grid-template-columns: 1fr; }
    .hero__title { font-size: 2.5rem; }
    .hero__editor { transform: rotateY(-3deg) rotateX(2deg); }
}

@media (max-width: 48rem) {
    .hero { padding: 7rem 0 5rem; }
    .hero__title { font-size: 2rem; }
    .hero__editor-wrap { display: none; }
}

@media (max-width: 40rem) {
    .hero__title { font-size: 1.75rem; }
}

/* Override accent for non-hero areas */
.accent { color: var(--accent); }

/* ===== Section Common ===== */
.section {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.section__text {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text);
    max-width: 42rem;
    padding-bottom: 2rem;
}

.section__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.section__header-left {
    flex: 1;
    max-width: 50rem;
}

.section__header-right {
    flex-shrink: 0;
    padding-left: 2rem;
}

.section__cta {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

/* Handwritten decorative text */
.handwritten {
    font-family: var(--font-hand);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
    line-height: 1.2;
}

/* ========================================================
   DARK NEON BENTO
   ======================================================== */
/* --- Section base --- */
.bento {
    position: relative;
    padding: 7rem 0 8rem;
    background: #08090f;
    overflow: hidden;
    z-index: 1;
}

.bento__container {
    position: relative;
    z-index: 2;
}

/* --- Ambient glow blobs --- */
.bento__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}
.bento__glow--1 {
    width: 600px; height: 600px;
    top: -10%; left: -8%;
    background: radial-gradient(circle, rgba(0,210,255,0.12) 0%, transparent 70%);
}
.bento__glow--2 {
    width: 500px; height: 500px;
    bottom: -15%; right: -5%;
    background: radial-gradient(circle, rgba(139,92,246,0.10) 0%, transparent 70%);
}

/* --- Particles container --- */
.bento__particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.bento__particle {
    position: absolute;
    border-radius: 50%;
    animation: bentoFloat linear infinite;
}

@keyframes bentoFloat {
    0%   { transform: translateY(0) scale(1); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-100vh) scale(0.5); opacity: 0; }
}

/* --- Header --- */
.bento__header {
    margin-bottom: 3.5rem;
}

.bento__label {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #00d4ff;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.bento__title {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #fff;
}

.bento__title span {
    background: linear-gradient(135deg, #00d4ff 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bento__desc {
    margin-top: 1.2rem;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.45);
    max-width: 32rem;
    line-height: 1.6;
}

/* --- Bento Grid --- */
.bento__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
    gap: 1.25rem;
}

.bento__card--hero  { grid-column: 1 / 3; grid-row: 1; }
.bento__card--tall  { grid-column: 3; grid-row: 1 / 3; }
.bento__card--wide  { grid-column: 1 / 4; }

/* --- Card --- */
.bento__card {
    position: relative;
    border-radius: 1.25rem;
    padding: 2.2rem 2rem;
    min-height: 14rem;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.4s ease,
                box-shadow 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bento__card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(0, 212, 255, 0.25);
    box-shadow:
        0 0 40px rgba(0, 212, 255, 0.08),
        0 30px 80px rgba(0,0,0,0.4);
}

/* --- Animated gradient mesh bg --- */
.bento__card-mesh {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    border-radius: 1.25rem;
}

.bento__card:hover .bento__card-mesh {
    opacity: 1;
}

.bento__card[data-step="1"] .bento__card-mesh {
    background: radial-gradient(ellipse at 20% 50%, rgba(0,210,255,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 80%, rgba(139,92,246,0.10) 0%, transparent 50%);
}
.bento__card[data-step="2"] .bento__card-mesh {
    background: radial-gradient(ellipse at 50% 20%, rgba(139,92,246,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 30% 90%, rgba(236,72,153,0.10) 0%, transparent 50%);
}
.bento__card[data-step="3"] .bento__card-mesh {
    background: radial-gradient(ellipse at 70% 30%, rgba(0,210,255,0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 20% 80%, rgba(16,185,129,0.10) 0%, transparent 50%);
}
.bento__card[data-step="4"] .bento__card-mesh {
    background: radial-gradient(ellipse at 30% 40%, rgba(236,72,153,0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 70%, rgba(0,210,255,0.10) 0%, transparent 50%);
}
.bento__card[data-step="5"] .bento__card-mesh {
    background: radial-gradient(ellipse at 50% 50%, rgba(139,92,246,0.12) 0%, transparent 50%),
                radial-gradient(ellipse at 10% 20%, rgba(0,210,255,0.10) 0%, transparent 50%),
                radial-gradient(ellipse at 90% 80%, rgba(236,72,153,0.08) 0%, transparent 50%);
}

/* --- Neon glow on card border hover --- */
.bento__card-glow {
    position: absolute;
    inset: -1px;
    border-radius: 1.25rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: conic-gradient(from 180deg, #00d4ff, #8b5cf6, #ec4899, #00d4ff);
    filter: blur(6px);
}

.bento__card:hover .bento__card-glow {
    opacity: 0.35;
}

/* --- Step number --- */
.bento__step {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 7rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.5s ease, color 0.5s ease;
}

.bento__card:hover .bento__step {
    opacity: 0.12;
    color: #00d4ff;
}

/* --- Card content --- */
.bento__card-content {
    position: relative;
    z-index: 2;
}

.bento__card-icon {
    width: 2.8rem;
    height: 2.8rem;
    margin-bottom: 1.2rem;
    color: #00d4ff;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.4s ease;
}

.bento__card:hover .bento__card-icon {
    opacity: 1;
    transform: scale(1.1);
}

.bento__card-icon svg {
    width: 100%;
    height: 100%;
}

.bento__card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.bento__card p {
    font-size: 0.92rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.45);
    transition: color 0.4s ease;
}

.bento__card:hover p {
    color: rgba(255,255,255,0.65);
}

/* --- Shimmer on hover --- */
.bento__shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
    transform: skewX(-15deg);
    z-index: 3;
    pointer-events: none;
    transition: none;
}

.bento__card:hover .bento__shimmer {
    animation: bentoShimmer 0.8s ease-out forwards;
}

@keyframes bentoShimmer {
    0%   { left: -100%; }
    100% { left: 150%; }
}

/* --- Responsive --- */
@media (max-width: 64rem) {
    .bento__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento__card--hero  { grid-column: 1 / 3; }
    .bento__card--tall  { grid-column: auto; grid-row: auto; }
    .bento__card--wide  { grid-column: 1 / 3; }
    .bento__title { font-size: 3rem; }
}

@media (max-width: 40rem) {
    .bento {
        padding: 4rem 0 5rem;
    }
    .bento__grid {
        grid-template-columns: 1fr;
    }
    .bento__card--hero,
    .bento__card--tall,
    .bento__card--wide {
        grid-column: 1;
        grid-row: auto;
    }
    .bento__card { min-height: 11rem; }
    .bento__title { font-size: 2.2rem; }
    .bento__step { font-size: 5rem; }
}

/* ===== Legacy compat ===== */
@media (max-width: 64rem) {
    .section__header { flex-direction: column; }
    .section__header-right { padding-left: 0; margin-top: 1rem; }
}

/* ===== Services ===== */
.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-card {
    border: 1px solid var(--border-accent);
    border-radius: 0;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.25s;
    background: transparent;
    backdrop-filter: blur(4px);
}

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

.service-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

@media (max-width: 80rem) {
    .services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 48rem) {
    .services__grid { grid-template-columns: 1fr; }
}

/* ===== Stack ===== */
.stack__grid {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.stack__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.25s;
}

.stack__item:hover { transform: scale(1.1); }

.stack__icon {
    width: 5rem;
    height: 5rem;
}

.stack__label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

@media (max-width: 48rem) {
    .stack__grid { justify-content: center; }
    .stack__icon { width: 3.5rem; height: 3.5rem; }
}

/* ===== Cases ===== */
.cases__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.case-card {
    cursor: pointer;
    transition: transform 0.25s;
}
.case-card:hover { transform: translateY(-4px); }

.case-card__img {
    height: 16rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.case-card__info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.case-card__info p {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
}

.case-card__arrow {
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: transform 0.25s;
}

.case-card:hover .case-card__arrow {
    transform: translateX(4px);
    color: var(--accent);
}

@media (max-width: 64rem) {
    .cases__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 48rem) {
    .cases__grid { grid-template-columns: 1fr; }
}

/* ===== Partners ===== */
.partners__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem 4rem;
    align-items: center;
    margin-top: 2rem;
}

.partner {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    opacity: 0.25;
    filter: grayscale(1);
    transition: all 0.25s;
    letter-spacing: 1px;
}

.partner:hover {
    opacity: 0.7;
    filter: grayscale(0);
}

/* ===== Contact ===== */
.contact__inner {
    max-width: 38rem;
}

.contact__logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.contact__logo span { color: var(--accent); }

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form__group label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--black);
}

.form__group input,
.form__group textarea {
    font-family: var(--font);
    font-size: 1rem;
    padding: 0.75rem 0;
    border: none;
    border-bottom: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    outline: none;
    transition: border-color 0.25s;
    resize: vertical;
}

.form__group input:focus,
.form__group textarea:focus {
    border-bottom-color: var(--accent);
}

.form__group input::placeholder,
.form__group textarea::placeholder {
    color: rgb(180, 180, 180);
}

.form__hint {
    font-size: 0.875rem;
    color: var(--accent);
    margin-top: 0.25rem;
}

.contact__form .btn {
    align-self: flex-start;
    margin-top: 1rem;
}

.form__success {
    display: none;
    padding: 1rem;
    color: var(--accent);
    font-weight: 600;
}
.form__success.visible { display: block; }

/* ===== Stats ===== */
.stats {
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat {
    padding: 2rem 0;
}

.stat__num {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--black);
    line-height: 1;
    display: inline;
}

.stat__plus {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat__label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 500;
}

@media (max-width: 48rem) {
    .stats__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 40rem) {
    .stats__grid { grid-template-columns: 1fr; }
    .stat__num { font-size: 2.5rem; }
}

/* ===== Smooth tilt on cards ===== */
.tilt-card {
    transition: transform 0.15s ease-out;
    will-change: transform;
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid rgba(75, 85, 99, 0.1);
    padding: 2.5rem 0;
    position: relative;
    z-index: 1;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__nav {
    display: flex;
    gap: 2rem;
}
.footer__nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}
.footer__nav a:hover { color: var(--accent); }

.footer__right p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

@media (max-width: 48rem) {
    .footer__inner {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .footer__nav { flex-wrap: wrap; justify-content: center; }
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== DESIGN BOOST ===== */

/* Gradient accent text */
.accent {
    background: linear-gradient(135deg, rgb(30, 120, 230) 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Noise texture overlay for depth */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}

/* Header states */
.header {
    transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}

/* Default state on hero — light text */
.header .logo,
.header .nav a,
.header .header__phone {
    transition: color 0.3s;
}

.header:not(.header--scrolled) .logo,
.header:not(.header--scrolled) .nav a,
.header:not(.header--scrolled) .header__phone {
    color: rgba(255, 255, 255, 0.85);
}
.header:not(.header--scrolled) .burger span {
    background: rgba(255, 255, 255, 0.85);
}

/* Dark blur on hero scroll */
.header--dark {
    background: rgba(10, 14, 26, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Light after hero */
.header--scrolled {
    background: rgba(249, 250, 251, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.header--scrolled .logo,
.header--scrolled .nav a,
.header--scrolled .header__phone {
    color: var(--text) !important;
}
.header--scrolled .burger span {
    background: var(--black) !important;
}
.header--scrolled .header__tg {
    color: var(--accent);
}
.header--scrolled .logo {
    background: linear-gradient(135deg, rgb(0,0,0) 40%, rgb(30, 120, 230) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Gradient border on service cards */
.service-card {
    position: relative;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(30,120,230,0.25), rgba(124,58,237,0.15)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none;
    transition: opacity 0.25s;
}
.service-card:hover::before {
    background: linear-gradient(135deg, rgba(30,120,230,0.5), rgba(124,58,237,0.35)) border-box;
}
.service-card:hover {
    box-shadow: 0 8px 32px rgba(30, 120, 230, 0.1), 0 0 0 1px rgba(30,120,230,0.08);
}

/* Button fill from left on hover */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 0;
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(30, 120, 230, 0.06);
    transform: translateX(-101%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}
.btn:hover::after { transform: translateX(0); }
.btn:hover { background: transparent; }

/* Nav link underline animation */
.nav a {
    position: relative;
}
.nav a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, rgb(30, 120, 230), #7c3aed);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav a:hover::after { width: 100%; }
.nav a:hover { color: inherit; }

/* Stack items hover glow */
.stack__item:hover .stack__icon {
    filter: drop-shadow(0 0 10px rgba(30, 120, 230, 0.4));
    transform: scale(1.1) translateY(-3px);
    transition: filter 0.3s, transform 0.3s;
}
.stack__icon {
    transition: filter 0.3s, transform 0.3s;
}

/* Case cards shadow glow */
.case-card:hover {
    box-shadow: 0 16px 48px rgba(30, 120, 230, 0.12), 0 4px 16px rgba(0,0,0,0.06);
}

/* Stats numbers gradient */
.stat__num {
    background: linear-gradient(135deg, rgb(30, 120, 230), #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat__plus {
    background: linear-gradient(135deg, rgb(30, 120, 230), #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section big background number */
.section {
    position: relative;
}

/* Logo — text fill handled by header states */

/* Handwritten text boost */
.handwritten {
    background: linear-gradient(135deg, rgb(30, 120, 230) 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.8rem;
}

/* Telegram icon glow on hover */
.header__tg:hover {
    filter: drop-shadow(0 0 8px rgba(30, 120, 230, 0.6));
    transform: scale(1.15);
}

/* Shine shimmer on service cards */
@keyframes shimmer {
    0% { transform: translateX(-100%) skewX(-15deg); }
    100% { transform: translateX(200%) skewX(-15deg); }
}
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: translateX(-100%) skewX(-15deg);
    pointer-events: none;
}
.service-card:hover::after {
    animation: shimmer 0.7s ease-in-out;
}

/* Partner logos hover colour */
.partner:hover {
    color: var(--accent);
}


/* Hero title word highlight */
.hero__title {
    letter-spacing: -0.02em;
}

/* Contact form focus glow */
.form__group input:focus,
.form__group textarea:focus {
    border-bottom-color: rgb(30, 120, 230);
    box-shadow: 0 2px 0 rgba(30,120,230,0.2);
}

/* Section divider subtle gradient */
.section + .section {
    border-top: 1px solid rgba(30, 120, 230, 0.05);
}

/* ===== Mobile Nav ===== */
@media (max-width: 64rem) {
    .nav, .header__phone {
        display: none;
    }
    .nav.open {
        position: fixed;
        display: flex;
        flex-direction: column;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(4px);
        z-index: 100;
        padding: 8rem 3rem;
        gap: 2rem;
    }
    .nav.open a { font-size: 1.5rem; font-weight: 700; }
    .burger { display: flex; }
}
