:root {
    --bg-body: #050816;
    --bg-card: rgba(15, 23, 42, 0.9);
    --bg-card-soft: rgba(15, 23, 42, 0.7);
    --accent: #22d3ee;
    --accent-soft: rgba(34, 211, 238, 0.15);
    --accent-strong: #38bdf8;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --border-subtle: rgba(148, 163, 184, 0.22);
    --radius-lg: 18px;
    --radius-xl: 26px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.9);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    color: var(--text-main);
    background: radial-gradient(circle at top, #0f172a 0, #020617 55%, #000 100%);
}

body {
    line-height: 1.6;
}

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

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

.page {
    min-height: 100vh;
    color: var(--text-main);
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* GLASS */

.glass {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 60%), radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.2), transparent 65%), linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.96));
    border-radius: 32px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.95);
    position: relative;
    overflow: hidden;
}

/* NAVBAR */

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(22px);
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.7), transparent);
    border-bottom: 1px solid rgba(30, 64, 175, 0.4);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    gap: 16px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 0, #e0f2fe 0, #38bdf8 22%, #0ea5e9 50%, #1e3a8a 100%);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9), 0 10px 25px rgba(8, 47, 73, 0.9);
    position: relative;
}

    .nav-logo-icon::after {
        content: ">";
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        color: #0f172a;
        font-size: 18px;
    }

.nav-logo-text-main {
    font-weight: 600;
    letter-spacing: 0.06em;
    font-size: 13px;
    text-transform: uppercase;
}

.nav-logo-text-sub {
    font-size: 11px;
    color: var(--text-muted);
}

/* Правый блок (меню + CTA) */

.nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
}

.nav-link {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
}

    .nav-link:hover {
        color: var(--accent);
        border-color: rgba(56, 189, 248, 0.6);
    }

.nav-cta {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.5);
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0.98));
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
    white-space: nowrap;
}

    .nav-cta:hover {
        border-color: rgba(56, 189, 248, 0.95);
    }

/* Кнопка-гамбургер */

.nav-toggle {
    display: none;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.95);
    padding: 7px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

    .nav-toggle span {
        display: block;
        height: 2px;
        border-radius: 999px;
        background: rgba(226, 232, 240, 0.9);
        transition: transform 0.18s ease, opacity 0.18s ease;
    }

/* Анимация крестика */

.nav.nav--open .nav-toggle span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.nav.nav--open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.nav.nav--open .nav-toggle span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

/* HERO */

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

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.7);
    color: var(--accent-strong);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 18px;
}

.hero-label-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.4);
}

.hero-title {
    font-size: clamp(32px, 4vw, 40px);
    line-height: 1.12;
    font-weight: 650;
    letter-spacing: -0.04em;
    margin-bottom: 14px;
}

    .hero-title span {
        background: linear-gradient(90deg, #22d3ee, #38bdf8, #a855f7);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

.hero-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 460px;
    margin-bottom: 22px;
}

.hero-metric-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 28px;
}

.hero-metric {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.4);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

    .hero-metric strong {
        color: var(--accent);
        font-weight: 600;
    }

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-bottom: 26px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    border: 1px solid transparent;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 600;
}

.btn-primary {
    background: radial-gradient(circle at top left, #22d3ee, #0ea5e9 40%, #1d4ed8 100%);
    color: #0b1120;
    box-shadow: 0 12px 32px rgba(56, 189, 248, 0.48);
}

    .btn-primary:hover {
        filter: brightness(1.07);
    }

.btn-secondary {
    background: rgba(15, 23, 42, 0.95);
    color: var(--text-main);
    border-color: rgba(148, 163, 184, 0.65);
}

    .btn-secondary:hover {
        border-color: rgba(56, 189, 248, 0.8);
    }

.hero-note {
    font-size: 11px;
    color: var(--text-muted);
}

    .hero-note strong {
        color: var(--accent);
    }

.hero-visual {
    position: relative;
}

.hero-card {
    position: relative;
    padding: 22px 20px;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.25), rgba(15, 23, 42, 0.98));
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.hero-card-title {
    font-size: 13px;
    font-weight: 600;
}

