@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/JetBrainsMono-Regular.woff2") format("woff2");
}
@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("fonts/JetBrainsMono-Medium.woff2") format("woff2");
}

:root {
    --bg: #0b0b0c;
    --bg-alt: #121214;
    --card: #18181b;
    --card-hover: #1f1f23;
    --border: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(255, 255, 255, 0.28);

    --purple: #f4f4f5;
    --blue: #d4d4d8;
    --cyan: #a1a1aa;
    --gradient: linear-gradient(90deg, #ffffff 0%, #d4d4d8 50%, #a1a1aa 100%);

    --text: #ffffff;
    --text-2: #c4c4cf;
    --text-3: #9a9aa8;

    --code-kw: #a1a1aa;
    --code-fn: #ffffff;
    --code-cm: #6b7280;
    --code-str: #a3e635;
    --code-text: #e5e7eb;

    --radius: 14px;
    --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: "JetBrains Mono", Consolas, "Courier New", monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 63px; overflow-x: hidden; }
body { overflow-x: hidden; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14.5px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-weight: 600;
    border-radius: 7px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.btn--primary {
    background: #f4f4f5;
    color: #0b0b0c;
    border: none;
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 255, 255, 0.12);
}

.btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid var(--border-accent);
}
.btn--outline:hover {
    border-color: var(--purple);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.btn--sm { padding: 7px 18px; font-size: 13.5px; font-weight: 500; }
.btn--lg { padding: 16px 29px; font-size: 14.5px; min-width: 171px; border-radius: 9px; }
.hero__buttons .btn--primary { box-shadow: 0 6px 24px rgba(255, 255, 255, 0.12); }

.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(11, 11, 12, 0.85);
    backdrop-filter: blur(11px);
    -webkit-backdrop-filter: blur(11px);
    border-bottom: 1px solid var(--border);
}

.header__inner {
    height: 63px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo__icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    color: #0b0b0c;
}

.logo__text {
    font-size: 21.5px;
    font-weight: 700;
}

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

.nav__link {
    color: var(--text-2);
    font-size: 13.5px;
    transition: color .2s ease;
}
.nav__link:hover { color: #fff; }

.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}
.nav__toggle span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: #f4f4f5;
    transition: transform .3s ease, opacity .3s ease;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 99px 0 72px;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 490px;
    align-items: center;
    gap: 54px;
}

.hero__content, .hero__visual, .why > * { min-width: 0; }
.code-window { min-width: 0; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14.5px 7px 16px;
    border: 1px solid var(--border-accent);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    color: #e4e4e7;
    font-size: 12.5px;
    margin-bottom: 25px;
}

.badge__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #a3e635;
    box-shadow: 0 0 0 0 rgba(163, 230, 53, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(163, 230, 53, 0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(163, 230, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(163, 230, 53, 0); }
}

.hero__title {
    font-size: 61px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    display: block;
    width: fit-content;
    max-width: 100%;
}

.hero__subtitle {
    font-size: 21.5px;
    color: var(--text-2);
    margin-bottom: 25px;
}

.hero__text {
    font-size: 16px;
    color: var(--text-3);
    line-height: 1.6;
    max-width: 441px;
    margin-bottom: 30.5px;
}

.hero__buttons {
    display: flex;
    gap: 14.5px;
    margin-bottom: 50.5px;
}

.stats {
    display: flex;
    gap: 43px;
}

.stat__value {
    font-size: 30.5px;
    font-weight: 700;
    line-height: 1.2;
    display: inline-block;
}

.stat__label {
    font-size: 12.5px;
    color: var(--text-2);
    margin-top: 3.5px;
}

.code-window {
    position: relative;
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

.code-window--glow {
    border-color: rgba(255, 255, 255, 0.14);
    background: linear-gradient(135deg, #18181b 0%, #141416 60%, #18181b 100%);
    box-shadow:
        0 0 50px rgba(255, 255, 255, 0.07),
        0 0 120px rgba(163, 230, 53, 0.05);
}

.hero__visual { position: relative; margin-right: 40px; width: 450px; }

.code-window--glow::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 60% at 50% 55%, rgba(255, 255, 255, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 70% 80%, rgba(163, 230, 53, 0.03) 0%, transparent 70%);
    box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.05);
    mix-blend-mode: screen;
}
.hero__visual::before {
    content: "";
    position: absolute;
    inset: -80px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.06) 0%, transparent 65%);
    z-index: -1;
    pointer-events: none;
}

.code-window__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
}

