:root {
    --bg: #f6f8fb;
    --bg-2: #eef3f8;
    --surface: #ffffff;
    --line: #dce5f0;
    --text: #172638;
    --muted: #5f7288;
    --brand: #1e8bff;
    --brand-2: #00b894;
    --brand-3: #ffb74d;
    --topbar-bg: rgba(255, 255, 255, 0.85);
    --hero-grad-a: rgba(30, 139, 255, 0.2);
    --hero-grad-b: rgba(0, 184, 148, 0.12);
    --soft-panel: #f3f8ff;
    --surface-soft: #f4f8fc;
    --pill-border: #d3e3f7;
    --trust-line: #e4edf7;
}

:root[data-theme="dark"] {
    --bg: #0c1218;
    --bg-2: #101b25;
    --surface: #121e2a;
    --line: #27394c;
    --text: #e6eef7;
    --muted: #9fb2c7;
    --brand: #53a8ff;
    --brand-2: #42d0b0;
    --brand-3: #ffc46b;
    --topbar-bg: rgba(12, 18, 24, 0.86);
    --hero-grad-a: rgba(83, 168, 255, 0.16);
    --hero-grad-b: rgba(66, 208, 176, 0.1);
    --soft-panel: #14263a;
    --surface-soft: #14212e;
    --pill-border: #2b4258;
    --trust-line: #1e3042;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    color: var(--text);
    background:
        radial-gradient(1000px 420px at -5% -8%, var(--hero-grad-a), transparent 60%),
        radial-gradient(900px 420px at 105% -10%, var(--hero-grad-b), transparent 60%),
        var(--bg);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
}

.brand {
    text-decoration: none;
    color: var(--brand);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.menu {
    display: flex;
    gap: 14px;
}

.menu a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
}

.auth-btn {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    border-radius: 8px;
    padding: 5px 10px;
    cursor: pointer;
}

.auth-user {
    display: none;
    color: var(--muted);
    font-size: 0.9rem;
    align-items: center;
}

.auth-logout {
    display: none;
}

main {
    width: min(1160px, 94vw);
    margin: 0 auto;
    padding: 28px 0 80px;
}

.landing-main {
    width: 100%;
    padding: 0 0 80px;
}

.wrap {
    width: min(1180px, 92vw);
    margin: 0 auto;
}

.kicker {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.74rem;
    color: var(--brand);
    font-weight: 700;
}

.menu .theme-toggle {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    border-radius: 8px;
    padding: 5px 10px;
    cursor: pointer;
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 16px;
    align-items: stretch;
}

.lp-hero {
    padding: 26px 0 40px;
}

.lp-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: center;
}

.lp-hero h1 {
    margin: 10px 0;
    font-size: clamp(2rem, 5.2vw, 4rem);
    line-height: 1;
    max-width: 15ch;
}

.lp-numbers {
    margin-top: 20px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.lp-numbers div strong {
    display: block;
    font-size: 1.35rem;
}

.lp-numbers div span {
    color: var(--muted);
    font-size: 0.84rem;
}

.lp-showcase {
    position: relative;
    min-height: 380px;
    background: linear-gradient(140deg, var(--surface-soft), var(--bg-2));
    border-radius: 24px;
    overflow: hidden;
    padding: 20px;
}

.bubble {
    position: absolute;
    background: var(--surface);
    border-radius: 999px;
    padding: 7px 12px;
    border: 1px solid var(--pill-border);
    font-size: 0.82rem;
}

.bubble.one { top: 22px; left: 22px; }
.bubble.two { top: 66px; right: 20px; }
.bubble.three { top: 112px; left: 68px; }

.mock-screen {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: var(--surface);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 20px 50px rgba(23, 38, 56, 0.12);
}

.mock-screen p {
    margin: 0;
    color: var(--brand);
    font-size: 0.78rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.mock-screen h3 {
    margin: 6px 0 10px;
}

.mock-screen ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.lp-trust {
    background: var(--surface);
    border-top: 1px solid var(--trust-line);
    border-bottom: 1px solid var(--trust-line);
}

.trust-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 14px 0;
}

.trust-row span {
    text-align: center;
    font-family: "IBM Plex Mono", monospace;
    color: #7e93aa;
    font-size: 0.78rem;
}

.lp-flow {
    padding: 44px 0;
}

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

.flow-grid article p {
    width: 34px;
    height: 34px;
    margin: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), #53afff);
    font-weight: 700;
}

