:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --surface-hover: #1a1a1a;
    --text: #fafafa;
    --muted: #a1a1aa;
    --subtle: #52525b;
    --border: #262626;
    --accent: #10b981;
    --accent-hover: #34d399;
    --header-height: 72px;
    --radius: 12px;
    --container: 1200px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

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

h1,
h2,
h3,
p,
blockquote {
    margin-top: 0;
}

h1,
h2,
h3 {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.container {
    width: min(100% - 48px, var(--container));
    margin-inline: auto;
}

.site-header {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    left: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
    transition: background-color 250ms ease, border-color 250ms ease, backdrop-filter 250ms ease;
}

.site-header.is-scrolled,
.site-header.is-menu-open {
    border-color: var(--border);
    background: rgb(10 10 10 / 94%);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    position: relative;
    z-index: 102;
    font-family: "JetBrains Mono", monospace;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.brand span {
    color: var(--accent);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.desktop-nav > a:not(.button),
.footer-links a {
    color: var(--muted);
    font-size: 0.875rem;
    transition: color 180ms ease;
}

.desktop-nav > a:not(.button):hover,
.desktop-nav > a:not(.button):focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--text);
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    background: var(--accent);
    color: var(--bg);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
    border-color: var(--accent-hover);
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.button-small {
    min-height: 40px;
    padding: 10px 20px;
    font-size: 0.75rem;
}

.button-large {
    min-height: 56px;
    padding: 16px 32px;
    font-size: 0.875rem;
}

.button-outline {
    border-color: var(--border);
    background: transparent;
    color: var(--text);
}

.button-outline:hover,
.button-outline:focus-visible {
    border-color: var(--accent);
    background: transparent;
    color: var(--accent);
}

.menu-toggle {
    position: relative;
    z-index: 102;
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.menu-close-icon {
    display: none;
}

.menu-toggle[aria-expanded="true"] .menu-open-icon {
    display: none;
}

.menu-toggle[aria-expanded="true"] .menu-close-icon {
    display: block;
}

.mobile-menu {
    position: fixed;
    z-index: 99;
    inset: 0;
    display: flex;
    visibility: hidden;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 28px;
    padding: calc(var(--header-height) + 32px) 24px 32px;
    background: var(--bg);
    opacity: 0;
    transform: translateY(-12px);
    transition: visibility 250ms, opacity 250ms ease, transform 250ms ease;
}

.mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu > a:not(.button) {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
    font-weight: 600;
}

.mobile-menu .button {
    margin-top: 12px;
}

.hero {
    position: relative;
    display: grid;
    min-height: 100svh;
    place-items: center;
    overflow: hidden;
    padding: calc(var(--header-height) + 64px) 24px 80px;
}

.hero-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 40%, rgb(16 185 129 / 7%) 0%, transparent 62%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(100%, 820px);
    text-align: center;
}

.eyebrow,
.section-label {
    display: inline-block;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-badge {
    margin-bottom: 32px;
    padding: 8px 16px;
    border-radius: 6px;
    background: rgb(16 185 129 / 10%);
    color: var(--accent);
}

.hero h1 {
    margin-bottom: 24px;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.hero h1 em {
    color: var(--accent);
    font-weight: inherit;
}

.desktop-title,
.desktop-title-line {
    display: block;
}

.mobile-title {
    display: none;
}

.hero-copy {
    max-width: 620px;
    margin-right: auto;
    margin-bottom: 40px;
    margin-left: auto;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 64px;
}

.stats {
    display: grid;
    max-width: 540px;
    margin-inline: auto;
    grid-template-columns: repeat(3, 1fr);
}

.stat {
    position: relative;
    padding-inline: 16px;
    text-align: center;
}

.stat + .stat::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 1px;
    height: 48px;
    background: var(--border);
    content: "";
    transform: translateY(-50%);
}

.stat strong {
    display: block;
    margin-bottom: 4px;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    line-height: 1.1;
}

.stat span {
    display: block;
    color: var(--subtle);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
    line-height: 1.4;
    text-transform: uppercase;
}

.scroll-cue {
    position: absolute;
    bottom: 28px;
    left: 50%;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--subtle);
    transform: translateX(-50%);
    transition: color 180ms ease;
    animation: bounce 1.8s ease-in-out infinite;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
    color: var(--accent);
}

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

.section {
    padding: 120px 0;
    background: var(--bg);
}

.section-alt {
    background: var(--surface);
}

.section-header {
    max-width: 760px;
    margin-bottom: 64px;
}

.section-label {
    margin-bottom: 16px;
    color: var(--subtle);
}

.section h2 {
    margin-bottom: 16px;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.section-header p,
.about-grid p,
.contact p {
    color: var(--muted);
}

.section-header p {
    max-width: 620px;
    margin-bottom: 0;
    font-size: 1rem;
}

.card-grid {
    display: grid;
    gap: 32px;
}

.services-grid,
.testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: background-color 250ms ease, border-color 250ms ease, transform 250ms ease;
}

.card:hover {
    border-color: rgb(16 185 129 / 25%);
    background: var(--surface-hover);
    transform: translateY(-3px);
}

.card-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 20px;
    color: var(--accent);
}

.card h3,
.process-step h3,
.portfolio-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    font-weight: 600;
}

