/* ═══════════════════════════════════════════════════════════
   ZYVIX SOLUTIONS — DESIGN SYSTEM
   A dark, signal-on-black identity built around one motif:
   the orbiting network sphere (trust · connectivity · reach).
   ═══════════════════════════════════════════════════════════ */

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

:root {
    /* brand */
    --primary: #6C63FF;
    --primary-light: #8B83FF;
    --primary-dark: #4A42C4;
    --primary-glow: rgba(108, 99, 255, 0.35);
    /* Slightly deeper shades reserved for solid buttons that carry white
       text — keeps white-on-purple at/above WCAG AA (4.5:1) while the
       brighter --primary stays free for badges, borders, and icons. */
    --primary-btn: #635AF0;
    --primary-btn-hover: #6B62F3;

    /* surfaces */
    --bg: #0B0C10;
    --bg-elevated: #14141c;
    --bg-light: #1F1F2A;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.06);

    /* text */
    --text: #E4E6EB;
    --text-secondary: #A0A5B0;
    --text-tertiary: #7D8494;

    /* borders */
    --border: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.16);

    /* accents (used sparingly, one job each) */
    --accent-amber: #F59E0B;   /* ratings only */
    --accent-green: #34D399;   /* success states only */
    --accent-danger: #F87171;  /* form errors only */

    /* geometry */
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 26px;
    --container: 1200px;
    --nav-h: 78px;

    /* elevation */
    --shadow-sm: 0 2px 14px rgba(0, 0, 0, 0.28);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.5);

    /* motion */
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: 0.2s ease;

    /* type */
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    font-family: var(--font-display);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; }
svg { display: block; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── ACCESSIBILITY ── */
.skip-link {
    position: fixed;
    top: -60px;
    left: 16px;
    z-index: 10000;
    background: var(--primary-btn);
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: top 0.25s ease;
}
.skip-link:focus { top: 16px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 3px;
    border-radius: 4px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--primary-dark); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── PRELOADER ── */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}
#preloader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
#preloader .loader {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid rgba(108, 99, 255, 0.15);
    border-top-color: var(--primary);
    animation: spin 0.9s linear infinite;
}
#preloader p {
    margin-top: 18px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    text-transform: uppercase;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    #preloader { display: none; }
}

/* ── BACKGROUND CANVAS & AMBIENT AURA ── */
#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    display: block;
}
.reduced-motion #bg-canvas { display: none; }
.reduced-motion body {
    background:
        radial-gradient(ellipse 900px 600px at 80% 10%, rgba(108,99,255,0.12), transparent 60%),
        radial-gradient(ellipse 700px 500px at 15% 85%, rgba(0,245,212,0.06), transparent 60%),
        var(--bg);
}

/* ── NAVIGATION ── */
nav#navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: rgba(11, 12, 16, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
nav#navbar.scrolled {
    background: rgba(11, 12, 16, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    padding: 12px 0;
}
nav .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.nav-brand { display: flex; align-items: center; gap: 4px; font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.nav-brand .brand-name { color: #fff; }
.nav-brand .brand-accent { color: var(--primary); }
.nav-brand .tagline {
    font-size: 0.55rem;
    font-weight: 500;
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    padding: 3px 12px;
    border-radius: 50px;
    border: 1px solid var(--border);
    margin-left: 8px;
}

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: #fff; }

.nav-cta {
    background: var(--primary-btn);
    color: #fff !important;
    padding: 9px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--primary-glow); background: var(--primary-btn-hover) !important; }
.nav-cta::after { display: none !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── LAYOUT / PAGE SHELL ── */
main { position: relative; z-index: 1; display: block; padding-top: var(--nav-h); min-height: 60vh; }
section { padding: 60px 0; }
section.tight { padding: 36px 0; }

.page-header { padding: 64px 0 40px; position: relative; z-index: 1; }
.page-header .breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 18px;
}
.page-header .breadcrumb a { color: var(--text-tertiary); transition: var(--transition-fast); }
.page-header .breadcrumb a:hover { color: var(--primary-light); }
.page-header .breadcrumb .sep { opacity: 0.5; }
.page-header .breadcrumb .current { color: var(--text-secondary); }

.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-light);
    background: rgba(108, 99, 255, 0.1);
    padding: 5px 16px;
    border-radius: 50px;
    border: 1px solid rgba(108, 99, 255, 0.18);
    margin-bottom: 18px;
}
.section-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 16px;
}
.section-title .highlight {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-desc {
    font-size: 1.08rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.8;
    margin-bottom: 36px;
}
.section-desc.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center { text-align: center; }
.section-head.center .section-desc { margin-left: auto; margin-right: auto; }

/* ── BUTTONS ── */
.btn-primary, .btn-outline, .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    padding: 14px 34px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    font-family: inherit;
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary-btn);
    color: #fff;
    box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.015); box-shadow: 0 14px 40px var(--primary-glow); background: var(--primary-btn-hover); }
.btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid var(--border-strong);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--primary); transform: translateY(-3px); }
.btn-ghost {
    background: transparent;
    color: var(--primary-light);
    padding: 8px 4px;
    font-size: 0.9rem;
}
.btn-ghost:hover { gap: 14px; color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }

/* ── HERO ── */
#hero { min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; padding: 40px 0 60px; position: relative; }
#hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hero-content h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.03em; color: #fff; margin-bottom: 20px; }
.hero-content h1 .highlight {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-content .kicker {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.09em; text-transform: uppercase;
    color: var(--primary-light);
    background: rgba(108,99,255,0.1);
    border: 1px solid rgba(108,99,255,0.2);
    padding: 6px 16px; border-radius: 50px; margin-bottom: 22px;
}
.hero-content .kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-green); box-shadow: 0 0 0 3px rgba(52,211,153,0.18); }
.hero-content p.lede { font-size: 1.18rem; color: var(--text-secondary); max-width: 500px; line-height: 1.8; margin-bottom: 32px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; padding: 24px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.hero-stats .stat h3 { font-size: 1.9rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.hero-stats .stat p { font-size: 0.82rem; color: var(--text-secondary); }
.hero-visual { display: flex; justify-content: center; align-items: center; width: 100%; }
.studio-deck {
    width: 100%;
    max-width: 480px;
    background: rgba(20, 20, 28, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(108, 99, 255, 0.15);
    overflow: hidden;
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
}
.studio-deck:hover {
    transform: translateY(-6px);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.7), 0 0 50px rgba(108, 99, 255, 0.25);
    border-color: rgba(108, 99, 255, 0.35);
}
.deck-window-header {
    background: rgba(11, 12, 16, 0.6);
    border-bottom: 1px solid var(--border);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.window-dots {
    display: flex;
    gap: 6px;
}
.window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.deck-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-tertiary);
    letter-spacing: 0.04em;
}
.deck-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-green);
    background: rgba(52, 211, 153, 0.1);
    padding: 3px 10px;
    border-radius: 50px;
    border: 1px solid rgba(52, 211, 153, 0.25);
}
.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.deck-body {
    padding: 24px;
}
.deck-metric-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}
.deck-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    transition: var(--transition-fast);
}
.deck-card:hover {
    background: var(--surface-hover);
    border-color: rgba(108, 99, 255, 0.2);
}
.deck-card-label {
    display: block;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
}
.deck-card-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    font-family: var(--font-mono);
    margin: 4px 0;
}
.deck-card-sub {
    font-size: 0.72rem;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.deck-code-preview {
    background: rgba(11, 12, 16, 0.85);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.6;
    margin-bottom: 18px;
}
.code-line { color: var(--text-secondary); }
.code-line.indent { padding-left: 16px; }
.token-kw { color: #F472B6; font-weight: 600; }
.token-fn { color: #60A5FA; }
.token-prop { color: #A78BFA; }
.token-str { color: #34D399; }

.deck-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.deck-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 500;
}
.deck-pill i {
    color: var(--primary-light);
    font-size: 0.7rem;
}

/* ── TECH / CAPABILITY STRIP ── */
.tech-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.tech-strip span {
    font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.03em; color: var(--text-secondary);
    background: var(--surface); border: 1px solid var(--border);
    padding: 7px 16px; border-radius: 50px;
}

/* ── SERVICES ── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; margin-top: 12px; }
.service-card {
    background: var(--surface);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    padding: 32px 28px; border-radius: var(--radius); border: 1px solid var(--border);
    transition: var(--transition); position: relative; overflow: hidden;
    display: flex; flex-direction: column;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0; transition: var(--transition);
}
.service-card:hover { transform: translateY(-8px); border-color: rgba(108, 99, 255, 0.25); background: var(--surface-hover); box-shadow: var(--shadow); }
.service-card:hover::before { opacity: 1; }
.service-card .icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: rgba(108, 99, 255, 0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: var(--primary-light); margin-bottom: 18px; transition: var(--transition);
}
.service-card:hover .icon { background: var(--primary); color: #fff; transform: scale(1.06); }
.service-card h3 { font-size: 1.18rem; font-weight: 600; margin-bottom: 8px; color: #fff; }
.service-card p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; flex-grow: 1; }
.service-card .tag {
    display: inline-block; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary-light);
    background: rgba(108, 99, 255, 0.1); padding: 3px 12px; border-radius: 50px; margin-top: 16px; align-self: flex-start;
}
.service-card a.card-link { position: absolute; inset: 0; }

/* ── PROCESS (numbered — a real ordered sequence) ── */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 4px; margin-top: 16px; counter-reset: step; }
.process-step { position: relative; padding: 30px 26px 26px; border: 1px solid var(--border); background: var(--surface); }
.process-step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.process-step:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.process-step + .process-step { border-left: none; }
.process-step .num {
    font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; color: var(--primary-light);
    display: block; margin-bottom: 14px;
}
.process-step h3 { font-size: 1.05rem; font-weight: 600; color: #fff; margin-bottom: 8px; }
.process-step p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.65; }
@media (max-width: 900px) {
    .process-grid { grid-template-columns: 1fr; counter-reset: none; }
    .process-step, .process-step:first-child, .process-step:last-child { border-radius: var(--radius); border-left: 1px solid var(--border); }
    .process-step + .process-step { margin-top: 10px; border-left: 1px solid var(--border); }
}

/* ── ENGAGEMENT / PRICING MODEL CARDS ── */
.engagement-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 12px; }
.engagement-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px 28px; transition: var(--transition); display: flex; flex-direction: column;
}
.engagement-card.featured { border-color: rgba(108,99,255,0.35); background: linear-gradient(180deg, rgba(108,99,255,0.07), var(--surface) 60%); box-shadow: 0 20px 50px rgba(108,99,255,0.08); }
.engagement-card:hover { transform: translateY(-6px); border-color: rgba(108,99,255,0.25); }
.engagement-card .eyebrow { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary-light); margin-bottom: 10px; }
.engagement-card h3 { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.engagement-card p.desc { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; }
.engagement-card ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; flex-grow: 1; }
.engagement-card ul li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; }
.engagement-card ul li i { color: var(--accent-green); margin-top: 3px; flex-shrink: 0; font-size: 0.85rem; }

