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

:root {
    color-scheme: light;
    --font-sans: "Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", Arial, sans-serif;
    --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    --primary: #1f1f1f;
    --secondary: #74777c;
    --background: #ffffff;
    --accent: #5856d6;
    --on-accent: #ffffff;
    --stroke: rgba(0, 0, 0, 0.08);
    --stroke-opaque: #ebebeb;
    --surface: #f2f2f2;
    --contrast-pass: #008c21;
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 36px;
    --text-4xl: 56px;
    --text-5xl: 64px;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --primary: #eeeeee;
        --secondary: #c7c7c7;
        --background: #131313;
        --accent: #b9a8ff;
        --on-accent: #1f1f1f;
        --stroke: rgba(255, 255, 255, 0.08);
        --stroke-opaque: #202020;
        --surface: #1c1c1c;
        --contrast-pass: #359c4d;
    }
}

body {
    font-family: var(--font-sans);
    background: var(--background);
    color: var(--primary);
    -webkit-font-smoothing: antialiased;
}

.hero-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: var(--text-lg);
    margin-bottom: 8px;
}

.hero-brand img {
    width: 48px;
    height: 48px;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 64px 40px;
    gap: 16px;
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.06em;
    max-width: 800px;
}

.hero-subtitle {
    font-size: var(--text-2xl);
    font-weight: 400;
    color: var(--secondary);
    line-height: 1.5;
    max-width: 780px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px;
    padding: 0 28px;
    background: var(--primary);
    color: var(--background);
    font-family: var(--font-sans);
    font-size: var(--text-lg);
    font-weight: 500;
    border-radius: 100px;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.hero-cta:hover {
    opacity: 0.85;
}

.demo-section {
    display: flex;
    justify-content: center;
    padding: 0 40px 64px;
    container-type: inline-size;
}

.demo-frame {
    width: 100%;
    max-width: calc(1280px + 2 * var(--frame-pad));
    --frame-pad: min(12px, 1.05vw);
    --frame-inner-radius: min(40px, calc((100cqw - 2 * var(--frame-pad)) * 0.03125));
    padding: var(--frame-pad);
    background: var(--surface);
    border-radius: calc(var(--frame-inner-radius) + var(--frame-pad));
}

.section-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    letter-spacing: -0.04em;
    text-align: center;
    margin-bottom: 48px;
}

.pitch {
    border-top: 1px solid var(--stroke);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 64px 40px;
}

.pitch-grid {
    width: 100%;
    max-width: 1140px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.pitch-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 32px;
    border-right: 1px solid var(--stroke);
    border-bottom: 1px solid var(--stroke);
}

.pitch-item:nth-child(2n) {
    border-right: none;
}

.pitch-item:nth-last-child(-n + 2) {
    border-bottom: none;
}

.pitch-lead {
    font-size: var(--text-xl);
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary);
}

.pitch-body {
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--secondary);
}

.features {
    border-top: 1px solid var(--stroke);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 64px 40px;
}

.features-grid {
    width: 100%;
    max-width: 1140px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 32px 28px;
    border-right: 1px solid var(--stroke);
    border-bottom: 1px solid var(--stroke);
}

.feature:nth-child(3n) {
    border-right: none;
}

.feature:nth-last-child(-n + 3) {
    border-bottom: none;
}

.feature svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--secondary);
}

.feature p {
    font-size: var(--text-sm);
    color: var(--secondary);
    line-height: 1.5;
}

.feature strong {
    color: var(--primary);
    font-weight: 600;
}

.pricing {
    border-top: 1px solid var(--stroke);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 64px 40px;
}

.pricing-cards {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    width: 100%;
}

.pricing-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    max-width: 400px;
    padding: 32px;
    border-radius: 24px;
    box-shadow: inset 0 0 0 1px var(--stroke);
    text-align: left;
    --card-dot: 23, 23, 23;
}

.pricing-card.recommended {
    box-shadow: inset 0 0 0 1px var(--accent);
    background: linear-gradient(200deg, color-mix(in srgb, var(--accent) 10%, var(--background)), var(--background));
    --card-dot: 88, 86, 214;
}

@media (prefers-color-scheme: dark) {
    .pricing-card {
        --card-dot: 235, 235, 235;
    }

    .pricing-card.recommended {
        --card-dot: 255, 140, 111;
    }
}

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

.pricing-card-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pricing-card-name {
    font-size: var(--text-2xl);
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary);
}

