/* ==========================================================================
   MGV Infotech — Design System v2 ("Midnight Aurora")
   Dark, product-grade UI for a software development company.
   No framework dependency.
   ========================================================================== */

/* 01 — Tokens ------------------------------------------------------------- */
:root {
    --bg: #05070d;
    --bg-2: #080b14;
    --bg-3: #0c1120;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-2: rgba(255, 255, 255, 0.06);
    --surface-3: rgba(255, 255, 255, 0.09);
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --text: #eef2f8;
    --text-2: #a7b1c2;
    --text-3: #7d889b;

    --teal: #2dd4bf;
    --cyan: #38bdf8;
    --blue: #3b82f6;
    --indigo: #818cf8;
    --violet: #a78bfa;
    --gold: #f5c86b;
    --pink: #f472b6;
    --green: #34d399;

    --grad: linear-gradient(110deg, #5eead4 0%, #38bdf8 38%, #818cf8 72%, #c084fc 100%);
    --grad-warm: linear-gradient(110deg, #f5c86b 0%, #f59e0b 50%, #f472b6 100%);
    --grad-btn: linear-gradient(120deg, #5eead4 0%, #38bdf8 45%, #818cf8 100%);

    --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --container: 1200px;
    --header-h: 76px;

    --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
    --glow: 0 0 0 1px rgba(56, 189, 248, 0.25), 0 10px 40px -10px rgba(56, 189, 248, 0.45);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    color-scheme: dark;
}

/* 02 — Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Subtle film grain for depth */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

::selection { background: rgba(56, 189, 248, 0.35); color: #fff; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10000;
    padding: 10px 16px;
    border-radius: 10px;
    background: #fff;
    color: #05070d;
    font-weight: 600;
    transform: translateY(-160%);
    transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

main { position: relative; z-index: 2; }

.lucide { width: 1em; height: 1em; stroke-width: 1.8; flex-shrink: 0; }
i[data-lucide] { display: inline-block; width: 1em; height: 1em; }

/* 03 — Layout ------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container-narrow { max-width: 880px; }

.section { position: relative; padding-block: 128px; }
.section-sm { padding-block: 88px; }
.section.alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.bordered { border-top: 1px solid var(--line); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.split.top { align-items: start; }

.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 18px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 56px; }
.section-head-row .section-head { margin-bottom: 0; }

/* 04 — Typography --------------------------------------------------------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan)); }
.center .eyebrow::after,
.section-head.center .eyebrow::after { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, var(--cyan), transparent); }

.display {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.5rem, 5.6vw, 4.7rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: #fff;
}
.h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.4rem, 5vw, 4.25rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #fff;
}
.h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.028em;
    color: #fff;
}
.h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.25rem, 1.8vw, 1.5rem);
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: #fff;
}
.h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; line-height: 1.35; color: #fff; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.7; color: var(--text-2); }
.muted { color: var(--text-2); }
.subtle { color: var(--text-3); }
.small { font-size: 0.9rem; }
.mono { font-family: var(--font-mono); }

.grad-text {
    background: var(--grad);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: grad-pan 8s linear infinite;
}
.gold-text { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes grad-pan { to { background-position: 200% center; } }

.prose p + p { margin-top: 1em; }

/* 05 — Buttons, links, chips, tags ---------------------------------------- */
.btn {
    --pad-y: 12px;
    --pad-x: 22px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: var(--pad-y) var(--pad-x);
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
    isolation: isolate;
    overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s;
}
.btn .lucide { width: 17px; height: 17px; transition: transform 0.35s var(--ease); }
.btn:hover .lucide-arrow-right, .btn:hover .lucide-arrow-up-right, .btn:hover .lucide-send { transform: translateX(3px); }
.btn-lg { --pad-y: 16px; --pad-x: 28px; font-size: 16px; }
.btn-sm { --pad-y: 9px; --pad-x: 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.7; pointer-events: none; }

.btn-primary {
    color: #041019;
    background: var(--grad-btn);
    box-shadow: 0 8px 30px -8px rgba(56, 189, 248, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.8s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(56, 189, 248, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost {
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--line-2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--surface-3); border-color: rgba(255, 255, 255, 0.25); transform: translateY(-2px); }

.btn-white { color: #05070d; background: #fff; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(255, 255, 255, 0.4); }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    transition: gap 0.3s var(--ease), color 0.2s;
}
.link-arrow .lucide { width: 16px; height: 16px; color: var(--cyan); }
.link-arrow:hover { gap: 12px; color: var(--cyan); }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: var(--surface);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}
.chip .lucide { width: 14px; height: 14px; }
.chip-dot::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0.05); } }

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-2);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
}
.tag .lucide { width: 13px; height: 13px; }
.tag-teal { color: #5eead4; background: rgba(45, 212, 191, 0.1); border-color: rgba(45, 212, 191, 0.25); }
.tag-blue { color: #7dd3fc; background: rgba(56, 189, 248, 0.1); border-color: rgba(56, 189, 248, 0.25); }
.tag-violet { color: #c4b5fd; background: rgba(167, 139, 250, 0.1); border-color: rgba(167, 139, 250, 0.25); }
.tag-gold { color: #fcd98d; background: rgba(245, 200, 107, 0.1); border-color: rgba(245, 200, 107, 0.25); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }

.pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text-2);
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    transition: color 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.pill-btn .lucide { width: 15px; height: 15px; flex-shrink: 0; }
.pill-btn:hover { color: #fff; border-color: var(--line-2); }
.pill-btn[aria-selected="true"],
.pill-btn[aria-pressed="true"],
.pill-btn.is-active { color: #041019; background: #fff; border-color: #fff; }

/* 06 — Header & navigation ------------------------------------------------ */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: var(--header-h);
    border-bottom: 1px solid transparent;
    transition: background-color 0.35s var(--ease), border-color 0.35s, transform 0.4s var(--ease);
}
.site-header.is-scrolled {
    background: rgba(5, 7, 13, 0.72);
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }

.scroll-progress {
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: 100%;
    transform-origin: left;
    transform: scaleX(0);
    background: var(--grad);
}

.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 40px; width: auto; transition: transform 0.4s var(--ease); }
.brand:hover img { transform: scale(1.03); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
}
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-2);
    transition: color 0.2s, background-color 0.2s;
}
.nav-link .lucide { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.nav-link:hover,
.nav-item.is-open > .nav-link { color: #fff; background: var(--surface-2); }
.nav-link.is-active { color: #fff; background: var(--surface-3); }
.nav-item { position: relative; }
.nav-item.is-open > .nav-link .lucide-chevron-down { transform: rotate(180deg); }

.mega {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    width: max-content;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid var(--line-2);
    background: rgba(10, 14, 26, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.25s var(--ease), transform 0.3s var(--ease), visibility 0.25s;
}
.mega::before { content: ""; position: absolute; inset: -16px 0 auto 0; height: 16px; } /* hover bridge */
.nav-item.is-open > .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }

.mega-grid { display: grid; grid-template-columns: 1fr 1fr 240px; gap: 8px; width: 800px; }
.mega-grid.two { grid-template-columns: 1fr 230px; width: 540px; }
.mega-label {
    display: block;
    padding: 10px 12px 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
}
.mega-link { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 12px; transition: background-color 0.2s; }
.mega-link:hover, .mega-link:focus-visible { background: var(--surface-2); }
.mega-link .ico {
    display: grid;
    place-items: center;
    width: 36px; height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--cyan);
    transition: transform 0.3s var(--ease);
}
.mega-link:hover .ico { transform: scale(1.08); }
.mega-link .ico .lucide { width: 18px; height: 18px; }
.mega-link strong { display: block; font-size: 14.5px; font-weight: 600; color: #fff; line-height: 1.3; }
.mega-link small { display: block; font-size: 12.5px; color: var(--text-3); line-height: 1.4; margin-top: 2px; }
.mega-feature {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    padding: 18px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(129, 140, 248, 0.35), transparent 60%),
        radial-gradient(100% 80% at 0% 100%, rgba(45, 212, 191, 0.3), transparent 60%),
        var(--bg-3);
    min-height: 200px;
}
.mega-feature strong { font-family: var(--font-display); font-size: 17px; color: #fff; line-height: 1.3; }
.mega-feature span { font-size: 13px; color: var(--text-2); }
.mega-feature .link-arrow { font-size: 13.5px; margin-top: 6px; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
    display: none;
    width: 44px; height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line-2);
    background: var(--surface);
    place-items: center;
}
.menu-toggle .bars { position: relative; width: 18px; height: 12px; }
.menu-toggle .bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.6px;
    border-radius: 2px;
    background: #fff;
    transition: transform 0.35s var(--ease), opacity 0.2s, top 0.35s var(--ease);
}
.menu-toggle .bars span:nth-child(1) { top: 0; }
.menu-toggle .bars span:nth-child(2) { top: 5px; }
.menu-toggle .bars span:nth-child(3) { top: 10px; }
.menu-open .menu-toggle .bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-open .menu-toggle .bars span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle .bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.mobile-panel {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 12px 20px 28px;
    overflow-y: auto;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s var(--ease), transform 0.35s var(--ease), visibility 0.3s;
}
.menu-open { overflow: hidden; }
.menu-open .mobile-panel { opacity: 1; visibility: visible; transform: none; }
.menu-open .site-header { background: rgba(5, 7, 13, 0.98); border-bottom-color: var(--line); transform: none; }

.m-link,
.m-acc > button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 18px 4px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: #fff;
    text-align: left;
}
.m-link.is-active { color: var(--cyan); }
.m-acc > button .lucide { width: 20px; height: 20px; color: var(--text-3); transition: transform 0.3s var(--ease); }
.m-acc.is-open > button .lucide { transform: rotate(180deg); }
.m-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.m-acc.is-open .m-sub { grid-template-rows: 1fr; }
.m-sub > div { overflow: hidden; }
.m-sub a { display: flex; align-items: center; gap: 12px; padding: 12px 4px; font-size: 15.5px; color: var(--text-2); }
.m-sub a:first-child { margin-top: 8px; }
.m-sub a:last-child { margin-bottom: 12px; }
.m-sub a .lucide { width: 18px; height: 18px; color: var(--cyan); }
.mobile-panel > .btn { margin-top: 28px; }
.mobile-meta { margin-top: 24px; font-size: 14px; color: var(--text-3); }
.mobile-meta a { color: var(--text-2); }

/* 07 — Hero --------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-h) + 64px);
    padding-bottom: 110px;
    overflow: hidden;
    isolation: isolate;
}
.page-hero {
    position: relative;
    padding-top: calc(var(--header-h) + 104px);
    padding-bottom: 104px;
    overflow: hidden;
    isolation: isolate;
}

.aurora { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.aurora .blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; will-change: transform; }
.aurora .b1 { width: 620px; height: 620px; top: -220px; left: -120px; background: radial-gradient(circle, rgba(45, 212, 191, 0.75), transparent 65%); animation: drift-1 22s ease-in-out infinite; }
.aurora .b2 { width: 720px; height: 720px; top: -260px; right: -220px; background: radial-gradient(circle, rgba(129, 140, 248, 0.75), transparent 65%); animation: drift-2 26s ease-in-out infinite; }
.aurora .b3 { width: 520px; height: 520px; bottom: -280px; left: 35%; background: radial-gradient(circle, rgba(56, 189, 248, 0.6), transparent 65%); animation: drift-3 30s ease-in-out infinite; }
.aurora.soft .blob { opacity: 0.3; }
.aurora.warm .b1 { background: radial-gradient(circle, rgba(245, 200, 107, 0.6), transparent 65%); }
.aurora.warm .b2 { background: radial-gradient(circle, rgba(52, 211, 153, 0.5), transparent 65%); }
@keyframes drift-1 { 50% { transform: translate(140px, 90px) scale(1.12); } }
@keyframes drift-2 { 50% { transform: translate(-120px, 120px) scale(0.92); } }
@keyframes drift-3 { 50% { transform: translate(-160px, -60px) scale(1.15); } }

.grid-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-spot {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 30%), rgba(56, 189, 248, 0.09), transparent 45%);
}

.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.hero-copy > .chip { margin-bottom: 28px; }
.hero-copy .display { margin-bottom: 26px; }
.hero-copy .lead { max-width: 560px; margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.rotator { display: inline-grid; justify-items: start; vertical-align: bottom; }
.rotator > span {
    grid-area: 1 / 1;
    white-space: nowrap;
    padding-bottom: 0.08em; /* keep descenders inside the gradient clip */
    opacity: 0;
    transform: translateY(0.45em);
    filter: blur(8px);
    transition: opacity 0.6s var(--ease), transform 0.7s var(--ease), filter 0.6s var(--ease);
}
.rotator > span.is-active { opacity: 1; transform: none; filter: none; }
.rotator > span.is-leaving { opacity: 0; transform: translateY(-0.45em); filter: blur(8px); }

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}
.hero-points li { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--text-2); }
.hero-points .lucide { width: 17px; height: 17px; color: var(--teal); }

