/* ===== BASE ===== */
:root {
    --black: #050505;
    --panel: #0d0d0d;
    --panel-2: #111111;
    --line: #232323;
    --line-soft: #1a1a1a;
    --silver: #b7bcc2;
    --silver-dim: #7f858c;
    --white: #f5f6f7;
    --green: #21c15e;
    --green-dark: #18a04c;
    --green-soft: rgba(33, 193, 94, 0.12);
    --radius: 16px;
    --radius-lg: 22px;
    --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--black);
    color: var(--silver);
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, .brand-name, .strip-big, .step-num, .stack-name {
    font-family: "Space Grotesk", "Inter", sans-serif;
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1.02;
}

a { color: inherit; text-decoration: none; }

.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 28px;
}

/* ===== BUTTONS (glass + green, rounded, no gradients) ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
    white-space: nowrap;
    line-height: 1;
}
.btn .ico { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.btn-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}
.btn-icon-badge-glass {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}
.btn-icon-badge .ico-download,
.btn-icon-badge .ico-github { width: 18px; height: 18px; }
.btn-icon-badge .ico-win { width: 14px; height: 14px; opacity: 0.9; }
.btn-sm .btn-icon-badge { width: 26px; height: 26px; border-radius: 8px; }
.btn-sm .btn-icon-badge .ico-download { width: 15px; height: 15px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-sm { padding: 11px 18px; font-size: 14px; }
.btn-lg { padding: 18px 30px; font-size: 18px; border-radius: 18px; }

.btn-green {
    background: var(--green);
    color: #04210f;
    border-color: var(--green);
    box-shadow: 0 0 0 1px rgba(33,193,94,.25), 0 10px 30px rgba(33,193,94,.18);
}
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); }

.btn-glass {
    background: rgba(255,255,255,0.05);
    color: var(--white);
    border-color: rgba(255,255,255,0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn-glass:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.24); }

.btn-ghost {
    background: rgba(255,255,255,0.03);
    color: var(--silver);
    border-color: var(--line);
}
.btn-ghost:hover { background: rgba(255,255,255,0.07); color: var(--white); border-color: #353535; }

/* ===== NAVBAR ===== */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(5,5,5,0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 38px; height: 38px; border-radius: 10px; display: block; }
.brand-name { font-size: 22px; font-weight: 700; }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--silver-dim);
    transition: color .2s ease;
}
.nav-links a:hover { color: var(--white); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: .25s ease;
}

/* ===== HERO ===== */
.hero {
    padding: 56px 0 72px;
    position: relative;
    border-bottom: 1px solid var(--line-soft);
    overflow: hidden;
}
.hero > .wrap {
    max-width: 1360px;
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(300px, 36%) 1fr;
    gap: 24px;
    align-items: center;
}
.hero-content {
    text-align: left;
}
.hero-content .tag {
    margin-bottom: 16px;
    font-size: 11px;
    padding: 7px 14px;
    letter-spacing: 0.16em;
}
.tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--green);
    background: var(--green-soft);
    border: 1px solid rgba(33,193,94,0.25);
    padding: 9px 16px;
    border-radius: 999px;
    margin-bottom: 34px;
}
.hero-title {
    font-size: clamp(40px, 4vw, 68px);
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 0.95;
    letter-spacing: -0.03em;
}
.hero-sub {
    max-width: 440px;
    margin: 0 0 20px;
    font-size: clamp(15px, 1.35vw, 17px);
    line-height: 1.45;
    color: var(--silver);
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-start; }
.hero-btns.center { justify-content: center; }
.hero-note { margin-top: 14px; font-size: 12px; color: var(--silver-dim); }
.hero-visual {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-right: -48px;
}
.hero-img-wrap {
    position: relative;
    width: 100%;
    max-width: 960px;
}
.hero-img-wrap::before {
    content: "";
    position: absolute;
    inset: -12px -12px -12px 0;
    border-radius: 24px;
    border: 1px solid rgba(33, 193, 94, 0.18);
    pointer-events: none;
}
.hero-img {
    width: 100%;
    max-width: none;
    height: auto;
    display: block;
    border-radius: 18px;
    border: 1px solid #2e2e2e;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 32px 90px rgba(0, 0, 0, 0.65),
        0 0 60px rgba(33, 193, 94, 0.06);
}

/* ===== STRIP ===== */
.strip { border-bottom: 1px solid var(--line-soft); background: var(--panel); }
.strip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding-top: 0;
}
.strip-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 46px 16px;
    border-left: 1px solid var(--line-soft);
}
.strip-item:first-child { border-left: none; }
.strip-big { font-size: clamp(38px, 6vw, 60px); font-weight: 700; color: var(--white); }
.strip-small { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--silver-dim); }

/* ===== SECTION ===== */
.section { padding: 110px 0; border-bottom: 1px solid var(--line-soft); }
.section-alt { background: var(--panel); }

.section-head { max-width: 820px; margin: 0 auto 64px; text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }
.kicker {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--green);
    margin-bottom: 18px;
}
.section-title { font-size: clamp(40px, 6vw, 76px); font-weight: 700; margin-bottom: 26px; }
.section-title.big { font-size: clamp(44px, 7vw, 88px); }
.section-lead { font-size: clamp(17px, 2vw, 21px); color: var(--silver); }

