:root {
    --bg: #FFFFFF;
    --bg-alt: #F6F6FB;
    --border: #E9E9F1;
    --text: #14141C;
    --text-muted: #6B7080;
    --text-faint: #9A9EAC;

    --dark-bg: #121017;
    --dark-surface: #1B1926;
    --dark-surface-2: #221F30;
    --dark-border: rgba(255, 255, 255, 0.09);
    --dark-text: #F6F5FA;
    --dark-text-muted: #A6A3B8;

    --primary: #6D4AFF;
    --primary-2: #8B5CF6;
    --primary-soft: #F0ECFF;
    --gradient: linear-gradient(135deg, #6D4AFF 0%, #9B6BFF 100%);

    --teal: #14B8A6;
    --orange: #F97316;
    --pink: #EC4899;
    --blue: #3B82F6;
    --green: #22C55E;
    --teal-soft: #E3FAF6;
    --orange-soft: #FFF1E6;
    --pink-soft: #FDECF4;
    --blue-soft: #E9F1FF;

    --shadow-sm: 0 1px 2px rgba(16, 14, 30, 0.05);
    --shadow-md: 0 14px 32px -10px rgba(16, 14, 30, 0.14);
    --shadow-lg: 0 30px 70px -20px rgba(109, 74, 255, 0.30);

    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --maxw: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img, svg {
    display: block;
    max-width: 100%;
}

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

h1, h2, h3 {
    font-family: var(--font-display);
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

input, select, textarea {
    font-family: inherit;
    font-size: 15px;
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 32px;
}

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

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-display);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
}

.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--primary);
}

.eyebrow.center {
    justify-content: center;
}

.eyebrow.on-dark {
    color: #B9A4FF;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 11px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-display);
    border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    background: #7C5AFF;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary-soft);
    color: var(--primary);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.btn-outline-dark {
    background: transparent;
    border-color: rgba(139, 92, 246, 0.35);
    color: #B9A4FF;
}

.btn-outline-dark:hover {
    border-color: #B9A4FF;
    background: rgba(139, 92, 246, 0.12);
}

.btn-block {
    width: 100%;
}

/* ---------- Nav ---------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 19px;
}

.logo .mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo .mark svg {
    width: 16px;
    height: 16px;
}

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

.nav-links a {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color .15s;
}

.nav-links a:hover {
    color: var(--text);
}

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

.nav-cta .login {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-muted);
}

.nav-cta .login:hover {
    color: var(--text);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 168px 0 60px;
    overflow: hidden;
    background: var(--bg);
}

.hero-illustration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero-illustration circle.node {
    fill: var(--primary);
    opacity: .35;
}

.hero-illustration path.link {
    stroke: var(--primary);
    stroke-width: 1;
    opacity: .18;
    fill: none;
}

.hero-illustration .orbit-slow {
    animation: orbit-rotate 60s linear infinite;
    transform-origin: 640px 260px;
}

@keyframes orbit-rotate {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-illustration .orbit-slow {
        animation: none;
    }
}

.hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 54px;
    font-weight: 800;
}

.hero-sub {
    margin: 24px auto 0;
    max-width: 580px;
    font-size: 19px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.55;
}

.hero-sub .hl {
    color: var(--text);
    font-weight: 600;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
}

.works-with {
    margin-top: 56px;
    text-align: center;
}

.works-with p {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 18px;
}

.works-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    flex-wrap: wrap;
}

.works-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-faint);
}

.works-item svg {
    width: 17px;
    height: 17px;
    stroke: var(--text-faint);
    fill: none;
    stroke-width: 1.7;
}

/* ---------- Mockup ---------- */
.mockup-wrap {
    position: relative;
    z-index: 1;
    max-width: 940px;
    margin: 64px auto 0;
    padding: 0 32px 0;
}

.mockup {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
}

.mockup-inner {
    border-radius: 21px;
    overflow: hidden;
}

.mockup-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
}

.mockup-bar span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #E1E1EA;
}

.mockup-body {
    padding: 26px 30px;
    min-height: 280px;
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.conv-col {
    flex: 1;
    min-width: 0;
}

.conv-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.conv-row:last-child {
    margin-bottom: 0;
}

.conv-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-display);
}

