:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --accent-start: #7c3aed;
    --accent-end: #2563eb;
    --bg: #f9fafb;
    --surface: #ffffff;
    --surface-strong: #f3f4f6;
    --ink: #111827;
    --muted: #667085;
    --line: #e5e7eb;
    --teal: #0f766e;
    --amber: #b45309;
    --rose: #be123c;
    --shadow: 0 18px 45px rgba(17, 24, 39, 0.1);
    --soft-shadow: 0 12px 28px rgba(79, 70, 229, 0.12);
    --radius: 16px;
    --radius-sm: 12px;
    --shell: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Raleway", Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(79, 70, 229, 0.12), transparent 26rem),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 46%, #ffffff 100%);
    line-height: 1.5;
}

body.menu-open {
    overflow: hidden;
}

.install-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.install-card {
    width: min(420px, 100%);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.install-card h1 {
    margin-top: 0;
    font-size: 1.5rem;
}

.install-card input {
    width: 100%;
    padding: 0.8rem;
    margin: 0.5rem 0;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.install-card button {
    width: 100%;
    padding: 1rem;
    color: #ffffff;
    background: var(--primary);
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 800;
}

.install-card .error {
    color: #dc3545;
    margin-bottom: 1rem;
}

.install-card .success {
    color: #15803d;
    margin-bottom: 1rem;
}

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

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

button,
input,
textarea,
select {
    font: inherit;
}

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    transform: translateY(-140%);
    padding: 0.75rem 1rem;
    color: #ffffff;
    background: var(--primary);
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    transform: translateY(0);
}

.shell {
    width: min(var(--shell), calc(100% - 40px));
    margin: 0 auto;
}

.section {
    padding: 96px 0;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 34px;
}

.section-heading.compact {
    text-align: center;
    margin: 0 auto 34px;
}

.section-heading h2,
.section-copy h2,
.panel-header h2,
.final-cta h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.04;
    letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.section-copy p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 650px;
}

.eyebrow {
    margin: 0 0 0.75rem;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0;
    text-transform: uppercase;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.78rem 1.05rem;
    border: 1px solid transparent;
    border-radius: 14px;
    font-weight: 800;
    line-height: 1;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    box-shadow: 0 16px 30px rgba(79, 70, 229, 0.24);
}

.btn-secondary {
    color: var(--ink);
    background: #ffffff;
    border-color: var(--line);
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.06);
}

.btn-large {
    min-height: 52px;
    padding: 0.95rem 1.25rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
    backdrop-filter: blur(18px);
}

.marketing-page {
    font-family: "Raleway", Arial, sans-serif;
}

.marketing-page main.container,
.public-blog-page > .container,
body:has(.blog-shell) > .container,
body:has(.post-shell) > .container {
    width: min(var(--shell), calc(100% - 40px));
    max-width: none;
    margin: 0 auto;
    padding-top: 44px;
    padding-bottom: 56px;
}

.marketing-page h1,
.blog-header h1,
.post-header h1 {
    margin: 0;
    font-family: "Raleway", Arial, sans-serif;
    font-size: clamp(2.35rem, 5vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.marketing-page h2,
.marketing-page h3,
.blog-card h2,
.post-cta h3 {
    font-family: "Raleway", Arial, sans-serif;
    letter-spacing: 0;
}

.marketing-page .card,
.blog-shell .card,
.post-shell .card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 14px 32px rgba(17, 24, 39, 0.07);
}

.marketing-page .card-gradient-d,
.blog-header {
    background:
        radial-gradient(circle at 82% 20%, rgba(15, 118, 110, 0.16), transparent 18rem),
        linear-gradient(135deg, #ffffff 0%, #eef2ff 100%);
    border-color: rgba(199, 210, 254, 0.76);
}

.marketing-page .grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.marketing-page input,
.marketing-page textarea,
.marketing-page select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.78rem 0.85rem;
    background: #ffffff;
}

.marketing-page label {
    display: inline-flex;
    margin-bottom: 0.35rem;
    color: #344054;
    font-weight: 800;
}

.marketing-page .btn,
.blog-shell .btn,
.post-shell .btn {
    text-decoration: none;
}

.marketing-split {
    display: grid;
    gap: 0.9rem;
    margin-top: 1rem;
}

.marketing-split-wide {
    grid-template-columns: 1.3fr 1fr;
}

.marketing-split-balanced {
    grid-template-columns: 1fr 1fr;
}

.marketing-split-persona {
    grid-template-columns: 1.2fr 1fr;
}

.marketing-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.clean-list,
.policy-block ul {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text, var(--ink));
    line-height: 1.6;
}

