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

:root {
    --bg: #fafafa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f0f0;
    --text: #1a1a1a;
    --text-muted: #666;
    --border: #e0e0e0;
    --accent: #9333ea;
    --accent-hover: #7c3aed;
    --accent-glow: rgba(147, 51, 234, 0.15);
    --warn: #f59e0b;
    --warn-bg: rgba(245, 158, 11, 0.08);
    --success: #16a34a;
    --error: #ef4444;
    --btn-text: #fff;
}

html, body { min-height: 100vh; }

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
}

/* Hero */
.hero-section {
    background-image: radial-gradient(circle, rgba(0,0,0,0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 40px 100px;
    text-align: center;
}

.hero-center {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-size: 64px;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 28px;
    color: #2563eb;
}

h1 span {
    display: block;
    color: var(--text);
    font-size: 32px;
    font-weight: 500;
    margin-top: 12px;
    white-space: nowrap;
}

#hero-rotating {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

#hero-rotating .slide-in {
    display: block;
    animation: slideUp 0.4s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-sub {
    font-size: 19px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    list-style: none;
    margin-bottom: 40px;
}

.hero-chips li {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.2px;
}

.hero-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 420px;
}

/* CTA button */
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #000;
    color: var(--btn-text);
    border: none;
    padding: 16px 40px;
    font-size: 15px;
    font-family: inherit;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.cta-btn-icon {
    flex-shrink: 0;
}

.cta-btn:hover { background: #222; }

/* Capabilities */
.capabilities-section {
    padding: 80px 40px;
    background: #f3f1ec;
}

.capabilities-inner {
    max-width: 1080px;
    margin: 0 auto;
}

.capabilities-head {
    max-width: 640px;
    margin-bottom: 40px;
}

.capabilities-head h2 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 14px;
}

.capabilities-head p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
}

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

.cap-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.cap-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.cap-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.cap-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.cap-card:hover .cap-icon {
    color: #6851FF;
}

.cap-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Story — not just a chat */
.story-section {
    padding: 80px 40px;
    background: var(--bg);
}

.story-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.story-quote {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    margin: 0 0 16px;
}

.story-quote-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.story-quote p {
    font-size: 18px;
    line-height: 1.5;
    color: var(--text);
}

.story-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.story-flow li {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
}

.story-copy h2 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 18px;
    color: var(--text);
}

.story-copy > p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
}

.story-accent {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    line-height: 1.5;
}

/* Agents */
.agents-section {
    padding: 80px 40px;
    background: var(--bg);
}

.agents-inner {
    max-width: 1080px;
    margin: 0 auto;
}

.agents-head {
    max-width: 640px;
    margin-bottom: 40px;
}

.agents-head h2 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 14px;
}

.agents-head p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
}

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

.agents-delivery {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.agents-delivery-lead {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.agents-delivery-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.agents-delivery-list li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px 8px 10px;
    border-radius: 20px;
}

.agents-delivery-list img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.agents-delivery-list .cap-icon {
    width: 20px;
    height: 20px;
}

.agents-delivery-list .cap-icon svg {
    width: 20px;
    height: 20px;
}

/* Team */
.team-section {
    padding: 80px 40px;
    background: var(--bg);
}

.team-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.team-copy h2 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 18px;
}

.team-copy > p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
}

.team-accent {
    font-weight: 600;
    color: var(--text);
    margin-top: 20px;
}

.team-roles {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.team-roles li {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
}

.team-roles li:hover .cap-icon {
    color: #6851FF;
}

/* Context / how it works */
.context-section {
    padding: 80px 40px;
    background: var(--bg);
}

.context-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.context-diagram {
    background: #f3f1ec;
    border-radius: 16px;
    padding: 28px 24px 24px;
}

.context-diagram-head {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.context-diagram-head img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.context-flow {
    list-style: none;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.context-flow::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 22px;
    bottom: 22px;
    width: 2px;
    background: #ddd8ce;
}

.context-flow li {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.context-flow-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.context-flow-icon--dark {
    background: #1a1a1a;
    color: #fff;
}

.context-flow-icon--orange {
    background: #f97316;
    color: #fff;
}

.context-flow-icon--purple {
    background: #9333ea;
    color: #fff;
}

.context-flow-icon--green {
    background: #16a34a;
    color: #fff;
}

.context-copy {
    max-width: 460px;
}

.context-chip {
    display: inline-block;
    background: #e8effe;
    color: #2563eb;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.context-copy h2 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 18px;
    color: var(--text);
}

.context-copy p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Tools */
.tools-section {
    padding: 80px 40px;
    background: #f3f1ec;
}

.tools-inner {
    max-width: 1080px;
    margin: 0 auto;
}

.tools-head {
    max-width: 640px;
    margin-bottom: 28px;
}

.tools-head h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 14px;
    line-height: 1.2;
}

.tools-head p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
}

.tools-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.tools-logos a,
.tools-logos span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px 8px 10px;
    border-radius: 20px;
    text-decoration: none;
}

