:root {
    --black: #000000;
    --near-black: #0a0a0a;
    --dark: #171717;
    --muted: #525252;
    --soft: #f5f5f5;
    --line: #e5e5e5;
    --white: #ffffff;
    --header-height: 72px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
    margin: 0;
    color: var(--dark);
    background: var(--white);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    color: #fff;
    background: #000;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #000;
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    transform: translateY(-150%);
    padding: 12px 18px;
    border-radius: 10px;
    color: #fff;
    background: #000;
    font-weight: 700;
    transition: transform .2s ease;
}

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

.container-shell {
    width: min(100% - 32px, 1240px);
    margin-inline: auto;
}

.section-pad {
    padding-block: 88px;
}

.section-title {
    max-width: 820px;
    margin-inline: auto;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid #d4d4d4;
    border-radius: 999px;
    color: #404040;
    background: rgba(255, 255, 255, .9);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.header-shell {
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, backdrop-filter .2s ease;
}

.header-shell.is-scrolled {
    border-bottom-color: rgba(212, 212, 212, .9);
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .04);
    backdrop-filter: blur(14px);
}

.brand-logo {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #d4d4d4;
    border-radius: 12px;
    background: #fff;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height .25s ease, opacity .2s ease, padding .2s ease;
}

.mobile-menu.is-open {
    max-height: 520px;
    opacity: 1;
    pointer-events: auto;
}

.hero-grid {
    background-image:
        linear-gradient(#ebebeb 1px, transparent 1px),
        linear-gradient(90deg, #ebebeb 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, #000 0%, #000 75%, transparent 100%);
}

.hero-orbit {
    position: relative;
    isolation: isolate;
}

.hero-orbit::before,
.hero-orbit::after {
    position: absolute;
    z-index: -1;
    content: "";
    border: 1px solid #dedede;
    border-radius: 999px;
}

.hero-orbit::before {
    inset: 9%;
}

.hero-orbit::after {
    inset: 19%;
    border-style: dashed;
}

.spider-mark {
    width: min(54vw, 270px);
    aspect-ratio: 1;
    object-fit: contain;
    filter: contrast(1.2);
}

.primary-button,
.secondary-button,
.dark-button,
.light-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 800;
    line-height: 1.2;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}

.primary-button {
    color: #fff;
    background: #000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .14);
}

.primary-button:hover,
.dark-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
}

.secondary-button {
    border: 1px solid #d4d4d4;
    color: #171717;
    background: #fff;
}

.secondary-button:hover {
    border-color: #a3a3a3;
    background: #fafafa;
}

.dark-button {
    color: #000;
    background: #fff;
}

.light-button {
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    background: rgba(255,255,255,.08);
}

.console-window {
    overflow: hidden;
    border: 1px solid #262626;
    border-radius: 22px;
    color: #f5f5f5;
    background: #0a0a0a;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .22);
}

.console-bar {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #262626;
    background: #111;
}

.console-dots {
    display: flex;
    gap: 7px;
}

.console-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #737373;
}

.console-body {
    min-height: 430px;
    padding: 22px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 14px;
    line-height: 1.7;
}

.console-stage {
    min-height: 305px;
}

.console-line {
    display: flex;
    gap: 10px;
    overflow-wrap: anywhere;
}

.console-prompt {
    color: #fff;
    font-weight: 800;
}

.console-query {
    color: #fafafa;
}

.console-meta {
    margin-top: 18px;
    display: grid;
    gap: 7px;
    color: #a3a3a3;
}

.console-meta-row::before {
    content: "·";
    margin-right: 8px;
    color: #737373;
}

.console-result-title {
    margin-top: 18px;
    color: #fff;
    font-weight: 800;
}

.console-results {
    display: grid;
    min-height: 104px;
    margin-top: 8px;
    gap: 3px;
    color: #d4d4d4;
}

.console-file {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 4px 10px;
    border: 1px solid #404040;
    border-radius: 8px;
    color: #fff;
    background: #171717;
    font-size: 12px;
    font-weight: 800;
}

.console-cursor {
    display: inline-block;
    width: 8px;
    height: 1.15em;
    margin-left: 2px;
    vertical-align: -.15em;
    background: #fff;
    animation: blink .9s steps(1) infinite;
}

@keyframes blink {
    0%, 45% { opacity: 1; }
    46%, 100% { opacity: 0; }
}

.console-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #262626;
}