.clean-list li + li,
.policy-block li + li {
    margin-top: 0.25rem;
}

.faq-stack,
.contact-form,
.contact-aside,
.policy-block,
.persona-card {
    display: grid;
    gap: 0.7rem;
}

.flush-heading,
.contact-aside h3,
.persona-card h2,
.persona-card p,
.policy-block h2,
.policy-block p {
    margin: 0;
}

.compact-heading {
    margin: 0;
    font-size: 1rem;
}

.compact-copy {
    margin: 0.25rem 0 0;
}

.card-section {
    margin-top: 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 0.9rem;
    margin-top: 1rem;
}

.actions-end {
    display: flex;
    justify-content: flex-end;
}

.pill-soft {
    display: inline-flex;
    width: fit-content;
    border: 1px solid #c7d2fe;
    color: #3730a3;
    background: #eef2ff;
    border-radius: 999px;
    padding: 0.22rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 800;
}

.mini-article {
    display: grid;
    gap: 0.3rem;
    border: 1px solid var(--border, var(--line));
    border-radius: 12px;
    padding: 0.9rem;
    text-decoration: none;
    color: inherit;
}

.mini-article span,
.mini-article small {
    color: var(--text-muted, var(--muted));
}

.system-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.system-steps div {
    border: 1px solid var(--border, var(--line));
    border-radius: 12px;
    padding: 0.9rem;
    display: grid;
    gap: 0.45rem;
}

.system-steps span,
.avatar {
    display: grid;
    place-items: center;
    font-weight: 900;
}

.system-steps span {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #eef2ff;
    color: #3730a3;
}

.avatar {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #0f766e);
}

.angle-card {
    border: 1px solid var(--border, var(--line));
    border-radius: 12px;
    padding: 0.9rem;
    font-weight: 800;
    background: #f8fafc;
}

.pricing-page-card {
    display: grid;
    gap: 0.75rem;
}

.plan-badge {
    width: fit-content;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    padding: 0.25rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 900;
}

.plan-name {
    font-size: 1.1rem;
    font-weight: 900;
}

.plan-price {
    font-size: 2.2rem;
    font-weight: 900;
}

.plan-price span {
    color: var(--text-muted, var(--muted));
    font-size: 0.92rem;
    font-weight: 600;
}

.plan-features {
    margin: 0;
    padding-left: 1rem;
    display: grid;
    gap: 0.38rem;
    line-height: 1.5;
}

.full-span {
    grid-column: 1 / -1;
}

