/* ============================================================
   landing.css — Landing page styles (light theme)
   Uses design tokens from variables.css
   ============================================================ */

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

/* -- Scrollbar -- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) transparent;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-page);
    color: var(--text-secondary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* -- Global layout -- */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==============================================
   NAVIGATION
   ============================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all 0.3s;
}

.nav.scrolled {
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1em;
}

.nav-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-btn);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-button);
}

.nav-logo-icon svg {
    width: 18px;
    height: 18px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88em;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* ==============================================
   HERO
   ============================================== */
.hero {
    position: relative;
    padding: 160px 0 100px;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 100%;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(79, 70, 229, 0.04) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 30%, rgba(124, 58, 237, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(8, 145, 178, 0.02) 0%, transparent 45%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-indigo-bg);
    border: 1px solid var(--accent-indigo-border);
    border-radius: 24px;
    padding: 6px 16px;
    font-size: 0.82em;
    font-weight: 500;
    color: var(--accent-indigo);
    margin-bottom: 28px;
    position: relative;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: #22C55E;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero h1 {
    font-size: clamp(2.2em, 5.5vw, 3.8em);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 20px;
    position: relative;
    color: var(--text-primary);
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, #4F46E5, #7C3AED, #0891B2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1em, 2vw, 1.2em);
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 36px;
    line-height: 1.7;
    position: relative;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--gradient-btn);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    box-shadow: var(--shadow-button);
    font-family: inherit;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.35);
}

.btn-primary svg {
    width: 18px;
    height: 18px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: inherit;
}

.btn-secondary:hover {
    background: var(--bg-subtle);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-secondary svg {
    width: 18px;
    height: 18px;
}

/* ==============================================
   PLATFORM LOGOS
   ============================================== */
.platforms {
    padding: 40px 0 60px;
    text-align: center;
}

.platforms-label {
    font-size: 0.78em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-faint);
    margin-bottom: 28px;
}

.platforms-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.connection-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.connection-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.connection-card {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.connection-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.connection-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.connection-card.mcp-card {
    background: white;
    border-color: var(--accent-indigo-border);
}

.connection-card.mcp-card img {
    width: 36px;
    height: 36px;
}

.connection-arrow {
    color: var(--text-faint);
    opacity: 0.4;
    display: flex;
    align-items: center;
}

.ai-logos {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-chip {
    padding: 10px 18px;
    border-radius: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    color: var(--text-muted);
    font-size: 0.95em;
    font-weight: 600;
    transition: transform 0.2s, border-color 0.2s, color 0.2s;
}

.ai-chip:hover {
    transform: translateY(-1px);
    border-color: var(--border-hover);
    color: var(--text-secondary);
}

.ai-chip.claude {
    border-color: rgba(217, 119, 87, 0.25);
    color: var(--brand-claude);
}

.ai-chip.chatgpt {
    border-color: rgba(16, 163, 127, 0.25);
    color: var(--brand-chatgpt);
}

.ai-chip.any {
    border-color: var(--accent-indigo-border);
    color: var(--accent-indigo-light);
}

/* ==============================================
   FEATURES
   ============================================== */
.features {
    padding: 80px 0;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.12), rgba(8, 145, 178, 0.08), transparent);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-indigo-light);
    margin-bottom: 12px;
}

.section-label svg {
    width: 14px;
    height: 14px;
}

.section-title {
    font-size: clamp(1.6em, 3.5vw, 2.3em);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.05em;
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: 48px;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: 28px 24px;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.25s;
}

.feature-card:hover {
    border-color: var(--accent-indigo-border);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-icon.purple {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.06));
    border: 1px solid rgba(79, 70, 229, 0.15);
    color: var(--accent-indigo-light);
}

.feature-icon.cyan {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.1), rgba(8, 145, 178, 0.05));
    border: 1px solid rgba(8, 145, 178, 0.15);
    color: var(--accent-cyan);
}

.feature-icon.teal {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(13, 148, 136, 0.05));
    border: 1px solid rgba(13, 148, 136, 0.15);
    color: var(--accent-teal);
}

.feature-icon.amber {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.1), rgba(217, 119, 6, 0.05));
    border: 1px solid rgba(217, 119, 6, 0.15);
    color: var(--status-amber);
}

.feature-icon.rose {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(220, 38, 38, 0.05));
    border: 1px solid rgba(220, 38, 38, 0.15);
    color: #F43F5E;
}

.feature-icon.emerald {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(5, 150, 105, 0.05));
    border: 1px solid rgba(5, 150, 105, 0.15);
    color: var(--accent-emerald);
}

.feature-card h3 {
    font-size: 1.02em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.88em;
    color: var(--text-muted);
    line-height: 1.6;
}

.feature-card .tool-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    font-size: 0.75em;
    font-weight: 600;
    color: var(--text-faint);
    background: var(--bg-subtle);
    padding: 3px 8px;
    border-radius: 6px;
}

/* ==============================================
   HOW IT WORKS
   ============================================== */