.code-window__dots { display: flex; gap: 8px; }

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot--red    { background: #ef4444; }
.dot--yellow { background: #eab308; }
.dot--green  { background: #22c55e; }

.code-window__title {
    color: var(--text-3);
    font-size: 14px;
}

.code-window__body {
    padding: 26px 24px;
    font-family: var(--mono);
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--code-text);
    white-space: pre;
    overflow-x: auto;
}

.code-window__body--hero {
    line-height: 2.3;
    padding: 22px 24px 30px;
}

.kw  { color: var(--code-kw); }
.fn  { color: var(--code-fn); }
.cm  { color: var(--code-cm); }
.str { color: var(--code-str); }

.cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: #e5e7eb;
    vertical-align: middle;
    animation: blink 1s steps(1) infinite;
}

@keyframes blink {
    0%, 50%   { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}

.section {
    padding: 99px 0;
}

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

.section--faq {
    padding-top: 36px;
}

.section__head {
    text-align: center;
    margin-bottom: 57.5px;
}

.section__title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    display: inline-block;
    margin-bottom: 23.5px;
}

.section__subtitle {
    color: var(--text-2);
    font-size: 15.5px;
}

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

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 29px 29px;
    min-height: 194.5px;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.feature-card:hover {
    transform: translateY(-5.5px);
    border-color: rgba(255, 255, 255, 0.22);
    background: var(--card-hover);
    box-shadow: 0 14px 40px rgba(255, 255, 255, 0.06);
}

.feature-card__icon {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 20px;
}

.feature-card__title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12.5px;
}

.feature-card__text {
    color: var(--text-3);
    font-size: 14.5px;
}

.why {
    display: grid;
    grid-template-columns: 1fr 536px;
    gap: 54px;
    align-items: center;
}

.why__item { margin-bottom: 34px; }
.why__item:last-child { margin-bottom: 0; }

.why__title {
    color: #e4e4e7;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12.5px;
    line-height: 1.2;
}

.why__text {
    color: var(--text-3);
    font-size: 14.5px;
}

.why .code-window:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(255, 255, 255, 0.06);
}

.faq {
    width: 100%;
    max-width: 736px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14.5px;
}

.faq__item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 11px;
    overflow: hidden;
    transition: border-color .25s ease;
}
.faq__item:hover,
.faq__item.is-open { border-color: rgba(255, 255, 255, 0.22); }

.faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 23.5px 18px;
    background: none;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.faq__icon {
    color: var(--purple);
    font-size: 21.5px;
    font-weight: 400;
    line-height: 1;
    transition: transform .3s ease;
}
.faq__item.is-open .faq__icon { transform: rotate(45deg); }

.faq__answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s ease;
}
.faq__item.is-open .faq__answer { grid-template-rows: 1fr; }

.faq__answer-inner {
    overflow: hidden;
    color: var(--text-3);
    padding: 0 18px;
    transition: padding .3s ease;
}
.faq__item.is-open .faq__answer-inner { padding: 0 18px 21.5px; }

.reveal {
    opacity: 0;
    transform: translateY(21.5px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.feature-card.reveal.is-visible:hover { transform: translateY(-5.5px); }
.why .code-window.reveal.is-visible:hover { transform: translateY(-4px); }

.section--faq { padding-bottom: 108px; }


@media (max-width: 1024px) {
    .features { grid-template-columns: repeat(2, 1fr); }

    .hero { padding: 90px 0 60px; }
    .hero__inner { grid-template-columns: 1fr; gap: 36px; }
    .hero__visual { order: 1; width: 100%; max-width: 460px; margin: 0 auto; }
    .hero__content { order: 2; text-align: center; }
    .hero__title { margin-left: auto; margin-right: auto; }
    .hero__text { margin-left: auto; margin-right: auto; }
    .hero__buttons { justify-content: center; }
    .stats { justify-content: center; }
    .hero__title { font-size: 52px; }

    .why { grid-template-columns: 1fr; gap: 32px; }
    .why .code-window { order: 1; width: 100%; max-width: 560px; margin: 0 auto; }
    .why__list { order: 2; }

    .section { padding: 80px 0; }
    .section__head { margin-bottom: 44px; }
}

@media (max-width: 900px) {
    .nav__toggle { display: flex; }
    .nav {
        position: fixed;
        top: 63px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 24px 18px;
        background: rgba(11, 11, 12, 0.97);
        backdrop-filter: blur(11px);
        -webkit-backdrop-filter: blur(11px);
        border-bottom: 1px solid var(--border);
        transform: translateY(-130%);
        transition: transform .3s ease;
    }
    .nav.is-open { transform: translateY(0); }
    .nav-resizing .nav { transition: none; }
    .nav__link {
        padding: 14px 2px;
        font-size: 16px;
        border-bottom: 1px solid var(--border);
    }
    .nav .btn--sm {
        margin-top: 14px;
        padding: 13px;
        font-size: 15px;
        border-radius: 8px;
    }
}

@media (max-width: 640px) {
    .features { grid-template-columns: 1fr; }
    .hero__title { font-size: 42px; }
    .hero__subtitle { font-size: 19px; }
    .hero__text { font-size: 15.5px; }
    .hero__buttons { flex-direction: column; align-items: stretch; }
    .hero__buttons .btn { width: 100%; }
    .stats { gap: 26px; }
    .stat__value { font-size: 26px; }
    .section { padding: 64px 0; }
    .section__title { font-size: 30px; }
    .faq__question { font-size: 14px; padding: 20px 16px; }
}

@media (max-width: 400px) {
    .container { padding: 0 16px; }
    .hero__title { font-size: 34px; }
    .stats { flex-wrap: wrap; gap: 20px 26px; }
    .nav, .hero, .section { }
}