* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --purple:      #7c6bff;
    --purple-dark: #6a59e8;
    --purple-dim:  rgba(124, 107, 255, 0.15);
    --bg-dark:     #0f0f1a;
    --bg-card:     #1a1a2e;
    --bg-card2:    #16162a;
    --border:      #2a2a4a;
    --text:        #ffffff;
    --text-muted:  #888;
    --text-dim:    #555;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    overflow-x: hidden;
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: background 0.3s, border-color 0.3s;
}

.navbar.scrolled {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--purple);
    letter-spacing: 2px;
}

.logo-badge {
    font-size: 10px;
    background: var(--purple-dim);
    color: var(--purple);
    border: 1px solid var(--purple);
    border-radius: 4px;
    padding: 2px 6px;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.btn-outline {
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    padding: 8px 18px !important;
    color: var(--text) !important;
    transition: border-color 0.2s !important;
}

.btn-outline:hover {
    border-color: var(--purple) !important;
    color: var(--purple) !important;
}

.btn-nav {
    background: var(--purple);
    color: #fff !important;
    border-radius: 8px;
    padding: 8px 18px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-nav:hover {
    background: var(--purple-dark);
    color: #fff !important;
}

.nav-mobile-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-mobile-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

.nav-mobile-menu {
    display: none;
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    border-top: 1px solid var(--border);
    background: rgba(15,15,26,0.98);
}

.nav-mobile-menu.active { display: flex; }

.nav-mobile-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
}

/* ── Hero ── */
.hero {
    min-height: 100vh;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
}

.hero-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(124,107,255,0.2) 0%, transparent 70%);
}

.hero-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--purple-dim);
    border: 1px solid rgba(124,107,255,0.3);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    color: var(--purple);
    margin-bottom: 28px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: #50c878;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-highlight {
    background: linear-gradient(135deg, var(--purple), #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn-primary-lg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--purple);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s, transform 0.1s;
}

.btn-primary-lg:hover {
    background: var(--purple-dark);
    transform: translateY(-1px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 10px;
    padding: 14px 28px;
    font-size: 16px;
    border: 1px solid var(--border);
    transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover {
    border-color: var(--purple);
    color: var(--text);
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

.stat { text-align: center; }

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--purple);
}

.stat-label {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ── Office Preview ── */
.hero-office {
    max-width: 900px;
    margin: 60px auto 0;
    position: relative;
    z-index: 1;
}

.office-window {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}

.office-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-card2);
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }

.office-title {
    font-size: 12px;
    color: var(--text-dim);
    margin-left: 8px;
}

.office-preview {
    height: 320px;
    background:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.01) 0px,
            rgba(255,255,255,0.01) 1px,
            transparent 1px,
            transparent 20px
        ),
        var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.preview-desk {
    position: absolute;
    text-align: center;
    transform: translate(-50%, -50%);
}

.preview-agent {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    margin: 0 auto 4px;
    position: relative;
    animation: agentBob 3s ease-in-out infinite;
}

.preview-agent.typing {
    animation: agentType 0.5s ease-in-out infinite alternate;
}

@keyframes agentBob {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-4px); }
}

@keyframes agentType {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-2px); }
}

.router-color     { background: linear-gradient(135deg,#7c6bff,#5a4bcc); }
.strategist-color { background: linear-gradient(135deg,#4a5568,#2d3748); }
.creator-color    { background: linear-gradient(135deg,#ed8936,#c05621); }
.controller-color { background: linear-gradient(135deg,#e53e3e,#c53030); }
.lawyer-color     { background: linear-gradient(135deg,#2b6cb0,#1a4a7a); }
.marketer-color   { background: linear-gradient(135deg,#38a169,#276749); }
.publisher-color  { background: linear-gradient(135deg,#d53f8c,#97266d); }

.preview-agent.router     { background: linear-gradient(135deg,#7c6bff,#5a4bcc); }
.preview-agent.strategist { background: linear-gradient(135deg,#4a5568,#2d3748); }
.preview-agent.creator    { background: linear-gradient(135deg,#ed8936,#c05621); }
.preview-agent.controller { background: linear-gradient(135deg,#e53e3e,#c53030); }
.preview-agent.lawyer     { background: linear-gradient(135deg,#2b6cb0,#1a4a7a); }

.agent-bubble {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26,26,46,0.95);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
    margin-bottom: 6px;
    animation: bubbleFade 3s ease-in-out infinite;
}

.agent-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--border);
}

@keyframes bubbleFade {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 1; }
}

.preview-label {
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.envelope-fly {
    position: absolute;
    font-size: 20px;
    opacity: 0;
    transition: none;
    z-index: 10;
    pointer-events: none;
}

/* ── Sections ── */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--purple);
    background: var(--purple-dim);
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Steps ── */
.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    text-align: center;
}

.step-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--purple-dim);
    line-height: 1;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    display: inline-block;
    min-width: 80px;
}

.step-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.step-arrow {
    font-size: 24px;
    color: var(--purple);
    padding-top: 32px;
    opacity: 0.5;
}

/* ── Features Grid ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: var(--purple);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 28px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── Agents Section ── */
.agents-section {
    background: var(--bg-card2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.agent-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}

.agent-card:hover {
    border-color: var(--purple);
    transform: translateY(-2px);
}

.agent-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0 auto 16px;
}

.agent-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.agent-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── Pricing ── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    position: relative;
    transition: border-color 0.2s;
}

.pricing-card.featured {
    border-color: var(--purple);
    background: linear-gradient(135deg, #1a1a2e, #1f1a3a);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--purple);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

.pricing-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.pricing-price {
    margin-bottom: 24px;
}

.price-amount {
    font-size: 42px;
    font-weight: 700;
}

.price-period {
    font-size: 14px;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin-bottom: 28px;
}

.pricing-features li {
    font-size: 14px;
    color: var(--text-muted);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child { border: none; }

.pricing-features li:first-child { padding-top: 0; }

.btn-pricing {
    display: block;
    text-align: center;
    background: var(--purple);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    padding: 13px;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-pricing:hover { background: var(--purple-dark); }

.btn-pricing-outline {
    display: block;
    text-align: center;
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    border-radius: 10px;
    padding: 13px;
    font-size: 15px;
    font-weight: 600;
    transition: border-color 0.2s;
}

.btn-pricing-outline:hover { border-color: var(--purple); }

/* ── CTA ── */
.cta-section { padding: 0 24px 100px; }

.cta-card {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1a1a2e, #1f1a3a);
    border: 1px solid var(--purple);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
}

.cta-card h2 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-card p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ── Footer ── */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 24px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo p {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
    font-size: 12px;
    color: var(--text-dim);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-links     { display: none; }
    .nav-mobile-btn { display: flex; }

    .hero { padding: 100px 20px 60px; }

    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }

    .stat-divider { display: none; }

    .step-arrow { display: none; }

    .steps { flex-direction: column; align-items: center; }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links { justify-content: center; }

    .cta-card { padding: 40px 24px; }
}