:root {
    --bg: #090b11;
    --bg-elevated: rgba(16, 20, 30, 0.82);
    --surface: rgba(18, 24, 36, 0.88);
    --surface-strong: #111827;
    --surface-soft: rgba(148, 163, 184, 0.08);
    --border: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #b8c2d4;
    --accent: #d1e206;
    --accent-strong: #efff7b;
    --accent-soft: rgba(209, 226, 6, 0.14);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

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

html {
    scroll-behavior: smooth;
}

body.agency-page {
    min-height: 100vh;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(209, 226, 6, 0.12), transparent 30%),
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 28%),
        linear-gradient(180deg, #07090f 0%, #0b1020 50%, #07090f 100%);
    color: var(--text);
}

body.agency-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 90%);
}

a {
    color: inherit;
}

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

.shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    background: rgba(7, 9, 15, 0.78);
    backdrop-filter: blur(18px);
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 84px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.brand-logo {
    display: block;
    width: auto;
    height: 40px;
    max-width: none;
    flex-shrink: 0;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(209, 226, 6, 0.28), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(209, 226, 6, 0.22);
    color: var(--accent-strong);
    font-size: 0.95rem;
}

.brand-text small {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-text strong {
    display: block;
    font-size: 1rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-nav a,
.footer-links a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-nav a:hover,
.footer-links a:hover {
    color: var(--text);
}

.header-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.header-cta,
.button-primary {
    color: #10150a;
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    box-shadow: 0 14px 40px rgba(209, 226, 6, 0.22);
}

.header-cta:hover,
.button:hover {
    transform: translateY(-1px);
}

.button-secondary {
    color: var(--text);
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.hero {
    position: relative;
    padding: 52px 0 28px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 28px;
    align-items: stretch;
}

.pill,
.eyebrow,
.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 10px 14px;
    border: 1px solid rgba(209, 226, 6, 0.22);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-copy h1 {
    max-width: 11ch;
    margin-top: 18px;
    font-size: clamp(3rem, 7vw, 5.6rem);
    line-height: 0.94;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 62ch;
    margin-top: 22px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 36px;
    list-style: none;
}

.hero-highlights li,
.service-card,
.project-card,
.process-card,
.feature-card,
.faq-item,
.stat-card,
.hero-card,
.founder-card,
.stack-box,
.cta-card {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.hero-highlights li {
    padding: 18px;
    border-radius: var(--radius-sm);
}

.hero-highlights strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.hero-highlights span {
    color: var(--muted);
    line-height: 1.55;
    font-size: 0.95rem;
}

.hero-panel {
    display: grid;
    gap: 18px;
}

.hero-card,
.founder-card,
.hero-offerings {
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.hero-card,
.hero-offerings {
    padding: 28px;
}

.hero-offerings {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.hero-offerings h2 {
    margin-top: 14px;
    font-size: 1.35rem;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.hero-offerings > p {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.94rem;
}

.hero-offerings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
    padding: 0;
    list-style: none;
}

.hero-offerings-grid li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(148, 163, 184, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.hero-offering-number {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: rgba(209, 226, 6, 0.14);
    color: var(--accent-strong);
    font-size: 0.72rem;
    font-weight: 700;
}

.hero-offering-text {
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text);
    font-weight: 500;
}

.hero-offerings .stack-chips {
    margin-top: 18px;
}

.hero-offerings-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--accent-strong);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.hero-offerings-link:hover {
    text-decoration: underline;
}

.hero-card--method .hero-metrics {
    margin-top: 20px;
}

.hero-card--method .stack-chips {
    margin-top: 18px;
}

.panel-kicker {
    color: var(--accent);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.hero-card h2 {
    margin-top: 16px;
    font-size: 1.8rem;
    line-height: 1.15;
}

.hero-card p {
    margin-top: 14px;
    color: var(--muted);
    line-height: 1.7;
}

.hero-metrics {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(148, 163, 184, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.metric strong {
    display: block;
    font-size: 0.98rem;
}

.metric span {
    color: var(--muted);
    font-size: 0.92rem;
    text-align: right;
}

.stack-chips,
.stack-grid,
.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: var(--muted);
    font-size: 0.88rem;
}

.founder-card {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 18px;
    padding: 22px;
    align-items: center;
}

.founder-card img {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    object-fit: cover;
}

.founder-card small {
    display: block;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    font-weight: 700;
}

.founder-card h3 {
    margin-top: 6px;
    font-size: 1.2rem;
}

.founder-card p {
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.94rem;
}

.stats-strip {
    margin-top: 26px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.stat-card {
    padding: 22px;
    border-radius: 20px;
}

.stat-card strong {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1;
}

.stat-card span {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.55;
}

.section {
    padding: 34px 0;
}

.section-heading {
    display: grid;
    gap: 14px;
    margin-bottom: 28px;
}

.section-heading h2 {
    max-width: 14ch;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.section-heading p {
    max-width: 64ch;
    color: var(--muted);
    line-height: 1.8;
}

.services-grid,
.projects-grid,
.process-grid,
.feature-grid,
.faq-grid,
.footer-grid {
    display: grid;
    gap: 18px;
}

.services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
    padding: 24px;
    border-radius: 24px;
}

.service-note {
    margin-top: 22px;
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(209, 226, 6, 0.12), rgba(148, 163, 184, 0.06));
    border: 1px solid rgba(209, 226, 6, 0.16);
    box-shadow: var(--shadow);
}

.service-note p {
    color: var(--muted);
    line-height: 1.8;
}

.service-note strong {
    display: block;
    margin-top: 12px;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.7;
}

.service-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(209, 226, 6, 0.14);
    color: var(--accent-strong);
    font-size: 0.9rem;
    font-weight: 700;
}

.service-card h3 {
    margin-top: 18px;
    font-size: 1.15rem;
}

.service-card p {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.7;
}

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

.project-card {
    overflow: hidden;
    border-radius: 24px;
}

.project-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #10151f;
}

.project-gallery {
    display: grid;
    gap: 12px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(59, 130, 246, 0.08));
}

.project-gallery--sortefy {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-gallery img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #10151f;
}

.project-body {
    padding: 22px;
}

.project-body h3 {
    font-size: 1.2rem;
}

.project-body p {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.7;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    color: var(--accent-strong);
    text-decoration: none;
    font-weight: 700;
}

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

.process-card {
    padding: 24px;
    border-radius: 24px;
}

.process-step {
    display: inline-flex;
    min-width: 48px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid rgba(209, 226, 6, 0.22);
    background: rgba(209, 226, 6, 0.1);
    color: var(--accent-strong);
    font-weight: 700;
}

.process-card h3 {
    margin-top: 18px;
    font-size: 1.08rem;
}

.process-card p {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.7;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
    gap: 24px;
}

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

.feature-card,
.stack-box {
    padding: 24px;
    border-radius: 24px;
}

.feature-card h3,
.stack-box h3,
.faq-item summary {
    font-size: 1.08rem;
}

.feature-card p,
.stack-box p,
.faq-item p {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.7;
}

.stack-box p {
    margin-bottom: 18px;
}

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

.faq-item {
    border-radius: 24px;
    padding: 4px 20px;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 0;
    font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    padding-bottom: 20px;
}

.cta-section {
    padding: 36px 0 72px;
}

.cta-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 32px;
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(209, 226, 6, 0.16), rgba(56, 189, 248, 0.12)),
        rgba(18, 24, 36, 0.92);
}

.cta-card h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.cta-card p {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 54ch;
}

.footer {
    padding: 0 0 36px;
}

.footer-grid {
    grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.8fr));
    padding-top: 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.footer-column h3 {
    margin-bottom: 12px;
    font-size: 1rem;
}

.footer-logo {
    display: block;
    width: min(240px, 100%);
    height: auto;
    margin-bottom: 16px;
}

.footer-brand p {
    max-width: 42ch;
}

.footer-column p,
.footer-column a,
.footer-note {
    color: var(--muted);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-note {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    font-size: 0.95rem;
}

@media (max-width: 1080px) {
    .hero-grid,
    .split-layout,
    .cta-card {
        grid-template-columns: 1fr;
    }

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

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

    .hero-highlights,
    .stats-grid,
    .projects-grid,
    .feature-grid,
    .faq-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-heading h2,
    .hero-copy h1 {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .shell {
        width: min(100% - 24px, 1180px);
    }

    .nav-row {
        min-height: 74px;
    }

    .brand-logo {
        height: 34px;
    }

    .header-cta {
        display: none;
    }

    .hero {
        padding-top: 28px;
    }

    .services-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .project-gallery--sortefy {
        grid-template-columns: 1fr;
    }

    .founder-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .founder-card img {
        margin: 0 auto;
    }

    .hero-offerings-grid {
        grid-template-columns: 1fr;
    }

    .metric {
        flex-direction: column;
        align-items: flex-start;
    }

    .metric span {
        text-align: left;
    }

    .cta-card,
    .hero-card,
    .hero-offerings,
    .service-card,
    .project-body,
    .process-card,
    .feature-card,
    .stack-box,
    .stat-card {
        padding: 22px;
    }
}