.card p,
.process-step p,
.portfolio-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.process-list {
    max-width: 820px;
}

.process-step {
    position: relative;
    display: grid;
    align-items: start;
    gap: 24px;
    grid-template-columns: 48px 1fr;
    padding-bottom: 52px;
}

.process-step:last-child {
    padding-bottom: 0;
}

.step-number {
    position: relative;
    z-index: 1;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid var(--accent);
    border-radius: 50%;
    background: rgb(16 185 129 / 10%);
    color: var(--accent);
    font-family: "JetBrains Mono", monospace;
    font-size: 1.125rem;
    font-weight: 700;
}

.step-line {
    position: absolute;
    top: 48px;
    bottom: 0;
    left: 23px;
    width: 1px;
    background: var(--border);
}

.process-step p {
    max-width: 660px;
    font-size: 1rem;
}

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

.portfolio-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color 250ms ease, transform 250ms ease;
}

.portfolio-card:hover {
    border-color: rgb(16 185 129 / 25%);
    transform: translateY(-3px);
}

.portfolio-image {
    overflow: hidden;
    aspect-ratio: 9 / 16;
    background: var(--bg);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.04);
}

.about-grid {
    display: grid;
    align-items: start;
    gap: 64px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-grid h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
}

.about-grid p {
    margin-bottom: 16px;
    line-height: 1.75;
}

