:root {
    --bg: #ffffff;
    --bg-soft: #f7f8fc;
    --bg-deep: #0b0e23;
    --ink: #0f1330;
    --ink-soft: #4a4f6a;
    --ink-mute: #858aa3;
    --line: #e9eaf2;
    --line-soft: #f0f1f7;
    --brand: #5b4dff;
    --brand-deep: #3a2bd9;
    --brand-soft: #efedff;
    --accent: #00c2a8;
    --accent-soft: #e2faf6;
    --warn: #ff9c4a;
    --radius: 16px;
    --radius-lg: 22px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(15,19,48,.05), 0 1px 3px rgba(15,19,48,.04);
    --shadow-md: 0 10px 30px rgba(15,19,48,.08);
    --shadow-lg: 0 30px 70px -20px rgba(15,19,48,.28);
    --ring: 0 0 0 1px var(--line);
    --maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}
a { color: var(--brand); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-deep); }
img { max-width: 100%; }
::selection { background: var(--brand-soft); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--brand-deep); font-weight: 650;
    background: var(--brand-soft); padding: 6px 13px; border-radius: 999px;
    border: 1px solid rgba(91,77,255,.12);
}
.eyebrow.dot::before { content:""; width:6px; height:6px; border-radius:50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; line-height: 1.1; letter-spacing: -0.022em; font-weight: 720; }
h1 { font-size: clamp(38px, 5.2vw, 60px); }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.01em; }
p  { margin: 0 0 1em; color: var(--ink-soft); }
.lead { font-size: 19px; line-height: 1.6; color: var(--ink-soft); max-width: 600px; }
.gradient-text { background: linear-gradient(110deg, var(--brand) 10%, #8a5cff 55%, var(--accent) 130%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* nav */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.78);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 720; color: var(--ink); font-size: 17px; letter-spacing: -0.01em; }
.brand-mark {
    width: 30px; height: 30px; border-radius: 9px;
    background: linear-gradient(140deg, var(--brand) 0%, var(--brand-deep) 100%);
    display: inline-flex; align-items: center; justify-content: center;
    color: white; font-weight: 800; font-size: 15px; box-shadow: 0 4px 12px rgba(91,77,255,.4);
}
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--ink-soft); font-weight: 530; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.btn-brand, .nav-links a.btn-brand:hover { color: #fff; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }
.nav-links a.btn-ghost { color: var(--ink); }

/* buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 19px; border-radius: 11px; font-weight: 600; font-size: 15px;
    border: 1px solid transparent; cursor: pointer; white-space: nowrap;
    transition: transform .12s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-brand { background: linear-gradient(135deg, #6a5cff 0%, var(--brand-deep) 100%); color: #fff; box-shadow: 0 6px 18px rgba(91,77,255,.38); }
.btn-brand:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(91,77,255,.5); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: var(--bg-soft); border-color: #d8dae8; }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 12px; }

/* hero */
.hero {
    position: relative; padding: 92px 0 76px; overflow: hidden;
    background:
        radial-gradient(900px 460px at 82% -8%, rgba(91,77,255,.16), transparent 62%),
        radial-gradient(720px 420px at 2% 18%, rgba(0,194,168,.12), transparent 60%);
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
    background-size: 38px 38px;
    -webkit-mask-image: radial-gradient(680px 420px at 60% 8%, #000 0%, transparent 72%);
    mask-image: radial-gradient(680px 420px at 60% 8%, #000 0%, transparent 72%);
    opacity: .7;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 16ch; }
.hero .lead { margin-top: 16px; }
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 22px; margin-top: 24px; color: var(--ink-mute); font-size: 14px; flex-wrap: wrap; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.checkmark { color: var(--accent); font-weight: 700; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } .hero h1 { max-width: 18ch; } }

/* trust row */
.trust-row { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 24px; color: var(--ink-mute); font-size: 13.5px; }
.trust-row.center { justify-content: center; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.trust-row svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* browser / product mockup */
.browser { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg,#fbfbfe,#f5f6fb); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.browser-bar .url { margin-left: 10px; font-size: 12px; color: var(--ink-mute); background: #fff; border: 1px solid var(--line); padding: 4px 12px; border-radius: 7px; flex: 1; }
.browser-body { padding: 24px; }

/* section */
.section { padding: 88px 0; }
.section-tight { padding: 52px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-deep { background: var(--bg-deep); color: #d6d8ea; }
.section-deep h1, .section-deep h2, .section-deep h3 { color: #fff; }
.section-deep p { color: #a4a8c2; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head .lead { margin: 16px auto 0; }

/* feature grid */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 28px; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .15s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #dcdef0; }
.card .icon {
    width: 46px; height: 46px; border-radius: 12px;
    background: linear-gradient(150deg, var(--brand-soft), #fff);
    border: 1px solid rgba(91,77,255,.16);
    color: var(--brand-deep);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.card .icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: 15px; }

/* feature list rows */
.feature-row {
    display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px;
    align-items: center; padding: 64px 0; border-bottom: 1px solid var(--line-soft);
}
.feature-row:last-child { border-bottom: 0; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-row h2 { font-size: 31px; }
.feature-row ul { list-style: none; padding: 0; margin: 20px 0 0; }
.feature-row li { padding: 9px 0 9px 30px; position: relative; color: var(--ink-soft); }
.feature-row li::before {
    content: ""; position: absolute; left: 0; top: 13px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--brand-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path d='M2 5l2 2 4-4' fill='none' stroke='%233a2bd9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/10px no-repeat;
}
.feature-visual {
    border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
    box-shadow: var(--shadow-md); padding: 22px; min-height: 240px;
}
@media (max-width: 880px) {
    .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 32px; direction: ltr; padding: 44px 0; }
}

/* mock form */
.mock { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #fff; }
.mock-row { margin-bottom: 14px; }
.mock-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.mock-input { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 9px; background: #fafbff; }
.mock-input.tall { height: 80px; }
.mock-btn { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%); color: #fff; height: 44px; padding: 0 22px; border-radius: 11px; border: 0; font-weight: 600; box-shadow: 0 6px 16px rgba(91,77,255,.34); }
.mock-tag {
    display: inline-block; font-size: 12px; padding: 4px 10px; background: var(--brand-soft);
    color: var(--brand-deep); border-radius: 999px; margin: 0 6px 6px 0; font-weight: 550;
}

/* pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 1040px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .pricing-grid { grid-template-columns: 1fr; } }
.plan {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 26px; display: flex; flex-direction: column; position: relative;
    transition: box-shadow .2s ease, transform .15s ease, border-color .2s ease;
}
.plan:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.plan.featured {
    border-color: transparent; box-shadow: 0 24px 60px -22px rgba(91,77,255,.5);
    background:
        linear-gradient(#fff,#fff) padding-box,
        linear-gradient(140deg, #6a5cff, var(--accent)) border-box;
    border: 1.5px solid transparent;
    transform: translateY(-10px); z-index: 1;
}
@media (max-width: 1040px) { .plan.featured { transform: translateY(0); } }
.plan.featured::before {
    content: "Most popular"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
    color: #fff; font-size: 11.5px; font-weight: 650; padding: 6px 15px; border-radius: 999px;
    letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
    box-shadow: 0 6px 16px rgba(91,77,255,.4);
}
.plan-name { font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .09em; color: var(--brand-deep); }
.plan-price { font-size: 46px; font-weight: 760; color: var(--ink); margin: 16px 0 2px; line-height: 1; letter-spacing: -0.03em; }
.plan-price small { font-size: 15px; font-weight: 500; color: var(--ink-mute); letter-spacing: 0; }
.price-sub { font-size: 12.5px; color: var(--ink-mute); margin: 0 0 16px; }
.plan-tag { font-size: 14px; color: var(--ink-soft); margin: 4px 0 22px; min-height: 40px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { padding: 8px 0 8px 26px; position: relative; font-size: 14px; color: var(--ink-soft); }
.plan li::before {
    content: ""; position: absolute; left: 0; top: 12px; width: 16px; height: 16px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 14 14'><path d='M3 7l3 3 5-6' fill='none' stroke='%2300c2a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/16px no-repeat;
}
.plan li.muted { color: var(--ink-mute); }
.plan li.muted::before {
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><path d='M4 7h6' fill='none' stroke='%23c2c5da' stroke-width='2' stroke-linecap='round'/></svg>") center/14px no-repeat;
}
.plan .btn { width: 100%; }
.plan-cta-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 11px; font-size: 12px; color: var(--ink-mute); }
.plan-cta-note svg { width: 13px; height: 13px; }
.pricing-foot { text-align: center; color: var(--ink-mute); margin-top: 34px; font-size: 14px; }

/* compare table */
.compare-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; }
.compare th, .compare td { padding: 15px 20px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--line-soft); }
.compare thead th { background: var(--bg-soft); font-weight: 650; font-size: 13.5px; color: var(--ink); position: sticky; top: 66px; }
.compare th + th, .compare td + td { text-align: center; }
.compare tbody tr:hover { background: #fcfcff; }
.compare tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--accent); font-weight: 700; }
.compare .no  { color: var(--ink-mute); }
.compare td.note { color: var(--ink-soft); font-size: 13px; }

/* testimonials */
.tcard {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
    transition: box-shadow .2s ease, transform .15s ease;
}
.tcard:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tcard blockquote { margin: 0 0 22px; font-size: 17px; color: var(--ink); line-height: 1.6; font-weight: 480; }
.tcard blockquote::before { content: "\201C"; color: var(--brand); font-size: 40px; line-height: 0; vertical-align: -12px; margin-right: 4px; font-family: Georgia, serif; }
.tperson { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.tavatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, #8a7bff, var(--brand-deep));
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 15px;
}
.tname  { font-weight: 650; color: var(--ink); font-size: 14px; }
.trole  { color: var(--ink-mute); font-size: 13px; }
.stars  { color: #ffb648; letter-spacing: 2px; font-size: 14px; margin-bottom: 16px; }

/* logos strip */
.logos { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; justify-content: center; }
.logos span { font-size: 16px; font-weight: 650; color: var(--ink-mute); letter-spacing: .01em; opacity: .9; }

/* faq */
.faq details {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 4px 22px; margin-bottom: 12px; transition: border-color .15s ease, box-shadow .15s ease;
}
.faq details[open] { box-shadow: var(--shadow-sm); border-color: #dcdef0; }
.faq summary {
    font-weight: 600; cursor: pointer; list-style: none; color: var(--ink);
    display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; font-weight: 400; transition: transform .2s ease; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { margin: 0 0 16px; }

/* cta band */
.cta-band {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #2a1d6b 0%, #1a1340 60%, #0f0b29 100%);
    color: #fff; border-radius: var(--radius-lg); padding: 64px 48px; text-align: center;
}
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(500px 240px at 80% -20%, rgba(91,77,255,.55), transparent 60%), radial-gradient(420px 220px at 5% 120%, rgba(0,194,168,.4), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 560px; margin: 14px auto 28px; }

/* footer */
footer.site { border-top: 1px solid var(--line); padding: 64px 0 40px; background: var(--bg-soft); margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); margin-bottom: 16px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { padding: 5px 0; font-size: 14px; }
.foot-grid li a { color: var(--ink-soft); }
.foot-grid li a:hover { color: var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; padding-top: 28px; margin-top: 36px; border-top: 1px solid var(--line); color: var(--ink-mute); font-size: 13px; flex-wrap: wrap; gap: 12px; }

/* numeric stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat-num { font-size: 38px; font-weight: 760; color: var(--ink); letter-spacing: -0.03em; }
.stat-num .gradient-text { font-weight: 760; }
.stat-lbl { color: var(--ink-mute); font-size: 14px; margin-top: 6px; }