/* Hero visual: code editor + floating widgets */
.hero-visual { position: relative; perspective: 1400px; }
.hero-stage {
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(var(--ry, -8deg)) rotateX(var(--rx, 4deg));
    transition: transform 0.6s var(--ease);
}
.editor {
    position: relative;
    border-radius: 18px;
    border: 1px solid var(--line-2);
    background: linear-gradient(180deg, rgba(17, 22, 38, 0.92), rgba(9, 12, 22, 0.96));
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.editor::before,
.rim::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(140deg, rgba(94, 234, 212, 0.55), transparent 35%, transparent 65%, rgba(129, 140, 248, 0.55));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}
.editor-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.editor-tabs { display: flex; gap: 4px; font-family: var(--font-mono); font-size: 12px; }
.editor-tabs span { padding: 5px 10px; border-radius: 7px; color: var(--text-3); }
.editor-tabs span.on { color: #fff; background: var(--surface-2); }
.editor-body {
    display: grid;
    grid-template-columns: 36px 1fr;
    padding: 18px 0 22px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.85;
    min-height: 340px;
}
.editor-gutter { text-align: right; padding-right: 14px; color: rgba(255, 255, 255, 0.18); user-select: none; white-space: pre; }
.editor-code { padding-right: 18px; white-space: pre; overflow: hidden; color: #cbd5e1; }
.editor-code .k { color: #c084fc; }
.editor-code .f { color: #5eead4; }
.editor-code .s { color: #fcd98d; }
.editor-code .t { color: #7dd3fc; }
.editor-code .c { color: #64748b; font-style: italic; }
.editor-code .p { color: #f9a8d4; }
.caret { display: inline-block; width: 8px; height: 1.15em; margin-left: 1px; vertical-align: -0.2em; background: var(--cyan); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.float-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--line-2);
    background: rgba(12, 17, 32, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8);
    font-size: 13px;
    transform: translateZ(60px);
    animation: bob 6s ease-in-out infinite;
}
.float-card strong { display: block; color: #fff; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.float-card small { color: var(--text-3); font-size: 12px; }
.float-card .ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; }
.float-card .ico .lucide { width: 17px; height: 17px; }
.fc-1 { top: -26px; right: -18px; }
.fc-1 .ico { background: rgba(52, 211, 153, 0.15); color: var(--green); }
.fc-2 { bottom: 70px; left: -44px; animation-delay: -2s; }
.fc-2 .ico { background: rgba(129, 140, 248, 0.15); color: var(--indigo); }
.fc-3 { bottom: -30px; right: 34px; animation-delay: -4s; }
.fc-3 .ico { background: rgba(245, 200, 107, 0.15); color: var(--gold); }
@keyframes bob { 50% { translate: 0 -10px; } }

.mini-bars { display: flex; align-items: flex-end; gap: 3px; height: 22px; margin-left: 4px; }
.mini-bars i { width: 4px; border-radius: 2px; background: var(--grad); transform-origin: bottom; animation: bars 1.8s ease-in-out infinite; }
.mini-bars i:nth-child(1) { height: 40%; }
.mini-bars i:nth-child(2) { height: 75%; animation-delay: 0.2s; }
.mini-bars i:nth-child(3) { height: 55%; animation-delay: 0.4s; }
.mini-bars i:nth-child(4) { height: 95%; animation-delay: 0.6s; }
.mini-bars i:nth-child(5) { height: 65%; animation-delay: 0.8s; }
@keyframes bars { 50% { transform: scaleY(0.6); } }

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-3);
}
.scroll-cue::after { content: ""; width: 1px; height: 36px; background: linear-gradient(var(--cyan), transparent); transform-origin: top; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; font-size: 13.5px; color: var(--text-3); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .lucide { width: 14px; height: 14px; }
.breadcrumb [aria-current] { color: var(--text-2); }
.page-hero .h1 { max-width: 920px; }
.page-hero .lead { max-width: 680px; margin-top: 24px; }
.page-hero .hero-actions { margin-top: 36px; }
.page-hero.center { text-align: center; }
.page-hero.center .h1, .page-hero.center .lead { margin-inline: auto; }
.page-hero.center .breadcrumb, .page-hero.center .hero-actions { justify-content: center; }

/* 08 — Cards & surfaces --------------------------------------------------- */
.card {
    position: relative;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
    transition: border-color 0.35s, transform 0.5s var(--ease);
}
.card:hover { border-color: var(--line-2); }
.card-lift:hover { transform: translateY(-6px); }

/* Spotlight that follows the cursor (vars --sx/--sy set in JS) */
.spot { isolation: isolate; overflow: hidden; }
.spot::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 0%), rgba(56, 189, 248, 0.12), transparent 45%);
    opacity: 0;
    transition: opacity 0.4s;
}
.spot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(300px circle at var(--sx, 50%) var(--sy, 0%), rgba(94, 234, 212, 0.7), transparent 50%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.spot:hover::before, .spot:hover::after { opacity: 1; }

.icon-box {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin-bottom: 24px;
    color: var(--cyan);
    background: linear-gradient(140deg, rgba(56, 189, 248, 0.18), rgba(129, 140, 248, 0.06));
    border: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.5s var(--ease-spring);
}
.icon-box .lucide { width: 24px; height: 24px; }
.card:hover .icon-box { transform: translateY(-3px) rotate(-6deg) scale(1.06); }
.icon-box.teal { color: var(--teal); background: linear-gradient(140deg, rgba(45, 212, 191, 0.18), rgba(45, 212, 191, 0.04)); border-color: rgba(45, 212, 191, 0.28); }
.icon-box.violet { color: var(--violet); background: linear-gradient(140deg, rgba(167, 139, 250, 0.2), rgba(167, 139, 250, 0.04)); border-color: rgba(167, 139, 250, 0.3); }
.icon-box.gold { color: var(--gold); background: linear-gradient(140deg, rgba(245, 200, 107, 0.18), rgba(245, 200, 107, 0.04)); border-color: rgba(245, 200, 107, 0.28); }
.icon-box.pink { color: var(--pink); background: linear-gradient(140deg, rgba(244, 114, 182, 0.18), rgba(244, 114, 182, 0.04)); border-color: rgba(244, 114, 182, 0.28); }
.icon-box.sm { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 18px; }
.icon-box.sm .lucide { width: 20px; height: 20px; }

.card .h3 + p, .card .h4 + p { margin-top: 12px; color: var(--text-2); font-size: 15.5px; }
.card .link-arrow { margin-top: 24px; }

.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 15.5px; }
.check-list li::before {
    content: "";
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 3px;
    border-radius: 6px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235eead4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat,
        rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.3);
}
.check-list.compact { gap: 8px; }
.check-list.compact li { font-size: 14.5px; }
.check-list.x-list li::before {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fda4af' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / 11px no-repeat,
        rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.28);
}

/* Bento grid (home capabilities) */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.bento > * { grid-column: span 2; }
.bento .w-3 { grid-column: span 3; }
.bento .w-4 { grid-column: span 4; }
.bento .card { display: flex; flex-direction: column; }
.bento .card .link-arrow { margin-top: auto; padding-top: 24px; }
.bento-visual {
    position: relative;
    margin: -4px -6px 26px;
    min-height: 150px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

/* Mini UI illustrations (pure CSS) */
.ui-browser .bar { display: flex; gap: 6px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ui-browser .bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.ui-browser .bar b { flex: 1; height: 8px; margin-left: 10px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); }
.ui-browser .body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; padding: 16px; }
.ui-line { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); margin-bottom: 8px; }
.ui-line.w60 { width: 60%; }
.ui-line.w80 { width: 80%; }
.ui-line.w40 { width: 40%; }
.ui-line.hl { background: var(--grad); opacity: 0.85; height: 12px; width: 75%; margin-bottom: 12px; }
.ui-block { border-radius: 10px; background: linear-gradient(140deg, rgba(56, 189, 248, 0.3), rgba(129, 140, 248, 0.08)); min-height: 76px; transition: transform 0.6s var(--ease); }
.card:hover .ui-block { transform: scale(1.04) rotate(-1deg); }