.flow-grid article h3 {
    margin: 10px 0 6px;
}

.flow-grid article span {
    color: var(--muted);
}

.lp-split {
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
    padding: 44px 0;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
}

.split-grid h2 {
    margin: 8px 0;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    max-width: 18ch;
}

.split-grid p {
    color: var(--muted);
}

.mini-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
}

.mini-panel p {
    margin: 0;
    color: var(--brand);
    font-weight: 700;
}

.mini-panel ul {
    color: var(--muted);
}

.lp-pricing {
    padding: 44px 0 0;
}

.lp-lead {
    padding: 44px 0 0;
}

.lead-wrap {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.lead-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.lead-form input:nth-child(5) {
    grid-column: span 2;
}

.lead-form button {
    grid-column: span 2;
    height: 40px;
}

.lead-form small {
    grid-column: span 2;
    color: var(--muted);
}

.pricing-line {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.pricing-line article {
    padding: 16px 14px;
    min-height: 360px;
    display: flex;
    flex-direction: column;
}

.pricing-line article + article {
    border-left: 1px solid var(--line);
}

.pricing-line h3 {
    margin: 0;
}

.pricing-line p {
    margin: 6px 0;
    font-size: 1.9rem;
}

.pricing-line p span {
    font-size: 0.9rem;
    color: var(--muted);
}

.pricing-line small {
    color: var(--muted);
    display: block;
    margin-bottom: 12px;
    min-height: 38px;
}

.plan-specs {
    margin: 0 0 14px;
    flex: 1;
}

.plan-specs p {
    margin: 0;
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid var(--line);
    font-size: 0.92rem;
}

.plan-specs p span {
    color: var(--muted);
}

.plan-specs p strong {
    color: var(--text);
    text-align: right;
}

.pricing-line .highlight {
    background: linear-gradient(180deg, var(--bg-2), var(--surface-soft));
}

.billing-box {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    padding: 14px;
}

.billing-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.billing-form select {
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 10px;
    background: var(--surface);
    color: var(--text);
}

.billing-result {
    margin-top: 12px;
    border-top: 1px solid var(--line);
    padding-top: 10px;
    display: none;
}

.billing-result.open {
    display: block;
}

.billing-result textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 9px;
    min-height: 84px;
    padding: 8px;
    margin-top: 8px;
    color: var(--text);
    background: var(--surface);
}

.billing-result img {
    max-width: 240px;
    margin-top: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: block;
}

.hero h1 {
    margin: 8px 0 10px;
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    line-height: 1.04;
    max-width: 17ch;
}

.hero-sub,
.page-head p,
.dim {
    color: var(--muted);
}

.hero-card,
.proof-card,
.card,
.plan,
.sim-chat,
.sim-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.hero-card {
    padding: 24px;
    box-shadow: 0 16px 45px rgba(23, 38, 56, 0.09);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.btn {
    display: inline-block;
    border-radius: 11px;
    padding: 10px 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), #4da7ff);
    color: #ffffff;
}

.btn-ghost {
    color: var(--text);
    border-color: var(--line);
    background: var(--surface);
}

.hero-meta {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.hero-meta .item {
    background: var(--bg-2);
    border-radius: 12px;
    padding: 10px;
}

.hero-meta .item strong {
    display: block;
    font-size: 1.2rem;
}

.hero-meta .item span {
    color: var(--muted);
    font-size: 0.85rem;
}

.proof-card {
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(180deg, #ffffff, #f4f8fc);
}

.proof-card h3 {
    margin: 4px 0;
}

.proof-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.proof-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

.logo-row {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.logo-row span {
    border: 1px dashed #c8d9ec;
    border-radius: 10px;
    padding: 8px;
    text-align: center;
    font-family: "IBM Plex Mono", monospace;
    color: #6e8299;
    font-size: 0.76rem;
}

.section-title {
    margin: 36px 0 0;
    font-size: 1.6rem;
}

.section-sub {
    color: var(--muted);
    margin-top: 8px;
}

.grid {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

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

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

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

.card {
    padding: 16px;
}

.feature-icon {
    display: inline-block;
    background: #e9f3ff;
    color: var(--brand);
    font-size: 0.78rem;
    border-radius: 999px;
    padding: 4px 10px;
    margin-bottom: 8px;
}

.plan {
    padding: 18px;
}

.plan-name {
    margin: 0;
    color: var(--muted);
}

.plan-price {
    margin: 8px 0 12px;
    font-size: 2rem;
}

.plan-price span {
    font-size: 0.95rem;
    color: var(--muted);
}

.plan ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.featured {
    border-color: #8ac0ff;
    box-shadow: 0 12px 36px rgba(30, 139, 255, 0.18);
    transform: translateY(-3px);
}

.cta-strip {
    margin-top: 24px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #cae2ff;
    background: linear-gradient(90deg, #edf6ff, #ecfbf7);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.page-head h1 {
    margin: 6px 0;
}

.simulator-wrap {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 14px;
}

.sim-header {
    padding: 12px;
    border-bottom: 1px solid var(--line);
}

.sim-messages,
.widget-messages {
    padding: 12px;
    height: 320px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.sim-form,
.widget-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--line);
}

input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 10px;
    color: var(--text);
    background: var(--surface);
}

button {
    border: 0;
    border-radius: 9px;
    padding: 0 12px;
    font-weight: 600;
    background: var(--brand);
    color: #ffffff;
}

.msg {
    max-width: 84%;
    padding: 9px 10px;
    border-radius: 10px;
    line-height: 1.35;
    border: 1px solid var(--line);
}

.msg.bot {
    background: var(--surface-soft);
}

.msg.user {
    align-self: flex-end;
    background: #e9f3ff;
    border-color: #b8d8ff;
}

.sim-panel {
    padding: 14px;
}

.stat p {
    color: var(--muted);
    margin: 0;
}

.stat h3 {
    margin: 8px 0 2px;
    font-size: 1.8rem;
}

.stat small {
    color: var(--brand);
}

.bar {
    margin: 8px 0;
    border-radius: 10px;
    border: 1px solid var(--line);
    overflow: hidden;
}

.bar span {
    display: block;
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    padding: 8px;
    font-size: 0.85rem;
    font-family: "IBM Plex Mono", monospace;
}

.list-clean {
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--muted);
}

.list-clean li {
    padding: 7px 0;
    border-bottom: 1px solid var(--line);
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.kanban .col {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
}

.kanban .col p {
    margin: 8px 0;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
}

.mock-site {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 14px;
}

.floating-widget {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: min(360px, calc(100vw - 24px));
    z-index: 30;
}

.widget-trigger {
    width: 100%;
    padding: 11px;
    box-shadow: 0 10px 24px rgba(30, 139, 255, 0.28);
}

.widget-shell {
    margin-top: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    overflow: hidden;
    max-height: 0;
    transition: max-height 240ms ease;
}

.widget-shell.open {
    max-height: 520px;
}

.widget-head {
    padding: 11px;
    border-bottom: 1px solid var(--line);
    font-family: "IBM Plex Mono", monospace;
    background: var(--soft-panel);
}

@media (max-width: 900px) {
    .lp-hero-grid,
    .trust-row,
    .flow-grid,
    .split-grid,
    .pricing-line,
    .lead-wrap,
    .billing-form,
    .hero,
    .grid-2,
    .grid-3,
    .grid-4,
    .logo-row,
    .simulator-wrap,
    .kanban-board,
    .mock-site,
    .hero-meta {
        grid-template-columns: 1fr;
    }

    .plan-specs p {
        flex-direction: column;
        align-items: flex-start;
    }

    .plan-specs p strong {
        text-align: left;
    }

    .lead-form {
        grid-template-columns: 1fr;
    }

    .lead-form input:nth-child(5),
    .lead-form button,
    .lead-form small {
        grid-column: span 1;
    }

    .cta-strip {
        flex-direction: column;
        align-items: flex-start;
    }
}