/* ── PROJECTS ── */
.projects-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin: -8px 0 32px; }
.filter-chip {
    font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
    color: var(--text-secondary); background: var(--surface); border: 1px solid var(--border);
    padding: 8px 18px; border-radius: 50px; cursor: pointer; transition: var(--transition-fast);
}
.filter-chip:hover { color: #fff; border-color: var(--border-strong); }
.filter-chip.active { color: #fff; background: var(--primary-btn); border-color: var(--primary-btn); }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; margin-top: 12px; }
.project-card {
    background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
    transition: var(--transition); display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-8px); border-color: rgba(108, 99, 255, 0.25); box-shadow: var(--shadow); }
.project-card .thumb {
    height: 190px; position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--bg-light), var(--bg-elevated));
}
.project-card .thumb svg { width: 100%; height: 100%; transition: transform 0.6s ease; }
.project-card:hover .thumb svg { transform: scale(1.06); }
.project-card .thumb .concept-badge {
    position: absolute; top: 14px; right: 14px;
    font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
    background: rgba(11,12,16,0.7); backdrop-filter: blur(6px); color: var(--text-secondary);
    border: 1px solid var(--border-strong); padding: 4px 12px; border-radius: 50px;
}
.project-card .info { padding: 24px 26px 28px; display: flex; flex-direction: column; flex-grow: 1; }
.project-card .info .cat { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary-light); margin-bottom: 8px; }
.project-card .info h4 { font-size: 1.12rem; font-weight: 600; margin-bottom: 8px; color: #fff; }
.project-card .info p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65; flex-grow: 1; }
.project-card .info .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.project-card .info .tags span {
    font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600; text-transform: uppercase; color: var(--primary-light);
    background: rgba(108, 99, 255, 0.08); padding: 3px 12px; border-radius: 50px; border: 1px solid rgba(108, 99, 255, 0.1);
}