.ui-dash { display: grid; grid-template-columns: 54px 1fr; min-height: 170px; }
.ui-dash .side { border-right: 1px solid var(--line); padding: 14px 10px; display: grid; gap: 9px; align-content: start; }
.ui-dash .side i { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); }
.ui-dash .side i:first-child { background: rgba(94, 234, 212, 0.55); }
.ui-dash .main { padding: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-content: start; }
.ui-kpi { padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.ui-kpi i { display: block; height: 6px; width: 40%; border-radius: 3px; background: rgba(255, 255, 255, 0.1); }
.ui-kpi b { display: block; height: 10px; width: 65%; border-radius: 3px; background: rgba(255, 255, 255, 0.22); margin-top: 7px; }
.ui-chart { grid-column: span 3; height: 74px; display: flex; align-items: flex-end; gap: 6px; padding: 10px; border-radius: 10px; border: 1px solid var(--line); }
.ui-chart span { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, rgba(94, 234, 212, 0.85), rgba(56, 189, 248, 0.12)); transform-origin: bottom; transition: transform 0.8s var(--ease); }
.card:hover .ui-chart span:nth-child(odd) { transform: scaleY(1.12); }
.card:hover .ui-chart span:nth-child(even) { transform: scaleY(0.82); }

.ui-phones { display: flex; justify-content: center; align-items: flex-end; gap: 14px; padding-top: 22px; min-height: 170px; }
.ui-phone {
    width: 72px;
    height: 132px;
    border-radius: 16px 16px 0 0;
    border: 1px solid var(--line-2);
    border-bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
    padding: 14px 8px 0;
    transition: transform 0.6s var(--ease);
}
.ui-phone:nth-child(2) { height: 150px; background: linear-gradient(180deg, rgba(245, 200, 107, 0.2), rgba(255, 255, 255, 0.01)); }
.card:hover .ui-phone:nth-child(1) { transform: translateY(-6px) rotate(-5deg); }
.card:hover .ui-phone:nth-child(2) { transform: translateY(-10px); }
.card:hover .ui-phone:nth-child(3) { transform: translateY(-6px) rotate(5deg); }
.ui-phone i { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); margin-bottom: 7px; }
.ui-phone i.b { height: 26px; border-radius: 7px; background: rgba(255, 255, 255, 0.07); }