.conv-bubble {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 4px 14px 14px 14px;
    padding: 12px 16px;
    font-size: 14.5px;
    line-height: 1.5;
    max-width: 100%;
}

.conv-row.reply .conv-bubble {
    background: var(--primary-soft);
    border-color: #E4DCFF;
    color: var(--text);
}

.conv-meta {
    margin-top: 7px;
    font-size: 12px;
    color: var(--text-faint);
}

.sources-col {
    width: 190px;
    flex-shrink: 0;
    padding-top: 6px;
    border-left: 1px solid var(--border);
    padding-left: 26px;
}

.sources-col .sc-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-faint);
    margin-bottom: 12px;
}

.source-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 9px 11px;
    margin-bottom: 8px;
}

.source-chip .sc-ico {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.source-chip .sc-ico svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke-width: 1.8;
}

.source-chip .sc-text {
    min-width: 0;
}

.source-chip .sc-name {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.source-chip .sc-meta {
    font-size: 10px;
    color: var(--text-faint);
}

.sources-col .sc-note {
    font-size: 11px;
    color: var(--text-faint);
    margin-top: 12px;
    line-height: 1.5;
}

.conv-meta .ok {
    color: var(--primary);
    font-weight: 600;
}

.float-card {
    position: absolute;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 16px;
    box-shadow: var(--shadow-md);
}

.float-profile {
    top: -22px;
    right: 26px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.float-profile .avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-display);
}

.float-profile .fp-title {
    font-size: 12.5px;
    font-weight: 700;
}

.float-profile .fp-sub {
    font-size: 11px;
    color: var(--text-faint);
}

.float-stat {
    bottom: -24px;
    left: 22px;
    text-align: left;
}

.float-stat .fs-num {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 800;
    color: var(--primary);
}

.float-stat .fs-label {
    font-size: 11px;
    color: var(--text-faint);
    margin-top: 2px;
}

@media (max-width: 760px) {
    .float-card {
        display: none;
    }

    .sources-col {
        display: none;
    }
}

/* ---------- Sections ---------- */
section {
    padding: 104px 0;
}

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

.section-dark {
    background: var(--dark-bg);
    color: var(--dark-text);
}

.section-head {
    max-width: 600px;
    margin: 0 auto 52px;
    text-align: center;
}

.section-head h2 {
    font-size: 34px;
    font-weight: 800;
}

.section-head p {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 16.5px;
}

.section-dark .section-head p {
    color: var(--dark-text-muted);
}

/* ---------- Orbit illustration section ---------- */
.orbit-section .showcase {
    align-items: center;
}

.orbit-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 340px;
}

.src-mockup {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.src-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
}

.src-row:last-child {
    border-bottom: none;
}

.src-ico {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.src-ico svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke-width: 1.8;
}

.src-name {
    flex: 1;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text);
}

.src-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--green);
}

.src-status .sd {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
}

.float-orbit {
    position: absolute;
    top: -16px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.float-orbit .fo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
}

.sub-heading {
    font-size: 16.5px;
    font-weight: 700;
    margin-top: 22px;
    margin-bottom: 14px;
}

/* ---------- Mini flow (integrations eyebrow illustration) ---------- */

/* ---------- Dotted texture ---------- */
.dotted-bg {
    position: relative;
}

.dotted-bg-dark {
    position: relative;
}

.dotted-bg-dark::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1.4px, transparent 1.4px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse 65% 75% at center, black 30%, transparent 78%);
    mask-image: radial-gradient(ellipse 65% 75% at center, black 30%, transparent 78%);
    pointer-events: none;
}

.dotted-bg-dark > .wrap {
    position: relative;
}

.section-dark.grad-bg-dark {
    background: linear-gradient(180deg, #2A2640 0%, var(--dark-bg) 55%);
}

.dotted-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--border) 1.4px, transparent 1.4px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at center, black 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 60% 70% at center, black 30%, transparent 75%);
    pointer-events: none;
}

.dotted-bg > .wrap {
    position: relative;
}