/* ── CALLOUT / NOTE ── */
.callout {
    display: flex; gap: 14px; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--primary);
    border-radius: var(--radius-sm); padding: 18px 22px; margin: 8px 0 40px; max-width: 760px;
}
.callout i { color: var(--primary-light); margin-top: 3px; }
.callout p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }
.callout p strong { color: var(--text); }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.about-visual {
    background: var(--bg-elevated); border-radius: var(--radius-lg); border: 1px solid var(--border);
    min-height: 340px; display: flex; align-items: center; justify-content: center; padding: 30px; position: relative; overflow: hidden;
}
.about-visual svg { width: 100%; max-width: 320px; }
.about-content ul { margin-top: 22px; display: flex; flex-direction: column; gap: 4px; }
.about-content ul li { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; font-size: 1rem; color: var(--text-secondary); }
.about-content ul li i { color: var(--primary-light); width: 20px; margin-top: 4px; flex-shrink: 0; }

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin-top: 16px; }
.value-card { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.value-card i { color: var(--primary-light); font-size: 1.3rem; margin-bottom: 14px; display: block; }
.value-card h3 { font-size: 1.05rem; color: #fff; margin-bottom: 8px; }
.value-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.65; }

.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; padding: 32px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 8px 0 56px; }
.stat-strip .stat h3 { font-size: 2.1rem; font-weight: 700; color: #fff; }
.stat-strip .stat p { font-size: 0.85rem; color: var(--text-secondary); margin-top: 4px; }

/* ── TESTIMONIALS ── */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; margin-top: 12px; }
.testimonial-card {
    background: var(--surface); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    padding: 32px 28px; border-radius: var(--radius); border: 1px solid var(--border);
    transition: var(--transition); position: relative; display: flex; flex-direction: column;
}
.testimonial-card:hover { transform: translateY(-4px); border-color: rgba(108, 99, 255, 0.18); }
.testimonial-card .stars { color: var(--accent-amber); font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial-card p.quote { font-size: 0.96rem; color: var(--text); margin-bottom: 20px; font-style: italic; line-height: 1.8; flex-grow: 1; }
.testimonial-card .author { display: flex; align-items: center; gap: 14px; }
.testimonial-card .author .avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); display: flex; align-items: center; justify-content: center; font-weight: 600; color: #fff; flex-shrink: 0; font-size: 0.85rem; }
.testimonial-card .author .name { font-weight: 600; color: #fff; font-size: 0.92rem; }
.testimonial-card .author .role { font-size: 0.78rem; color: var(--text-secondary); }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.faq-item:hover { border-color: rgba(108, 99, 255, 0.18); }
.faq-question {
    width: 100%; padding: 20px 24px; background: transparent; border: none; color: #fff;
    font-size: 1rem; font-weight: 600; text-align: left; display: flex; justify-content: space-between;
    align-items: center; gap: 16px; cursor: pointer; transition: var(--transition); font-family: var(--font-display);
}
.faq-question:hover { color: var(--primary-light); }
.faq-question i { transition: var(--transition); flex-shrink: 0; }
.faq-item[data-open="true"] .faq-question i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; padding: 0 24px; color: var(--text-secondary); line-height: 1.75; font-size: 0.95rem; }
.faq-item[data-open="true"] .faq-answer { max-height: 400px; padding: 0 24px 20px; }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
.contact-info h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 12px; color: #fff; }
.contact-info > p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 28px; }
.contact-info .detail { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-info .detail i { width: 42px; height: 42px; border-radius: 12px; background: rgba(108, 99, 255, 0.1); display: flex; align-items: center; justify-content: center; color: var(--primary-light); flex-shrink: 0; }
.contact-info .detail .text { font-weight: 500; }
.contact-info .detail .text a:hover { color: var(--primary-light); }
.contact-info .detail .text small { display: block; font-weight: 400; color: var(--text-secondary); font-size: 0.85rem; margin-top: 2px; }

.contact-form { background: var(--surface); padding: 40px 36px; border-radius: var(--radius); border: 1px solid var(--border); }
.contact-form h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 4px; color: #fff; }
.contact-form .sub { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 26px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 500; font-size: 0.85rem; margin-bottom: 7px; color: var(--text); }
.form-group .req { color: var(--primary-light); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 13px 16px; border: 1px solid var(--border); border-radius: 12px;
    background: rgba(255, 255, 255, 0.03); color: #fff; font-family: var(--font-display); font-size: 0.95rem; transition: var(--transition);
}
.form-group select { cursor: pointer; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-tertiary); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.12); }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group.has-error input, .form-group.has-error textarea, .form-group.has-error select { border-color: var(--accent-danger); }
.form-error-msg { display: none; color: var(--accent-danger); font-size: 0.78rem; margin-top: 6px; }
.form-group.has-error .form-error-msg { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-alert { display: none; align-items: flex-start; gap: 10px; padding: 16px 20px; border-radius: 12px; margin-top: 18px; font-size: 0.9rem; line-height: 1.6; }
.form-alert.show { display: flex; }
.form-alert.success { background: rgba(52, 211, 153, 0.08); color: var(--accent-green); border: 1px solid rgba(52, 211, 153, 0.18); }
.form-alert.error { background: rgba(248, 113, 113, 0.08); color: var(--accent-danger); border: 1px solid rgba(248, 113, 113, 0.18); }
.form-alert i { margin-top: 2px; flex-shrink: 0; }

/* ── CTA BANNER ── */
.cta-banner {
    position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: 64px 48px; text-align: center;
    background: linear-gradient(160deg, rgba(108,99,255,0.14), rgba(108,99,255,0.02) 60%), var(--bg-elevated);
    border: 1px solid rgba(108,99,255,0.2);
}
.cta-banner h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); color: #fff; font-weight: 700; margin-bottom: 14px; letter-spacing: -0.02em; }
.cta-banner p { color: var(--text-secondary); max-width: 520px; margin: 0 auto 30px; font-size: 1.05rem; }
.cta-banner .hero-btns { justify-content: center; }