.ui-nodes { position: relative; min-height: 170px; }
.ui-nodes svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ui-nodes .flow { stroke-dasharray: 6 8; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }

.ui-swatches { display: flex; gap: 10px; padding: 20px 16px 10px; flex-wrap: wrap; }
.ui-swatches i { width: 38px; height: 38px; border-radius: 12px; transition: transform 0.5s var(--ease-spring); }
.card:hover .ui-swatches i { transform: translateY(-5px); }
.card:hover .ui-swatches i:nth-child(2) { transition-delay: 0.05s; }
.card:hover .ui-swatches i:nth-child(3) { transition-delay: 0.1s; }
.card:hover .ui-swatches i:nth-child(4) { transition-delay: 0.15s; }
.card:hover .ui-swatches i:nth-child(5) { transition-delay: 0.2s; }
.ui-type { padding: 0 16px 16px; display: flex; align-items: baseline; gap: 10px; }
.ui-type b { font-family: var(--font-display); font-size: 36px; color: #fff; letter-spacing: -0.03em; }
.ui-type span { font-size: 12px; color: var(--text-3); font-family: var(--font-mono); }

.ui-terminal { padding: 16px 18px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.9; color: var(--text-2); }
.ui-terminal .ok { color: var(--green); }
.ui-terminal .dim { color: var(--text-3); }

/* Marquee (tech stack) */
.marquee {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 48s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 56s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tech {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 16px;
    color: var(--text-2);
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
}
.tech:hover { color: #fff; border-color: var(--line-2); }
.tech i { width: 9px; height: 9px; border-radius: 3px; background: var(--c, var(--cyan)); box-shadow: 0 0 12px var(--c, var(--cyan)); }

.stack-strip { position: relative; z-index: 2; padding-block: 56px; border-block: 1px solid var(--line); background: var(--bg-2); }
.stack-strip .label { text-align: center; margin-bottom: 26px; font-size: 14px; color: var(--text-3); }
.stack-strip .marquee + .marquee { margin-top: 14px; }

.feature-num { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); letter-spacing: 0.08em; }

.panel {
    position: relative;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    padding: 48px;
    overflow: hidden;
}

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.tabs.center { justify-content: center; }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: fade-up 0.5s var(--ease); }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } }

.stack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.stack-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-weight: 500;
    color: var(--text);
    transition: transform 0.35s var(--ease), border-color 0.25s, background-color 0.25s;
}
.stack-item:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--surface-2); }
.stack-item .lucide { width: 20px; height: 20px; color: var(--cyan); }
.stack-item small { display: block; font-size: 12.5px; color: var(--text-3); font-weight: 400; }

/* 09 — Section helpers ---------------------------------------------------- */
.glow-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: min(900px, 80%);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.6), rgba(129, 140, 248, 0.6), transparent);
}

.engage-card { display: flex; flex-direction: column; }
.engage-card .check-list { margin-top: 24px; margin-bottom: 28px; }
.engage-card .btn { margin-top: auto; }
.engage-card .badge-top { position: absolute; top: 22px; right: 22px; }
.engage-card.featured {
    border-color: rgba(56, 189, 248, 0.4);
    background:
        radial-gradient(100% 60% at 50% 0%, rgba(56, 189, 248, 0.14), transparent 70%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    box-shadow: var(--glow);
}

.quote-band { text-align: center; max-width: 980px; margin-inline: auto; }
.quote-band blockquote {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #fff;
}
.quote-band blockquote .dim { color: var(--text-3); }

/* Services page */
.svc-nav {
    position: sticky;
    top: var(--header-h);
    z-index: 50;
    padding-block: 12px;
    background: rgba(5, 7, 13, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-block: 1px solid var(--line);
    transition: top 0.4s var(--ease);
}
.header-hidden .svc-nav { top: 0; }
.svc-nav .container { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.svc-nav .container::-webkit-scrollbar { display: none; }
.svc-nav .pill-btn { flex-shrink: 0; font-size: 14px; padding: 8px 16px; }

.svc-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.svc-block.reverse .svc-media { order: -1; }
.svc-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.svc-meta .feature-num { color: var(--cyan); }
.svc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 32px; }
.col-label {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 14px;
}
.svc-block .btn { margin-top: 36px; }
.svc-media .browser img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }

.spec-card { font-family: var(--font-mono); font-size: 13.5px; }
.spec-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--text-3); font-size: 12.5px; }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); color: var(--text-2); }
.spec-row:last-child { border-bottom: 0; }
.spec-row b { color: #fff; font-weight: 500; text-align: right; }
.spec-row .ok { color: var(--green); }

/* 10 — Work / case studies ------------------------------------------------ */
.browser {
    position: relative;
    border-radius: 18px;
    border: 1px solid var(--line-2);
    background: var(--bg-3);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.browser-bar { display: flex; align-items: center; gap: 14px; padding: 11px 14px; background: rgba(255, 255, 255, 0.03); border-bottom: 1px solid var(--line); }
.browser-bar .url {
    flex: 1;
    max-width: 320px;
    margin-inline: auto;
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-3);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.browser-bar::after { content: ""; width: 47px; } /* balance dots */
.browser img { width: 100%; }

.work-list { display: grid; gap: 28px; }
.work-card {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    overflow: hidden;
    transition: border-color 0.4s;
}
.work-card:hover { border-color: var(--line-2); }
.work-card.reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.work-card.reverse .work-media { order: 2; }
.work-media { position: relative; display: block; overflow: hidden; min-height: 420px; background: var(--bg-3); }
.work-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5, 7, 13, 0.55)); pointer-events: none; }
.work-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transform: scale(1.02);
    transition: transform 1.2s var(--ease);
}
.work-card:hover .work-media img { transform: scale(1.07); }
.work-body { display: flex; flex-direction: column; justify-content: center; padding: 52px 48px; }
.work-body .tag-list { margin-bottom: 22px; }
.work-body .h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.work-body > p { margin-top: 16px; color: var(--text-2); }
.work-body .check-list { margin-top: 24px; }
.work-body .btn { margin-top: 32px; align-self: flex-start; }
.work-index {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 2;
    font-family: var(--font-mono);
    font-size: 12px;
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(5, 7, 13, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--line-2);
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    overflow: hidden;
    transition: border-color 0.35s, transform 0.5s var(--ease), opacity 0.35s var(--ease);
}
.project-card:hover { transform: translateY(-6px); border-color: var(--line-2); }
.project-card.is-filtered { opacity: 0; transform: scale(0.97); }
.project-card[hidden] { display: none; }
.project-card .thumb { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--bg-3); }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1s var(--ease); }
.project-card:hover .thumb img { transform: scale(1.06); }
.project-card .thumb .tag { position: absolute; top: 14px; left: 14px; background: rgba(5, 7, 13, 0.7); }
.project-card .body { display: flex; flex-direction: column; flex: 1; padding: 26px; }
.project-card .body > p { margin-top: 10px; color: var(--text-2); font-size: 15px; }
.project-card .body .tag-list { margin-top: 18px; }
.project-card .foot { margin-top: auto; padding-top: 22px; }
.project-card .stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.project-card.placeholder {
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 28px;
    border-style: dashed;
    background: transparent;
    min-height: 420px;
}
.project-card.placeholder:hover { transform: none; }
.project-card.placeholder p { color: var(--text-2); margin-top: 10px; max-width: 280px; }
.project-card.placeholder .btn { margin-top: 24px; }