.pricing-card-tagline {
    font-size: var(--text-lg);
    line-height: 1.3;
    color: var(--secondary);
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price {
    font-size: var(--text-4xl);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1;
    color: var(--primary);
}

.price-currency {
    font-size: 0.4em;
    font-weight: 500;
    letter-spacing: 0;
    margin-right: 2px;
    color: var(--secondary);
}

.price-meta {
    font-size: var(--text-xs);
    color: var(--secondary);
}

.pricing-card-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.pricing-card-features-list li {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: var(--text-sm);
    color: var(--primary);
    line-height: 1.4;
}

.pricing-card-feature-check {
    flex-shrink: 0;
    color: var(--primary);
}

.pricing-card.recommended .pricing-card-feature-check {
    color: var(--accent);
}

.pricing-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    margin-top: 8px;
    padding: 0 36px;
    background: var(--primary);
    color: var(--background);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: 500;
    border-radius: 100px;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.pricing-card.recommended .pricing-card-cta {
    background: var(--accent);
    color: var(--on-accent);
}

.pricing-card-cta:hover {
    opacity: 0.85;
}

.pricing-note {
    margin-top: 24px;
    font-size: var(--text-sm);
    line-height: 1.5;
    text-align: center;
    color: var(--secondary);
}

.pricing-highlight {
    color: var(--accent);
}

.faq {
    border-top: 1px solid var(--stroke);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 64px 40px;
}

.faq-list {
    width: 100%;
    max-width: 780px;
    display: flex;
    flex-direction: column;
}

.faq-item:not(:last-of-type) {
    border-bottom: 1px solid var(--stroke);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    user-select: none;
    -webkit-user-select: none;
}

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

.faq-item summary svg {
    flex-shrink: 0;
    color: var(--secondary);
    transition: transform 0.15s ease;
}

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

.faq-item p {
    padding: 0 0 20px;
    font-size: var(--text-base);
    color: var(--secondary);
    line-height: 1.6;
}

.faq-item p a {
    color: inherit;
    text-decoration: underline;
}

.cta-section {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 40px;
    gap: 24px;
    border-top: 1px solid var(--stroke);
}

.cta-section .section-title {
    margin-bottom: 0;
}

.pixel-spotlight {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

.cta-section > *:not(.pixel-spotlight) {
    position: relative;
    z-index: 1;
}

.footer {
    border-top: 1px solid var(--stroke);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 80px 40px 64px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: var(--text-lg);
    color: var(--primary);
}

.footer-brand-logo img {
    width: 28px;
    height: 28px;
}

.footer-copy {
    font-size: var(--text-xs);
    color: var(--secondary);
}

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

.footer-heading {
    margin-bottom: 4px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--primary);
}

.footer-column a {
    font-size: var(--text-sm);
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

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

@media (max-width: 768px) {
    :root {
        --text-base: 14px;
        --text-lg: 16px;
        --text-xl: 18px;
        --text-2xl: 20px;
        --text-3xl: 32px;
        --text-4xl: 52px;
        --text-5xl: 48px;
    }

    .hero {
        padding: 48px 24px;
        gap: 20px;
    }

    .hero-brand img {
        width: 48px;
        height: 48px;
    }

    .hero-break {
        display: none;
    }

    .hero-cta {
        height: 46px;
        padding: 0 28px;
    }

    .demo-section {
        padding: 0 24px 48px;
    }

    .section-title {
        margin-bottom: 36px;
    }

    .pitch {
        padding: 48px 24px;
    }

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

    .pitch-item {
        border-right: none;
    }

    .pitch-item:nth-last-child(-n + 2) {
        border-bottom: 1px solid var(--stroke);
    }

    .pitch-item:last-child {
        border-bottom: none;
    }

    .features {
        padding: 48px 24px;
    }

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

    .feature {
        padding: 28px 24px;
        border-right: none;
    }

    .feature:nth-last-child(-n + 3) {
        border-bottom: 1px solid var(--stroke);
    }

    .feature:last-child {
        border-bottom: none;
    }

    .pricing {
        padding: 48px 24px;
    }

    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }

    .pricing-card {
        padding: 24px;
    }

    .faq {
        padding: 48px 24px;
    }

    .cta-section {
        padding: 64px 24px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding: 56px 24px 48px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    :root {
        --text-lg: 14px;
        --text-xl: 16px;
        --text-2xl: 18px;
        --text-3xl: 28px;
        --text-4xl: 44px;
        --text-5xl: 36px;
    }

    .hero {
        padding: 40px 20px;
        gap: 16px;
    }

    .hero-brand img {
        width: 40px;
        height: 40px;
    }

    .hero-cta {
        height: 42px;
        padding: 0 24px;
    }

    .demo-section {
        padding: 0 20px 40px;
    }

    .section-title {
        margin-bottom: 28px;
    }

    .features {
        padding: 40px 20px;
    }

    .pricing {
        padding: 40px 20px;
    }

    .pricing-card {
        padding: 20px;
    }

    .pricing-card-name {
        font-size: 20px;
    }

    .faq {
        padding: 40px 20px;
    }

    .cta-section {
        padding: 56px 20px;
    }

    .pitch {
        padding: 40px 20px;
    }

    .feature {
        padding: 24px 20px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 20px;
    }

    .footer-brand {
        grid-column: auto;
    }
}

.mcp-section {
    border-top: 1px solid var(--stroke);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 64px 40px;
    overflow: hidden;
}

.section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
    text-align: center;
}

.section-content .section-title {
    margin: 0;
}

.section-subtitle {
    max-width: 640px;
    color: var(--secondary);
    font-size: 18px;
    line-height: 1.5;
    text-align: center;
}

.title-break {
    display: block;
}

.section-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 48px;
    color: var(--primary);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
}

