:root {
    --bg: #0b0d14;
    --bg-soft: #11141c;
    --surface: #ffffff;
    --surface-alt: #f6f7fb;
    --border: #e5e7ef;
    --border-dark: #1f2330;
    --text: #0e1220;
    --text-muted: #5a6078;
    --text-invert: #f5f6fb;
    --text-invert-muted: #a9afc3;
    --brand: #7c6bff;
    --brand-2: #00d4b4;
    --brand-soft: #eeeaff;
    --danger: #ff5a6b;
    --danger-soft: #ffe5e8;
    --success: #12c48b;
    --success-soft: #e1f8ee;
    --warn: #ffb547;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(14,18,32,0.05), 0 2px 6px rgba(14,18,32,0.04);
    --shadow-md: 0 10px 30px rgba(14,18,32,0.08), 0 2px 8px rgba(14,18,32,0.04);
    --shadow-lg: 0 30px 60px rgba(14,18,32,0.14), 0 8px 20px rgba(14,18,32,0.08);
    --grad-1: linear-gradient(135deg, #7c6bff 0%, #00d4b4 100%);
    --grad-hero: radial-gradient(1200px 600px at 80% -10%, rgba(124,107,255,0.35), transparent 60%),
                  radial-gradient(900px 500px at 10% 20%, rgba(0,212,180,0.22), transparent 55%);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--surface);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; }
ul { padding: 0; margin: 0; list-style: none; }
pre, code { font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace; }
pre { margin: 0; overflow-x: auto; }

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

