/* ═══ Variables ═══ */
:root {
    --bg: #0a0a0f;
    --bg-2: #111118;
    --bg-3: #1a1a24;
    --surface: rgba(255,255,255,0.04);
    --surface-hover: rgba(255,255,255,0.07);
    --border: rgba(255,255,255,0.08);
    --border-strong: rgba(255,255,255,0.14);
    --text: #f0f0f5;
    --text-dim: #8888a0;
    --text-muted: #55556a;
    --accent: #ffd700;
    --accent-glow: rgba(255,215,0,0.15);
    --green: #4ecdc4;
    --red: #ff6b6b;
    --purple: #a29bfe;
    --blue: #7c9cff;
    --max-w: 1140px;
    --radius: 16px;
    --radius-sm: 10px;
}

/* ═══ Reset ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.9em; }

/* ═══ Nav ═══ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; }
.logo-mark {
    font-size: 22px; width: 38px; height: 38px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--accent), #ffaa00);
    border-radius: 10px;
}
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--text-dim); font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
    padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 700;
    background: var(--accent); color: #000; transition: 0.2s;
}
.nav-cta:hover { background: #ffe34d; transform: translateY(-1px); }

/* ═══ Buttons ═══ */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 700;
    font-size: 15px; border: 1px solid transparent; cursor: pointer;
    transition: all 0.2s; text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #000; border-color: var(--accent); }
