:root {
    --bg: #000000;
    --bg-soft: #070707;
    --card: #111111;
    --card-hover: #161616;
    --purple: #7c3aed;
    --purple-2: #8b5cf6;
    --purple-deep: #6d28d9;
    --purple-soft: rgba(124, 58, 237, 0.14);
    --purple-glow: rgba(124, 58, 237, 0.45);
    --text: #ffffff;
    --muted: #a1a1aa;
    --muted-2: #71717a;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --radius: 16px;
    --radius-sm: 12px;
    --container: 1180px;
    --header-h: 78px;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    --font: "Inter", system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

body.nav-open {
    overflow: hidden;
}

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

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

button,
input,
textarea,
select {
    font: inherit;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

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

.accent {
    color: var(--purple-2);
}

.eyebrow {
    display: inline-block;
    color: var(--purple-2);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.section {
    padding: 112px 0;
}

.section-head {
    margin-bottom: 48px;
}

.page-stack {
    display: grid;
    gap: 56px;
}

.section-head h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    padding: 12px 18px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.2s ease;
    white-space: nowrap;
}

.btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--purple);
    color: #fff;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.28);
}

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

.btn-ghost {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-strong);
    color: #fff;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.84);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.logo img {
    width: 34px;
    height: 34px;
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 22px;
}

.site-nav a {
    color: #ececec;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--purple-2);
}

.header-cta {
    justify-self: end;
}