.case-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: 48px 0 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--line);
}
.case-meta > div { padding: 20px 22px; background: var(--bg-2); }
.case-meta dt { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.case-meta dd { margin: 6px 0 0; font-weight: 600; color: #fff; }

.case-shot { position: relative; z-index: 3; margin-top: -24px; }
.case-shot .browser { box-shadow: 0 60px 120px -40px rgba(56, 189, 248, 0.25), var(--shadow-lg); }

.next-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 18px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--surface);
    transition: border-color 0.3s, transform 0.4s var(--ease);
}
.next-card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.next-card img { width: 140px; height: 96px; object-fit: cover; object-position: top; border-radius: 12px; flex-shrink: 0; }
.next-card small { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.next-card strong { display: block; margin-top: 4px; font-family: var(--font-display); font-size: 20px; color: #fff; }
.next-card > .lucide { margin-left: auto; width: 20px; height: 20px; color: var(--cyan); transition: transform 0.3s var(--ease); }
.next-card:hover > .lucide { transform: translateX(4px); }

.notice {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 22px 24px;
    border-radius: var(--radius);
    border: 1px dashed var(--line-2);
    background: var(--surface);
}
.notice > .lucide { width: 22px; height: 22px; color: var(--gold); margin-top: 2px; }
.notice p { color: var(--text-2); font-size: 15px; }
.notice strong { color: #fff; }

/* 11 — Process ------------------------------------------------------------ */
.process { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.process-line { position: absolute; top: 28px; left: 28px; right: 28px; height: 1px; background: var(--line-2); overflow: hidden; }
.process-line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1.8s var(--ease) 0.2s;
}
.process.is-in .process-line::after { transform: scaleX(1); }
.step { position: relative; }
.step-dot {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    margin-bottom: 26px;
    border: 1px solid var(--line-2);
    background: var(--bg-3);
    font-family: var(--font-mono);
    font-size: 14px;
    color: #fff;
    transition: border-color 0.5s, box-shadow 0.5s;
}
.process.is-in .step-dot { border-color: rgba(56, 189, 248, 0.55); box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.08), 0 0 30px -6px rgba(56, 189, 248, 0.6); }
.process.is-in .step:nth-of-type(2) .step-dot { transition-delay: 0.45s; }
.process.is-in .step:nth-of-type(3) .step-dot { transition-delay: 0.9s; }
.process.is-in .step:nth-of-type(4) .step-dot { transition-delay: 1.35s; }
.step p { margin-top: 10px; color: var(--text-2); font-size: 15px; }
.step .tag-list { margin-top: 18px; }

/* 12 — FAQ ---------------------------------------------------------------- */
.faq { display: grid; gap: 12px; }
.faq-item { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color 0.3s, background-color 0.3s; }
.faq-item.is-open { border-color: var(--line-2); background: var(--surface-2); }
.faq-q {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    text-align: left;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    color: #fff;
}
.faq-q .plus { position: relative; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform 0.4s var(--ease), background-color 0.3s; }
.faq-q .plus::before,
.faq-q .plus::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.5px; background: #fff; transform: translate(-50%, -50%); }
.faq-q .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.4s var(--ease); }
.faq-item.is-open .plus { background: #fff; transform: rotate(180deg); }
.faq-item.is-open .plus::before, .faq-item.is-open .plus::after { background: #05070d; }
.faq-item.is-open .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 24px 24px; color: var(--text-2); max-width: 760px; }

/* 13 — Forms -------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; align-content: start; }
.field > label, .field > .label { font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.req { color: var(--cyan); }
.input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.input::placeholder { color: #5f6a7d; }
.input:hover { border-color: rgba(255, 255, 255, 0.22); }
.input:focus { outline: none; border-color: var(--cyan); background: rgba(56, 189, 248, 0.04); box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15); }
.input[aria-invalid="true"] { border-color: #fb7185; box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.12); }
select.input {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a7b1c2' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}
select.input option { background: #0c1120; color: #fff; }
textarea.input { resize: vertical; min-height: 140px; }
.field-error { font-size: 13px; color: #fda4af; }
.field-error:empty { display: none; }
.form-note { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-3); }
.form-note .lucide { width: 15px; height: 15px; color: var(--teal); }

.choice-group { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-group legend { padding: 0; margin-bottom: 10px; font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
    display: inline-flex;
    padding: 9px 15px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: var(--surface);
    font-size: 14px;
    color: var(--text-2);
    transition: all 0.2s;
}
.choice:hover span { color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.choice input:checked + span { color: #041019; background: #fff; border-color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }

.form-card {
    position: relative;
    padding: 40px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line-2);
    background: linear-gradient(180deg, rgba(17, 22, 38, 0.92), rgba(9, 12, 22, 0.94));
    box-shadow: var(--shadow-lg);
}

.contact-list { display: grid; gap: 14px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color 0.25s; }
a.contact-item:hover { border-color: var(--line-2); }
.contact-item .icon-box { margin: 0; display: flex ; justify-content: center; }
.contact-item small { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.contact-item strong { display: block; margin-top: 4px; color: #fff; font-weight: 600; }
.contact-item span { display: block; margin-top: 2px; font-size: 14px; color: var(--text-2); }

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(2, 4, 8, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}
.modal.is-open { opacity: 1; }
.modal-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    padding: 40px 36px 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-2);
    background: var(--bg-3);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transform: translateY(16px) scale(0.97);
    transition: transform 0.4s var(--ease);
}
.modal.is-open .modal-card { transform: none; }
.modal-card .icon-box { margin-inline: auto; }
.modal-card p { margin-top: 12px; color: var(--text-2); font-size: 15px; }
.modal-actions { display: grid; gap: 10px; margin-top: 28px; }
.modal-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--text-3); }
.modal-close:hover { color: #fff; background: var(--surface-2); }

/* 14 — CTA & footer ------------------------------------------------------- */
.cta {
    position: relative;
    border-radius: var(--radius-xl);
    padding: 96px 56px;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid var(--line-2);
    background: var(--bg-3);
}
.cta .h2 { max-width: 780px; margin-inline: auto; }
.cta .lead { max-width: 580px; margin: 20px auto 0; }
.cta .hero-actions { justify-content: center; margin-top: 38px; }
.cta-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; text-align: left; padding: 64px; }
.cta-split .h2, .cta-split .lead { margin-inline: 0; }
.cta-split .check-list { margin-top: 32px; }

.site-footer { position: relative; z-index: 2; padding-top: 96px; border-top: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 48px; padding-bottom: 64px; }
.footer-brand img { height: 46px; width: auto; margin-bottom: 22px; }
.footer-brand p { color: var(--text-2); font-size: 15px; max-width: 340px; }
.footer-brand .chip { margin-top: 24px; }
.footer-col h3 {
    margin-bottom: 18px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-3);
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: 15px; color: var(--text-2); transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--text-2); }
.footer-contact .lucide { width: 16px; height: 16px; margin-top: 4px; color: var(--cyan); }
.footer-word {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(3rem, 11.5vw, 10.5rem);
    line-height: 0.8;
    letter-spacing: -0.05em;
    text-align: center;
    white-space: nowrap;
    color: transparent;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), transparent 85%);
    -webkit-background-clip: text;
    background-clip: text;
    user-select: none;
    margin-bottom: -0.1em;
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-3); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-bottom a:hover { color: #fff; }

.to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 900;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid var(--line-2);
    background: rgba(12, 17, 32, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s, border-color 0.2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--cyan); }