.error-pre {
    margin-top: 0.8rem;
    padding: 0.6rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.comparison-table {
    display: grid;
    border: 1px solid var(--border, var(--line));
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table div {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1rem;
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid var(--border, var(--line));
}

.comparison-table div:last-child {
    border-bottom: 0;
}

.comparison-table div:nth-child(odd) {
    background: #f8fafc;
}

.blog-strip {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

.blog-strip-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 0.8rem;
}

.blog-strip-heading {
    margin: 0;
}

.blog-strip-intro {
    margin: 0.4rem 0 0;
}

.blog-strip-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-strip-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.85rem;
    background: #fff;
}

.blog-strip-card h3 {
    margin: 0.3rem 0 0.35rem;
    font-size: 1.02rem;
    line-height: 1.3;
}

.blog-strip-card h3 a {
    text-decoration: none;
    color: var(--ink);
}

.blog-strip-card h3 a:hover {
    color: var(--primary);
}

.blog-strip-card p {
    margin: 0;
}

.blog-shell {
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
}

.blog-header h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.blog-header p {
    margin: 0.45rem 0 0;
    color: var(--text-muted, var(--muted));
}

.blog-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-card {
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
}

.blog-thumb-wrap {
    margin: -1.5rem -1.5rem 0.8rem;
}

.blog-thumb {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    border-radius: 14px 14px 0 0;
    border-bottom: 1px solid var(--border, var(--line));
}

.blog-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-date,
.post-date {
    color: var(--text-muted, var(--muted));
    font-size: 0.82rem;
}

.blog-pill {
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    background: #eff6ff;
    border-radius: 999px;
    padding: 0.1rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
}

.blog-card h2 {
    margin: 0.6rem 0 0.4rem;
    font-size: 1.35rem;
    line-height: 1.2;
}

.blog-card h2 a {
    color: inherit;
    text-decoration: none;
}

.blog-card p,
.blog-empty p,
.post-subhead,
.post-cta p {
    color: var(--text-muted, var(--muted));
}

.blog-card p {
    margin: 0;
}

.read-link {
    display: inline-flex;
    margin-top: 0.8rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
}

.blog-empty {
    text-align: center;
    padding: 3rem 1.2rem;
}

.blog-empty h2 {
    margin-top: 0;
}

.blog-empty p {
    margin-bottom: 0;
}

.post-shell {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    gap: 0.9rem;
}

.post-back {
    text-decoration: none;
    color: var(--text-muted, var(--muted));
    font-weight: 600;
    font-size: 0.86rem;
}

.post-header h1 {
    margin: 0.35rem 0 0;
    font-size: clamp(2rem, 4.2vw, 3rem);
    line-height: 1.05;
}

.post-subhead {
    margin: 0.8rem 0 0;
}

.post-hero-wrap {
    margin-top: 1rem;
}

.post-hero {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border, var(--line));
}

.post-body {
    line-height: 1.75;
}

.article-body h2 {
    margin-top: 2.1rem;
    margin-bottom: 0.65rem;
    font-size: 1.65rem;
}

.article-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.45rem;
    font-size: 1.2rem;
}

.article-body p {
    margin: 0 0 1rem;
}

.article-body ul,
.article-body ol {
    padding-left: 1.35rem;
    margin: 0 0 1rem;
}

.article-body blockquote {
    margin: 1rem 0;
    border-left: 4px solid #bfdbfe;
    padding-left: 0.8rem;
    color: #334155;
}