.nav-cta {
    display: none;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.hero {
    padding: 100px 0 64px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 72px;
    align-items: center;
}

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

.hero .lead {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 540px;
    margin-bottom: 36px;
}

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

.hero-points {
    display: grid;
    gap: 20px;
}

.hero-point {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #d4d4d8;
    font-size: 0.92rem;
}

.hero-point strong {
    color: #fff;
    font-weight: 600;
}

.hero-point span {
    color: var(--muted);
    font-weight: 400;
}

.icon-pill {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: var(--purple-soft);
    color: var(--purple-2);
    flex-shrink: 0;
}

.icon-pill svg {
    width: 16px;
    height: 16px;
}

.hero-visual {
    position: relative;
    min-height: 420px;
}

.hero-glow {
    position: absolute;
    inset: 12% 8% 8% 12%;
    background: radial-gradient(circle, var(--purple-glow), transparent 68%);
    filter: blur(18px);
    pointer-events: none;
}

.code-window {
    position: relative;
    background: #0b0b0f;
    border: 1px solid rgba(124, 58, 237, 0.28);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(124, 58, 237, 0.18), var(--shadow);
    transform: perspective(1200px) rotateY(-8deg) rotateX(3deg);
}

.code-titlebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: #0e0e14;
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dots span:nth-child(1) { background: #ff5f57; }
.dots span:nth-child(2) { background: #febc2e; }
.dots span:nth-child(3) { background: #28c840; }

.filename {
    color: var(--muted);
    font-size: 0.82rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.code-body {
    margin: 0;
    padding: 22px 24px 26px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.7;
    overflow: auto;
}

.cm { color: #4ade80; }
.kw { color: #c084fc; }
.fn { color: #60a5fa; }
.st { color: #fbbf24; }
.num { color: #fb923c; }
.op { color: #e4e4e7; }

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.service-card,
.project-card,
.info-card,
.step-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: 0.2s ease;
}

.service-card {
    padding: 32px 28px 36px;
}

.service-card:hover,
.project-card:hover,
.info-card:hover,
.step-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 58, 237, 0.35);
    background: var(--card-hover);
}

.service-card h3,
.info-card h3,
.step-card h3 {
    font-size: 1.08rem;
    margin: 16px 0 8px;
}

.service-card p,
.info-card p,
.step-card p,
.project-card p {
    color: var(--muted);
    font-size: 0.92rem;
}

.project-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 40px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-visual {
    height: 190px;
    background: #0a0a0a;
    overflow: hidden;
}

.project-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-body {
    padding: 24px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.badge {
    display: inline-flex;
    width: fit-content;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--purple-2);
    background: var(--purple-soft);
    border-radius: 999px;
    padding: 4px 10px;
}

.project-card h3 {
    font-size: 1.12rem;
}

.project-link {
    margin-top: auto;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.project-link:hover {
    color: var(--purple-2);
}

.cta-banner {
    display: flex;
    align-items: center;
    gap: 28px;
    background: linear-gradient(180deg, #141218 0%, #0e0c12 100%);
    border: 1px solid rgba(124, 58, 237, 0.18);
    border-radius: 22px;
    padding: 36px 40px;
}

.cta-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--purple);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.35);
}

.cta-icon svg {
    width: 24px;
    height: 24px;
}

.cta-banner h2 {
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.cta-banner p {
    color: var(--muted);
}

.cta-banner .btn {
    margin-left: auto;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 64px 0 36px;
    color: var(--muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    margin-bottom: 12px;
}

.footer-brand img {
    width: 28px;
    height: 28px;
}

.footer-grid h3 {
    color: #fff;
    font-size: 0.92rem;
    margin-bottom: 12px;
}

.footer-grid a {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
}

.footer-grid a:hover {
    color: #fff;
}

.copyright {
    border-top: 1px solid var(--border);
    padding-top: 18px;
    font-size: 0.85rem;
}

.page-hero {
    padding: 88px 0 12px;
}

.page-hero + .section {
    padding-top: 48px;
    padding-bottom: 120px;
}

.page-hero h1 {
    font-size: clamp(2.1rem, 4vw, 3.3rem);
    letter-spacing: -0.04em;
    font-weight: 800;
    margin-bottom: 18px;
}

.page-hero p {
    color: var(--muted);
    max-width: 640px;
    font-size: 1.05rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

.prose p + p {
    margin-top: 20px;
}

.prose p {
    color: #d4d4d8;
    line-height: 1.75;
}

.info-card,
.step-card {
    padding: 32px;
}

.step-list {
    display: grid;
    gap: 24px;
}

.step-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: start;
}

.step-num {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--purple-soft);
    color: var(--purple-2);
    display: grid;
    place-items: center;
    font-weight: 800;
}

.form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
}

.form-grid {
    display: grid;
    gap: 18px;
}

label {
    display: grid;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
}

input,
textarea,
select {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid var(--border);
    color: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px var(--purple-soft);
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.alert {
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.alert-ok {
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
}

.alert-err {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}

.info-card .btn {
    margin-top: 20px;
    width: fit-content;
}

.values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

@media (max-width: 1100px) {
    .hero-grid,
    .content-grid,
    .project-head,
    .footer-grid,
    .cta-banner {
        grid-template-columns: 1fr;
        display: grid;
    }

    .code-window {
        transform: none;
    }

    .cta-banner .btn,
    .project-head .btn {
        margin-left: 0;
        justify-self: start;
    }

    .service-grid,
    .project-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .header-cta {
        display: none;
    }

    .nav-toggle {
        display: grid;
        place-items: center;
        justify-self: end;
    }

    .site-nav {
        position: fixed;
        inset: var(--header-h) 0 0 0;
        background: rgba(0, 0, 0, 0.96);
        flex-direction: column;
        justify-content: flex-start;
        padding: 28px;
        gap: 18px;
        transform: translateX(100%);
        transition: 0.25s ease;
    }

    .site-nav.is-open {
        transform: none;
    }

    .nav-cta {
        display: inline-flex;
        width: fit-content;
        margin-top: 8px;
    }

    .header-inner {
        grid-template-columns: 1fr auto;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(calc(100% - 36px), var(--container));
    }

    .hero {
        padding: 56px 0 40px;
    }

    .hero-grid {
        gap: 40px;
    }

    .service-grid,
    .project-grid,
    .values {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .section {
        padding: 80px 0;
    }

    .page-hero {
        padding: 64px 0 8px;
    }

    .page-hero + .section {
        padding-top: 32px;
        padding-bottom: 88px;
    }

    .page-stack {
        gap: 36px;
    }

    .cta-banner {
        padding: 28px 24px;
        gap: 20px;
    }
}