.to-top .lucide { width: 18px; height: 18px; }

/* 15 — Motion ------------------------------------------------------------- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: var(--d, 0s);
}
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(0.96); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js .split-words .w {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.5em) rotate(2deg);
    filter: blur(6px);
    transition: opacity 0.8s var(--ease), transform 0.9s var(--ease), filter 0.8s var(--ease);
    transition-delay: calc(var(--i) * 55ms + 0.1s);
}
.js .split-words.is-in .w { opacity: 1; transform: none; filter: none; }
.js .split-words .rotator.w,
.hero .rotator { display: grid; } /* own line: avoids a gap sized to the longest word */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        transition-delay: 0s !important;
        scroll-behavior: auto !important;
    }
    .js [data-reveal], .js .split-words .w { opacity: 1; transform: none; filter: none; }
    .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
    .marquee-track [aria-hidden="true"] { display: none; }
    .hero-stage { transform: none; }
}

/* Honeypot: present in the DOM and tabbable-skipped, but invisible and
   unreachable to real visitors so only automated bots fill it in. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 16 — Utilities ---------------------------------------------------------- */
.flex { display: flex; }
.items-center { align-items: center; }
.gap-12 { gap: 12px; }
.wrap { flex-wrap: wrap; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.rel { position: relative; }

/* 17 — Responsive --------------------------------------------------------- */
@media (max-width: 1180px) {
    .mega-grid { width: 720px; grid-template-columns: 1fr 1fr 200px; }
    .fc-2 { left: -16px; }
}

@media (max-width: 1080px) {
    .nav-links, .nav-actions .btn { display: none; }
    .menu-toggle { display: grid; }
    .hero-inner { grid-template-columns: 1fr; gap: 80px; }
    .hero-visual { max-width: 620px; margin-inline: auto; width: 100%; }
    .hero-stage { transform: none !important; }
    .split, .svc-block, .cta-split { grid-template-columns: 1fr; gap: 48px; }
    .svc-block.reverse .svc-media { order: 0; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bento > *, .bento .w-3 { grid-column: span 1; }
    .bento .w-4 { grid-column: span 2; }
    .work-card, .work-card.reverse { grid-template-columns: 1fr; }
    .work-card.reverse .work-media { order: 0; }
    .work-media { min-height: 0; aspect-ratio: 16 / 10; }
    .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
    .process-line { display: none; }
    .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
    .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    :root { --header-h: 68px; }
    .container { padding-inline: 20px; }
    .section { padding-block: 88px; }
    .section-sm { padding-block: 64px; }
    .section-head { margin-bottom: 44px; }
    .section-head-row { flex-direction: column; align-items: flex-start; margin-bottom: 40px; }
    .brand img { height: 34px; }
    .hero { padding-top: calc(var(--header-h) + 40px); padding-bottom: 80px; }
    .page-hero { padding-top: calc(var(--header-h) + 64px); padding-bottom: 72px; }
    .hero-actions .btn { flex: 1 1 100%; }
    .hero-points { gap: 10px 18px; }
    .scroll-cue { display: none; }
    .editor-body { font-size: 11px; min-height: 270px; grid-template-columns: 28px 1fr; }
    .editor-gutter { padding-right: 10px; }
    .editor-tabs span:not(.on) { display: none; }
    .float-card { padding: 10px 12px; }
    .fc-1 { right: -6px; top: -32px; }
    .fc-2 { left: -6px; bottom: 90px; }
    .fc-3 { right: 10px; bottom: -36px; }
    .grid-2, .grid-3, .grid-4, .form-row, .svc-cols, .project-grid { grid-template-columns: 1fr; }
    .bento { grid-template-columns: 1fr; }
    .bento > *, .bento .w-3, .bento .w-4 { grid-column: span 1; }
    .card { padding: 26px; }
    .panel { padding: 28px 22px; }
    .work-body { padding: 32px 26px; }
    .process { grid-template-columns: 1fr; }
    .cta { padding: 64px 24px; }
    .cta-split { padding: 32px 20px; }
    .form-card { padding: 26px 20px; }
    .footer-top { grid-template-columns: 1fr; gap: 36px; }
    .footer-brand { grid-column: auto; }
    .next-card img { width: 96px; height: 72px; }
    .faq-q { font-size: 16.5px; padding: 18px; }
    .faq-a p { padding: 0 18px 20px; }
}

@media (max-width: 420px) {
    .float-card small { display: none; }
    .fc-2 { display: none; }
    .case-meta { grid-template-columns: 1fr; }
}

/* 18 — Additions: mega footer, misc --------------------------------------- */
.mega-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 820px; }
.mega-foot {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 6px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background:
        radial-gradient(80% 140% at 100% 0%, rgba(129, 140, 248, 0.18), transparent 60%),
        rgba(255, 255, 255, 0.02);
    font-size: 14px;
    color: var(--text-2);
}
.mega-foot .link-arrow { font-size: 14px; }
.mega-link.secondary .ico { color: var(--text-2); }

@media (max-width: 1180px) {
    .mega-grid.three { width: 740px; }
}

/* Filtering must win over reveal state */
.js [data-reveal].project-card.is-filtered,
.project-card.is-filtered { opacity: 0; transform: scale(0.97); }

/* Contact page */
.split.contact-split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; }
.next-steps { display: grid; gap: 16px; margin-top: 20px; }
.next-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--text-2); }
.next-steps .tag { flex-shrink: 0; }
.form-card > .h3 { margin-bottom: 4px; }