.tools-logos img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.tools-logos a:hover {
    border-color: #6851FF;
    color: #6851FF;
}

/* FAQ */
.faq-section {
    padding: 80px 40px;
    background: var(--bg);
}

.faq-inner {
    max-width: 1080px;
    margin: 0 auto;
}

.faq-head {
    margin-bottom: 32px;
}

.faq-head h2 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
}

.faq-list {
    border-top: 1px solid var(--border);
}

.faq-row {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    align-items: baseline;
}

.faq-row dt {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}

.faq-row dd {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

.faq-row dd a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cta-inner .hero-note {
    margin-left: auto;
    margin-right: auto;
}

/* Content sections */
.content-section {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
}

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

.section-inner {
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
}

.section-label {
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 16px;
    opacity: 0.7;
}

.content-section h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 24px;
    line-height: 1.2;
}

.section-intro {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

.section-intro--em {
    color: var(--text);
    font-size: 18px;
}

.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.check-list li {
    display: flex;
    align-items: baseline;
    gap: 14px;
    font-size: 16px;
    color: var(--text);
    line-height: 1.4;
}

.check-icon {
    color: var(--text-muted);
    font-size: 14px;
    flex-shrink: 0;
    width: 16px;
}

.check-icon.accent { color: var(--accent); }

.section-note {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

/* CTA section */
.cta-section {
    min-height: 680px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 40px 120px;
    background: #f3f1ec;
}

.cta-inner {
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.cta-inner h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
}

.cta-inner p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.visible { display: flex; }

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 40px;
    max-width: 420px;
    width: 100%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s;
}

.modal-close:hover { color: var(--text); }

.modal h2 { font-size: 20px; margin-bottom: 12px; }

.modal-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.waitlist-form-modal {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.waitlist-form-modal input {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 14px 18px;
    font-size: 15px;
    font-family: inherit;
    border-radius: 4px;
    outline: none;
    width: 100%;
    transition: border-color 0.2s;
}

.waitlist-form-modal input:focus { border-color: var(--accent); }
.waitlist-form-modal input::placeholder { color: var(--text-muted); }

.waitlist-form-modal button {
    background: #000;
    color: var(--btn-text);
    border: none;
    padding: 14px 28px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.waitlist-form-modal button:hover { background: #222; }

.waitlist-form-modal button:disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
}

.success-message {
    background: var(--accent-glow);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 16px 24px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.success-message.visible { display: block; }

.error-message {
    background: rgba(255,107,107,0.1);
    border: 1px solid var(--error);
    color: var(--error);
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

.error-message.visible { display: block; }

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

/* Footer */
footer {
    padding: 20px 40px 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    background: #000;
}

.footer-left { color: rgba(255, 255, 255, 0.55); font-size: 13px; }

.footer-right a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-right a:hover { color: #fff; }
.footer-sep { color: rgba(255, 255, 255, 0.35); margin: 0 8px; }

/* Tablet */
@media (max-width: 960px) {
    .capabilities-grid,
    .agents-grid { grid-template-columns: repeat(2, 1fr); }
    .context-inner,
    .story-inner,
    .team-inner { gap: 40px; }
    .context-copy h2,
    .story-copy h2,
    .team-copy h2,
    .agents-head h2,
    .tools-head h2,
    .faq-head h2 { font-size: 28px; }
    .capabilities-head h2 { font-size: 28px; }
}

/* Mobile */
@media (max-width: 720px) {
    .hero-section h1 {
        white-space: nowrap;
        font-size: clamp(22px, calc((100vw - 48px) / 12), 48px);
    }
    .hero-section h1 span {
        white-space: nowrap;
        font-size: clamp(16px, calc((100vw - 48px) / 18), 24px);
    }
    .capabilities-grid,
    .agents-grid { grid-template-columns: 1fr; }
    .context-inner,
    .story-inner,
    .team-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .context-copy,
    .story-copy,
    .team-copy { order: -1; max-width: none; }
    .faq-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

@media (max-width: 600px) {
    .hero-section { padding: 120px 20px 100px; }
    .hero-sub { font-size: 16px; }
    .hero-chips { margin-bottom: 32px; }
    .hero-note { font-size: 12px; }
    .capabilities-section { padding: 48px 20px; }
    .story-section { padding: 48px 20px; }
    .agents-section { padding: 48px 20px; }
    .team-section { padding: 48px 20px; }
    .context-section { padding: 48px 20px; }
    .tools-section { padding: 48px 20px; }
    .faq-section { padding: 48px 20px; }
    .cta-section { min-height: 0; padding: 48px 20px; }
    footer { padding: 16px 20px 64px; flex-direction: column; text-align: center; }
}