.article-body pre {
    background: #0f172a;
    color: #f8fafc;
    border-radius: 10px;
    padding: 0.8rem;
    overflow: auto;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.post-cta {
    text-align: center;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.post-cta h3 {
    margin-top: 0;
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .marketing-split,
    .marketing-grid-3,
    .contact-grid,
    .system-steps {
        grid-template-columns: 1fr;
    }

    .blog-strip-head {
        flex-direction: column;
        align-items: stretch;
    }

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

@media (max-width: 860px) {
    .blog-header {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 640px) {
    .blog-grid,
    .blog-strip-grid,
    .comparison-table div {
        grid-template-columns: 1fr;
    }
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 900;
    font-size: 1.08rem;
}

.brand-mark img,
.brand-logo {
    width: auto;
    height: 40px;
    display: block;
    object-fit: contain;
}

.brand-glyph {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), #0f766e);
    border-radius: 12px;
    box-shadow: var(--soft-shadow);
}

.primary-nav,
.header-actions,
.hero-actions,
.hero-proof {
    display: flex;
    align-items: center;
}

.primary-nav {
    gap: 1.6rem;
    color: #344054;
    font-weight: 700;
    font-size: 0.94rem;
}

.primary-nav a,
.login-link {
    transition: color 160ms ease;
}

.primary-nav a:hover,
.login-link:hover {
    color: var(--primary);
}

.header-actions {
    gap: 0.8rem;
}

.login-link {
    color: #475467;
    font-weight: 800;
}

.hero-section {
    padding: 76px 0 44px;
}

.hero-grid,
.split-grid,
.analytics-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
    align-items: center;
    gap: 54px;
}

.hero-copy h1 {
    margin: 0;
    max-width: 640px;
    font-size: clamp(3rem, 6.4vw, 5.85rem);
    line-height: 0.93;
    letter-spacing: 0;
}

.hero-lede {
    margin: 1.35rem 0 0;
    max-width: 600px;
    color: var(--muted);
    font-size: 1.14rem;
}

.hero-actions {
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.hero-proof {
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.25rem;
    color: #344054;
    font-size: 0.92rem;
    font-weight: 700;
}

.hero-proof span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.hero-proof span::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--teal);
    border-radius: 50%;
}

.system-card {
    position: relative;
    min-height: 460px;
    padding: 18px;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff, #eef2ff);
    border: 1px solid rgba(199, 210, 254, 0.72);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.system-svg {
    width: 100%;
    height: auto;
    min-height: 420px;
}

.system-link {
    fill: none;
    stroke: #8b94f7;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 12 13;
    animation: flow 2.8s linear infinite;
}

.loop-link {
    stroke: #0f766e;
}

.system-node rect {
    fill: rgba(255, 255, 255, 0.94);
    stroke: rgba(79, 70, 229, 0.28);
    stroke-width: 2;
    filter: drop-shadow(0 12px 18px rgba(79, 70, 229, 0.12));
    animation: pulse 3.2s ease-in-out infinite;
    transition: fill 180ms ease, stroke 180ms ease, transform 180ms ease;
}

.system-node:nth-of-type(2n) rect {
    animation-delay: 0.6s;
}

.system-node text {
    fill: var(--ink);
    font-size: 17px;
    font-weight: 800;
    text-anchor: middle;
    pointer-events: none;
}

.system-node.is-active rect,
.system-node:hover rect,
.system-node:focus rect {
    fill: #eef2ff;
    stroke: var(--primary);
    transform: translateY(-2px);
}

.system-particle {
    fill: url(#systemGradient);
    filter: url(#softGlow);
    opacity: 0.95;
}

.loop-particle {
    fill: #0f766e;
}

.system-tooltip {
    position: absolute;
    z-index: 2;
    width: min(260px, calc(100% - 32px));
    padding: 0.75rem 0.85rem;
    color: #ffffff;
    background: #111827;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.24);
    font-size: 0.84rem;
    font-weight: 700;
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 150ms ease, transform 150ms ease;
}

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

.proof-section {
    padding: 24px 0 56px;
}

.proof-grid {
    display: grid;
    grid-template-columns: 1.5fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    color: #475467;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
}

.proof-grid strong {
    color: var(--primary);
    font-size: 1.45rem;
}

.problem-section {
    background: linear-gradient(180deg, rgba(249, 250, 251, 0), #f3f4f6 100%);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.comparison-card,
.feature-card,
.price-card,
.demo-console,
.analytics-panel,
.metric-card,
.funnel-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 14px 32px rgba(17, 24, 39, 0.07);
}

.comparison-card {
    padding: 1.35rem;
}

.comparison-card h3 {
    margin: 0 0 0.8rem;
}

.comparison-card ul,
.price-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comparison-card li {
    position: relative;
    padding-left: 1.3rem;
    margin: 0.7rem 0;
    color: #475467;
}

.comparison-card li::before {
    content: "";
    position: absolute;
    top: 0.58rem;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.problem-card li::before {
    background: var(--rose);
}

.solution-card li::before {
    background: var(--teal);
}

.pipeline-section {
    background: #ffffff;
}

.pipeline-flow {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    min-height: 342px;
    align-items: center;
}

.pipeline-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.pipeline-line {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 16 14;
    stroke-dashoffset: 120;
    opacity: 0.34;
}

.line-forward {
    stroke: var(--primary);
}

.line-return {
    stroke: var(--teal);
}

.pipeline-flow.is-animated .pipeline-line,
.pipeline-flow.is-hot .pipeline-line {
    animation: flow 1.2s linear infinite;
    opacity: 0.72;
}

.pipeline-card {
    position: relative;
    z-index: 1;
    min-height: 216px;
    padding: 1.1rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.93);
    border: 1px solid rgba(229, 231, 235, 0.98);
    border-radius: var(--radius);
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.08);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, min-height 220ms ease;
    cursor: pointer;
}

.pipeline-card:hover,
.pipeline-card.is-open,
.pipeline-card.is-locked {
    min-height: 286px;
    transform: translateY(-10px);
    border-color: rgba(79, 70, 229, 0.42);
    box-shadow: 0 22px 45px rgba(79, 70, 229, 0.15);
}

.pipeline-icon,
.feature-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: var(--primary);
    background: #eef2ff;
    border-radius: 14px;
}

.pipeline-icon svg,
.feature-icon svg,
.price-card li svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pipeline-card h3 {
    margin: 1rem 0 0.45rem;
    font-size: 1.04rem;
}

.pipeline-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.pipeline-detail {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 240ms ease, opacity 180ms ease, margin 180ms ease;
}

.pipeline-card:hover .pipeline-detail,
.pipeline-card.is-open .pipeline-detail,
.pipeline-card.is-locked .pipeline-detail {
    max-height: 170px;
    opacity: 1;
    margin-top: 0.85rem;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.feature-card {
    padding: 1.25rem;
    min-height: 242px;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(79, 70, 229, 0.34);
    box-shadow: 0 24px 42px rgba(17, 24, 39, 0.11);
}

.feature-card h3 {
    margin: 1rem 0 0.45rem;
    font-size: 1.02rem;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.demo-section {
    background: #ffffff;
}

.demo-console {
    overflow: hidden;
}

.demo-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.9rem 1rem;
    color: #475467;
    background: #f3f4f6;
    border-bottom: 1px solid var(--line);
}

.demo-toolbar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #ef4444;
}

.demo-toolbar span:nth-child(2) {
    background: #f59e0b;
}

.demo-toolbar span:nth-child(3) {
    background: #10b981;
}

.demo-toolbar strong {
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

.demo-step {
    display: none;
    padding: 1.1rem 1.2rem;
    border-bottom: 1px solid var(--line);
    animation: fade-in 260ms ease both, slide-up 260ms ease both;
}

.demo-step.is-visible {
    display: block;
}

.demo-step label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.input-pill,
.typed-output,
.post-card {
    padding: 0.9rem 1rem;
    color: #1f2937;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    font-weight: 800;
}

.typed-output::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 3px;
    vertical-align: -2px;
    background: var(--primary);
    animation: blink 1s steps(2, start) infinite;
}

.demo-muted {
    margin: 0.75rem 0 0;
    color: var(--muted);
}

.topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.topic-list span {
    padding: 0.58rem 0.7rem;
    color: #0f766e;
    background: #ccfbf1;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.88rem;
}

.post-card + .post-card {
    margin-top: 0.65rem;
}

.integrations-section {
    background: linear-gradient(180deg, #f9fafb, #eef2ff);
}

.integration-flow {
    display: grid;
    grid-template-columns: 220px 1fr minmax(360px, 520px);
    align-items: center;
    gap: 26px;
}

.integration-source {
    display: grid;
    place-items: center;
    gap: 0.8rem;
    min-height: 190px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
}

.source-orbit {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    border-radius: 16px;
}

.source-orbit svg {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.flow-track {
    position: relative;
    height: 6px;
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.18), rgba(15, 118, 110, 0.24));
    border-radius: 999px;
    overflow: hidden;
}

.flow-track span {
    position: absolute;
    top: 50%;
    left: -30px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    border: 4px solid #ffffff;
    border-radius: 50%;
    transform: translateY(-50%);
    animation: content-flow 2.8s linear infinite;
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.2);
}

.flow-track span:nth-child(2) {
    animation-delay: 0.8s;
}

.flow-track span:nth-child(3) {
    animation-delay: 1.6s;
}

.logo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.integration-logo {
    min-height: 90px;
    display: grid;
    place-items: center;
    gap: 0.25rem;
    color: #111827;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.07);
    font-size: 1.8rem;
    font-weight: 900;
}

.integration-logo span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.linkedin {
    color: #0a66c2;
}

.x-logo {
    color: #111827;
}

.wordpress {
    color: #21759b;
}

.meta {
    color: #0866ff;
}

.analytics-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.analytics-panel {
    padding: 1.5rem;
}

.panel-header {
    margin-bottom: 1rem;
}

.line-chart {
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.line-chart svg {
    width: 100%;
    height: auto;
}

.chart-gridline {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 1;
}

.chart-line {
    fill: none;
    stroke: url(#systemGradient);
    stroke: var(--primary);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
}

.analytics-panel.is-visible .chart-line {
    animation: draw-chart 1.5s ease forwards;
}

.line-chart circle {
    fill: #ffffff;
    stroke: var(--primary);
    stroke-width: 4;
}

.metrics-stack {
    display: grid;
    gap: 14px;
}

.metric-card,
.funnel-card {
    padding: 1.15rem;
}

.metric-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.metric-card span {
    color: var(--muted);
    font-weight: 800;
}

.metric-card strong {
    color: var(--primary);
    font-size: 2rem;
}

.funnel-card h3 {
    margin: 0 0 0.9rem;
}

.funnel-bar {
    display: flex;
    justify-content: space-between;
    margin: 0.55rem 0;
    padding: 0.75rem 0.9rem;
    color: #ffffff;
    border-radius: 12px;
    font-weight: 800;
}

.funnel-bar.top {
    width: 100%;
    background: var(--primary);
}

.funnel-bar.mid {
    width: 78%;
    background: var(--teal);
}

.funnel-bar.low {
    width: 58%;
    background: var(--amber);
}

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

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

.price-card {
    position: relative;
    padding: 1.35rem;
}

.price-card.is-featured {
    border-color: rgba(79, 70, 229, 0.5);
    box-shadow: 0 24px 48px rgba(79, 70, 229, 0.16);
    transform: translateY(-10px);
}

.plan-badge {
    display: inline-flex;
    margin-bottom: 0.9rem;
    padding: 0.42rem 0.62rem;
    color: #ffffff;
    background: var(--primary);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 900;
}

.price-card h3 {
    margin: 0;
    font-size: 1.35rem;
}

.price {
    margin: 0.75rem 0;
    font-size: 3rem;
    font-weight: 900;
}

.price span {
    color: var(--muted);
    font-size: 1rem;
    font-weight: 700;
}

.price-card p {
    color: var(--muted);
}

.price-card li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0.75rem 0;
    color: #344054;
    font-weight: 650;
}

.price-card li svg {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    color: var(--teal);
}

.price-card .btn {
    width: 100%;
    margin-top: 1rem;
}

.blog-preview-section {
    background: #ffffff;
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.blog-preview-card {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1.1rem;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 14px 32px rgba(17, 24, 39, 0.07);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.blog-preview-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 42px rgba(17, 24, 39, 0.1);
}

.blog-preview-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.blog-preview-card span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.blog-preview-card h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.2;
}

.blog-preview-card p {
    margin: 0;
    color: var(--muted);
}

.blog-preview-card a {
    margin-top: auto;
    color: var(--primary);
    font-weight: 900;
}

.final-cta-section {
    padding: 76px 0;
    background: #ffffff;
}

.final-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #312e81 55%, #0f766e);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.final-cta .eyebrow {
    color: #c7d2fe;
}

.final-cta h2 {
    max-width: 760px;
}

.site-footer {
    margin-top: 56px;
    padding: 40px 0;
    color: #475467;
    background:
        radial-gradient(circle at 15% 10%, rgba(79, 70, 229, 0.08), transparent 18rem),
        linear-gradient(165deg, #f6fbff 0%, #fdf6ff 100%);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr minmax(120px, 1fr) minmax(120px, 1fr) minmax(120px, 1fr) minmax(120px, 1fr);
    align-items: start;
    gap: 2.5rem;
}

.site-footer p {
    margin: 0.8rem 0 0;
}

.site-footer nav,
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    font-weight: 600;
}

.footer-legal {
    justify-content: flex-end;
}

.footer-grid > div:first-child {
    display: grid;
    gap: 0.6rem;
}

.footer-grid > nav,
.footer-legal {
    align-content: start;
}

@media (max-width: 860px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-legal {
        justify-content: flex-start;
    }
}

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
}

[data-reveal].is-visible {
    animation: fade-in 480ms ease forwards, slide-up 480ms ease forwards;
}

@keyframes pulse {
    0%, 100% {
        filter: drop-shadow(0 10px 14px rgba(79, 70, 229, 0.1));
    }
    50% {
        filter: drop-shadow(0 16px 24px rgba(79, 70, 229, 0.22));
    }
}

@keyframes flow {
    to {
        stroke-dashoffset: -160;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slide-up {
    from {
        transform: translateY(18px);
    }
    to {
        transform: translateY(0);
    }
}

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

@keyframes content-flow {
    to {
        left: calc(100% + 30px);
    }
}

@keyframes draw-chart {
    to {
        stroke-dashoffset: 0;
    }
}

@media (max-width: 1100px) {
    .hero-grid,
    .split-grid,
    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .system-card {
        min-height: auto;
    }

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

    .pipeline-lines {
        opacity: 0.35;
    }

    .integration-flow {
        grid-template-columns: 1fr;
    }

    .flow-track {
        height: 72px;
        width: 6px;
        justify-self: center;
    }

    .flow-track span {
        top: -30px;
        left: 50%;
        transform: translateX(-50%);
        animation-name: content-flow-vertical;
    }

    @keyframes content-flow-vertical {
        to {
            top: calc(100% + 30px);
        }
    }
}

@media (max-width: 860px) {
    .primary-nav,
    .login-link {
        display: none;
    }

    .hero-section {
        padding-top: 52px;
    }

    .proof-grid,
    .comparison-grid,
    .blog-preview-grid,
    .pricing-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .proof-grid {
        text-align: center;
    }

    .pipeline-flow,
    .features-grid,
    .logo-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pipeline-lines {
        display: none;
    }

    .price-card.is-featured {
        transform: none;
    }

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

    .footer-legal {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .shell {
        width: min(100% - 28px, var(--shell));
    }

    .section {
        padding: 68px 0;
    }

    .header-inner {
        min-height: 68px;
    }

    .header-actions .btn {
        padding-inline: 0.8rem;
    }

    .hero-copy h1 {
        font-size: 3rem;
    }

    .hero-actions,
    .hero-actions .btn,
    .pipeline-flow,
    .features-grid,
    .logo-grid {
        width: 100%;
    }

    .hero-actions .btn,
    .pipeline-flow,
    .features-grid,
    .logo-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions .btn {
        display: flex;
    }

    .system-card {
        padding: 8px;
    }

    .system-svg {
        min-height: 330px;
    }

    .system-node text {
        font-size: 18px;
    }

    .funnel-bar.mid,
    .funnel-bar.low {
        width: 100%;
    }
}