/* ── FOOTER ── */
footer {
    position: relative; z-index: 1; background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border); padding: 56px 0 28px; margin-top: 60px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-brand h3 { font-size: 1.6rem; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.footer-brand h3 span.dot { color: var(--primary); }
.footer-brand h3 .badge {
    font-size: 0.55rem; font-weight: 600; font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-secondary); background: rgba(255, 255, 255, 0.04); padding: 3px 12px; border-radius: 50px; border: 1px solid var(--border); margin-left: 6px;
}
.footer-brand p { font-size: 0.9rem; color: var(--text-secondary); max-width: 280px; line-height: 1.7; margin-top: 12px; }
.footer-col h4 { font-weight: 600; font-size: 0.9rem; color: #fff; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul a { font-size: 0.85rem; color: var(--text-secondary); transition: var(--transition); }
.footer-col ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; color: var(--text-tertiary); }
.footer-bottom a { color: var(--text-tertiary); }
.footer-bottom a:hover { color: var(--text-secondary); }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a { width: 38px; height: 38px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; transition: var(--transition); color: var(--text-secondary); border: 1px solid var(--border); }
.footer-socials a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); border-color: var(--primary); }

/* ── BACK TO TOP ── */
#backToTop {
    position: fixed; right: 24px; bottom: 24px; z-index: 900;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--bg-elevated); border: 1px solid var(--border-strong); color: var(--text);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    opacity: 0; pointer-events: none; transform: translateY(10px); transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
#backToTop.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
#backToTop:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── LEGAL CONTENT (privacy / terms) ── */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h2 { font-size: 1.4rem; color: #fff; margin: 40px 0 14px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text-secondary); line-height: 1.85; font-size: 0.98rem; margin-bottom: 14px; }
.legal-content ul { padding-left: 4px; margin-bottom: 14px; }
.legal-content li { display: flex; gap: 10px; margin-bottom: 8px; }
.legal-content li::before { content: '—'; color: var(--primary-light); flex-shrink: 0; }
.legal-content .updated { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 36px; display: block; }