.hero-card-subtitle {
    font-size: 11px;
    color: var(--text-muted);
}

.hero-status-pill {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.15);
    font-size: 11px;
    color: #bbf7d0;
    border: 1px solid rgba(74, 222, 128, 0.5);
}

.hero-terminal {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(30, 64, 175, 0.6);
    padding: 14px 12px 12px;
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 11px;
    color: #e5e7eb;
    position: relative;
    overflow: hidden;
}

.hero-terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.hero-terminal-dots {
    display: flex;
    gap: 6px;
}

.hero-terminal-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.9);
}

    .hero-terminal-dot:nth-child(1) {
        background: #f97373;
    }

    .hero-terminal-dot:nth-child(2) {
        background: #facc15;
    }

    .hero-terminal-dot:nth-child(3) {
        background: #4ade80;
    }

.hero-terminal-env {
    font-size: 10px;
    color: var(--text-muted);
}

.hero-terminal-code-line {
    white-space: pre;
}

.hero-terminal code {
    display: block;
}

.hero-floating-tag {
    position: absolute;
    right: -10px;
    bottom: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.8);
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero-badge {
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 12px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.6);
    font-size: 11px;
    color: var(--text-muted);
    max-width: 180px;
}

    .hero-badge strong {
        color: var(--accent);
    }

/* COMMON SECTIONS */

.section {
    padding: 32px 0 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 22px;
}

.section-title {
    font-size: 18px;
    letter-spacing: -0.02em;
}

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

.section-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 420px;
}

/* PILLS */

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.pill {
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: var(--text-muted);
}

.pill--accent {
    border-color: rgba(56, 189, 248, 0.8);
    background: var(--accent-soft);
    color: var(--accent-strong);
}

/* FEATURES */

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

.feature-card {
    padding: 16px 16px 14px;
    border-radius: 18px;
    background: var(--bg-card-soft);
    border: 1px solid var(--border-subtle);
}

.feature-icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.25), rgba(15, 23, 42, 0.95));
}

.feature-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.feature-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.feature-meta {
    font-size: 11px;
    color: var(--accent-strong);
}

/* STEPS */

.steps-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    align-items: flex-start;
}

.steps-list {
    display: grid;
    gap: 12px;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 12px;
    align-items: flex-start;
    padding: 12px 12px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px dashed rgba(148, 163, 184, 0.5);
}

.step-number {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--accent);
    margin-top: 2px;
}

.step-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.step-text {
    font-size: 12px;
    color: var(--text-muted);
}

.steps-note {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
}

.steps-card {
    padding: 16px 14px;
    border-radius: 18px;
    border: 1px solid rgba(56, 189, 248, 0.5);
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.25), rgba(15, 23, 42, 0.96));
}

.steps-card-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.steps-card-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

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

.steps-stat {
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.5);
    font-size: 11px;
}

.steps-stat-value {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 2px;
}

.steps-stat-label {
    color: var(--text-muted);
}

/* CASES */

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

.case {
    padding: 14px 12px;
    border-radius: 16px;
    background: var(--bg-card-soft);
    border: 1px solid var(--border-subtle);
    font-size: 12px;
}

.case-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.case-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.case-metric {
    font-size: 11px;
    color: var(--accent-strong);
    margin-bottom: 6px;
}

.case-text {
    font-size: 12px;
    color: var(--text-muted);
}

.case-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.case-tag {
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    font-size: 10px;
    color: var(--text-muted);
}

/* PRICING */

.pricing {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 22px;
}

.pricing-card {
    padding: 16px 14px;
    border-radius: 18px;
    background: var(--bg-card-soft);
    border: 1px solid var(--border-subtle);
}

