:root {
    --bg: #000;
    --white: #fff;
    --gray: #888;
    --muted: #cfcfcf;
    --card-bg: #0c0c0c;
    --border: rgba(255,255,255,0.1);
    --border-hover: rgba(255,255,255,0.32);
    --green: #22c55e;
    --font: 'Inter', system-ui, sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--white);
    font-family: var(--font);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

a {
    color: inherit;
}

button {
    font: inherit;
}

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

#stars-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

@media (pointer: fine) {
    *, *::before, *::after {
        cursor: none !important;
    }
}

#cursor-dot,
#cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    will-change: transform;
}

#cursor-dot {
    z-index: 9999;
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    transition: width .15s var(--ease), height .15s var(--ease), background .2s, opacity .2s;
}

#cursor-ring {
    z-index: 9998;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    transition: width .35s var(--ease), height .35s var(--ease), border-color .35s, background .35s, opacity .2s;
}

body.cursor-hover #cursor-dot {
    width: 8px;
    height: 8px;
}

body.cursor-hover #cursor-ring {
    width: 54px;
    height: 54px;
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
}

body.cursor-click #cursor-dot {
    width: 4px;
    height: 4px;
}

body.cursor-click #cursor-ring {
    width: 28px;
    height: 28px;
    border-color: rgba(255,255,255,0.9);
}

.section-inner,
.nav-inner,
.hero-inner,
.footer-inner {
    position: relative;
    z-index: 2;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-domain,
.tech-label {
    font-family: var(--mono);
    color: var(--gray);
}

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: background .3s ease, border-color .3s ease;
}

#navbar.scrolled {
    background: rgba(0,0,0,.8);
    border-color: var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo {
    width: 82px;
    height: 52px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}

.nav-links a {
    position: relative;
    color: var(--gray);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    transition: color .2s;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a.active {
    color: var(--white);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--white);
    box-shadow: 0 0 8px rgba(255,255,255,.7), 0 0 18px rgba(255,255,255,.35);
}

.nav-cta {
    flex-shrink: 0;
    padding: .5rem 1.25rem;
    border-radius: 20px;
    background: var(--white);
    color: var(--bg);
    font-size: .875rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,255,255,.2);
}

/* === Nav settings icon button === */
.nav-settings-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: var(--gray);
    text-decoration: none;
    font-size: .9rem;
    transition: color .2s, background .2s;
    flex-shrink: 0;
}
.nav-settings-btn:hover { color: var(--white); background: rgba(255,255,255,.06); }
.nav-settings-btn.active { color: var(--white); background: rgba(255,255,255,.06); }

/* === Nav account widget (right side, after CTA) === */
.nav-right {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-shrink: 0;
}

.nav-account {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-signin {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .9rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255,255,255,.03);
    color: var(--gray);
    font-size: .8rem;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s, border-color .2s, background .2s;
}

.nav-signin:hover {
    color: var(--white);
    border-color: rgba(255,255,255,.22);
    background: rgba(255,255,255,.06);
}

.nav-signin i { font-size: .75rem; }

.nav-avatar-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: 4px 10px 4px 4px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: 22px;
    cursor: pointer;
    font: inherit;
    color: var(--gray);
    transition: border-color .2s, background .2s, color .2s;
}

.nav-avatar-btn:hover { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.07); color: var(--white); }

.nav-avatar-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--white);
    flex-shrink: 0;
}

.nav-avatar-circle-img { padding: 0; overflow: hidden; }
.nav-avatar-circle-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.nav-avatar-chev { font-size: .65rem; transition: transform .2s; }
.nav-avatar-btn[aria-expanded="true"] .nav-avatar-chev { transform: rotate(180deg); }

.nav-avatar-menu {
    position: absolute;
    top: calc(100% + .6rem);
    right: 0;
    width: 280px;
    background: rgba(8,8,8,.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: .6rem;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    opacity: 0;
    transform: translateY(-6px) scale(.98);
    pointer-events: none;
    transition: opacity .18s var(--ease), transform .18s var(--ease);
    z-index: 110;
}

.nav-avatar-menu.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.nav-avatar-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem .6rem .75rem;
}