/* ---------- Final CTA ambient dots ---------- */
.final-cta {
    position: relative;
    overflow: hidden;
}

.cta-dots {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.final-cta .wrap {
    position: relative;
    z-index: 1;
}

.cta-dots circle {
    fill: #B9A4FF;
}

/* ---------- Capability list (no card chrome) ---------- */
.cap-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 20px;
    margin-top: 8px;
}

.cap-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}

.cap-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.cap-item .cap-head {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 12px;
}

.cap-ico {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cap-item svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke-width: 1.8;
}

.cap-item h3 {
    font-size: 17.5px;
    font-weight: 700;
}

.cap-item p {
    color: var(--text-muted);
    font-size: 14.5px;
}

/* ---------- Dark showcase ---------- */
.showcase {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 64px;
    align-items: center;
}

.showcase-copy p {
    color: var(--dark-text-muted);
    font-size: 16.5px;
    margin-top: 16px;
}

.check-list {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    font-weight: 500;
}

.check-list svg {
    width: 18px;
    height: 18px;
    stroke: #B9A4FF;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

.thread-wrap {
    position: relative;
}

.thread {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.5);
}

.ask-preview-wrap .thread {
    height: 300px;
    overflow: hidden;
}

.msg {
    margin-bottom: 16px;
}

.msg:last-child {
    margin-bottom: 0;
}

.msg-role {
    font-size: 11px;
    font-weight: 700;
    color: var(--dark-text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 6px;
}

.msg-bubble {
    display: inline-block;
    padding: 11px 15px;
    border-radius: 12px;
    font-size: 14px;
}

.msg-user .msg-bubble {
    background: var(--dark-surface-2);
    border: 1px solid var(--dark-border);
}

.msg-ai .msg-bubble {
    background: rgba(139, 92, 246, 0.16);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.msg-sources {
    margin-top: 7px;
    font-size: 11px;
    color: var(--dark-text-muted);
}

.thread-badge {
    position: absolute;
    top: -18px;
    right: 22px;
    background: #fff;
    color: var(--text);
    font-size: 12.5px;
    font-weight: 700;
    padding: 11px 16px;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 8px;
}

.thread-badge .tb-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
}

/* ---------- How it works ---------- */
.how-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 60px;
    align-items: center;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step {
    display: flex;
    gap: 18px;
}

.step-num {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14.5px;
    flex-shrink: 0;
}

.step h3 {
    font-size: 17.5px;
    font-weight: 700;
    margin-bottom: 6px;
}

.step p {
    color: var(--text-muted);
    font-size: 14.5px;
}

.stack {
    position: relative;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stack::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: var(--bg-alt);
    z-index: 0;
}

.stack-card {
    position: absolute;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 16px;
    z-index: 1;
    width: 200px;
}

.stack-card.s1 {
    top: 6px;
    left: 14px;
    transform: rotate(-6deg);
}

.stack-card.s2 {
    top: 96px;
    right: 0;
    transform: rotate(4deg);
    width: 220px;
}

.stack-card.s3 {
    bottom: 4px;
    left: 44px;
    transform: rotate(-3deg);
}

.stack-card .sc-label {
    font-size: 10.5px;
    color: var(--text-faint);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 8px;
}

.mini-bar {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 38px;
}

.mini-bar span {
    flex: 1;
    background: var(--primary-soft);
    border-radius: 3px;
}

.mini-bar span.on {
    background: var(--gradient);
}

.mini-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
}

.mini-row .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--border);
}

.mini-row .dot.on {
    background: var(--primary);
}

.mini-row .line {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-alt);
}

/* ---------- Integrations scattered (dark) ---------- */
.cluster {
    position: relative;
    height: 340px;
}