/* ── 404 ── */
.error-page { min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; }
.error-content { text-align: center; max-width: 560px; margin: 0 auto; }
.error-visual { width: 180px; margin: 0 auto 20px; }
.error-code { font-family: var(--font-mono); font-size: 5rem; font-weight: 700; color: transparent; -webkit-text-stroke: 1.5px var(--border-strong); line-height: 1; }
.error-content h1 { font-size: 1.8rem; color: #fff; margin: 12px 0 12px; }
.error-content p { color: var(--text-secondary); margin-bottom: 30px; line-height: 1.7; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.25,0.46,0.45,0.94), transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.25,0.46,0.45,0.94), transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94); }
.reveal-stagger.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger:nth-child(1) { transition-delay: 0.03s; }
.reveal-stagger:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger:nth-child(3) { transition-delay: 0.13s; }
.reveal-stagger:nth-child(4) { transition-delay: 0.18s; }
.reveal-stagger:nth-child(5) { transition-delay: 0.23s; }
.reveal-stagger:nth-child(6) { transition-delay: 0.28s; }
.reveal-stagger:nth-child(7) { transition-delay: 0.33s; }
.reveal-stagger:nth-child(8) { transition-delay: 0.38s; }
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-stagger { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── INTERACTIVE PROJECT ESTIMATOR ── */
.estimator-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin-bottom: 50px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.estimator-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary-dark));
}
.estimator-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.estimator-head h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}
.estimator-head h3 i {
    color: var(--primary-light);
}
.currency-switch {
    display: inline-flex;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 50px;
    padding: 3px;
}
.currency-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}
.currency-btn.active {
    background: var(--primary-btn);
    color: #fff;
    box-shadow: 0 2px 10px var(--primary-glow);
}

