:root {
    --bg: #0a0a0f;
    --bg-elevated: #12121a;
    --surface: #181824;
    --text: #f4f4f8;
    --text-muted: #9b9bb0;
    --accent: #6366f1;
    --accent-2: #22d3ee;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 12px;
    --radius-lg: 20px;
    --font-sans: "DM Sans", system-ui, sans-serif;
    --font-display: "Syne", var(--font-sans);
    --header-h: 72px;
    --container: min(1120px, calc(100% - 2.5rem));
}

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

html {
    scroll-behavior: smooth;
}

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

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

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius);
    z-index: 1000;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 1rem;
}

.container {
    width: var(--container);
    margin-inline: auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h);
    gap: 1rem;
}

.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    letter-spacing: -0.03em;
    color: var(--text);
    text-decoration: none;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo__agency {
    font-weight: 600;
    opacity: 0.92;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
}

.nav-toggle__bar {
    display: block;
    width: 20px;
    height: 2px;
    margin-inline: auto;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-nav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__list a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.site-nav__list a:hover {
    color: var(--text);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding-left: 1rem;
    border-left: 1px solid var(--border);
}

.lang-switch__link {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.lang-switch__link:hover,
.lang-switch__link.is-active {
    color: var(--accent-2);
}

.lang-switch__sep {
    color: var(--border);
    user-select: none;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        inset: var(--header-h) 0 0 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1.5rem;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
    }

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

    .site-nav__list {
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--border);
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .site-nav__list li a {
        display: block;
        padding: 0.75rem 0;
        font-size: 1.125rem;
    }

    .lang-switch {
        border-left: none;
        padding-left: 0;
        justify-content: center;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Sections */
.section {
    padding-block: clamp(4rem, 10vw, 6.5rem);
}

.section--tight {
    padding-block-start: 2rem;
}

.section--alt {
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
    border-block: 1px solid var(--border);
}

.section--contact {
    padding-block-end: 5rem;
}

.section__head {
    max-width: 36rem;
    margin-bottom: 3rem;
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 0.75rem;
    line-height: 1.15;
}

.section__sub {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.0625rem;
}

/* Hero */
.hero {
    padding-block: clamp(3rem, 12vw, 7rem);
    position: relative;
    overflow: hidden;
}

.hero__grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 900px) {
    .hero__grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero__kicker {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin: 0 0 1rem;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin: 0 0 1.25rem;
}

.hero__sub {
    margin: 0 0 2rem;
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 32rem;
}

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

.hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.hero__orb {
    width: min(100%, 380px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--accent-2), transparent 55%),
        radial-gradient(circle at 70% 60%, var(--accent), transparent 50%),
        var(--surface);
    border: 1px solid var(--border);
    filter: blur(0);
    animation: orb-float 8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .hero__orb {
        animation: none;
    }
}

@keyframes orb-float {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(8px, -12px) scale(1.02);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.15s, box-shadow 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #4f46e5);
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.35);
}

.btn--primary:hover {
    box-shadow: 0 6px 32px rgba(99, 102, 241, 0.45);
}

.btn--ghost {
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border);
}

.btn--ghost:hover {
    border-color: var(--text-muted);
    background: var(--surface);
}

.btn--block {
    width: 100%;
}

/* Cards */
.cards {
    display: grid;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card {
    padding: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .card:hover {
        transform: none;
    }
}

.card__title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.card__text {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* Steps */
.steps {
    display: grid;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

@media (min-width: 768px) {
    .steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.steps__item {
    position: relative;
    padding-top: 0.5rem;
}

.steps__num {
    display: block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.steps__title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.steps__text {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* Portfolio / work */
.work-grid {
    display: grid;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.work-card {
    padding: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s;
}

.work-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.work-card__tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 0.75rem;
}

.work-card__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.25;
}

.work-card__text {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* Reviews */
.reviews-grid {
    display: grid;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.review-card {
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    min-height: 100%;
}

.review-card__quote {
    margin: 0 0 1.25rem;
    flex: 1;
}

.review-card__quote p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text);
    line-height: 1.65;
}

.review-card__quote p::before {
    content: "“";
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 700;
}

.review-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.review-card__name {
    font-style: normal;
    font-weight: 600;
    font-size: 0.9375rem;
}

.review-card__role {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Tech stack */
.stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.stack-list__item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: color 0.2s, border-color 0.2s;
}

.stack-list__item:hover {
    color: var(--accent-2);
    border-color: rgba(34, 211, 238, 0.35);
}

/* FAQ */
.faq-list {
    max-width: 42rem;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
}

.faq-item__q {
    padding: 1rem 1.25rem;
    padding-right: 2.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
    position: relative;
}

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

.faq-item__q::after {
    content: "";
    position: absolute;
    right: 1.25rem;
    top: 50%;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.2s;
}

.faq-item[open] .faq-item__q::after {
    transform: translateY(-35%) rotate(-135deg);
}

.faq-item__q:focus {
    outline: none;
}

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

.faq-item__a {
    padding: 0 1.25rem 1.15rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.65;
}

.faq-item__a p {
    margin: 0;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.stats__item {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.stats__value {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.35rem;
}

.stats__label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Contact */
.contact {
    display: grid;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 800px) {
    .contact {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.contact__channels {
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact__channels li {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.contact__channels-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.contact__channels a {
    color: var(--accent-2);
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
}

.contact__channels a:hover {
    text-decoration: underline;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin: 0 0 1.25rem;
    font-size: 0.9375rem;
}

.alert--success {
    background: rgba(34, 211, 153, 0.12);
    border: 1px solid rgba(34, 211, 153, 0.35);
    color: #6ee7b7;
}

.alert--error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fca5a5;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: var(--text-muted);
}

.field input,
.field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.field textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.site-footer {
    padding: 2rem 0 2.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 640px) {
    .site-footer__inner {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        text-align: left;
    }
}

.site-footer__brand {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.site-footer__brand a {
    color: var(--text);
    text-decoration: none;
}

.site-footer__brand a:hover {
    color: var(--accent-2);
}

.site-footer__social {
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}

.site-footer__social a:hover {
    color: var(--accent-2);
    border-color: var(--accent-2);
}

.site-footer__rights {
    margin: 0;
    width: 100%;
    font-size: 0.8125rem;
    color: var(--text-muted);
    opacity: 0.85;
}

@media (min-width: 640px) {
    .site-footer__rights {
        width: auto;
        margin-left: auto;
    }
}