.cluster-item {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cluster-chip {
    width: 64px;
    height: 64px;
    border-radius: 17px;
    background: #fff;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cluster-chip svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cluster-label {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--dark-text-muted);
    white-space: nowrap;
}

.cc-1 {
    left: 2%;
    top: 6%;
    transform: rotate(-8deg);
}

.cc-2 {
    left: 26%;
    top: 0%;
    transform: rotate(5deg);
}

.cc-2 .cluster-chip {
    width: 56px;
    height: 56px;
}

.cc-3 {
    left: 50%;
    top: 10%;
    transform: rotate(-4deg);
}

.cc-4 {
    left: 76%;
    top: 2%;
    transform: rotate(7deg);
}

.cc-5 {
    left: 8%;
    top: 46%;
    transform: rotate(4deg);
}

.cc-5 .cluster-chip {
    width: 56px;
    height: 56px;
}

.cc-6 {
    left: 34%;
    top: 52%;
    transform: rotate(-6deg);
}

.cc-6 .cluster-chip {
    width: 72px;
    height: 72px;
}

.cc-7 {
    left: 64%;
    top: 48%;
    transform: rotate(6deg);
}

.cc-8 {
    left: 2%;
    top: 82%;
    transform: rotate(-3deg);
}

.cc-8 .cluster-chip {
    width: 52px;
    height: 52px;
}

.cc-9 {
    left: 58%;
    top: 82%;
    transform: rotate(4deg);
}

@media (max-width: 960px) {
    .cluster {
        height: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 22px 18px;
        padding: 10px 0 34px;
    }

    .cluster-item {
        position: static !important;
        transform: none !important;
    }

    .cluster-item .cluster-chip {
        width: 60px !important;
        height: 60px !important;
    }
}

/* ---------- Dark feature grid (6 cards) ---------- */
.grid6 {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 20px;
}

.fcard {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 18px;
    padding: 20px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s ease, transform .5s ease;
}

.fcard.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fcard h3 {
    font-size: 16.5px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark-text);
}

.fcard p {
    color: var(--dark-text-muted);
    font-size: 14px;
}

.fillo {
    position: relative;
    height: 150px;
    border-radius: 14px;
    background: var(--dark-surface-2);
    border: 1px solid var(--dark-border);
    overflow: hidden;
    margin-bottom: 20px;
}

.fillo svg {
    width: 100%;
    height: 100%;
    display: block;
}

.fillo-win {
    fill: var(--dark-surface);
    stroke: var(--dark-border);
    stroke-width: 1.2;
}

.fillo-bar {
    fill: rgba(255, 255, 255, 0.10);
}

.fillo-dot {
    fill: rgba(255, 255, 255, 0.16);
}

.fillo-chrome {
    fill: rgba(255, 255, 255, 0.14);
}

/* ---------- Try it (light) ---------- */
.ask-demo {
    display: grid;
    grid-template-columns:0.85fr 1.15fr;
    gap: 48px;
    align-items: start;
    margin-top: 44px;
}

.q-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.q-row {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-text-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 15px 18px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.q-row:hover {
    background: var(--dark-surface);
    color: var(--dark-text);
}

.q-row.active {
    background: rgba(139, 92, 246, 0.14);
    border-color: rgba(139, 92, 246, 0.45);
    color: #fff;
}

.q-row .badge-new {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--primary);
    background: #fff;
    padding: 3px 8px;
    border-radius: 20px;
    flex-shrink: 0;
}

.q-row .q-ico {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.q-row .q-ico svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.q-row .q-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--primary);
}

.q-row.active .q-progress {
    animation: q-fill 4s linear;
}

@keyframes q-fill {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .q-row.active .q-progress {
        animation: none;
        width: 100%;
    }
}

.ask-preview-wrap {
    position: relative;
}

.thread-bar {
    display: flex;
    gap: 6px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--dark-border);
}

.thread-bar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.typing-dots {
    display: inline-flex;
    gap: 4px;
    padding: 4px 0;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--dark-text-muted);
    animation: td-bounce 1.2s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
    animation-delay: .15s;
}

.typing-dots span:nth-child(3) {
    animation-delay: .3s;
}

@keyframes td-bounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: .4;
    }
    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

#ask-src {
    transition: opacity .3s ease;
}

.try-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.ask-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 8px 8px 20px;
    text-align: left;
}

.ask-answer {
    margin-top: 16px;
    text-align: left;
    font-size: 13.5px;
    color: var(--text-muted);
    background: var(--primary-soft);
    border-radius: 12px;
    padding: 12px 16px;
    min-height: 20px;
}