.nav-avatar-circle-lg {
    width: 40px;
    height: 40px;
    font-size: .8rem;
}

.nav-avatar-meta { min-width: 0; flex: 1; }

.nav-avatar-name {
    font-size: .85rem;
    font-weight: 600;
    color: var(--white);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-avatar-email {
    font-size: .72rem;
    color: var(--gray);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--mono);
}

.nav-avatar-divider {
    height: 1px;
    background: var(--border);
    margin: .25rem 0;
}

.nav-avatar-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    width: 100%;
    padding: .55rem .65rem;
    border-radius: 8px;
    background: none;
    border: none;
    color: #ccc;
    font: inherit;
    font-size: .82rem;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.nav-avatar-item i { width: 14px; color: var(--gray); font-size: .8rem; }
.nav-avatar-item:hover { background: rgba(255,255,255,.06); color: var(--white); }
.nav-avatar-item:hover i { color: var(--white); }

.nav-avatar-badge {
    margin-left: auto;
    font-family: var(--mono);
    font-size: .58rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(34,197,94,.1);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,.3);
}

.nav-avatar-badge.team {
    background: rgba(59,130,246,.1);
    color: #3b82f6;
    border-color: rgba(59,130,246,.35);
}

/* === Role rings on avatars ============================================
   Add `role-admin` / `role-team` to ANY avatar element that has its own
   border (nav widget, dash-avatar, members-avatar, settings-avatar, etc.)
   and the border colour will reflect the user's role. Subtle by design. */
.role-admin { border-color: rgba(34,197,94,.55) !important; box-shadow: 0 0 0 1px rgba(34,197,94,.18); }
.role-team  { border-color: rgba(59,130,246,.55) !important; box-shadow: 0 0 0 1px rgba(59,130,246,.18); }

.nav-avatar-signout { color: #ff8a8a; }
.nav-avatar-signout:hover { background: rgba(255,80,80,.08); color: #ffb0b0; }
.nav-avatar-signout i { color: #ff8a8a; }
.nav-avatar-signout:hover i { color: #ffb0b0; }

@media (max-width: 768px) {
    .nav-avatar-menu { width: 260px; right: -1rem; }
    .nav-signin span { display: none; }
    .nav-signin { padding: .45rem .65rem; }
}

.glow-button {
    position: relative;
    display: inline-block;
    overflow: hidden;
    padding: 1rem 3rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: transparent;
    color: var(--white);
    font-family: var(--mono);
    font-size: .95rem;
    letter-spacing: .1em;
    text-decoration: none;
    transition: border-color .3s, box-shadow .3s;
}

.glow-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
    transition: left .5s ease;
}

.glow-button:hover::before {
    left: 100%;
}

.glow-button:hover {
    border-color: rgba(255,255,255,.4);
    box-shadow: 0 0 24px rgba(255,255,255,.15);
}

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 46px;
    padding: .85rem 2rem;
    border-radius: 30px;
    font-size: .95rem;
    text-decoration: none;
}

.btn-primary {
    border: none;
    background: var(--white);
    color: var(--bg);
    font-weight: 700;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(255,255,255,.25);
}

.btn-ghost {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--white);
    font-weight: 600;
    transition: background .25s, border-color .25s;
}

.btn-ghost:hover {
    background: rgba(255,255,255,.06);
    border-color: var(--border-hover);
}

#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding-top: 20px;
    padding-bottom: 1.5rem;
    text-align: center;
}



.hero-tagline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .5rem .25rem;
    max-width: 720px;
    color: var(--gray);
    font-size: clamp(1.1rem, 2.4vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.5;
}