.grad {
    background: var(--grad-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* BUTTONS */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: 0.95rem;
    border: 1px solid transparent; cursor: pointer; transition: all .18s ease;
    white-space: nowrap;
}
.btn--lg { padding: 14px 24px; font-size: 1rem; }
.btn--full { width: 100%; }
.btn--primary { background: var(--grad-1); color: #fff; box-shadow: 0 8px 22px rgba(124,107,255,0.35); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(124,107,255,0.45); color: #fff; }
.btn--secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn--secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { color: var(--brand); }

/* NAV */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.logo:hover { color: var(--text); }
.nav__links { display: flex; gap: 28px; font-weight: 500; color: var(--text-muted); }
.nav__links a:hover { color: var(--text); }
.nav__cta { display: flex; gap: 8px; align-items: center; }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; gap: 4px; flex-direction: column; }
.nav__burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* HERO */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; background: var(--grad-hero), #fff; }
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 0, rgba(255,255,255,0) 0%, #fff 70%);
    pointer-events: none;
    z-index: 0;
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 999px;
    background: rgba(124,107,255,0.1); color: var(--brand);
    font-size: 0.85rem; font-weight: 500;
    border: 1px solid rgba(124,107,255,0.2);
    margin-bottom: 22px;
}
.badge__dot { width: 6px; height: 6px; background: var(--brand-2); border-radius: 50%; box-shadow: 0 0 0 4px rgba(0,212,180,0.2); }
.hero__lead { font-size: 1.15rem; color: var(--text-muted); margin: 22px 0 32px; max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.hero__stats { display: flex; gap: 44px; flex-wrap: wrap; }
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 1.7rem; font-weight: 800; background: var(--grad-1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__stats span { color: var(--text-muted); font-size: 0.9rem; }

.hero__visual { position: relative; }
.code-card {
    background: #0b0d14; color: #e6e8f0; border-radius: var(--radius-lg);
    padding: 0; box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-dark); overflow: hidden;
    font-size: 0.88rem;
}
.code-card__head {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 18px; border-bottom: 1px solid var(--border-dark);
    background: #0e1220;
}
.code-card__head .dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: #ff5a6b; } .dot.y { background: #ffb547; } .dot.g { background: #12c48b; }
.code-card__title { margin-left: 10px; color: #a9afc3; font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; }
.code-card pre { padding: 20px 22px; line-height: 1.7; }
.code-card .k { color: #7c6bff; }
.code-card .s { color: #00d4b4; }
.code-card .n { color: #ffb547; }
.code-card .fn { color: #f2c57c; }
.code-card .c { color: #6b7089; }

.alert-card {
    position: absolute; display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: 14px; background: #fff;
    box-shadow: var(--shadow-md); font-size: 0.9rem;
    animation: float 6s ease-in-out infinite;
}
.alert-card--fail { top: -20px; right: -10px; color: var(--danger); border: 1px solid var(--danger-soft); }
.alert-card--fail .alert-card__icon { background: var(--danger-soft); }
.alert-card--ok { bottom: -20px; left: -20px; color: var(--success); border: 1px solid var(--success-soft); animation-delay: -3s; }
.alert-card--ok .alert-card__icon { background: var(--success-soft); }
.alert-card__icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; }
.alert-card__title { font-weight: 600; color: var(--text); }
.alert-card__meta { color: var(--text-muted); font-size: 0.8rem; }
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-8px);} }

/* LOGOS */
.logos { padding: 48px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-alt); }
.logos p { text-align: center; text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 22px; }
.logos__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; }
.logos__row span { font-weight: 700; color: var(--text-muted); font-size: 1.05rem; letter-spacing: -0.01em; opacity: 0.7; transition: opacity .15s ease; }
.logos__row span:hover { opacity: 1; color: var(--text); }

/* SECTION COMMON */
section { padding: 96px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { margin-bottom: 14px; }
.eyebrow {
    display: inline-block; font-size: 0.8rem; font-weight: 600;
    color: var(--brand); text-transform: uppercase; letter-spacing: 0.12em;
    margin-bottom: 14px;
}
.section-lead { color: var(--text-muted); font-size: 1.08rem; }

/* PROBLEM */
.problem { background: var(--surface-alt); }
.problem__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.problem__item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.problem__num { font-family: 'JetBrains Mono', monospace; color: var(--brand); font-weight: 600; margin-bottom: 18px; }
.problem__item h3 { margin-bottom: 8px; }
.problem__item p { color: var(--text-muted); }

/* FEATURES */
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
    padding: 28px; border-radius: var(--radius-lg); background: #fff;
    border: 1px solid var(--border); transition: all .18s ease;
}
.feature:hover { transform: translateY(-2px); border-color: transparent; box-shadow: var(--shadow-md); }
.feature__icon {
    width: 44px; height: 44px; display: grid; place-items: center;
    border-radius: 12px; background: var(--brand-soft); color: var(--brand);
    margin-bottom: 18px;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 6px; font-size: 1.05rem; }
.feature p { color: var(--text-muted); font-size: 0.95rem; }

/* USECASES */
.usecases { background: var(--bg); color: var(--text-invert); }
.usecases .eyebrow { color: var(--brand-2); }
.usecases__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.usecase {
    background: var(--bg-soft); border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg); padding: 36px;
}
.usecase__label {
    display: inline-block; font-size: 0.78rem; letter-spacing: 0.1em;
    text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
    margin-bottom: 16px; font-weight: 600;
}
.usecase--dev .usecase__label { background: rgba(124,107,255,0.18); color: #a99cff; }
.usecase--product .usecase__label { background: rgba(0,212,180,0.18); color: var(--brand-2); }
.usecase h3 { font-size: 1.4rem; margin-bottom: 20px; }
.usecase ul li { padding: 10px 0; border-bottom: 1px solid var(--border-dark); color: var(--text-invert-muted); font-size: 0.98rem; }
.usecase ul li:last-child { border: 0; }
.usecase ul strong { color: #fff; }

/* COMPARE */
.compare { background: var(--surface-alt); }
.compare__wrap { overflow-x: auto; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 860px; }
.compare-table th, .compare-table td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--border); }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; font-weight: 500; }
.compare-table thead th { font-weight: 600; color: var(--text-muted); font-size: 0.88rem; background: var(--surface-alt); }
.compare-table th.highlight { background: var(--brand-soft); color: var(--brand); border-bottom-color: var(--brand); }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table .yes { color: var(--success); font-weight: 700; }
.compare-table .no { color: var(--text-muted); }
.compare-table .part { color: var(--warn); font-size: 0.85rem; }
.compare__note { margin-top: 18px; text-align: center; color: var(--text-muted); font-size: 0.88rem; }

/* PRICING */
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 32px; display: flex; flex-direction: column;
    position: relative;
}
.plan--popular { border-color: var(--brand); box-shadow: 0 20px 40px rgba(124,107,255,0.15); transform: translateY(-8px); }
.plan__badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--grad-1); color: #fff; font-size: 0.78rem; font-weight: 600;
    padding: 6px 14px; border-radius: 999px;
}
.plan__name { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.plan__price { margin: 14px 0; display: flex; align-items: baseline; gap: 6px; }
.plan__price strong { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; }
.plan__price span { color: var(--text-muted); }
.plan__lead { color: var(--text-muted); margin-bottom: 24px; }
.plan ul { margin-bottom: 28px; flex-grow: 1; }
.plan ul li { padding: 9px 0; color: var(--text); font-size: 0.95rem; position: relative; padding-left: 24px; }
.plan ul li::before {
    content: ''; position: absolute; left: 0; top: 13px;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--success-soft);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 7l3 3 5-6' stroke='%2312c48b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center;
}
.pricing__note { text-align: center; margin-top: 28px; color: var(--text-muted); font-size: 0.9rem; }

