:root {
    --bg-primary: #f3f7f5;
    --bg-secondary: #ffffff;
    --bg-tint: #eef4ff;
    --ink: #151515;
    --ink-soft: #4f504b;
    --ink-muted: #77776f;
    --line: #d7e0da;
    --line-strong: #b9c7be;
    --paper: #ffffff;
    --paper-warm: #f4fbec;
    --accent: #145cff;
    --accent-dark: #0c3fb6;
    --accent-soft: #dfe9ff;
    --green: #15a46a;
    --amber: #f2b233;
    --coral: #ff6a4d;
    --shadow: 0 24px 70px rgba(22, 38, 31, 0.14);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --transition-fast: 160ms ease;
    --transition-base: 260ms ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background:
        linear-gradient(90deg, rgba(21, 21, 21, 0.035) 1px, transparent 1px),
        linear-gradient(rgba(21, 21, 21, 0.035) 1px, transparent 1px),
        var(--bg-primary);
    background-size: 44px 44px;
    color: var(--ink);
    line-height: 1.55;
    overflow-x: hidden;
}

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

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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 72px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    background: rgba(243, 247, 245, 0.84);
    border-bottom: 1px solid rgba(21, 21, 21, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
}

.nav-links,
.nav-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-soft);
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--ink);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--ink);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(21, 21, 21, 0.18);
}

.btn-primary:hover {
    background: #000000;
}

.btn-outline,
.btn-ghost {
    background: rgba(255, 255, 255, 0.54);
    color: var(--ink);
    border-color: var(--line);
}

.btn-outline:hover,
.btn-ghost:hover {
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(22, 38, 31, 0.1);
}

.btn-lg {
    min-height: 52px;
    padding: 14px 24px;
    font-size: 15px;
}

.btn-full {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    border: 0;
    background: transparent;
    padding: 6px;
}

.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--ink);
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 72px 0 0;
    z-index: 999;
    flex-direction: column;
    gap: 4px;
    padding: 20px 24px 28px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--line);
}

.mobile-menu.active {
    display: flex;
}

.mobile-link {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 18px;
    font-weight: 800;
}

.mobile-actions {
    margin-top: auto;
}

.hero {
    position: relative;
    min-height: 100vh;
    padding: 128px 24px 78px;
    overflow: hidden;
}

.hero-bg,
.grid-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.grid-overlay {
    background:
        radial-gradient(circle at 20% 15%, rgba(20, 92, 255, 0.17), transparent 32%),
        radial-gradient(circle at 80% 22%, rgba(255, 106, 77, 0.16), transparent 28%),
        radial-gradient(circle at 60% 85%, rgba(21, 164, 106, 0.13), transparent 34%);
}

.workflow-trace {
    position: absolute;
    height: 3px;
    width: 360px;
    background: repeating-linear-gradient(90deg, var(--accent), var(--accent) 18px, transparent 18px, transparent 30px);
    opacity: 0.28;
    transform: rotate(-18deg);
}

.trace-one {
    top: 170px;
    right: -90px;
}

.trace-two {
    left: -120px;
    bottom: 140px;
    transform: rotate(16deg);
    background: repeating-linear-gradient(90deg, var(--coral), var(--coral) 18px, transparent 18px, transparent 30px);
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 1220px;
    min-height: calc(100vh - 206px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    gap: 56px;
    align-items: center;
}

.hero-copy {
    max-width: 610px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 800;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 0 6px rgba(21, 164, 106, 0.12);
}

.hero-title {
    max-width: 660px;
    margin-bottom: 22px;
    font-size: clamp(46px, 6.5vw, 82px);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: 0;
}

.hero-subtitle {
    max-width: 570px;
    margin-bottom: 32px;
    color: var(--ink-soft);
    font-size: 19px;
    line-height: 1.65;
}

.hero-actions,
.cta-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.hero-proof span {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.56);
    color: var(--ink-muted);
    font-family: var(--font-mono);
    font-size: 12px;
}

.builder-preview {
    border: 2px solid var(--ink);
    border-radius: 18px;
    background: var(--paper);
    box-shadow: var(--shadow), 10px 10px 0 #151515;
    overflow: hidden;
}

.builder-topbar,
.builder-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
    background: var(--paper-warm);
}

.builder-footer {
    border-top: 1px solid var(--line);
    border-bottom: 0;
    background: #ffffff;
}