.console-control-group {
    display: flex;
    gap: 8px;
}

.console-control {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid #404040;
    border-radius: 10px;
    color: #e5e5e5;
    background: #171717;
    font-weight: 800;
}

.console-control:hover {
    border-color: #737373;
    background: #262626;
}

.console-progress {
    color: #a3a3a3;
    font-size: 12px;
}

.card-hover {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    border-color: #c4c4c4;
    box-shadow: 0 18px 45px rgba(0,0,0,.08);
}

.platform-card {
    position: relative;
    overflow: hidden;
}

.platform-card::after {
    position: absolute;
    right: -24px;
    bottom: -24px;
    width: 90px;
    height: 90px;
    content: "";
    border: 1px solid #e5e5e5;
    border-radius: 999px;
}

.step-number {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: #000;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 800;
}

.file-preview {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border: 1px solid #d4d4d4;
    border-radius: 16px;
    background: linear-gradient(145deg, #fff, #f5f5f5);
}

.file-preview::before {
    position: absolute;
    inset: 18px;
    content: "";
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background:
        linear-gradient(#d4d4d4 0 0) 18px 26px / 45% 8px no-repeat,
        linear-gradient(#e5e5e5 0 0) 18px 50px / 72% 6px no-repeat,
        linear-gradient(#e5e5e5 0 0) 18px 68px / 60% 6px no-repeat,
        linear-gradient(#e5e5e5 0 0) 18px 86px / 75% 6px no-repeat,
        linear-gradient(#e5e5e5 0 0) 18px 104px / 54% 6px no-repeat,
        #fff;
}

.file-badge {
    position: absolute;
    z-index: 1;
    right: 16px;
    bottom: 16px;
    padding: 8px 10px;
    border-radius: 10px;
    color: #fff;
    background: #000;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    font-weight: 800;
}

.batch-flow {
    display: grid;
    align-items: center;
    gap: 18px;
    grid-template-columns: 1fr auto 1fr auto 1fr;
}

.batch-node {
    min-height: 150px;
    padding: 22px;
    border: 1px solid #404040;
    border-radius: 18px;
    background: #111;
}

.batch-arrow {
    color: #737373;
    font-size: 28px;
}

.compare-item::before {
    display: inline-grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    place-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.compare-item.manual::before {
    content: "–";
    border: 1px solid #d4d4d4;
    color: #737373;
}

.compare-item.bot::before {
    content: "✓";
    color: #fff;
    background: #000;
}

.pricing-feature::before {
    content: "✓";
    margin-right: 10px;
    font-weight: 900;
}

.pricing-feature.dark::before {
    color: #fff;
}

.faq-item {
    border-bottom: 1px solid #e5e5e5;
}

.faq-button {
    display: flex;
    width: 100%;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 18px;
    text-align: left;
    font-size: 17px;
    font-weight: 800;
}

.faq-icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border: 1px solid #d4d4d4;
    border-radius: 9px;
    transition: transform .2s ease;
}

.faq-button[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .25s ease;
}

.faq-panel > div {
    overflow: hidden;
}

.faq-panel.is-open {
    grid-template-rows: 1fr;
}

.faq-panel p {
    padding: 0 48px 22px 0;
    color: #525252;
    line-height: 1.75;
}

.no-js .mobile-menu {
    max-height: none;
    opacity: 1;
    pointer-events: auto;
}

.no-js .faq-panel {
    display: block;
}

.no-js .faq-button {
    cursor: default;
}

.no-js .faq-icon {
    display: none;
}

.cta-network {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: .2;
    pointer-events: none;
}

.cta-network span {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #fff;
}

.cta-network span::before {
    position: absolute;
    top: 3px;
    left: 4px;
    width: 170px;
    height: 1px;
    content: "";
    background: #fff;
    transform: rotate(var(--rotate, 0deg));
    transform-origin: left center;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
}

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

@media (max-width: 767px) {
    :root {
        --header-height: 64px;
    }

    .container-shell {
        width: min(100% - 24px, 1240px);
    }

    .section-pad {
        padding-block: 64px;
    }

    .console-body {
        min-height: 470px;
        padding: 16px;
        font-size: 12px;
    }

    .console-stage {
        min-height: 342px;
    }

    .console-controls {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .batch-arrow {
        transform: rotate(90deg);
        text-align: center;
    }

    .faq-panel p {
        padding-right: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .console-cursor {
        opacity: 1;
    }
}