.ask-answer .cursor {
    display: inline-block;
    width: 2px;
    height: 13px;
    background: var(--primary);
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.try-note {
    margin-top: 12px;
    font-size: 12.5px;
    color: var(--text-faint);
}

.ask-bar span {
    flex: 1;
    font-size: 14.5px;
    color: var(--text-faint);
}

.ask-bar .send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ask-bar .send svg {
    width: 15px;
    height: 15px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.2;
}

.try-card .btn {
    margin-top: 22px;
}

/* ---------- Final CTA (dark) ---------- */
.final-cta {
    text-align: center;
}

.final-cta h2 {
    font-size: 38px;
    font-weight: 800;
    max-width: 640px;
    margin: 0 auto;
}

.final-cta p {
    margin-top: 16px;
    color: var(--dark-text-muted);
    font-size: 17px;
}

.final-cta .hero-cta {
    margin-top: 32px;
}

/* ---------- Contact ---------- */
.contact-inner {
    display: grid;
    grid-template-columns:0.85fr 1.15fr;
    gap: 64px;
}

.contact-copy p {
    color: var(--text-muted);
    font-size: 16.5px;
    margin-top: 16px;
}

.contact-note {
    margin-top: 26px;
    font-size: 14.5px;
    color: var(--text-muted);
}

.contact-note a {
    color: var(--primary);
    font-weight: 600;
}

form {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 34px;
    box-shadow: var(--shadow-md);
}

.field {
    margin-bottom: 18px;
}

.field:last-of-type {
    margin-bottom: 0;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 7px;
}

input, select, textarea {
    width: 100%;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text);
}

input:focus, select:focus, textarea:focus {
    background: #fff;
    border-color: var(--primary);
}

input::placeholder, textarea::placeholder {
    color: var(--text-faint);
}

textarea {
    resize: vertical;
    min-height: 84px;
}

.row-2 {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 16px;
}

form .btn {
    margin-top: 6px;
}

.success {
    text-align: center;
    padding: 24px 6px;
}

.success .ok {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.success svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 2;
}

.success h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.success p {
    color: var(--text-muted);
    font-size: 14.5px;
}

.hidden {
    display: none !important;
}

/* ---------- Footer ---------- */
footer {
    background: var(--dark-bg);
    color: var(--dark-text);
    padding: 56px 0 32px;
}

.foot-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
}

.foot-brand .logo {
    margin-bottom: 12px;
    color: var(--dark-text);
}

.foot-brand p {
    color: var(--dark-text-muted);
    font-size: 14px;
    max-width: 260px;
}

.foot-cols {
    display: flex;
    gap: 64px;
    flex-wrap: wrap;
}

.foot-col h4 {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--dark-text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 14px;
}

.foot-col a {
    display: block;
    font-size: 14.5px;
    color: #D6D3E3;
    margin-bottom: 10px;
}

.foot-col a:hover {
    color: #B9A4FF;
}