.differentials {
    display: grid;
    gap: 16px 24px;
    margin-top: 32px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.differentials > div {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 0.875rem;
}

.differentials .icon {
    color: var(--accent);
}

.timeline-card {
    padding: 48px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.timeline-card > strong {
    display: block;
    color: rgb(16 185 129 / 18%);
    font-family: "JetBrains Mono", monospace;
    font-size: clamp(3.5rem, 7vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
}

.timeline-card > span {
    display: block;
    margin: 8px 0 32px;
    color: var(--subtle);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.timeline {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline::before {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 5px;
    width: 2px;
    background: rgb(16 185 129 / 20%);
    content: "";
}

.timeline li {
    position: relative;
    margin-bottom: 20px;
    padding-left: 28px;
    color: var(--muted);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.75rem;
}

.timeline li:last-child {
    margin-bottom: 0;
}

.timeline li::before {
    position: absolute;
    z-index: 1;
    top: 4px;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    content: "";
}

.timeline b {
    margin-right: 8px;
    color: var(--accent);
    font-weight: 500;
}

.quote-icon {
    width: 26px;
    height: 26px;
    margin-bottom: 20px;
    color: rgb(16 185 129 / 25%);
}

.testimonial-card blockquote {
    min-height: 136px;
    margin-bottom: 24px;
    color: var(--text);
    font-size: 1rem;
    font-style: italic;
    line-height: 1.7;
}

.testimonial-card footer {
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.testimonial-card footer strong,
.testimonial-card footer span {
    display: block;
}

.testimonial-card footer strong {
    margin-bottom: 3px;
    font-size: 0.875rem;
}

.testimonial-card footer span {
    color: var(--subtle);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.contact {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg) 0%, #0f1f1a 50%, var(--bg) 100%);
}

.contact-content {
    width: min(100% - 48px, 640px);
    margin-inline: auto;
    text-align: center;
}

.contact h2 {
    margin-bottom: 16px;
}

.contact p {
    margin-bottom: 40px;
}

.contact-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 40px;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8125rem;
    transition: color 180ms ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
    color: var(--accent);
}

.contact-links .icon {
    width: 16px;
    height: 16px;
}

.site-footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.footer-inner,
.footer-brand,
.footer-links {
    display: flex;
    align-items: center;
}

.footer-inner {
    justify-content: space-between;
    gap: 24px;
}

.footer-brand {
    gap: 16px;
}

.footer-brand > span {
    color: var(--subtle);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.6875rem;
}

.footer-links {
    gap: 24px;
}

.cursor-dot,
.cursor-ring {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    display: none;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
}

@media (pointer: fine) {
    .cursor-dot,
    .cursor-ring {
        display: block;
    }

    .cursor-dot {
        width: 8px;
        height: 8px;
        background: var(--accent);
        mix-blend-mode: difference;
    }

    .cursor-ring {
        width: 40px;
        height: 40px;
        border: 1px solid var(--accent);
        opacity: 0.5;
    }
}

.is-enhanced [data-reveal],
.is-enhanced [data-reveal-group] > * {
    opacity: 0;
    transform: translateY(24px);
}

.is-enhanced [data-reveal].is-visible,
.is-enhanced [data-reveal-group].is-visible > * {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.is-enhanced [data-reveal-group].is-visible > :nth-child(2) {
    transition-delay: 80ms;
}

.is-enhanced [data-reveal-group].is-visible > :nth-child(3) {
    transition-delay: 160ms;
}

.is-enhanced [data-reveal-group].is-visible > :nth-child(4) {
    transition-delay: 240ms;
}

.is-enhanced [data-reveal-group].is-visible > :nth-child(5) {
    transition-delay: 320ms;
}

.is-enhanced [data-reveal-group].is-visible > :nth-child(6) {
    transition-delay: 400ms;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

@media (max-width: 900px) {
    .section {
        padding: 96px 0;
    }

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

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

    .about-grid {
        gap: 48px;
        grid-template-columns: 1fr;
    }

    .timeline-card {
        padding: 40px;
    }
}

@media (max-width: 767px) {
    .container {
        width: min(100% - 32px, var(--container));
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding-right: 16px;
        padding-left: 16px;
    }

    .hero-badge {
        margin-bottom: 24px;
    }

    .desktop-title {
        display: none;
    }

    .mobile-title {
        display: inline;
    }

    .hero-copy {
        line-height: 1.65;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        max-width: 320px;
        margin-right: auto;
        margin-left: auto;
    }

    .stats {
        max-width: 420px;
    }

    .stat {
        padding-inline: 8px;
    }

    .stat span {
        font-size: 0.6rem;
    }

    .section {
        padding: 80px 0;
    }

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

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

    .card-grid,
    .portfolio-grid {
        gap: 24px;
    }

    .testimonial-card blockquote {
        min-height: 0;
    }

    .contact-links,
    .footer-inner,
    .footer-brand {
        flex-direction: column;
    }

    .contact-links {
        gap: 18px;
    }

    .footer-inner {
        text-align: center;
    }

    .footer-brand {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 760px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .stats {
        gap: 8px 0;
    }

    .stat strong {
        font-size: 1.5rem;
    }

    .card,
    .timeline-card {
        padding: 24px;
    }

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }

    .is-enhanced [data-reveal],
    .is-enhanced [data-reveal-group] > * {
        opacity: 1;
        transform: none;
    }
}