.estimator-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
}
.estimator-group {
    margin-bottom: 24px;
}
.estimator-group > label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.estimator-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.est-chip {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.est-chip:hover {
    background: var(--surface-hover);
    color: #fff;
    border-color: var(--border-strong);
}
.est-chip.selected {
    background: rgba(108, 99, 255, 0.15);
    border-color: var(--primary-light);
    color: #fff;
    box-shadow: 0 0 16px rgba(108, 99, 255, 0.2);
}
.est-chip.selected i {
    color: var(--primary-light);
}

.estimator-result {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.result-header {
    margin-bottom: 18px;
}
.result-label {
    font-size: 0.78rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
}
.result-price {
    font-size: 2.3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    margin: 6px 0;
}
.result-price span.highlight {
    color: var(--primary-light);
}
.result-timeline {
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.result-timeline i {
    color: var(--primary);
}
.result-breakdown {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-top: 16px;
    font-size: 0.84rem;
    color: var(--text-secondary);
}
.result-breakdown ul {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.result-breakdown li {
    display: flex;
    align-items: center;
    gap: 8px;
}
.result-breakdown li i {
    color: var(--accent-green);
    font-size: 0.75rem;
}
.apply-estimate-btn {
    width: 100%;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary-btn);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.92rem;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}
.apply-estimate-btn:hover {
    background: var(--primary-btn-hover);
    box-shadow: 0 4px 20px var(--primary-glow);
}

/* ── CASE STUDY MODAL ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}
.modal-window {
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    max-width: 780px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 36px;
    box-shadow: var(--shadow-lg);
    transform: scale(0.94) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.open .modal-window {
    transform: scale(1) translateY(0);
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 1.1rem;
}
.modal-close:hover {
    background: var(--surface-hover);
    color: #fff;
    border-color: var(--primary-light);
}
.modal-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(108, 99, 255, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(108, 99, 255, 0.3);
    margin-bottom: 12px;
}
.modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.25;
}
.modal-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}
.modal-grid-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.metric-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}
.metric-box .metric-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-light);
    font-family: var(--font-mono);
}
.metric-box .metric-name {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    margin-top: 4px;
}
.modal-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    margin-bottom: 10px;
}
.modal-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
.modal-stack span {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}
.modal-actions {
    display: flex;
    gap: 14px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
    flex-wrap: wrap;
}
.project-card {
    cursor: pointer;
}
.project-card .thumb {
    position: relative;
}
.project-card .quick-view-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(11, 12, 16, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(4px);
    transition: var(--transition-fast);
}
.project-card:hover .quick-view-badge {
    opacity: 1;
    transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .hero-visual .orb { max-width: 260px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .estimator-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    :root { --nav-h: 68px; }
    nav .container { padding: 0 20px; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 74%; max-width: 320px; height: 100vh;
        background: rgba(11, 12, 16, 0.97); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
        flex-direction: column; padding: 90px 30px 32px; gap: 22px; transition: var(--transition);
        border-left: 1px solid var(--border); align-items: flex-start; overflow-y: auto;
    }
    .nav-links.open { right: 0; }
    .nav-toggle { display: flex; }
    .nav-links a { font-size: 1.05rem; }
    .nav-brand .tagline { display: none; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-stats { grid-template-columns: 1fr 1fr; gap: 14px; padding: 20px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .services-grid, .projects-grid, .testimonial-grid, .values-grid { grid-template-columns: 1fr; }
    .engagement-grid { grid-template-columns: 1fr; }
    .cta-banner { padding: 48px 26px; }
    #backToTop { right: 16px; bottom: 16px; width: 42px; height: 42px; }
    .modal-grid-metrics { grid-template-columns: 1fr; }
    .modal-window { padding: 26px 20px; }
    .estimator-card { padding: 24px 18px; }
}
@media (max-width: 480px) {
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .hero-btns { flex-direction: column; width: 100%; }
    .hero-btns .btn-primary, .hero-btns .btn-outline { width: 100%; }
    .contact-form { padding: 28px 20px; }
    .page-header { padding: 48px 0 28px; }
}

/* ── COOKIE CONSENT BANNER ── */
.cookie-consent {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000;
    background: var(--bg-elevated); border-top: 1px solid var(--border-strong);
    box-shadow: 0 -12px 40px rgba(0,0,0,0.35);
    padding: 20px 24px; transform: translateY(120%); transition: transform 0.4s ease;
}
.cookie-consent.show { transform: translateY(0); }
.cookie-consent__inner {
    max-width: var(--container); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cookie-consent__text { flex: 1 1 420px; color: var(--text-secondary); font-size: 0.92rem; line-height: 1.65; }
.cookie-consent__text strong { color: var(--text); }
.cookie-consent__text a { color: var(--primary-light); text-decoration: underline; }
.cookie-consent__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 0 0 auto; }
.cookie-consent .btn-sm { white-space: nowrap; }

.cookie-consent__panel {
    max-width: var(--container); margin: 18px auto 0; padding-top: 18px;
    border-top: 1px solid var(--border);
}
.cookie-consent__panel[hidden] { display: none; }
.cookie-option {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
    padding: 12px 0; border-bottom: 1px solid var(--border);
}
.cookie-option:last-of-type { border-bottom: none; }
.cookie-option__label { font-weight: 600; color: var(--text); font-size: 0.92rem; }
.cookie-option__desc { color: var(--text-tertiary); font-size: 0.84rem; margin-top: 4px; max-width: 560px; }
.cookie-toggle { position: relative; flex-shrink: 0; width: 46px; height: 26px; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle span {
    position: absolute; inset: 0; background: var(--border-strong); border-radius: 999px;
    cursor: pointer; transition: var(--transition-fast);
}
.cookie-toggle span::before {
    content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px;
    background: #fff; border-radius: 50%; transition: var(--transition-fast);
}
.cookie-toggle input:checked + span { background: var(--primary); }
.cookie-toggle input:checked + span::before { transform: translateX(20px); }
.cookie-toggle input:disabled + span { background: var(--border); cursor: not-allowed; opacity: 0.7; }
.cookie-consent__panel-actions { display: flex; justify-content: flex-end; margin-top: 16px; }

body.cookie-consent-active #backToTop { bottom: 108px; }

@media (max-width: 640px) {
    .cookie-consent { padding: 18px 16px; }
    .cookie-consent__inner { flex-direction: column; align-items: stretch; gap: 16px; }
    .cookie-consent__actions { width: 100%; }
    .cookie-consent__actions .btn-sm { flex: 1 1 auto; text-align: center; }
    body.cookie-consent-active #backToTop { bottom: 190px; }
}