.foot-bottom {
    margin-top: 44px;
    padding-top: 24px;
    border-top: 1px solid var(--dark-border);
    font-size: 13.5px;
    color: var(--dark-text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .cap-grid {
        grid-template-columns:1fr;
    }

    .showcase {
        grid-template-columns:1fr;
        gap: 44px;
    }

    .how-grid {
        grid-template-columns:1fr;
        gap: 44px;
    }

    .grid6 {
        grid-template-columns:1fr 1fr;
    }

    .contact-inner {
        grid-template-columns:1fr;
        gap: 40px;
    }

    .stack {
        margin-top: 10px;
    }

    .ask-demo {
        grid-template-columns:1fr;
        gap: 28px;
    }
}

@media (max-width: 760px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero-sub {
        font-size: 17px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .works-row {
        gap: 18px;
    }

    .grid6 {
        grid-template-columns:1fr;
    }

    .row-2 {
        grid-template-columns:1fr;
    }

    .nav-links {
        display: none;
    }

    section {
        padding: 68px 0;
    }

    .hero {
        padding: 136px 0 0;
    }

    .final-cta h2 {
        font-size: 28px;
    }

    .foot-row {
        flex-direction: column;
    }

    .mockup-wrap {
        padding: 0 20px;
        margin: 64px auto 64px;
    }
}

/* ---------- Legal pages ---------- */
main.legal-main {
    padding: 150px 0 100px;
}

.legal-head {
    max-width: 720px;
    margin: 0 auto 56px;
}

.legal-head .eyebrow {
    font-family: var(--font-display);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 14px;
    display: block;
}

.legal-head .eyebrow::before {
    display: none;
}

.legal-head h1 {
    font-size: 38px;
    font-weight: 800;
}

.legal-head .updated {
    margin-top: 14px;
    font-size: 14px;
    color: var(--text-faint);
}

.legal-body {
    max-width: 720px;
    margin: 0 auto;
}

.legal-body h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 44px 0 14px;
}

.legal-body h2:first-of-type {
    margin-top: 0;
}

.legal-body h3 {
    font-size: 15.5px;
    font-weight: 700;
    margin: 22px 0 8px;
}

.legal-body p {
    color: var(--text-muted);
    font-size: 15.5px;
    margin-bottom: 14px;
}

.legal-body ul {
    margin: 0 0 14px;
    padding-left: 20px;
    list-style: disc;
}

.legal-body li {
    color: var(--text-muted);
    font-size: 15.5px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.legal-body a {
    color: var(--primary);
    font-weight: 600;
}

.legal-body strong {
    color: var(--text);
    font-weight: 600;
}

.toc {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 8px;
}

.toc p {
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-faint);
    margin-bottom: 12px;
}

.toc ol {
    padding-left: 18px;
    margin: 0;
}

.toc li {
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--text-muted);
}

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

.toc a:hover {
    color: var(--primary);
}

.nav-links a.on {
    color: var(--primary);
}

body.is-legal header .nav {
    height: 72px;
}

.cta-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 34px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.cta-panel .btn {
    margin-top: 8px;
}

.cta-panel .contact-note {
    margin-top: 18px;
}

main.faq-main {
    padding: 140px 0 100px;
}

.faq-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

.faq-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 28px;
    transition: gap .2s ease;
}

.faq-back:hover {
    gap: 10px;
}

.faq-back svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.faq-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 40px;
}

section.faq-group {
    padding: 0;
    margin-bottom: 44px;
}

.faq-group:last-child {
    margin-bottom: 0;
}

.faq-group-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
}

.faq-item {
    border-radius: 10px;
    margin-bottom: 16px;
    transition: background-color .2s ease;
}

.faq-item:hover,
.faq-item[open] {
    background: var(--bg-alt);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::marker {
    content: '';
}

.faq-question:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 10px;
}

.faq-chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: none;
    stroke: var(--text-muted);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s ease;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 16px 16px;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text-muted);
}

.faq-answer p {
    margin-bottom: 10px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
    margin: 0 0 10px;
    padding-left: 20px;
}

.faq-answer ul {
    list-style: disc;
}

.faq-answer ol {
    list-style: decimal;
}

.faq-answer a {
    color: var(--primary);
    font-weight: 600;
}

.faq-answer strong {
    color: var(--text);
    font-weight: 600;
}

.faq-content {
    color: var(--text-muted);
    font-size: 15.5px;
    line-height: 1.7;
}

@media (max-width: 760px) {
    main.legal-main {
        padding: 120px 0 64px;
    }

    .legal-head h1 {
        font-size: 28px;
    }

    main.faq-main {
        padding: 110px 0 64px;
    }

    .faq-wrap {
        padding: 0 16px;
    }

    .faq-title {
        font-size: 26px;
        margin-bottom: 28px;
    }

    .faq-group-title {
        font-size: 19px;
    }

    .faq-question {
        padding: 12px;
        font-size: 14.5px;
    }

    .faq-answer {
        padding: 0 12px 14px;
    }
}


*::-webkit-scrollbar {
    width: 4px;
}

*::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 4px;
}

*::-webkit-scrollbar-track {
    background-color: var(--dark-bg);
}