.pricing-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.pricing-title {
    font-size: 14px;
    font-weight: 600;
}

.pricing-chip {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(34, 197, 94, 0.6);
    color: #bbf7d0;
    background: rgba(22, 101, 52, 0.4);
}

.pricing-price {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

    .pricing-price span {
        font-size: 12px;
        color: var(--text-muted);
        font-weight: 400;
    }

.pricing-note {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.pricing-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    font-size: 12px;
    color: var(--text-muted);
}

    .pricing-list li {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 6px;
        margin-bottom: 6px;
    }

.pricing-bullet {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: var(--accent);
}

.pricing-secondary {
    font-size: 11px;
    color: var(--text-muted);
}

/* FAQ */

.faq {
    padding: 16px 14px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-subtle);
    font-size: 12px;
}

.faq-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

    .faq-item:last-child {
        border-bottom: none;
    }

.faq-q {
    font-weight: 600;
    margin-bottom: 4px;
}

.faq-a {
    color: var(--text-muted);
}

/* CONTACT */

.contact {
    margin-top: 28px;
    padding: 16px 14px 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
    border: 1px solid rgba(56, 189, 248, 0.6);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 18px;
    align-items: center;
}

.contact-title {
    font-size: 16px;
    margin-bottom: 6px;
}

.contact-text {
    font-size: 12px;
    color: var(--text-muted);
}

.contact-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

    .contact-meta span {
        color: var(--accent-strong);
    }

.contact-form {
    display: grid;
    gap: 8px;
}

.contact-label {
    font-size: 11px;
    color: var(--text-muted);
}

.contact-input,
.contact-textarea {
    width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.98);
    padding: 8px 10px;
    color: var(--text-main);
    font-size: 12px;
    font-family: inherit;
}

.contact-textarea {
    border-radius: 12px;
    resize: vertical;
    min-height: 70px;
}

    .contact-input:focus,
    .contact-textarea:focus {
        outline: none;
        border-color: rgba(56, 189, 248, 0.9);
    }

.contact-submit {
    justify-self: flex-start;
}

/* FOOTER */

.footer {
    margin-top: 32px;
    padding: 28px 0 32px;
    font-size: 11px;
    color: var(--text-muted);
    border-top: 1px solid rgba(15, 23, 42, 0.85);
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.98));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
    gap: 28px;
    align-items: flex-start;
}

.footer-block {
    min-width: 0;
}

.footer-brand-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.footer-brand-subtitle {
    font-size: 12px;
    max-width: 360px;
    color: var(--text-muted);
}

.footer-block-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 10px;
}

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
}

    .footer-link:hover {
        color: var(--accent);
    }

.footer-bottom {
    margin-top: 18px;
    padding-top: 10px;
    border-top: 1px solid rgba(31, 41, 55, 0.9);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-bottom-links {
    display: flex;
    gap: 12px;
}

/* ADAPTIVE */

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-visual {
        order: -1;
    }

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

    .steps-grid,
    .pricing,
    .contact {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-badge {
        position: static;
        transform: none;
        margin-top: 12px;
    }

    .hero-floating-tag {
        position: static;
        margin-top: 10px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    /* мобильное меню */

    .nav-inner {
        padding: 10px 16px;
    }

    .nav-right {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        padding: 12px 20px 14px;
        background: linear-gradient(to bottom, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.96));
        border-bottom: 1px solid rgba(30, 64, 175, 0.6);
        flex-direction: column;
        gap: 12px;
    }

    .nav.nav--open .nav-right {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nav-cta {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .nav-toggle {
        display: flex;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 14px;
    }

    .glass {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

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

    .hero {
        padding-top: 28px;
    }

    .section {
        padding-top: 24px;
        padding-bottom: 30px;
    }

    .contact {
        padding: 14px 12px 12px;
    }

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

    .footer {
        padding-top: 22px;
    }
}
