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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    background: #0D0D0D;
    color: #F0F0F0;
    line-height: 1.6;
}

/* ─── TOKENS ─────────────────────────────────── */
:root {
    --black:   #0D0D0D;
    --navy:    #1A1A2E;
    --indigo:  #5B3FFF;
    --indigo-dim: #3D2BB5;
    --lime:    #C8FF00;
    --white:   #F0F0F0;
    --muted:   #8A8A9A;
    --border:  rgba(255,255,255,0.08);
    --pad-x:   clamp(24px, 6vw, 120px);
}

/* ─── HEADER ─────────────────────────────────── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13,13,13,0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px var(--pad-x);
}

.logo {
    text-decoration: none;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1;
}

.logo-pxl {
    color: var(--indigo);
}

.logo-code {
    color: limegreen;
}

.links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

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

.links a.nav-cta {
    color: var(--indigo);
    border: 1px solid var(--indigo);
    padding: 8px 20px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

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

/* ─── HERO ───────────────────────────────────── */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 80px var(--pad-x);
    position: relative;
    overflow: hidden;
    background: var(--black);
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.hero-eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: limegreen;
    margin: 0 0 24px;
}

.hero h1 {
    font-size: clamp(52px, 8vw, 96px);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.0;
    margin: 0 0 28px;
    color: var(--white);
}

.accent {
    color: var(--indigo);
}

.hero-sub {
    font-size: 18px;
    color: var(--muted);
    max-width: 520px;
    margin: 0 0 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ─── PIXEL DECO ─────────────────────────────── */
.hero-grid-deco {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
}

.grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 48px 48px;
}

.pixel-block {
    position: absolute;
    border-radius: 4px;
}

.pb1 {
    width: 96px; height: 96px;
    background: var(--indigo);
    opacity: 0.7;
    top: 20%; right: 28%;
}
.pb2 {
    width: 48px; height: 48px;
    background: var(--lime);
    opacity: 0.9;
    top: calc(20% + 96px); right: 28%;
}
.pb3 {
    width: 48px; height: 48px;
    background: var(--indigo-dim);
    opacity: 0.5;
    top: 20%; right: calc(28% - 48px);
}
.pb4 {
    width: 144px; height: 144px;
    border: 2px solid var(--indigo);
    opacity: 0.2;
    top: calc(20% - 30px); right: calc(28% - 50px);
}

/* ─── BUTTONS ────────────────────────────────── */
.btn-primary {
    background: var(--indigo);
    color: var(--white);
    border: none;
    border-radius: 4px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
    background: limegreen;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: border-color 0.2s, background 0.2s;
}

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

.btn-lime {
    background: var(--lime);
    color: #0D0D0D;
    border: none;
    border-radius: 4px;
    padding: 16px 40px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.15s;
    flex-shrink: 0;
}

.btn-lime:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* ─── SECTION COMMON ─────────────────────────── */
.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    margin-bottom: 60px;
}

.section-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--indigo);
    margin: 0 0 14px;
}

.section-header h2 {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--white);
}

/* ─── SERVICES ───────────────────────────────── */
.services {
    background: var(--navy);
    padding: 100px var(--pad-x);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2px;
    background: var(--border);
    border: 1px solid var(--border);
}

.service-card {
    background: var(--navy);
    padding: 40px 32px;
    transition: background 0.2s;
}

.service-card:hover {
    background: #1f1f3a;
}

.service-icon {
    width: 44px;
    height: 44px;
    color: var(--indigo);
    margin-bottom: 24px;
}

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

.service-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
}

/* ─── PROCESS ────────────────────────────────── */
.process {
    background: var(--black);
    padding: 100px var(--pad-x);
}

.process-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.process-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-num {
    font-size: 48px;
    font-weight: 900;
    color: var(--indigo);
    opacity: 0.35;
    line-height: 1;
    letter-spacing: -0.03em;
}

.step-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 10px;
}

.step-content p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
}

.process-connector {
    flex-shrink: 0;
    width: 60px;
    height: 1px;
    background: var(--border);
    margin-top: 26px;
    align-self: flex-start;
}

/* ─── CLIENTS ────────────────────────────────── */
.clients {
    background: var(--navy);
    padding: 100px var(--pad-x);
}

.client-list {
    list-style: none;
    padding: 0;
    margin: 0 0 48px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.client-list li {
    padding: 10px 22px;
    border: 1px solid var(--border);
    border-radius: 2px;
    font-size: 15px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.02em;
    transition: border-color 0.2s, color 0.2s;
}

.client-list li:hover {
    border-color: var(--indigo);
    color: var(--white);
}

.clients-promise {
    font-size: 20px;
    color: var(--white);
    max-width: 520px;
    line-height: 1.65;
    margin: 0;
    font-weight: 500;
}

/* ─── QUOTE ──────────────────────────────────── */
.quote-section {
    background: var(--black);
    padding: 100px var(--pad-x);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.quote-section blockquote {
    max-width: 800px;
    margin: 0;
    font-size: clamp(24px, 3.5vw, 40px);
    font-style: italic;
    font-weight: 300;
    color: var(--white);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.quote-section footer {
    margin-top: 24px;
    font-style: normal;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--indigo);
}

/* ─── CTA ────────────────────────────────────── */
.cta-section {
    background: var(--navy);
    padding: 100px var(--pad-x);
}

.cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.cta-text h2 {
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 900;
    color: var(--white);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.cta-text p {
    color: var(--muted);
    font-size: 17px;
    margin: 0;
}

/* ─── FOOTER ─────────────────────────────────── */
.footer {
    background: var(--black);
    border-top: 1px solid var(--border);
    padding: 28px var(--pad-x);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.03em;
}

.footer-tag {
    font-style: italic;
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 900px) {
    .hero {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .hero-grid-deco {
        display: none;
    }

    .process-steps {
        flex-direction: column;
        gap: 40px;
    }

    .process-connector {
        display: none;
    }

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

    .footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .header {
        flex-direction: column;
        gap: 14px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .links {
        gap: 16px;
    }

    .links a.nav-cta {
        padding: 6px 14px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        margin-bottom: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
    html {
        scroll-behavior: auto;
    }
}