.section-cta svg {
    flex-shrink: 0;
}

.install-command {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px 6px 18px;
    background: transparent;
    border: 1px solid var(--stroke);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--primary);
}

.install-command code {
    font-family: inherit;
}

.install-command-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--primary);
    border-radius: 100px;
    cursor: pointer;
}

.install-command-icon-check {
    display: none;
}

.install-command-copy.is-copied .install-command-icon-copy {
    display: none;
}

.install-command-copy.is-copied .install-command-icon-check {
    display: inline-block;
}

.mcp-terminal-wrap {
    position: relative;
    width: calc(100% - 16px);
    max-width: 720px;
    margin: 0 auto;
}

.mcp-terminal-wrap::after {
    content: "";
    position: absolute;
    left: -40px;
    right: -40px;
    bottom: -40px;
    height: 45%;
    background: linear-gradient(to bottom, transparent 0%, var(--background) 66%);
    pointer-events: none;
    z-index: 400;
}

.mcp-terminal {
    position: relative;
    width: 100%;
    border-radius: 16px 16px 0 0;
    background: var(--background);
    overflow: hidden;
    text-align: left;
    box-shadow: 0 0 0 8px var(--surface);
}

@media (prefers-color-scheme: dark) {
    .mcp-terminal {
        background: #131313;
    }
}

.mcp-terminal-chrome {
    height: 36px;
    display: flex;
    gap: 8px;
    padding: 0 16px;
    align-items: center;
    border-bottom: 1px solid var(--stroke-opaque);
}

.mcp-traffic-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--stroke-opaque);
}

.mcp-terminal-body {
    padding: 20px 24px 0;
    height: 260px;
    overflow: hidden;
    position: relative;
}

.mcp-stream {
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.7;
    color: var(--primary);
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    transform: translateY(0);
    transition: transform 0.4s ease-out;
    will-change: transform;
}

.mcp-stream .mcp-line {
    display: flex;
    gap: 8px;
}

.mcp-stream .mcp-line:has(.role-user) {
    background: var(--surface);
}

.mcp-stream .role {
    flex-shrink: 0;
    font-weight: 600;
}

.mcp-stream .role-user {
    color: var(--accent);
}

.mcp-stream .role-assistant {
    color: var(--contrast-pass);
}

.mcp-stream .role-thinking {
    color: #6c4024;
}

.mcp-stream .line-thinking {
    font-style: italic;
    color: #6c4024;
}

.mcp-stream .caret {
    display: inline-block;
    margin-left: 1px;
    color: var(--primary);
    animation: mcp-caret-blink 0.9s steps(2, end) infinite;
}

@keyframes mcp-caret-blink {
    0%,
    50% {
        opacity: 1;
    }
    50.01%,
    100% {
        opacity: 0;
    }
}

.mcp-section .caption {
    position: relative;
    z-index: 500;
    margin-top: 16px;
    font-size: var(--text-sm);
    color: var(--secondary);
}

.mcp-section .caption a {
    color: var(--accent);
}

@media (prefers-color-scheme: dark) {
    .mcp-stream .role-thinking,
    .mcp-stream .line-thinking {
        color: #f2c685;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mcp-stream {
        transition: none;
    }

    .mcp-stream .caret {
        animation: none;
    }
}

@media (max-width: 768px) {
    .mcp-section {
        padding: 40px 20px;
    }

    .section-content {
        margin-bottom: 32px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .title-break {
        display: none;
    }

    .mcp-terminal-body {
        height: 220px;
        padding: 16px 18px 0;
    }

    .mcp-stream {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .mcp-terminal-chrome {
        height: 32px;
        padding: 0 12px;
    }

    .mcp-terminal-body {
        height: 190px;
        padding: 14px 14px 0;
    }

    .mcp-stream {
        font-size: 11px;
    }
}