/* ===== FEATURE GRID ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.card {
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 34px 30px;
    transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.card:hover { border-color: #3a3a3a; transform: translateY(-4px); background: #141414; }
.card-ico {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--green-soft);
    border: 1px solid rgba(33,193,94,0.25);
    margin-bottom: 22px;
}
.card-ico svg { width: 28px; height: 28px; color: var(--green); }
.card h3 { font-size: 24px; font-weight: 600; margin-bottom: 12px; }
.card p { font-size: 16px; color: var(--silver-dim); }

/* ===== WHY ===== */
.why-wrap { max-width: 920px; margin: 0 auto; }
.why-text {
    font-size: clamp(19px, 2.4vw, 27px);
    color: var(--silver);
    margin-bottom: 28px;
    line-height: 1.5;
}
.why-text:last-child { margin-bottom: 0; }

/* ===== TECH STACK ===== */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.stack-item {
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 26px;
    transition: border-color .2s ease;
}
.stack-item:hover { border-color: var(--green-dark); }
.stack-name { display: block; font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.stack-desc { font-size: 15px; color: var(--silver-dim); }

/* ===== API ===== */
.api-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.api-text .section-title { font-size: clamp(36px, 4.5vw, 60px); }
.api-text .kicker { text-align: left; }

.code-block {
    background: #0a0a0a;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.code-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line-soft);
    background: #0f0f0f;
}
.code-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #2c2c2c; }
.code-file { margin-left: 10px; font-size: 13px; color: var(--silver-dim); font-family: "Space Grotesk", sans-serif; }
.code-block pre { padding: 24px 22px; overflow-x: auto; }
.code-block code {
    font-family: "SFMono-Regular", "Consolas", "Menlo", monospace;
    font-size: 15px;
    line-height: 1.85;
    color: var(--silver);
}
.c-cm { color: #5c6470; }
.c-mt { color: var(--green); font-weight: 700; }
.c-st { color: #cdd3da; }
.c-kw { color: var(--green); }

/* ===== STEPS ===== */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.step {
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px 26px;
}
.step-num {
    display: block;
    font-size: 42px;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 20px;
}
.step h3 { font-size: 21px; font-weight: 600; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--silver-dim); }

/* ===== FAQ ===== */
.faq-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 60px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 4px 26px;
    transition: border-color .2s ease;
}
.faq-item[open] { border-color: var(--green-dark); }
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 22px 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 21px;
    font-weight: 600;
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-size: 28px;
    font-weight: 400;
    color: var(--green);
    transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 0 24px; font-size: 16px; color: var(--silver-dim); }

/* ===== CTA ===== */
.cta { padding: 130px 0; text-align: center; border-bottom: 1px solid var(--line-soft); }
.cta-inner { max-width: 820px; margin: 0 auto; }
.cta-title { font-size: clamp(48px, 8vw, 104px); font-weight: 700; margin-bottom: 26px; }
.cta-sub { font-size: clamp(18px, 2.2vw, 23px); color: var(--silver); margin-bottom: 42px; }

/* ===== FOOTER ===== */
.footer { background: var(--panel); padding: 70px 0 36px; }
.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 2fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--line-soft);
}
.footer-desc { margin-top: 18px; max-width: 320px; font-size: 15px; color: var(--silver-dim); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-head {
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 6px;
}
.footer-col a { font-size: 15px; color: var(--silver-dim); transition: color .2s ease; }
.footer-col a:hover { color: var(--green); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 28px;
    font-size: 14px;
    color: var(--silver-dim);
    flex-wrap: wrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .hero-visual { justify-content: center; margin-right: 0; }
    .hero-img-wrap { max-width: 100%; }
    .grid, .stack-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .api-wrap { grid-template-columns: 1fr; gap: 40px; }
    .faq-wrap { grid-template-columns: 1fr; gap: 36px; }
    .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
    .nav-links {
        position: fixed;
        top: 67px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(5,5,5,0.97);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--line);
        padding: 8px 28px 20px;
        transform: translateY(-130%);
        transition: transform .3s ease;
        z-index: 40;
    }
    .nav-links.open { transform: translateY(0); }
    .nav-links a { padding: 16px 0; border-bottom: 1px solid var(--line-soft); font-size: 17px; }
    .nav-toggle { display: flex; }
    .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .btn-ghost.btn-sm { display: none; }

    .hero { padding: 48px 0 52px; }
    .hero-title { font-size: clamp(36px, 10vw, 52px); }
    .hero-visual { margin-right: 0; }
    .section, .cta { padding: 70px 0; }
    .strip-grid { grid-template-columns: repeat(2, 1fr); }
    .strip-item:nth-child(3) { border-left: none; }
    .strip-item { border-top: 1px solid var(--line-soft); }
    .strip-item:nth-child(-n+2) { border-top: none; }
    .grid, .stack-grid, .steps { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 460px) {
    .wrap, .nav-inner { padding-left: 18px; padding-right: 18px; }
    .btn-lg { width: 100%; justify-content: center; }
    .hero-btns { width: 100%; }
}