.how-it-works {
    padding: 80px 0;
    position: relative;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(8, 145, 178, 0.12), rgba(79, 70, 229, 0.08), transparent);
}

.steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.step-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    position: relative;
    box-shadow: var(--shadow-card);
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.08));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15em;
    font-weight: 800;
    color: var(--accent-indigo);
    margin: 0 auto 20px;
    border: 1px solid var(--accent-indigo-border);
}

.step-card h3 {
    font-size: 1.05em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.88em;
    color: var(--text-muted);
    line-height: 1.6;
}

.step-connector {
    display: none;
}

/* ==============================================
   CODE DEMO (KEEP DARK)
   ============================================== */
.demo {
    padding: 0 0 80px;
}

.demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.demo-text {
    padding: 40px 0;
}

.demo-text h3 {
    font-size: 1.6em;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.demo-text p {
    font-size: 0.95em;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.7;
}

.demo-features-list {
    list-style: none;
    padding: 0;
}

.demo-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9em;
    color: var(--text-secondary);
}

.demo-features-list li svg {
    width: 18px;
    height: 18px;
    color: #22C55E;
    flex-shrink: 0;
    margin-top: 2px;
}

/* -- Demo code block: STAYS DARK -- */
.demo-code {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--code-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.demo-code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: var(--code-header);
    border-bottom: 1px solid var(--code-border);
}

.demo-dots {
    display: flex;
    gap: 6px;
}

.demo-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.demo-dots span:nth-child(1) {
    background: #EF4444;
}

.demo-dots span:nth-child(2) {
    background: #EAB308;
}

.demo-dots span:nth-child(3) {
    background: #22C55E;
}

.demo-code-tab {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.72em;
    color: #64748B;
}

.demo-code-body {
    background: var(--code-bg);
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.8em;
    line-height: 1.8;
    color: var(--code-text);
    overflow-x: auto;
}

.demo-code-body .cm-key {
    color: #A5B4FC;
}

.demo-code-body .cm-str {
    color: #86EFAC;
}

.demo-code-body .cm-url {
    color: #67E8F9;
}

.demo-code-body .cm-comment {
    color: #475569;
    font-style: italic;
}

.demo-code-body .cm-prompt {
    color: #818CF8;
    user-select: none;
}

.demo-code-body .cm-cmd {
    color: #E2E8F0;
}

.demo-code-body .cm-flag {
    color: #FBBF24;
}

/* ==============================================
   SECURITY
   ============================================== */
.security {
    padding: 80px 0;
    position: relative;
}

.security::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.12), rgba(8, 145, 178, 0.08), transparent);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 48px;
}

.security-item {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.2s;
    box-shadow: var(--shadow-card);
}

.security-item:hover {
    border-color: var(--accent-indigo-border);
    transform: translateY(-2px);
}

.security-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.08), rgba(13, 148, 136, 0.04));
    border: 1px solid rgba(13, 148, 136, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--accent-teal);
}

.security-item-icon svg {
    width: 18px;
    height: 18px;
}