.builder-kicker,
.node-label {
    display: block;
    color: var(--ink-muted);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.run-status {
    padding: 6px 10px;
    border-radius: 999px;
    background: #e2f8ee;
    color: #0f7d4f;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
}

.workflow-canvas {
    min-height: 500px;
    padding: 34px;
    display: grid;
    grid-template-columns: 1fr 46px 1fr;
    grid-template-rows: repeat(3, 1fr);
    gap: 18px;
    background:
        linear-gradient(90deg, rgba(21, 21, 21, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(21, 21, 21, 0.05) 1px, transparent 1px),
        #fbfbf7;
    background-size: 28px 28px;
}

.workflow-node {
    align-self: center;
    min-height: 118px;
    padding: 18px;
    border: 2px solid var(--ink);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 5px 5px 0 rgba(21, 21, 21, 0.95);
}

.workflow-node strong {
    display: block;
    margin: 6px 0 8px;
    font-size: 17px;
    letter-spacing: -0.01em;
}

.workflow-node small {
    color: var(--ink-muted);
    font-weight: 700;
}

.trigger-node {
    grid-column: 1;
    grid-row: 1;
    background: #fff2cf;
}

.node-rail {
    grid-column: 2;
    grid-row: 1 / 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.node-rail::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 270px;
    background: var(--ink);
}

.node-rail span {
    position: relative;
    z-index: 1;
    width: 14px;
    height: 14px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--accent);
}

.agent-node {
    grid-column: 3;
    background: #e8efff;
}

.offset-node {
    grid-column: 1;
    grid-row: 2;
    background: #e9f8f0;
}

.approval-node {
    grid-column: 3;
    grid-row: 3;
    background: #ffe7df;
}

.metric-pill {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    color: var(--ink-muted);
    font-size: 12px;
    font-weight: 800;
}

.metric-pill span {
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 22px;
    line-height: 1;
}

.stats-bar {
    padding: 34px 24px;
    background: var(--ink);
    color: #ffffff;
}

.stats-container {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-number {
    margin-bottom: 4px;
    font-family: var(--font-mono);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
}

.stat-label {
    color: rgba(255, 255, 255, 0.64);
    font-size: 13px;
    font-weight: 700;
}

.stat-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.16);
}

.section {
    padding: 108px 24px;
}

.section-tint {
    background: var(--bg-tint);
    border-block: 1px solid rgba(20, 92, 255, 0.12);
}

.section-container {
    max-width: 1180px;
    margin: 0 auto;
}

.split-section,
.use-case-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
    gap: 52px;
    align-items: start;
}

.section-header {
    max-width: 740px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-tag {
    margin-bottom: 14px;
    color: var(--accent-dark);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-title,
.cta-title {
    margin-bottom: 18px;
    font-size: clamp(34px, 4.8vw, 58px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: 0;
}

.section-subtitle,
.cta-subtitle {
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.7;
}

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

.feature-card,
.agent-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.74);
    padding: 24px;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.feature-card:hover,
.agent-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: 0 18px 40px rgba(22, 38, 31, 0.1);
}

.feature-icon {
    width: 44px;
    height: 34px;
    margin-bottom: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--ink);
    border-radius: var(--radius-sm);
    background: #fff2cf;
    box-shadow: 4px 4px 0 var(--ink);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
}

.feature-title,
.agent-card-title {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.feature-desc,
.agent-card-desc {
    color: var(--ink-soft);
    font-size: 15px;
}

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

.agent-card {
    min-height: 228px;
    display: flex;
    flex-direction: column;
}

.agent-card-custom {
    background: var(--ink);
    color: #ffffff;
}

.agent-card-custom .agent-card-desc {
    color: rgba(255, 255, 255, 0.7);
}

.agent-chip {
    align-self: flex-start;
    margin-bottom: auto;
    padding: 6px 9px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.agent-card-custom .agent-chip {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

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

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

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 560px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 16px 44px rgba(22, 38, 31, 0.08);
}

.pricing-card-featured {
    border: 2px solid var(--ink);
    box-shadow: 8px 8px 0 var(--ink), 0 22px 58px rgba(22, 38, 31, 0.12);
    transform: translateY(-8px);
}

.pricing-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--ink);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-card-header {
    min-height: 132px;
}

.pricing-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--accent-dark);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pricing-card h3 {
    margin-bottom: 8px;
    font-size: 30px;
    line-height: 1;
}