@media (max-width: 1080px) {
    .split.contact-split { grid-template-columns: 1fr; }
}

/* 19 — Product facet tabs (Portal / App within one case study) ----------- */
.facet-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 5px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 36px;
}
.facet-tabs [role="tab"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-2);
    transition: color 0.25s, background-color 0.25s;
}
.facet-tabs [role="tab"] .lucide { width: 16px; height: 16px; }
.facet-tabs [role="tab"][aria-selected="true"] { color: #041019; background: #fff; }
.facet-panel[hidden] { display: none; }
.facet-panel { animation: fade-up 0.5s var(--ease); }

/* Case study media that swaps between a browser frame (portal) and a phone
   mock, without layout jumping between the two facets. */
.case-shot .facet-panel .browser,
.case-shot .facet-panel .phone-row { width: 100%; }
.phone-row { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.phone-row .phone-frame {
    width: min(280px, 44vw);
    border-radius: 28px;
    border: 1px solid var(--line-2);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #0c1120;
}
.phone-row .phone-frame img { width: 100%; display: block; }

.rim { position: relative; }
.rim::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* 20 — Admin lead dashboard ------------------------------------------------ */
#lead-lock .field-error { min-height: 18px; }

/* Widen the dashboard beyond the login form's narrow container once a real
   table of leads needs horizontal room. */
#lead-container.is-wide { max-width: 1400px !important; }

#lead-table-wrap {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow-x: auto;
    background: var(--surface);
}
.lead-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
.lead-table th, .lead-table td { white-space: nowrap; }
.lead-table td[data-label="Message"], .lead-table th:nth-child(9) { white-space: normal; }
.lead-table thead th {
    position: sticky;
    top: 0;
    text-align: left;
    padding: 12px 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
    background: var(--bg-2);
    border-bottom: 1px solid var(--line-2);
}
.lead-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    color: var(--text-2);
    vertical-align: top;
}
.lead-table tbody tr:last-child td { border-bottom: 0; }
.lead-table tbody tr:hover { background: var(--surface-2); }
.lead-table tbody tr.is-sample { background: rgba(245, 200, 107, 0.05); }
.lead-table strong { color: #fff; font-weight: 600; }
.lead-table a { color: var(--cyan); text-decoration: none; }
.lead-table a:hover { text-decoration: underline; }
.lead-table .lead-message {
    display: block;
    max-width: 360px;
    min-width: 220px;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.5;
}
.lead-table td[data-label="Message"] { white-space: normal; }

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: var(--text-2);
    border: 1px solid var(--line);
    background: var(--surface);
    flex-shrink: 0;
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.icon-btn .lucide { width: 15px; height: 15px; }
.icon-btn:hover { color: #fff; border-color: var(--line-2); background: var(--surface-2); }
.icon-btn-danger:hover { color: #fda4af; border-color: rgba(253, 164, 164, 0.4); }

/* Small-screen fallback: the table becomes a stack of label/value rows per
   lead instead of forcing horizontal scroll on a phone. */
@media (max-width: 860px) {
    .lead-table thead { display: none; }
    .lead-table, .lead-table tbody, .lead-table tr, .lead-table td { display: block; width: 100%; white-space: normal; }
    .lead-table tbody tr {
        padding: 14px 16px;
        border-bottom: 1px solid var(--line-2);
    }
    .lead-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        padding: 6px 0;
        border-bottom: 0;
    }
    .lead-table tbody td::before {
        content: attr(data-label);
        flex-shrink: 0;
        font-family: var(--font-mono);
        font-size: 10.5px;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--text-3);
        padding-top: 2px;
    }
    .lead-table .lead-message { max-width: 70%; text-align: right; }
}