.btn-primary:hover { background: #ffe34d; box-shadow: 0 8px 30px var(--accent-glow); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface); border-color: rgba(255,255,255,0.2); }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: 12px; }
.btn-full { width: 100%; justify-content: center; }

/* ═══ Hero ═══ */
.hero {
    max-width: var(--max-w); margin: 0 auto; padding: 100px 24px 40px;
    text-align: center;
}
.hero-inner { max-width: 780px; margin: 0 auto 48px; }
.hero-badge {
    display: inline-flex; padding: 6px 14px; border-radius: 999px;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--green); border: 1px solid rgba(78,205,196,0.25);
    background: rgba(78,205,196,0.08); margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(40px, 7vw, 72px); font-weight: 900;
    line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 20px;
}
.gradient-text {
    background: linear-gradient(135deg, var(--accent), #ff9500, var(--red));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub { font-size: 18px; color: var(--text-dim); max-width: 600px; margin: 0 auto 32px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.hero-proof { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.proof-item {
    padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 500;
    background: var(--surface); border: 1px solid var(--border); color: var(--text-dim);
}

/* ═══ Hero Preview (animated office) ═══ */
.hero-preview { max-width: 900px; margin: 0 auto; }
.preview-window {
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border-strong);
    background: var(--bg-2);
    box-shadow: 0 40px 100px rgba(0,0,0,0.5), 0 0 60px var(--accent-glow);
}
.preview-titlebar {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    background: var(--bg-3); border-bottom: 1px solid var(--border);
}
.titlebar-dots { display: flex; gap: 6px; }
.titlebar-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.titlebar-dots span:first-child { background: #ff5f57; }
.titlebar-dots span:nth-child(2) { background: #ffbd2e; }
.titlebar-dots span:nth-child(3) { background: #28ca42; }
.titlebar-text { font-size: 12px; color: var(--text-muted); }
.preview-canvas {
    position: relative; min-height: 380px; overflow: hidden;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px) 0 0 / 32px 32px,
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px) 0 0 / 32px 32px,
        linear-gradient(180deg, #151520 0%, #0d0d15 100%);
}
.floor {
    position: absolute; bottom: 0; left: 0; right: 0; height: 40%;
    background: linear-gradient(180deg, rgba(78,205,196,0.03), rgba(78,205,196,0.01));
}
.p-desk {
    position: absolute; width: 100px; height: 50px; border-radius: 8px;
    background: #2a2a3a; border: 3px solid #3d3d52;
    box-shadow: inset 0 -6px 0 rgba(0,0,0,0.2);
}
.p-agent { position: absolute; text-align: center; }
.agent-body {
    width: 28px; height: 28px; border-radius: 8px; margin: 0 auto 4px;
    border: 2px solid rgba(255,255,255,0.3);
}
.agent-label { font-size: 10px; font-weight: 700; white-space: nowrap; }
.agent-status {
    font-size: 8px; padding: 2px 6px; border-radius: 999px; margin-top: 2px;
    display: inline-block;
}
.agent-status.working { background: rgba(78,205,196,0.2); color: var(--green); }
.agent-status.idle { background: rgba(136,136,160,0.2); color: var(--text-dim); }
.p-chat {
    position: absolute; padding: 10px 14px; border-radius: 10px;
    background: rgba(30,30,45,0.95); border: 1px solid var(--border-strong);
    font-size: 11px; color: var(--text-dim); max-width: 260px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.p-chat strong { color: var(--green); }
.p-sidebar {
    position: absolute; right: 0; top: 0; bottom: 0; width: 140px;
    background: rgba(15,15,22,0.9); border-left: 1px solid var(--border);
    padding: 14px 10px;
}
.sb-title { font-size: 11px; font-weight: 700; color: var(--text-dim); margin-bottom: 10px; }
.sb-agent {
    padding: 6px 8px; border-radius: 6px; font-size: 11px; margin-bottom: 4px;
    color: var(--text-dim);
}
.sb-agent.active { background: var(--surface); color: var(--text); }

/* Agent animations */
.p-agent.a1 { animation: float-agent 4s ease-in-out infinite; }
.p-agent.a2 { animation: float-agent 5s ease-in-out infinite 1s; }
.p-agent.a3 { animation: float-agent 4.5s ease-in-out infinite 0.5s; }
.p-agent.a4 { animation: float-agent 5.5s ease-in-out infinite 2s; }
@keyframes float-agent {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.p-chat { animation: fade-pulse 3s ease-in-out infinite; }
@keyframes fade-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ═══ Sections ═══ */
.section-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.section-badge {
    display: inline-flex; padding: 6px 14px; border-radius: 999px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--accent); border: 1px solid rgba(255,215,0,0.2);
    background: rgba(255,215,0,0.06); margin-bottom: 16px;
}
.section-header h2 {
    font-size: clamp(32px, 5vw, 48px); font-weight: 800;
    line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 16px;
}
.section-sub { font-size: 17px; color: var(--text-dim); line-height: 1.7; }

/* ═══ Features ═══ */
.features { padding: 80px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card {
    padding: 28px; border-radius: var(--radius); background: var(--surface);
    border: 1px solid var(--border); transition: 0.2s;
}
.feature-card:hover { background: var(--surface-hover); border-color: var(--border-strong); transform: translateY(-2px); }
.feature-icon { font-size: 28px; margin-bottom: 14px; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

/* ═══ Demo ═══ */
.demo-section { padding: 80px 0; background: var(--bg-2); }
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.demo-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--bg); }
.demo-visual { padding: 0; }
.demo-placeholder {
    min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(255,215,0,0.04), rgba(78,205,196,0.04));
    border-bottom: 1px solid var(--border);
}
.placeholder-label { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.placeholder-hint { font-size: 12px; color: var(--text-muted); }
.demo-card h3 { font-size: 17px; font-weight: 700; padding: 20px 20px 8px; }
.demo-card p { font-size: 14px; color: var(--text-dim); padding: 0 20px 20px; line-height: 1.6; }

/* ═══ Pricing ═══ */
.pricing-section { padding: 80px 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 960px; margin: 0 auto; }
.pricing-card {
    padding: 32px 28px; border-radius: var(--radius); background: var(--surface);
    border: 1px solid var(--border); text-align: center;
}
.pricing-card.featured {
    background: linear-gradient(180deg, rgba(255,215,0,0.08), var(--surface));
    border-color: rgba(255,215,0,0.3);
    transform: scale(1.04);
    box-shadow: 0 20px 60px rgba(255,215,0,0.08);
}
.price-badge {
    display: inline-flex; padding: 6px 12px; border-radius: 999px;
    font-size: 11px; font-weight: 800; letter-spacing: 0.05em;
    background: var(--accent); color: #000; margin-bottom: 12px;
}
.price-tier { font-size: 14px; font-weight: 600; color: var(--text-dim); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.price-amount { font-size: 42px; font-weight: 900; letter-spacing: -0.03em; margin-bottom: 4px; }
.price-strike { font-size: 24px; color: var(--text-muted); text-decoration: line-through; margin-right: 8px; font-weight: 500; }
.price-period { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.price-features { list-style: none; text-align: left; margin-bottom: 28px; }
.price-features li { padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.price-features li.included::before { content: '✓ '; color: var(--green); font-weight: 700; }
.price-features li.excluded { color: var(--text-muted); }
.price-features li.excluded::before { content: '✗ '; color: var(--text-muted); }
.price-note { font-size: 12px; color: var(--text-muted); margin-top: 12px; }

/* ═══ Setup ═══ */
.setup-section { padding: 80px 0; background: var(--bg-2); }
.setup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.setup-steps { display: flex; flex-direction: column; gap: 28px; }
.setup-step { display: flex; gap: 16px; }
.step-num {
    width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center;
    border-radius: 12px; background: var(--accent); color: #000;
    font-weight: 900; font-size: 16px;
}
.step-content h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.step-content p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }
.step-content code { background: var(--surface); padding: 2px 6px; border-radius: 4px; font-size: 13px; color: var(--green); }
.code-block {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 14px 16px; margin-top: 8px; overflow-x: auto;
}
.code-block code { font-size: 13px; color: var(--green); line-height: 1.7; white-space: pre; display: block; background: none; padding: 0; }
.setup-terminal {
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border-strong); background: var(--bg);
    position: sticky; top: 88px;
}
.terminal-bar {
    display: flex; align-items: center; gap: 6px; padding: 12px 16px;
    background: var(--bg-3); border-bottom: 1px solid var(--border);
}
.terminal-bar span { width: 10px; height: 10px; border-radius: 50%; }
.terminal-bar span:nth-child(1) { background: #ff5f57; }
.terminal-bar span:nth-child(2) { background: #ffbd2e; }
.terminal-bar span:nth-child(3) { background: #28ca42; }
.terminal-title { font-size: 12px; color: var(--text-muted); margin-left: 8px; }
.terminal-body { padding: 20px; font-family: 'SF Mono', 'Fira Code', monospace; font-size: 13px; line-height: 1.8; }
.term-line { color: var(--text-dim); }
.term-line.dim { color: var(--text-muted); padding-left: 0; }
.term-prompt { color: var(--accent); margin-right: 8px; }
.term-out { color: var(--green); margin-right: 8px; }

/* ═══ FAQ ═══ */
.faq-section { padding: 80px 0; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.faq-item {
    padding: 24px; border-radius: var(--radius); background: var(--surface);
    border: 1px solid var(--border);
}
.faq-item h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.faq-item p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }
.faq-item a { color: var(--accent); }
.faq-item code { background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 4px; }

/* ═══ Footer ═══ */
.footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-inner {
    max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-brand .logo-mark { font-size: 16px; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), #ffaa00); }
.footer-links { display: flex; gap: 24px; font-size: 13px; color: var(--text-dim); }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: var(--text-muted); }

/* ═══ Mobile ═══ */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 36px; }
    .feature-grid, .demo-grid, .pricing-grid, .faq-grid { grid-template-columns: 1fr; }
    .setup-grid { grid-template-columns: 1fr; }
    .setup-terminal { display: none; }
    .pricing-card.featured { transform: none; }
    .hero-proof { flex-direction: column; align-items: center; }
    .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
    .preview-canvas { min-height: 280px; }
    .p-sidebar { display: none; }
    .p-desk { width: 70px; height: 36px; }
}
