/* =====================================================================
   Mgarbi · Portfolio v2 — Dark theme
   ===================================================================== */

:root {
    --bg: #0A0A0A;
    --surface: #0F0F0F;
    --surface-alt: rgba(20, 20, 20, 0.53);
    --border: #1A1A1A;
    --border-strong: #262626;
    --text: #FFFFFF;
    --text-muted: #A1A1AA;
    --text-soft: #71717A;
    --accent: #A855F7;
    --accent-pink: #EC4899;
    --accent-indigo: #4F46E5;
    --accent-cyan: #06B6D4;
    --accent-orange: #F97316;
    --green: #34D399;
    --red: #EF4444;
    --amber: #F59E0B;
    --emerald: #10B981;

    --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
    --font-body: 'Geist', 'Inter', system-ui, sans-serif;
    --font-meta: 'Funnel Sans', 'Inter', system-ui, sans-serif;
    --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    --max-w: 1080px;
    --pad-x: clamp(20px, 6vw, 180px);

    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 24px;
    --r-pill: 9999px;

    --shadow-card: 0 12px 24px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

h1, h2, h3, h4 {
    font-family: var(--font-sans);
    margin: 0;
    color: var(--text);
}

p { margin: 0; color: var(--text-muted); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* Icons */
.icon-11 { width: 11px; height: 11px; }
.icon-12 { width: 12px; height: 12px; }
.icon-14 { width: 14px; height: 14px; }
.icon-16 { width: 16px; height: 16px; }
.icon-18 { width: 18px; height: 18px; }
.icon-22 { width: 22px; height: 22px; }

.c-accent { color: var(--accent); }
.c-pink   { color: var(--accent-pink); }
.c-white  { color: #FFFFFF; }

/* =========================================================
   Zone 1 — Announcement bar
========================================================= */
.announcement {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 40px;
    padding: 10px 16px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-pink) 100%);
    color: #0A0A0A;
    font-family: var(--font-meta);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}
.announcement__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
}
.announcement__cta { font-weight: 700; }
.announcement__cta:hover { text-decoration: underline; }

/* =========================================================
   Zone 2 — Navbar
========================================================= */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px var(--pad-x);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 18px;
}
.brand--sm { font-size: 14px; }
.brand__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    background: var(--border);
    border-radius: var(--r-pill);
    padding: 4px 6px;
    gap: 2px;
}
.nav-pill__item {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 14px;
    border-radius: var(--r-pill);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: background 0.15s ease, color 0.15s ease;
}
.nav-pill__item:hover { color: var(--text); }
.nav-pill__item.is-active {
    background: var(--bg);
    color: var(--text);
}

.nav-actions { display: inline-flex; align-items: center; gap: 10px; }

/* Language toggle */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px;
    border-radius: var(--r-pill);
    background: var(--border);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.lang-toggle:hover {
    color: var(--text);
    background: var(--border-strong);
    border-color: var(--border-strong);
}
.lang-toggle:active { transform: translateY(1px); }
.lang-toggle i { color: var(--text-soft); }
.lang-toggle:hover i { color: var(--text-muted); }

.lang-toggle--mobile {
    margin-top: 12px;
    height: 44px;
    padding: 0 18px;
    font-size: 14px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--r-pill);
    border: 1px solid transparent;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    user-select: none;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
    background: var(--accent);
    color: #FFFFFF;
    padding: 8px 16px;
    height: 36px;
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.35);
}
.btn--primary:hover { background: #9333EA; }

.btn--ghost {
    background: transparent;
    color: var(--text-muted);
    padding: 8px 14px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
}
.btn--ghost:hover { color: var(--text); border-color: var(--border-strong); }
.btn--ghost i { color: var(--text-soft); }

.btn--outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 14px 24px;
}
.btn--outline:hover { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.02); }