/* CODE SECTION */
.code { background: var(--bg); color: var(--text-invert); }
.code .eyebrow { color: var(--brand-2); }
.code__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.code__content p { color: var(--text-invert-muted); margin: 14px 0 22px; }
.code__list { margin-bottom: 28px; }
.code__list li { padding: 8px 0; color: var(--text-invert-muted); position: relative; padding-left: 24px; }
.code__list li::before {
    content: '→'; position: absolute; left: 0; color: var(--brand-2); font-weight: 700;
}

.tabs { display: flex; gap: 4px; background: var(--bg-soft); padding: 6px; border-radius: 12px; border: 1px solid var(--border-dark); margin-bottom: 14px; width: fit-content; }
.tab {
    background: transparent; border: 0; color: var(--text-invert-muted);
    padding: 8px 16px; border-radius: 8px; font-weight: 500; cursor: pointer;
    font-family: inherit; font-size: 0.9rem;
}
.tab.is-active { background: rgba(124,107,255,0.2); color: #fff; }
.tab:hover:not(.is-active) { color: #fff; }
.tab-content {
    display: none; background: var(--bg-soft); border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg); padding: 22px; font-size: 0.88rem;
}
.tab-content.is-active { display: block; }
.tab-content pre { line-height: 1.7; }
.tab-content .k { color: #7c6bff; }
.tab-content .s { color: #00d4b4; }
.tab-content .n { color: #ffb547; }
.tab-content .fn { color: #f2c57c; }
.tab-content .c { color: #6b7089; }

/* FAQ */
.faq { background: var(--surface-alt); }
.faq__list { max-width: 820px; margin: 0 auto; }
.faq details {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px 24px; margin-bottom: 12px;
    transition: border-color .15s ease;
}
.faq details[open] { border-color: var(--brand); }
.faq summary {
    cursor: pointer; font-weight: 600; list-style: none;
    display: flex; align-items: center; justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+'; font-size: 1.3rem; color: var(--text-muted);
    transition: transform .2s ease; line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--brand); }
.faq details p { margin-top: 14px; color: var(--text-muted); }

/* CTA */
.cta { background: var(--bg); color: var(--text-invert); text-align: center; }
.cta h2 { margin-bottom: 14px; }
.cta p { color: var(--text-invert-muted); max-width: 560px; margin: 0 auto 28px; }
.cta__form {
    display: flex; gap: 10px; max-width: 520px; margin: 0 auto 16px;
    background: var(--bg-soft); padding: 8px; border-radius: 14px; border: 1px solid var(--border-dark);
}
.cta__form input {
    flex: 1; background: transparent; border: 0; outline: none;
    color: #fff; padding: 12px 14px; font-size: 1rem; font-family: inherit;
}
.cta__form input::placeholder { color: var(--text-invert-muted); }
.cta__small { font-size: 0.85rem; color: var(--text-invert-muted); }
.cta__small a { color: var(--brand-2); }

/* FOOTER */
.footer { background: #06080e; color: var(--text-invert-muted); padding: 72px 0 32px; }
.footer__inner { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; margin-bottom: 48px; }
.footer__col--brand p { margin-top: 14px; max-width: 280px; font-size: 0.95rem; }
.footer__col h4 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; font-weight: 600; }
.footer__col a { display: block; padding: 6px 0; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
    border-top: 1px solid var(--border-dark); padding-top: 24px;
    display: flex; justify-content: space-between; font-size: 0.88rem;
}

/* RESPONSIVE */
@media (max-width: 980px) {
    .hero { padding: 56px 0 72px; }
    .hero__inner { grid-template-columns: 1fr; gap: 48px; }
    .hero__visual { max-width: 520px; }
    .features__grid { grid-template-columns: repeat(2, 1fr); }
    .problem__grid { grid-template-columns: 1fr; }
    .usecases__grid, .pricing__grid, .code__inner { grid-template-columns: 1fr; gap: 24px; }
    .plan--popular { transform: none; }
    .footer__inner { grid-template-columns: 1fr 1fr; }
    .nav__links { display: none; }
    .nav__burger { display: flex; }
    .nav__cta .btn--ghost { display: none; }
    section { padding: 64px 0; }
    .section-head { margin-bottom: 40px; }
}
@media (max-width: 560px) {
    .features__grid { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr; gap: 28px; }
    .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
    .hero__stats { gap: 24px; }
    .hero__stats strong { font-size: 1.4rem; }
    .cta__form { flex-direction: column; padding: 12px; }
    .alert-card--fail { top: -10px; right: 10px; }
    .alert-card--ok { bottom: -10px; left: 10px; }
}