.hero-bullet {
    color: rgba(255,255,255,.25);
    font-weight: 300;
    font-size: 1.2em;
    line-height: 1;
    -webkit-user-select: none;
    user-select: none;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.hero-logo-wrap {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 460px;
}

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

.cf {
    position: absolute;
    top: 50%;
    left: 50%;
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 400;
    color: rgba(34,197,94,.9);
    text-shadow: 0 0 8px rgba(34,197,94,.35);
    white-space: nowrap;
    letter-spacing: .04em;
    animation: cf-orbit linear infinite;
    transform-origin: 0 0;
}

/* Each token: different radius, speed, start angle, fade depth */
.cf-1 { --r: 210px; --dur: 18s; --start: 0deg;   animation-duration: 18s; animation-delay: 0s; }
.cf-2 { --r: 240px; --dur: 24s; --start: 45deg;  animation-duration: 24s; animation-delay: -6s; }
.cf-3 { --r: 190px; --dur: 15s; --start: 110deg; animation-duration: 15s; animation-delay: -3s; }
.cf-4 { --r: 260px; --dur: 28s; --start: 170deg; animation-duration: 28s; animation-delay: -10s; }
.cf-5 { --r: 220px; --dur: 20s; --start: 220deg; animation-duration: 20s; animation-delay: -8s; }
.cf-6 { --r: 250px; --dur: 22s; --start: 280deg; animation-duration: 22s; animation-delay: -4s; }
.cf-7 { --r: 200px; --dur: 17s; --start: 330deg; animation-duration: 17s; animation-delay: -12s; }
.cf-8 { --r: 235px; --dur: 26s; --start: 75deg;  animation-duration: 26s; animation-delay: -7s; }

@keyframes cf-orbit {
    0%   { transform: rotate(var(--start)) translateX(var(--r)) rotate(calc(-1 * var(--start)))           translateY(-50%); opacity: .55; }
    25%  { opacity: .75; }
    50%  { opacity: .4; }
    75%  { opacity: .7; }
    100% { transform: rotate(calc(var(--start) + 360deg)) translateX(var(--r)) rotate(calc(-1 * (var(--start) + 360deg))) translateY(-50%); opacity: .55; }
}

.hero-logo {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 28px rgba(255,255,255,.12));
}

/* === TRUSTED BADGE === */
.trusted-outer {
    position: relative;
    display: inline-flex;
    border-radius: 100px;
    padding: 1.5px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.trusted-outer::before {
    content: '';
    position: absolute;
    width: 200%;
    aspect-ratio: 1;
    top: 50%;
    left: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 252deg,
        rgba(255,255,255,0.04) 270deg,
        rgba(255,255,255,0.88) 300deg,
        rgba(255,255,255,0.04) 330deg,
        transparent 348deg,
        transparent 360deg
    );
    -webkit-animation: trusted-spin 4s linear infinite;
    animation: trusted-spin 4s linear infinite;
}

.trusted-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.42rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,.65);
    background: rgba(6,6,6,.97);
    z-index: 1;
    white-space: nowrap;
}

.trusted-badge > i {
    font-size: 0.68rem;
    color: rgba(255,255,255,.38);
}

.trusted-avatars {
    display: flex;
    align-items: center;
    margin-right: 0.05rem;
}

.ta {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid #000;
    overflow: hidden;
    margin-left: -8px;
    flex-shrink: 0;
    background: #111;
}

.ta:first-child { margin-left: 0; }

.ta-1 { z-index: 5; }
.ta-2 { z-index: 4; }
.ta-3 { z-index: 3; }
.ta-4 { z-index: 2; }
.ta-5 { z-index: 1; }

.ta img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

@-webkit-keyframes trusted-spin {
    from { -webkit-transform: translate(-50%, -50%) rotate(0deg); transform: translate(-50%, -50%) rotate(0deg); }
    to   { -webkit-transform: translate(-50%, -50%) rotate(360deg); transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes trusted-spin {
    from { -webkit-transform: translate(-50%, -50%) rotate(0deg); transform: translate(-50%, -50%) rotate(0deg); }
    to   { -webkit-transform: translate(-50%, -50%) rotate(360deg); transform: translate(-50%, -50%) rotate(360deg); }
}

/* === WORK / PROJECTS === */
.work-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.25rem 2.75rem;
    margin-bottom: 3.5rem;
    padding: 2rem 2.5rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255,255,255,.02);
}