.btn--white {
    background: #FFFFFF;
    color: #0A0A0A;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 10px 16px;
    height: 40px;
    font-weight: 700;
}
.btn--white:hover { background: #F4F4F5; }

.btn--lg {
    padding: 14px 24px;
    height: 52px;
    font-size: 15px;
    font-weight: 700;
}
.btn--sm {
    padding: 8px 12px;
    height: 32px;
    font-size: 12px;
}

/* Hamburger */
.hamburger {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    width: 40px; height: 40px;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.hamburger span {
    display: block;
    width: 18px; height: 2px;
    background: var(--text-muted);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); background: var(--text); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); background: var(--text); }

.mobile-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    z-index: 49;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 80px 20px 20px;
}
.mobile-nav.active { display: flex; }
.mobile-nav__link {
    font-family: var(--font-sans);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 12px 24px;
}
.mobile-nav__link:hover { color: var(--text); }
.mobile-nav__cta {
    background: var(--accent);
    color: #FFFFFF;
    border-radius: var(--r-pill);
    margin-top: 8px;
}

/* =========================================================
   Badges & eyebrow
========================================================= */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--r-pill);
    background: var(--surface-alt);
    border: 1px solid var(--border);
    font-family: var(--font-meta);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    width: fit-content;
}
.badge--light {
    background: #FFFFFF;
    border-color: #E5E5E5;
    color: var(--text-soft);
}
.badge--green {
    background: var(--bg);
    color: var(--green);
    border-color: var(--border);
}
.badge__dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--text-soft);
}
.badge__dot--accent { background: var(--accent); }
.badge__dot--pink   { background: var(--accent-pink); }
.badge__dot--green  { background: var(--green); }

.eyebrow {
    font-family: var(--font-meta);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-soft);
    text-transform: uppercase;
    margin: 0;
}
.eyebrow--center { text-align: center; }

/* =========================================================
   Zone 3 — Hero
========================================================= */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 120px var(--pad-x);
    text-align: center;
    background: radial-gradient(ellipse at top, #150826 0%, var(--bg) 60%);
}
.hero > *:not(.hero__bg) { position: relative; z-index: 1; }

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.hero__blob {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    filter: blur(90px);
    will-change: transform, opacity;
    mix-blend-mode: screen;
}
.hero__blob--1 {
    width: 540px; height: 540px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.9), rgba(168, 85, 247, 0) 70%);
    animation: blobOrbit1 16s linear infinite;
}
.hero__blob--2 {
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.85), rgba(109, 40, 217, 0) 70%);
    animation: blobOrbit2 20s linear infinite;
}
.hero__blob--3 {
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(76, 29, 149, 0.8), rgba(15, 15, 15, 0) 70%);
    animation: blobOrbit3 24s linear infinite;
}
.hero__blob--4 {
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.65), rgba(0, 0, 0, 0) 70%);
    animation: blobOrbit4 28s linear infinite;
}
.hero__grain {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(180deg, rgba(10, 10, 10, 0) 50%, rgba(10, 10, 10, 0.6) 100%),
        radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: auto, 3px 3px;
    opacity: 0.4;
    mix-blend-mode: overlay;
}

/* Orbits — each blob travels clockwise/counter-clockwise around the hero.
   Base offset translate(-50%, -50%) keeps blob centered; extra translations
   describe a rectangular orbit around the section perimeter. */