.pricing-card p {
    color: var(--ink-soft);
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 18px 0 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.price {
    font-size: clamp(38px, 5vw, 54px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

.price-note {
    color: var(--ink-muted);
    font-weight: 800;
}

.pricing-list {
    display: grid;
    gap: 12px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.pricing-list li {
    position: relative;
    padding-left: 24px;
    color: var(--ink-soft);
    font-weight: 700;
}

.pricing-list li::before {
    content: '';
    position: absolute;
    top: 9px;
    left: 0;
    width: 10px;
    height: 10px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--green);
}

.pricing-card .btn {
    margin-top: auto;
}

.pricing-note {
    margin: 28px auto 0;
    max-width: 720px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.65);
    color: var(--ink-soft);
    text-align: center;
}

.use-case-list {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.68);
    overflow: hidden;
}

.use-case-row {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px 18px;
    padding: 24px;
    border-bottom: 1px solid var(--line);
}

.use-case-row:last-child {
    border-bottom: 0;
}

.use-case-row span {
    grid-row: span 2;
    color: var(--accent-dark);
    font-family: var(--font-mono);
    font-weight: 700;
}

.use-case-row strong {
    font-size: 18px;
}

.use-case-row p {
    color: var(--ink-soft);
}

.cta-section {
    padding: 108px 24px;
    background: var(--paper-warm);
    border-top: 1px solid var(--line);
    text-align: center;
}

.cta-container {
    max-width: 720px;
    margin: 0 auto;
}

.cta-subtitle {
    margin-bottom: 32px;
}

.cta-actions {
    justify-content: center;
}

.footer {
    padding: 58px 24px 28px;
    background: var(--ink);
    color: #ffffff;
}

.footer-container {
    max-width: 1180px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    padding-bottom: 42px;
}

.footer-brand {
    max-width: 340px;
}

.footer-tagline {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 14px;
}

.footer-links-group {
    display: flex;
    gap: 58px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col-title {
    margin-bottom: 4px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-link,
.footer-legal-link,
.footer-copy {
    color: rgba(255, 255, 255, 0.58);
    font-size: 14px;
}

.footer-link:hover,
.footer-legal-link:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-legal {
    display: flex;
    gap: 22px;
}

.legal-main {
    padding: 128px 24px 96px;
}

.legal-container {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.legal-sidebar {
    position: sticky;
    top: 104px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.68);
}

.legal-sidebar h2 {
    margin-bottom: 10px;
    font-size: 18px;
}

.legal-sidebar p {
    margin-bottom: 18px;
    color: var(--ink-soft);
    font-size: 14px;
}

.legal-sidebar a {
    display: block;
    padding: 8px 0;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 800;
}

.legal-doc {
    padding: 40px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 18px 48px rgba(22, 38, 31, 0.08);
}

.legal-doc h1 {
    margin-bottom: 12px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1;
}

.legal-updated {
    margin-bottom: 34px;
    color: var(--ink-muted);
    font-family: var(--font-mono);
    font-size: 13px;
}

.legal-disclaimer {
    margin-bottom: 32px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper-warm);
    color: var(--ink-soft);
    font-size: 14px;
}

.legal-doc section {
    padding: 28px 0;
    border-top: 1px solid var(--line);
}

.legal-doc h2 {
    margin-bottom: 12px;
    font-size: 24px;
}

.legal-doc p,
.legal-doc li {
    color: var(--ink-soft);
}

.legal-doc p + p,
.legal-doc ul + p,
.legal-doc p + ul {
    margin-top: 12px;
}

.legal-doc ul {
    display: grid;
    gap: 9px;
    margin-left: 20px;
}

.legal-doc strong {
    color: var(--ink);
}

.fade-in {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .nav-links {
        gap: 14px;
    }

    .nav-actions {
        display: none;
    }

    .hero-container,
    .split-section,
    .use-case-layout {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: 760px;
    }

    .builder-preview {
        max-width: 720px;
    }

    .features-grid,
    .agents-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card-featured {
        transform: none;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 18px;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 112px 18px 56px;
    }

    .hero-container {
        min-height: auto;
        gap: 36px;
    }

    .hero-title {
        font-size: clamp(42px, 13vw, 58px);
    }

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

    .hero-actions .btn,
    .cta-actions .btn {
        width: 100%;
    }

    .workflow-canvas {
        min-height: auto;
        padding: 20px;
        display: flex;
        flex-direction: column;
    }

    .node-rail {
        display: none;
    }

    .builder-topbar,
    .builder-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .stats-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 26px;
    }

    .stat-divider {
        display: none;
    }

    .section,
    .cta-section {
        padding: 72px 18px;
    }

    .features-grid,
    .agents-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-top,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links-group {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .legal-main {
        padding: 108px 18px 72px;
    }

    .legal-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .legal-sidebar {
        position: static;
    }

    .legal-doc {
        padding: 26px;
    }
}

@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .stat-item {
        text-align: left;
    }

    .footer-links-group {
        grid-template-columns: 1fr;
    }

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

    .use-case-row span {
        grid-row: auto;
    }
}