.wl-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0.35rem 0.75rem;
    background: rgba(255,255,255,.07);
    border-radius: 10px;
    opacity: .6;
    transition: opacity .3s;
}

.wl-item:hover { opacity: 1; }

.wl-item img {
    max-height: 32px;
    max-width: 100px;
    object-fit: contain;
    border-radius: 6px;
}

.wl-initial {
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: rgba(255,255,255,.75);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.work-card {
    display: flex;
    flex-direction: column;
    padding: 1.6rem;
}

.wc-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.4rem;
    padding: 0.5rem 0.85rem;
    background: rgba(255,255,255,.07);
    border-radius: 10px;
    min-height: 52px;
}

.wc-logo img {
    max-height: 38px;
    max-width: 130px;
    object-fit: contain;
    border-radius: 6px;
}

.wc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 11px;
    font-family: var(--mono);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
}

.wc-badge-blue   { background: linear-gradient(135deg,#1a3a6e,#0f2040); color: #6eaaff; }
.wc-badge-purple { background: linear-gradient(135deg,#3a1a5e,#200f40); color: #b06eff; }
.wc-badge-teal   { background: linear-gradient(135deg,#0f3a3a,#082020); color: #4ecfcf; }
.wc-badge-amber  { background: linear-gradient(135deg,#3a2a0f,#201508); color: #ffb84e; }
.wc-badge-pink   { background: linear-gradient(135deg,#3a1a2e,#200f18); color: #ff6eb0; }
.wc-badge-green  { background: linear-gradient(135deg,#0f3a1e,#082010); color: #4ecf8a; }

.wc-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .65rem;
    flex-wrap: wrap;
}

.wc-industry {
    font-size: .72rem;
    color: var(--gray);
    letter-spacing: .05em;
}

.wc-name {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: .55rem;
}

.wc-desc {
    color: var(--gray);
    font-size: .9rem;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1.25rem;
}

.wc-outcome {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border);
    font-size: .82rem;
    font-weight: 600;
    color: rgba(255,255,255,.78);
}

.wc-outcome i { color: rgba(34,197,94,.85); font-size: .78rem; }

.wc-outcome-soon {
    color: var(--gray);
    font-weight: 400;
    font-family: var(--mono);
    font-size: .74rem;
    letter-spacing: .04em;
}

.wc-outcome-soon i { color: var(--gray); }

.wc-soon { opacity: .65; }
.wc-soon:hover { opacity: 1; }

.ticker-wrap {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: .9rem 0;
    background: rgba(255,255,255,.02);
}

@media (min-width: 961px) {
    .ticker-wrap {
        margin-top: 2rem;
    }
}

.ticker {
    display: flex;
    width: max-content;
    animation: ticker-anim 28s linear infinite;
}

.ticker-item {
    padding: 0 2rem;
    color: var(--gray);
    font-family: var(--mono);
    font-size: .85rem;
    white-space: nowrap;
}

.ticker-sep {
    display: flex;
    align-items: center;
    color: var(--gray);
}

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

.scroll-hint,
.section-arrow {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    z-index: 3;
    transform: translateX(-50%);
    border: none;
    background: transparent;
    color: var(--gray);
    font-size: 1.1rem;
    cursor: pointer;
    animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
    0%, 100% { transform: translate(-50%,0); }
    50% { transform: translate(-50%,-8px); }
}

.section {
    position: relative;
    padding: 7rem 0;
    border-top: 1px solid var(--border);
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-tag {
    display: block;
    margin-bottom: 1.25rem;
    color: var(--gray);
    font-size: .75rem;
    letter-spacing: .12em;
}

.section-title {
    margin-bottom: 1.25rem;
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.section-desc {
    max-width: 620px;
    margin: 0 auto;
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.7;
}

.animated-title .anim-word {
    display: inline-block;
    margin-right: .25em;
    opacity: 0;
    transform: translateY(30px) skewX(-5deg);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
}

.animated-title.active .anim-word {
    opacity: 1;
    transform: none;
}

.animated-title.active .anim-word:nth-child(1) { transition-delay: .05s; }
.animated-title.active .anim-word:nth-child(2) { transition-delay: .18s; }
.animated-title.active .anim-word:nth-child(3) { transition-delay: .31s; }

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 14px 36px rgba(255,255,255,.05);
}

.card h3,
.process-step h3 {
    margin-bottom: .75rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.card p,
.process-step p {
    color: var(--gray);
    font-size: .95rem;
    line-height: 1.65;
}

.card-icon {
    display: block;
    margin-bottom: 1.25rem;
    font-size: 1.8rem;
}

.card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.card-top-row .card-icon {
    margin-bottom: 0;
}

.badge {
    padding: .25rem .75rem;
    border-radius: 20px;
    background: rgba(255,255,255,.08);
    font-family: var(--mono);
    font-size: .75rem;
}

.cards-grid,
.capability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.process-step {
    position: relative;
    min-height: 280px;
    padding: 2rem;
    border-left: 1px solid var(--border);
}

.process-step::before {
    content: '';
    position: absolute;
    top: 2.35rem;
    left: -5px;
    width: 9px;
    height: 9px;
    border: 1px solid var(--white);
    border-radius: 50%;
    background: var(--bg);
}

.process-number {
    display: block;
    margin-bottom: 4.5rem;
    color: var(--gray);
    font-family: var(--mono);
    font-size: .82rem;
    letter-spacing: .18em;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

.stat-card {
    padding: 2rem 1rem;
    text-align: center;
}

.stat-card h3 {
    margin-bottom: .4rem;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.stat-card p {
    color: var(--gray);
    font-size: .88rem;
}

.tech-stack {
    margin-top: 3rem;
    text-align: center;
}

.tech-label {
    display: block;
    margin-bottom: 1.5rem;
    font-size: .72rem;
    letter-spacing: .2em;
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
}

.tech-pills span {
    padding: .4rem .9rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--card-bg);
    color: var(--gray);
    font-size: .85rem;
    transition: border-color .2s, color .2s;
}

.tech-pills span:hover {
    border-color: var(--border-hover);
    color: var(--white);
}

.reviews-double {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow: hidden;
}

.reviews-carousel {
    width: 100vw;
    overflow: hidden;
    padding: .5rem 0;
}

.reviews-track {
    display: flex;
    width: max-content;
    gap: 1.25rem;
    padding: 0 2rem;
    animation: scroll-track 32s linear infinite;
}

.reviews-track.reverse {
    animation-direction: reverse;
}

.reviews-track:hover {
    animation-play-state: paused;
}

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

.review-card {
    width: 340px;
    flex-shrink: 0;
    padding: 1.75rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--card-bg);
    transition: border-color .3s;
}

.review-card:hover {
    border-color: var(--border-hover);
}

.review-stars {
    margin-bottom: 1rem;
    color: #f59e0b;
    font-size: .85rem;
}

.review-text {
    margin-bottom: 1.25rem;
    color: #ccc;
    font-size: .97rem;
    font-style: italic;
    line-height: 1.65;
}

.review-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-avatar {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #151515;
    object-fit: cover;
}

.review-meta {
    display: flex;
    flex-direction: column;
}

.review-author {
    font-size: .95rem;
    font-weight: 700;
}

.review-role {
    margin-top: .2rem;
    color: var(--gray);
    font-size: .8rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    color: var(--white);
    text-decoration: none;
}

.contact-card i {
    flex-shrink: 0;
    color: var(--gray);
    font-size: 1.4rem;
}

.contact-label {
    display: block;
    margin-bottom: .2rem;
    color: var(--gray);
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .1em;
}

.contact-value {
    display: block;
    overflow-wrap: anywhere;
    font-size: .97rem;
    font-weight: 500;
}

.social-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
}

.social-chip {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.25rem;
    color: var(--white);
    font-size: .88rem;
    text-decoration: none;
}

.section-cta {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.service-grid {
    align-items: stretch;
}

.service-card {
    width: 100%;
    color: var(--white);
    text-align: left;
    border: 1px solid var(--border);
}

.service-card .card-icon {
    color: var(--white);
}

.service-kicker,
.card-action,
.team-role {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--gray);
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.service-kicker {
    margin-bottom: 1rem;
}

.card-action {
    margin-top: 1.5rem;
    color: var(--white);
    letter-spacing: 0;
    text-transform: none;
    transition: gap .25s var(--ease);
}

.service-card:hover .card-action {
    gap: .85rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.team-card,
.join-card {
    overflow: hidden;
}

.team-image-wrap {
    position: relative;
    min-height: 340px;
    margin: -2rem -2rem 1.5rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(255,255,255,.08), transparent 58%);
    border-bottom: 1px solid var(--border);
}

.team-image {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,.45));
}

.team-card h3,
.join-card h3 {
    margin-top: .75rem;
}

.join-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

.join-card .btn-ghost {
    margin-top: 1.5rem;
    width: fit-content;
}

.pricing-modal,
.newsletter-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.pricing-modal.active,
.newsletter-modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal-panel,
.newsletter-panel {
    position: relative;
    z-index: 2;
    width: min(980px, 100%);
    max-height: min(760px, 90vh);
    overflow: auto;
    background: #0b0b0b;
    border: 1px solid var(--border-hover);
    border-radius: 18px;
    box-shadow: 0 30px 100px rgba(0,0,0,.8);
    padding: 2rem;
}

.newsletter-panel {
    width: min(560px, 100%);
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    color: var(--white);
}

.modal-panel h2,
.newsletter-panel h2 {
    margin: .75rem 2.5rem 1rem 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.modal-panel p,
.newsletter-panel p {
    color: var(--gray);
    line-height: 1.7;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.pricing-card {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--card-bg);
}

.pricing-card.featured {
    border-color: rgba(255,255,255,.42);
    box-shadow: 0 0 34px rgba(255,255,255,.08);
}

.pricing-card h3 {
    font-size: 1.15rem;
    margin-bottom: .7rem;
}

.pricing-price {
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.pricing-card ul {
    display: grid;
    gap: .65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pricing-card li {
    color: var(--gray);
    font-size: .9rem;
    line-height: 1.45;
}

.pricing-card li::before {
    content: '+';
    margin-right: .5rem;
    color: var(--white);
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.newsletter-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .75rem;
    margin: 1.75rem 0 1rem;
}

.newsletter-form input {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #050505;
    color: var(--white);
    padding: 0 1.2rem;
    font-size: .95rem;
    outline: none;
}

.newsletter-form input:focus {
    border-color: var(--border-hover);
}

.newsletter-note {
    font-size: .82rem;
}

.playground-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
}

.game-tabs {
    display: flex;
    gap: .5rem;
    padding: .4rem;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: var(--card-bg);
}

.game-tab {
    border: none;
    border-radius: 20px;
    background: transparent;
    color: var(--gray);
    padding: .6rem 1.5rem;
    font-family: var(--mono);
    font-size: .85rem;
    transition: background .25s, color .25s;
}

.game-tab:hover,
.game-tab.active {
    color: var(--white);
}

.game-tab.active {
    background: rgba(255,255,255,.1);
}

.game-frame {
    width: min(520px, 100%);
    position: relative;
    overflow: hidden;
    padding: 0;
}

#gameCanvas {
    width: 100%;
    height: auto;
    display: block;
    background: #030303;
}

.game-overlay {
    position: absolute;
    inset: 0 0 48px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(0,0,0,.82);
    text-align: center;
}

.game-overlay.hidden {
    display: none;
}

.game-overlay h3 {
    font-size: 1.4rem;
}

.game-overlay p {
    color: var(--gray);
}

.glow-button.small {
    padding: .75rem 2rem;
    font-size: .85rem;
}

.game-hud {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border-top: 1px solid var(--border);
    background: var(--card-bg);
}

.hud-label {
    color: var(--gray);
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .15em;
}

.hud-score {
    font-family: var(--mono);
    font-size: 1.1rem;
    font-weight: 700;
}

.live-viewers {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 150;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #111;
    color: var(--white);
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity .3s, transform .3s, border-color .3s, box-shadow .3s;
}

.live-viewers.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.live-viewers i {
    position: absolute;
    font-size: 2rem;
    color: var(--white);
    opacity: .2;
}

#live-count {
    position: relative;
    z-index: 1;
    font-family: var(--mono);
    font-size: .78rem;
    font-weight: 700;
    transition: opacity .25s ease;
}

#live-count.fade {
    opacity: 0;
}

.live-viewers.pop {
    animation: viewer-pop .4s var(--ease);
}

@keyframes viewer-pop {
    0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.35); border-color: rgba(255,255,255,.5); }
    50%  { box-shadow: 0 0 0 10px rgba(255,255,255,0); border-color: rgba(255,255,255,.5); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); border-color: var(--border); }
}

.floating-wa {
    border-color: rgba(37,211,102,.35);
    font-size: 1.9rem;
}

.floating-wa:hover {
    border-color: rgba(37,211,102,.7);
    box-shadow: 0 8px 30px rgba(37,211,102,.25);
}

#footer {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-domain {
    font-size: .82rem;
    letter-spacing: .18em;
}

#footer p {
    color: var(--gray);
    font-size: .85rem;
}

/* Legal pill dropdown in footer */
.footer-legal {
    position: relative;
    display: flex;
    align-items: center;
}

.footer-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: 7px 16px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--gray);
    font: inherit;
    font-size: .8rem;
    cursor: pointer;
    transition: color .2s, border-color .2s, background .2s;
}

.footer-pill:hover {
    color: var(--white);
    border-color: rgba(255,255,255,.22);
    background: rgba(255,255,255,.07);
}

.footer-pill-chev {
    font-size: .65rem;
    transition: transform .2s var(--ease);
}

.footer-pill[aria-expanded="true"] .footer-pill-chev {
    transform: rotate(180deg);
}

.footer-legal-menu {
    position: absolute;
    bottom: calc(100% + .6rem);
    right: 0;
    width: 240px;
    background: rgba(8,8,8,.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: .55rem;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    opacity: 0;
    transform: translateY(6px) scale(.98);
    pointer-events: none;
    transition: opacity .18s var(--ease), transform .18s var(--ease);
    z-index: 80;
}

.footer-legal-menu.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.footer-legal-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem .7rem;
    border-radius: 8px;
    color: #ccc;
    font-size: .82rem;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.footer-legal-item i {
    width: 14px;
    color: var(--gray);
    font-size: .78rem;
    transition: color .15s;
}

.footer-legal-item:hover {
    background: rgba(255,255,255,.06);
    color: var(--white);
}

.footer-legal-item:hover i { color: var(--white); }

.floating-contact {
    position: fixed;
    left: 2rem;
    bottom: 2rem;
    z-index: 150;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #111;
    color: var(--white);
    font-size: 1.6rem;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity .3s, transform .3s, border-color .3s, box-shadow .3s;
    animation: contact-pulse 3s infinite;
}

.floating-contact.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.floating-contact:hover {
    transform: translateY(-4px) scale(1.06);
    border-color: rgba(255,255,255,.5);
    box-shadow: 0 8px 30px rgba(255,255,255,.16);
    animation-play-state: paused;
}

@keyframes contact-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,.24); }
    30% { box-shadow: 0 0 0 15px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.reveal,
.reveal-up,
.reveal-slide {
    opacity: 0;
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal {
    transform: translateY(28px);
}

.reveal-up {
    transform: translateY(36px);
}

.reveal-slide {
    transform: translateX(-28px);
}

.reveal.active,
.reveal-up.active,
.reveal-slide.active {
    opacity: 1;
    transform: none;
}

@media (max-width: 960px) {
    .nav-links {
        display: none;
    }

    .hero-logo {
        width: min(360px, 86vw);
    }

    .cf-1 { --r: 115px; }
    .cf-2 { --r: 130px; }
    .cf-3 { --r: 105px; }
    .cf-4 { --r: 140px; }
    .cf-5 { --r: 120px; }
    .cf-6 { --r: 135px; }
    .cf-7 { --r: 110px; }
    .cf-8 { --r: 128px; }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-inner,
    .hero-inner,
    .footer-inner,
    .nav-inner {
        padding: 0 1.5rem;
    }

    .nav-inner {
        height: 64px;
    }

    .nav-logo {
        width: 62px;
        height: 40px;
    }

    .nav-cta {
        padding: .45rem 1rem;
        font-size: .8rem;
    }

    #hero {
        min-height: auto;
    }

    .hero-inner {
        padding-top: 6rem;
        padding-bottom: 2.5rem;
    }

    .ticker-wrap {
        margin-top: -1rem;
    }

    .hero-tagline {
        font-size: .95rem;
        font-weight: 500;
        letter-spacing: 0;
        gap: .4rem .2rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-btns a {
        width: 100%;
    }

    .scroll-hint {
        position: static;
        transform: none;
        margin: 2.5rem auto 1rem;
        animation: bob-mobile 2s ease-in-out infinite;
    }

    @keyframes bob-mobile {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-6px); }
    }

    .section {
        padding: 4.5rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: 2.35rem;
    }

    .section-desc {
        font-size: .95rem;
    }

    .cards-grid,
    .capability-grid,
    .process-grid,
    .stats-grid,
    .contact-grid,
    .team-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card {
        padding: 1.5rem 1.25rem;
        text-align: center;
    }

    .card-icon {
        margin: 0 auto 1.1rem;
        font-size: 1.6rem;
    }

    .card-top-row {
        justify-content: center;
        flex-direction: column;
        gap: .75rem;
    }

    .process-step {
        min-height: auto;
        padding: 1.5rem 1.25rem;
        border: 1px solid var(--border);
        border-radius: 16px;
        background: var(--card-bg);
        text-align: center;
    }

    .process-step::before {
        display: none;
    }

    .process-number {
        margin-bottom: 1.5rem;
    }

    .stat-card h3 {
        font-size: 2.35rem;
    }

    .review-card {
        width: 85vw;
        max-width: 320px;
        padding: 1.25rem;
        text-align: center;
    }

    .review-footer {
        justify-content: center;
    }

    .contact-card {
        flex-direction: column;
        gap: .75rem;
        text-align: center;
    }

    .service-card {
        text-align: center;
    }

    .team-image-wrap {
        min-height: 280px;
        margin: -1.5rem -1.25rem 1.25rem;
    }

    .join-card .btn-ghost {
        width: 100%;
    }

    .modal-panel,
    .newsletter-panel {
        padding: 1.5rem 1.25rem;
        border-radius: 14px;
    }

    .modal-panel h2,
    .newsletter-panel h2 {
        margin-right: 2rem;
    }

    .newsletter-form {
        grid-template-columns: 1fr;
    }

    .newsletter-form input {
        min-height: 46px;
        text-align: center;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions a {
        width: 100%;
    }

    .game-tabs {
        width: 100%;
        flex-direction: column;
        border-radius: 14px;
    }

    .game-tab {
        width: 100%;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .floating-contact {
        left: 1rem;
        bottom: 1rem;
        width: 52px;
        height: 52px;
    }

    .live-viewers {
        right: 1rem;
        bottom: 1rem;
        width: 52px;
        height: 52px;
    }

    .card:hover,
    .btn-primary:hover,
    .floating-contact:hover {
        transform: none;
        box-shadow: none;
    }
}