@keyframes blobOrbit1 {
    0%   { transform: translate(calc(-50% - 40vw), calc(-50% - 38vh)) scale(1); }
    25%  { transform: translate(calc(-50% + 40vw), calc(-50% - 38vh)) scale(1.1); }
    50%  { transform: translate(calc(-50% + 40vw), calc(-50% + 38vh)) scale(1); }
    75%  { transform: translate(calc(-50% - 40vw), calc(-50% + 38vh)) scale(1.1); }
    100% { transform: translate(calc(-50% - 40vw), calc(-50% - 38vh)) scale(1); }
}
@keyframes blobOrbit2 {
    0%   { transform: translate(calc(-50% + 42vw), calc(-50% + 36vh)) scale(1); }
    25%  { transform: translate(calc(-50% - 42vw), calc(-50% + 36vh)) scale(1.15); }
    50%  { transform: translate(calc(-50% - 42vw), calc(-50% - 36vh)) scale(1); }
    75%  { transform: translate(calc(-50% + 42vw), calc(-50% - 36vh)) scale(1.15); }
    100% { transform: translate(calc(-50% + 42vw), calc(-50% + 36vh)) scale(1); }
}
@keyframes blobOrbit3 {
    0%   { transform: translate(calc(-50% + 38vw), calc(-50% - 34vh)) scale(1.05); }
    25%  { transform: translate(calc(-50% + 38vw), calc(-50% + 34vh)) scale(0.9); }
    50%  { transform: translate(calc(-50% - 38vw), calc(-50% + 34vh)) scale(1.05); }
    75%  { transform: translate(calc(-50% - 38vw), calc(-50% - 34vh)) scale(0.9); }
    100% { transform: translate(calc(-50% + 38vw), calc(-50% - 34vh)) scale(1.05); }
}
@keyframes blobOrbit4 {
    0%   { transform: translate(calc(-50% - 36vw), calc(-50% + 32vh)) scale(1); }
    25%  { transform: translate(calc(-50% - 36vw), calc(-50% - 32vh)) scale(1.2); }
    50%  { transform: translate(calc(-50% + 36vw), calc(-50% - 32vh)) scale(1); }
    75%  { transform: translate(calc(-50% + 36vw), calc(-50% + 32vh)) scale(1.2); }
    100% { transform: translate(calc(-50% - 36vw), calc(-50% + 32vh)) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .hero__blob { animation: none; }
}

.hero__title {
    font-size: clamp(40px, 7vw, 64px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    max-width: 960px;
    text-wrap: balance;
}
.hero__title span { display: block; }
.hero__title--accent { color: var(--accent); }

.hero__lede {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 720px;
}

.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 12px;
}

.hero__trust {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    flex-wrap: wrap;
    justify-content: center;
}
.avatars { display: inline-flex; }
.avatar {
    width: 28px; height: 28px; border-radius: 50%;
    border: 2px solid var(--bg);
    margin-left: -8px;
}
.avatar:first-child { margin-left: 0; }
.hero__trust-label {
    font-family: var(--font-meta);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-soft);
}

/* =========================================================
   Zone 4 — Product window
========================================================= */
.product-window-wrap {
    padding: 64px var(--pad-x) 0;
}

.product-window {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.window-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 44px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
}
.window-dots { display: inline-flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--red   { background: var(--red); }
.dot--amber { background: var(--amber); }
.dot--green { background: var(--emerald); }

.window-url {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--border);
    padding: 4px 12px;
    border-radius: var(--r-sm);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}
.window-url i { color: var(--text-soft); }

.window-actions {
    display: inline-flex;
    gap: 8px;
    color: var(--text-soft);
}
.window-actions i { padding: 5px; cursor: pointer; }
.window-actions i:hover { color: var(--text-muted); }

.window-body {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 480px;
}

.window-sidebar {
    border-right: 1px solid var(--border);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sidebar-label {
    font-family: var(--font-meta);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-soft);
    padding: 4px 8px;
}
.sidebar-label--spaced { margin-top: 16px; }
.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: var(--r-sm);
    height: 32px;
    width: 100%;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    background: var(--surface);
    border: none;
    outline: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.sidebar-item:focus,
.sidebar-item:focus-visible { outline: none; }
.product-window .btn--white { border: none; }
.sidebar-item:hover { background: var(--border); color: var(--text); }
.sidebar-item i { color: var(--text-muted); }
.sidebar-item.is-active {
    background: var(--border);
    color: var(--text);
}
.sidebar-item.is-active i { color: var(--accent); }

.window-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.window-content__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.crumbs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}
.crumbs__sep { color: var(--text-soft); }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--r-sm);
    font-family: var(--font-meta);
    font-size: 11px;
    font-weight: 600;
}
.pill--success {
    background: rgba(16, 185, 129, 0.13);
    color: var(--emerald);
}
.pill__dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--emerald);
}