.security-item h4 {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.security-item p {
    font-size: 0.8em;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==============================================
   CTA
   ============================================== */
.cta {
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(79, 70, 229, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.cta-card {
    background: var(--bg-card);
    border: 1px solid var(--accent-indigo-border);
    border-radius: 24px;
    padding: 56px 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
}

.cta-card h2 {
    font-size: clamp(1.5em, 3vw, 2em);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.cta-card p {
    font-size: 1.05em;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 32px;
}

/* ==============================================
   FOOTER
   ============================================== */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copy {
    font-size: 0.78em;
    color: var(--text-faint);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-links a {
    font-size: 0.78em;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-indigo-light);
}

.footer-made {
    font-size: 0.72em;
    color: var(--text-faint);
}

.footer-made a {
    color: var(--accent-indigo-light);
    text-decoration: none;
    font-weight: 500;
}

.footer-made a:hover {
    color: var(--accent-indigo-lighter);
}

/* ==============================================
   STATS BAR
   ============================================== */
.stats-bar {
    padding: 20px 0 60px;
}

.stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 32px;
    background: var(--border-primary);
}

.stat-number {
    font-size: 2em;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--accent-indigo-light), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-number.cyan-grad {
    background: linear-gradient(135deg, #0891B2, var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
}

.stat-number.teal-grad {
    background: linear-gradient(135deg, #0D9488, var(--accent-teal));
    -webkit-background-clip: text;
    background-clip: text;
}

.stat-number.amber-grad {
    background: linear-gradient(135deg, #D97706, #B45309);
    -webkit-background-clip: text;
    background-clip: text;
}

.stat-label {
    font-size: 0.78em;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

/* ==============================================
   TOOLS SHOWCASE
   ============================================== */
.tools-showcase {
    padding: 80px 0;
    position: relative;
}

.tools-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.12), rgba(8, 145, 178, 0.08), transparent);
}

.tools-category {
    margin-bottom: 32px;
}

.tools-category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.tools-category-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tools-category-icon svg {
    width: 16px;
    height: 16px;
}

.tools-category-name {
    font-size: 0.82em;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tools-category-count {
    font-size: 0.72em;
    font-weight: 600;
    color: var(--text-faint);
    background: var(--bg-subtle);
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid var(--border-primary);
}

.tools-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}

.tool-chip {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    transition: all 0.2s;
    cursor: default;
    box-shadow: var(--shadow-card);
}

.tool-chip:hover {
    border-color: var(--accent-indigo-border);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.tool-chip-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-chip-name {
    font-size: 0.82em;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.tool-chip-desc {
    font-size: 0.78em;
    color: var(--text-muted);
    line-height: 1.5;
}

.tool-badge {
    font-size: 0.65em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 7px;
    border-radius: 5px;
}

.tool-badge.query {
    background: rgba(79, 70, 229, 0.08);
    color: var(--accent-indigo);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.tool-badge.count {
    background: rgba(8, 145, 178, 0.08);
    color: var(--accent-cyan);
    border: 1px solid rgba(8, 145, 178, 0.2);
}

.tool-badge.analyze {
    background: rgba(124, 58, 237, 0.08);
    color: var(--accent-purple);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.tool-badge.write {
    background: rgba(217, 119, 6, 0.08);
    color: var(--status-amber);
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.tool-badge.resolve {
    background: rgba(13, 148, 136, 0.08);
    color: var(--accent-teal);
    border: 1px solid rgba(13, 148, 136, 0.2);
}

.tool-badge.search {
    background: rgba(220, 38, 38, 0.08);
    color: var(--status-red);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.tool-badge.identity {
    background: rgba(5, 150, 105, 0.08);
    color: var(--accent-emerald);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.tool-badge.execute {
    background: rgba(234, 88, 12, 0.08);
    color: #EA580C;
    border: 1px solid rgba(234, 88, 12, 0.2);
}

.tool-badge.monitor {
    background: rgba(59, 130, 246, 0.08);
    color: #3B82F6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ==============================================
   CHAT DEMO (KEEP DARK)
   ============================================== */
.chat-demo {
    max-width: 560px;
}

.chat-window {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--code-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: var(--code-header);
    border-bottom: 1px solid var(--code-border);
}

.chat-header-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22C55E;
    animation: pulse-dot 2s ease-in-out infinite;
}

.chat-header-title {
    font-size: 0.78em;
    font-weight: 600;
    color: #94A3B8;
}

.chat-body {
    background: var(--code-bg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-msg {
    display: flex;
    gap: 10px;
    animation: fade-up 0.5s ease forwards;
}

.chat-msg.d1 { animation-delay: 0.3s; opacity: 0; }
.chat-msg.d2 { animation-delay: 1.2s; opacity: 0; }
.chat-msg.d3 { animation-delay: 2s; opacity: 0; }

.chat-avatar {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.7em;
    font-weight: 700;
}

.chat-avatar.user {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: #fff;
}

.chat-avatar.ai {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: #fff;
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.85em;
    line-height: 1.6;
    max-width: 85%;
}

.chat-bubble.user {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.15);
    color: #93C5FD;
}

.chat-bubble.ai {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.12);
    color: #CBD5E1;
}

.chat-result-card {
    margin-top: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.chat-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 0.88em;
}

.chat-result-label {
    color: #64748B;
}

.chat-result-value {
    font-weight: 700;
    color: #E2E8F0;
    font-family: var(--font-mono);
}

.chat-result-value.won {
    color: #34D399;
}

.chat-result-value.lost {
    color: #FB7185;
}

.chat-result-value.rate {
    color: #FBBF24;
}

.chat-typing {
    display: flex;
    gap: 4px;
    padding: 8px 0;
    animation: fade-up 0.4s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

.chat-typing span {
    width: 6px;
    height: 6px;
    background: #475569;
    border-radius: 50%;
    animation: typing-bounce 1.4s ease-in-out infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-row .step-card:last-child {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }

    .security-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .demo-text {
        padding: 0;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 130px 0 60px;
    }

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

    .steps-row {
        grid-template-columns: 1fr;
    }

    .steps-row .step-card:last-child {
        max-width: 100%;
    }

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

    .platforms-row {
        gap: 24px;
    }

    .nav-links {
        display: none;
    }

    .cta-card {
        padding: 36px 20px;
        border-radius: 16px;
    }

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

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .stats-row {
        gap: 24px;
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }

    .tool-chip {
        padding: 8px 12px;
    }

    .tool-chip-name {
        font-size: 0.78em;
    }

    .chat-demo {
        max-width: 100%;
    }
}

/* ==============================================
   ANIMATIONS
   ============================================== */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    opacity: 0;
    animation: fade-up 0.6s ease forwards;
}

.animate-in.d1 {
    animation-delay: 0.1s;
}

.animate-in.d2 {
    animation-delay: 0.2s;
}

.animate-in.d3 {
    animation-delay: 0.3s;
}

.animate-in.d4 {
    animation-delay: 0.4s;
}