.window-content__title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}
.window-content__title {
    font-size: 28px;
    font-weight: 800;
}
.window-content__desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
}
.window-image-wrap {
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
}
.window-image-wrap img {
    width: 100%;
    display: block;
}

/* =========================================================
   Zone 5 — Trust marks
========================================================= */
.trust-marks {
    padding: 96px var(--pad-x) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.client-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 64px;
}
.client-logo {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-soft);
    transition: color 0.15s ease;
}
.client-logo:hover { color: var(--text-muted); }

/* =========================================================
   Services
========================================================= */
.services {
    padding: 120px var(--pad-x) 80px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}
.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}
.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.section-lede {
    font-size: 17px;
    line-height: 1.5;
    color: var(--text-muted);
    max-width: 720px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: var(--max-w);
    margin: 24px auto 0;
    width: 100%;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 28px 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}
.service-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.service-card__icon {
    width: 48px; height: 48px;
    border-radius: var(--r-md);
    background: var(--surface-alt);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.service-card__num {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-soft);
}
.service-card__title {
    font-size: 22px;
    font-weight: 800;
}
.service-card__desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    font-family: var(--font-meta);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    width: fit-content;
}
.tag--ghost {
    background: var(--surface-alt);
    border: 1px solid var(--border);
}
.tag i { color: var(--text-soft); }
.tag__dot { width: 5px; height: 5px; border-radius: 50%; }
.tag__dot--accent { background: var(--accent); }
.tag__dot--pink   { background: var(--accent-pink); }

/* =========================================================
   Stack & Tools (white panel)
========================================================= */
.stack-panel-wrap {
    padding: 64px var(--pad-x);
}
.stack-panel {
    background: #FFFFFF;
    border-radius: var(--r-lg);
    padding: clamp(40px, 6vw, 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
}
.stack-panel__title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.1;
    color: #0A0A0A;
    max-width: 760px;
}
.stack-panel__lede {
    font-size: 16px;
    line-height: 1.55;
    color: var(--text-soft);
    max-width: 640px;
}
.stack-panel__foot {
    font-family: var(--font-meta);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-soft);
    max-width: 520px;
}

/* Orbit illustration */
.orbit {
    position: relative;
    width: min(680px, 100%);
    height: 420px;
    background: #FAFAFA;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
}
.orbit__ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid #EAEAEA;
}
.orbit__ring--lg { width: 380px; height: 380px; }
.orbit__ring--md { width: 280px; height: 280px; border-color: #E5E5E5; }
.orbit__ring--sm { width: 170px; height: 170px; border-color: #E0E0E0; }
.orbit__glow {
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0) 70%);
}
.orbit__center {
    position: relative;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-pink));
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-weight: 900;
    font-size: 38px;
    border: 6px solid #FFFFFF;
    box-shadow: 0 14px 40px rgba(168, 85, 247, 0.4);
    z-index: 2;
}
.orbit__status {
    position: absolute;
    bottom: 130px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    background: #0A0A0A;
    color: #FFFFFF;
    font-family: var(--font-mono);
    font-size: 10px;
    z-index: 3;
}
.orbit__status-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
}

.tool {
    position: absolute;
    width: 86px; height: 86px;
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translate(-50%, -50%);
}
.tool__icon {
    width: 32px; height: 32px;
    border-radius: var(--r-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.tool__name {
    font-family: var(--font-meta);
    font-size: 10px;
    font-weight: 700;
    color: #0A0A0A;
}

/* Hexagonal layout around the centered "MG" badge.
   Coordinates are percentages of the orbit container. */
.tool--1 { top: 50%; left: 72%; } /* Figma   — right, middle */
.tool--2 { top: 81%; left: 61%; } /* Adobe   — right-bottom */
.tool--3 { top: 81%; left: 39%; } /* React   — left-bottom */
.tool--4 { top: 50%; left: 28%; } /* Next.js — left, middle */
.tool--5 { top: 19%; left: 39%; } /* TypeScript — left-top */
.tool--6 { top: 19%; left: 61%; } /* PHP        — right-top */

/* =========================================================
   Data / By the numbers
========================================================= */
.data {
    padding: 64px var(--pad-x) 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: var(--max-w);
    width: 100%;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 32px 28px;
    border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat__icon {
    width: 44px; height: 44px;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--accent), var(--accent-pink));
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
}
.stat__value {
    font-family: var(--font-mono);
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}
.stat__label {
    font-family: var(--font-meta);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}
.stat__sub {
    font-family: var(--font-meta);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-soft);
}

/* =========================================================
   Selected work
========================================================= */
.selected-work {
    padding: 64px var(--pad-x) 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

.work-row {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 28px;
    display: grid;
    grid-template-columns: 96px 1fr 180px;
    gap: 32px;
    align-items: flex-start;
    max-width: var(--max-w);
    width: 100%;
    transition: border-color 0.2s ease;
}
.work-row:hover { border-color: var(--border-strong); }

.work-row__meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.work-row__year {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-soft);
}

.work-row__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.work-row__title {
    font-size: 28px;
    font-weight: 800;
}
.work-row__category {
    font-family: var(--font-meta);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.work-row__desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 6px;
}
.chip {
    padding: 5px 10px;
    border-radius: var(--r-sm);
    background: var(--surface-alt);
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
}

.work-row__action { display: flex; justify-content: flex-end; }

/* =========================================================
   Contact
========================================================= */
.contact {
    padding: 80px var(--pad-x) 96px;
}
.contact__card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: clamp(40px, 6vw, 64px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}
.contact__title {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
}
.contact__lede {
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-muted);
    max-width: 560px;
}
.contact__ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    padding-top: 12px;
}
.contact__ctas .btn--lg { height: 56px; padding: 14px 28px; }

.social-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding-top: 18px;
}
.social {
    width: 44px; height: 44px;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.social:hover {
    color: var(--text);
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

/* =========================================================
   Footer
========================================================= */
.footer {
    border-top: 1px solid var(--border);
    padding: 32px var(--pad-x);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.footer__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.footer__row--meta {
    color: var(--text-soft);
    font-family: var(--font-meta);
    font-size: 12px;
}
.footer__sep { color: var(--text-soft); margin: 0 4px; }
.footer__loc {
    font-family: var(--font-meta);
    font-size: 12px;
    color: var(--text-soft);
    font-weight: 500;
}
.footer__nav { display: inline-flex; gap: 20px; }
.footer__nav a {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.15s ease;
}
.footer__nav a:hover { color: var(--text); }
.footer__version {
    font-family: var(--font-mono);
    font-size: 11px;
}

/* =========================================================
   Scroll to top
========================================================= */
.scroll-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 60;
}
.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-to-top:hover { border-color: var(--border-strong); }

/* =========================================================
   Responsive
   Breakpoints:
   1200  — tight desktop
   1024  — small laptop / large tablet
    768  — tablet (mobile nav kicks in)
    560  — phone
    400  — small phone
========================================================= */

/* Tight desktop */
@media (max-width: 1200px) {
    :root { --pad-x: clamp(20px, 5vw, 120px); }
    .hero { padding: 96px var(--pad-x); }
    .services { padding: 96px var(--pad-x) 64px; }
}

/* Small laptop / large tablet */
@media (max-width: 1024px) {
    :root { --pad-x: clamp(20px, 5vw, 80px); }

    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .service-grid > .service-card:nth-child(3) { grid-column: 1 / -1; }

    .hero__title { font-size: clamp(40px, 6vw, 56px); }
    .section-title { font-size: clamp(28px, 4vw, 40px); }

    .work-row { grid-template-columns: 96px 1fr; }
    .work-row__action {
        grid-column: 2 / 3;
        justify-content: flex-start;
    }

    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat { border-right: 1px solid var(--border); }
    .stat:nth-child(2n) { border-right: none; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }

    .window-content__header { flex-wrap: wrap; gap: 12px; }
}

/* Tablet — mobile nav appears */
@media (max-width: 768px) {
    .nav-pill, .nav-actions { display: none; }
    .hamburger { display: inline-flex; }

    .announcement { padding: 9px 14px; font-size: 12px; }

    .hero { padding: 72px var(--pad-x); gap: 24px; }
    .hero__title { font-size: clamp(36px, 7vw, 48px); }
    .hero__lede { font-size: 16px; }

    /* Lighter blur for perf on mobile */
    .hero__blob { filter: blur(70px); }

    /* Window — sidebar becomes a horizontal scroll bar */
    .window-body { grid-template-columns: 1fr; min-height: 0; }
    .window-sidebar {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 6px;
        padding: 10px 12px;
        border-right: none;
        border-bottom: 1px solid var(--border);
        overflow-x: auto;
        scrollbar-width: none;
    }
    .window-sidebar::-webkit-scrollbar { display: none; }
    .sidebar-label { display: none; }
    .sidebar-item {
        width: auto;
        flex: 0 0 auto;
        height: 30px;
        padding: 6px 12px;
        background: transparent;
        border-radius: var(--r-pill);
    }
    .sidebar-item.is-active { background: var(--border); }
    .sidebar-item span { white-space: nowrap; }

    .window-content { padding: 20px; gap: 16px; }
    .window-content__title { font-size: 22px; }
    .window-content__title-row { flex-wrap: wrap; gap: 12px; }
    .window-url { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    .service-grid { grid-template-columns: 1fr; }
    .service-grid > .service-card:nth-child(3) { grid-column: auto; }

    .trust-marks { padding: 80px var(--pad-x) 0; }
    .client-row { gap: 32px; }

    /* Orbit — shrink everything, push tools out so they don't overlap the center */
    .stack-panel { padding: 56px 28px; }
    .stack-panel__title { font-size: 28px; }
    .stack-panel__lede { font-size: 15px; }
    .orbit { height: 380px; }
    .orbit__ring--lg { width: 320px; height: 320px; }
    .orbit__ring--md { width: 230px; height: 230px; }
    .orbit__ring--sm { width: 150px; height: 150px; }
    .orbit__glow    { width: 260px; height: 260px; }
    .orbit__center  { width: 100px; height: 100px; font-size: 32px; border-width: 5px; }
    .orbit__status  { bottom: 110px; }
    .tool { width: 72px; height: 72px; border-radius: 14px; }
    .tool__icon { width: 28px; height: 28px; }
    .tool--1 { top: 50%; left: 78%; }
    .tool--2 { top: 84%; left: 64%; }
    .tool--3 { top: 84%; left: 36%; }
    .tool--4 { top: 50%; left: 22%; }
    .tool--5 { top: 16%; left: 36%; }
    .tool--6 { top: 16%; left: 64%; }

    .work-row {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 24px;
    }
    .work-row__action { grid-column: auto; }

    .contact { padding: 64px var(--pad-x) 80px; }
    .contact__card { padding: 48px 32px; }
}

/* Phone */
@media (max-width: 560px) {
    :root { --pad-x: 16px; }

    .announcement { font-size: 11px; padding: 8px 12px; gap: 6px; line-height: 1.3; }
    .announcement__sep { display: none; }
    .announcement__text { display: inline-block; max-width: 200px; text-align: center; }

    .navbar { padding: 12px var(--pad-x); }

    .hero { padding: 56px var(--pad-x); gap: 20px; }
    .hero__title { font-size: clamp(32px, 9vw, 40px); }
    .hero__lede { font-size: 15px; }
    .hero__ctas { width: 100%; flex-direction: column; gap: 10px; }
    .hero__ctas .btn { width: 100%; height: 48px; padding: 14px 20px; font-size: 14px; }
    .hero__trust { gap: 12px; }
    .hero__trust-label { font-size: 11px; max-width: 220px; text-align: center; }

    .product-window-wrap { padding: 40px 12px 0; }
    .window-chrome { padding: 8px 12px; height: auto; gap: 8px; }
    .window-url { font-size: 11px; padding: 3px 8px; max-width: 110px; }
    .window-actions { gap: 2px; }
    .window-actions i { padding: 3px; }
    .window-content { padding: 16px; }
    .window-content__title { font-size: 20px; }
    .window-content__desc { font-size: 13px; }

    .trust-marks { padding: 56px var(--pad-x) 0; gap: 20px; }
    .client-row { gap: 20px; }
    .client-logo { font-size: 12px; letter-spacing: 1.5px; }

    .services { padding: 72px var(--pad-x) 56px; gap: 32px; }
    .section-title { font-size: 28px; }
    .section-lede { font-size: 14px; }
    .service-card { padding: 24px; }
    .service-card__title { font-size: 20px; }

    .stack-panel-wrap { padding: 32px var(--pad-x); }
    .stack-panel { padding: 40px 20px; gap: 20px; border-radius: 16px; }
    .stack-panel__title { font-size: 24px; }
    .stack-panel__lede { font-size: 14px; }
    .orbit { height: 340px; }
    .orbit__ring--lg { width: 280px; height: 280px; }
    .orbit__ring--md { width: 200px; height: 200px; }
    .orbit__ring--sm { width: 130px; height: 130px; }
    .orbit__glow    { width: 220px; height: 220px; }
    .orbit__center  { width: 88px; height: 88px; font-size: 28px; border-width: 4px; }
    .orbit__status  { bottom: 96px; font-size: 9px; padding: 3px 8px; }
    .tool { width: 60px; height: 60px; border-radius: 12px; }
    .tool__icon { width: 24px; height: 24px; border-radius: 6px; }
    .tool__name { font-size: 9px; }
    .tool--1 { top: 50%; left: 82%; }
    .tool--2 { top: 86%; left: 66%; }
    .tool--3 { top: 86%; left: 34%; }
    .tool--4 { top: 50%; left: 18%; }
    .tool--5 { top: 14%; left: 34%; }
    .tool--6 { top: 14%; left: 66%; }

    .data { padding: 48px var(--pad-x) 64px; gap: 24px; }
    .stats { grid-template-columns: 1fr; }
    .stat { border-right: none !important; border-bottom: 1px solid var(--border); padding: 24px 20px; }
    .stat:last-child { border-bottom: none; }
    .stat__value { font-size: 38px; }

    .selected-work { padding: 56px var(--pad-x); gap: 28px; }
    .work-row { padding: 20px; gap: 14px; }
    .work-row__title { font-size: 22px; }
    .work-row__desc { font-size: 14px; }
    .work-row__meta { flex-direction: row; align-items: center; gap: 12px; }
    .chip-row { gap: 6px; }
    .chip { font-size: 10px; padding: 4px 8px; }

    .contact { padding: 48px var(--pad-x) 64px; }
    .contact__card { padding: 40px 24px; border-radius: 16px; }
    .contact__title { font-size: 32px; }
    .contact__lede { font-size: 15px; }
    .contact__ctas { width: 100%; flex-direction: column; }
    .contact__ctas .btn { width: 100%; height: 52px; font-size: 14px; }
    .contact__ctas .btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }

    .footer { padding: 24px var(--pad-x); }
    .footer__row { flex-direction: column; align-items: flex-start; gap: 12px; }
    .footer__nav { flex-wrap: wrap; gap: 14px; }

    .scroll-to-top { bottom: 16px; right: 16px; width: 40px; height: 40px; font-size: 16px; }
}

/* Small phone */
@media (max-width: 400px) {
    .brand__name { font-size: 16px; }
    .hero__title { font-size: clamp(28px, 9vw, 34px); }
    .hero__lede { font-size: 14px; }
    .section-title { font-size: 24px; }
    .contact__title { font-size: 28px; }
    .stack-panel__title { font-size: 22px; }

    .orbit { height: 300px; }
    .orbit__center { width: 76px; height: 76px; font-size: 24px; }
    .orbit__status { bottom: 86px; }
    .tool { width: 54px; height: 54px; }
    .tool__icon { width: 22px; height: 22px; }
    .tool__name { font-size: 8px; }

    .client-row { gap: 16px; }
    .client-logo { font-size: 11px; }

    .hero__trust { flex-direction: column; }
}
