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

:root {
    --dark: #0a0a0a;
    --dark-alt: #151515;
    --dark-surface: #1a1a1a;
    --accent: #6366f1;
    --accent-purple: #8b5cf6;
    --text: #e5e5e5;
    --text-dim: #a1a1aa;
    --border: #27272a;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.nav {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1000;
    background: none;
    border: none;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    gap: 3rem;
}

.nav-menu a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

/* DESKTOP STYLES - Keep as is */
.hero { padding: 8rem 0 6rem; background: var(--dark); }
.hero-content { max-width: 1200px; margin: 0 auto; text-align: center; }
.hero h1 { font-family: 'Space Grotesk', sans-serif; font-size: 4.5rem; font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -0.03em; }
.gradient { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-purple) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-text { font-size: 1.375rem; color: var(--text-dim); margin-bottom: 4rem; line-height: 1.6; max-width: 900px; margin-left: auto; margin-right: auto; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4rem; margin-top: 4rem; }
.stat { border-left: 2px solid var(--accent); padding-left: 1.5rem; }
.stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.stat-label { color: var(--text-dim); font-size: 0.95rem; }
.products { padding: 6rem 0; background: var(--dark-alt); }
.section-head { text-align: center; margin-bottom: 4rem; }
.section-head h2 { font-family: 'Space Grotesk', sans-serif; font-size: 3rem; font-weight: 700; margin-bottom: 1rem; }
.section-head p { font-size: 1.25rem; color: var(--text-dim); }
.product-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.product-card { background: var(--dark-surface); border: 2px solid var(--border); border-radius: 16px; padding: 3rem; transition: transform 0.3s, border-color 0.3s; cursor: pointer; display: flex; flex-direction: column; min-height: 500px; }
.product-card:hover { transform: translateY(-4px); }
.product-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.product-icon { width: 48px; height: 48px; border-radius: 12px; }
.product-icon.purple { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-purple) 100%); }
.product-icon.blue { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.product-top h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.75rem; font-weight: 700; }
.product-desc { color: var(--text-dim); font-size: 1.05rem; line-height: 1.7; margin-bottom: 2rem; flex-grow: 1; }
.product-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.pstat-val { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 1.75rem; font-weight: 700; margin-bottom: 0.25rem; }
.pstat-lbl { display: block; font-size: 0.875rem; color: var(--text-dim); }
.products-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.products-intro { font-size: 1.125rem; color: var(--text-dim); margin-bottom: 3rem; line-height: 1.7; }
.product-list { display: flex; flex-direction: column; gap: 1.5rem; }
.product-item { display: flex; gap: 1.5rem; padding: 1.5rem; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: inherit; transition: all 0.3s ease; }
.product-item:hover { background: rgba(255, 255, 255, 0.04); border-color: var(--accent); transform: translateX(8px); }
.product-item-icon { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.product-item-icon.purple { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-purple) 100%); }
.product-item-icon.blue { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.product-item-content h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.product-item-content p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.6; margin-bottom: 0.75rem; }
.products-visual { position: relative; height: 500px; }
.floating-cards-container { position: relative; width: 100%; height: 100%; }
.floating-card { position: absolute; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; backdrop-filter: blur(10px); }
.floating-card.card-1 { top: 0; right: 20%; width: 240px; animation: float1 6s ease-in-out infinite; }
.floating-card.card-2 { top: 40%; left: 10%; width: 260px; animation: float2 7s ease-in-out infinite; animation-delay: -2s; }
.floating-card.card-3 { bottom: 10%; right: 15%; width: 220px; animation: float3 8s ease-in-out infinite; animation-delay: -4s; }
@keyframes float1 { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(-20px, -20px) rotate(2deg); } }
@keyframes float2 { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(15px, -15px) rotate(-2deg); } }
@keyframes float3 { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(-10px, -25px) rotate(1deg); } }
.platform-demo { padding: 8rem 0; background: var(--dark); position: relative; overflow: hidden; }
.platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.demo-content h2 { font-family: 'Space Grotesk', sans-serif; font-size: 3rem; font-weight: 700; margin-bottom: 1.5rem; line-height: 1.1; }
.demo-content p { font-size: 1.25rem; color: var(--text-dim); margin-bottom: 2.5rem; line-height: 1.7; }
.agents-container { display: flex; flex-direction: column; gap: 2rem; position: relative; }
.agent-card { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; position: relative; transition: all 0.4s ease; }
.agent-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.agent-icon { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-purple) 100%); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.agent-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; font-weight: 700; }
.agent-status { margin-left: auto; padding: 0.35rem 0.85rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; background: rgba(255, 255, 255, 0.05); color: var(--text-dim); }
.agent-body { color: var(--text-dim); font-size: 0.95rem; line-height: 1.6; min-height: 60px; }
.tech { padding: 6rem 0; background: var(--dark); }
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.approach { padding: 6rem 0; background: var(--dark-alt); }
.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-top: 4rem; }
.approach-card { background: var(--dark-surface); border: 1px solid var(--border); border-radius: 16px; padding: 3rem 2.5rem; }
.cta { padding: 6rem 0; background: var(--dark); }
.cta-box { text-align: center; max-width: 700px; margin: 0 auto; }
.cta-box h2 { font-family: 'Space Grotesk', sans-serif; font-size: 3rem; font-weight: 700; margin-bottom: 1.5rem; }
.cta-box p { font-size: 1.25rem; color: var(--text-dim); margin-bottom: 2.5rem; }
.btn { display: inline-block; background: var(--text); color: var(--dark); padding: 1.125rem 3rem; border-radius: 12px; font-weight: 600; font-size: 1.05rem; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1); }
.footer { background: var(--dark); padding: 5rem 0 2rem; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-logo { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.footer-desc { color: var(--text-dim); line-height: 1.7; max-width: 350px; }
.footer-title { font-weight: 600; margin-bottom: 1.5rem; font-size: 1.05rem; }
.footer-col a { display: block; color: var(--text-dim); text-decoration: none; margin-bottom: 1rem; font-size: 0.95rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { padding-top: 3rem; border-top: 1px solid var(--border); text-align: center; color: var(--text-dim); font-size: 0.9rem; }

.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-weight: 500; margin-bottom: 0.5rem; color: var(--text); }
.form-input, .form-textarea { width: 100%; padding: 1rem; background: var(--dark-surface); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 1rem; font-family: inherit; }
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--accent); }
.form-textarea { resize: vertical; }

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
    html, body { overflow-x: hidden; max-width: 100vw; }
    * { max-width: 100%; }
    
    .container { padding: 0 1.25rem !important; }
    
    /* HIDE CLUTTER */
    .products-visual,
    .floating-cards-container,
    .floating-card,
    #bgCanvas { display: none !important; }
    
    /* HIDE PRODUCT FEATURES ON MOBILE */
    .product-features { display: none !important; }
    
    /* MOBILE HERO - REPLACE STATS WITH SOCIAL PROOF */
    .stats { display: none !important; }
    .mobile-social-proof { display: block !important; }
    
    /* HIDE MULTI-AGENT DEMO ON MOBILE */
    .platform-demo { display: none !important; }
    
    /* HIDE APPROACH/DIAGRAM SECTION ON MOBILE */
    .approach { display: none !important; }
    
    /* REMOVE CTA BACKGROUND ON MOBILE */
    #particleCanvas { display: none !important; }
    .cta { background: var(--dark) !important; }
    
    /* ENLARGE API LAYER TEXT ON MOBILE */
    svg text { font-size: 18px !important; }
    svg text[font-size="12"] { font-size: 16px !important; }
    svg text[font-size="14"] { font-size: 18px !important; }
    
    /* NAV */
    .nav { backdrop-filter: none; }
    .nav .container { padding: 1rem 1.25rem !important; }
    .nav-logo { font-size: 1.25rem; }
    .nav-toggle { display: flex; }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }
    .nav-menu { position: fixed; top: 60px; left: 0; width: 100%; height: calc(100vh - 60px); background: var(--dark); flex-direction: column; gap: 0; padding: 1.5rem 0; visibility: hidden; opacity: 0; transition: all 0.3s; border-top: 1px solid var(--border); }
    .nav-menu.active { visibility: visible; opacity: 1; }
    .nav-menu a { width: 100%; padding: 1rem 1.5rem; text-align: center; border-bottom: 1px solid var(--border); }
    
    /* TIGHT SPACING */
    .hero, .products, .platform-demo, .tech, .approach, .cta { padding: 2rem 0 !important; }
    .section-head { margin-bottom: 2rem !important; }
    
    /* SMALL TEXT */
    .hero { min-height: 100vh !important; height: 100vh !important; padding: 2rem 0 !important; display: flex !important; align-items: center !important; justify-content: center !important; }
    .hero-content { height: auto !important; }
    .hero h1 { font-size: 1.85rem !important; margin-bottom: 1rem !important; line-height: 1.15 !important; }
    .hero-text { font-size: 0.95rem !important; margin-bottom: 2rem !important; }
    .mobile-social-proof { margin-top: 2rem !important; }
    .section-head h2 { font-size: 1.5rem !important; margin-bottom: 0.75rem !important; }
    .section-head p { font-size: 0.9rem !important; }
    
    /* STATS */
    .stats { grid-template-columns: 1fr !important; gap: 1.5rem !important; margin-top: 2rem !important; }
    .stat-num { font-size: 1.75rem !important; }
    
    /* GRIDS STACK */
    .products-grid, .platform-grid, .product-cards, .tech-grid, .approach-grid { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
    .footer-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
    
    /* PRODUCTS */
    .products-intro { font-size: 0.9rem !important; margin-bottom: 1.5rem !important; }
    .product-list { gap: 1rem !important; }
    .product-item { padding: 1rem !important; gap: 1rem !important; }
    .product-item:hover { transform: none !important; }
    .product-item-icon { width: 44px !important; height: 44px !important; }
    .product-item-content h3 { font-size: 1.05rem !important; margin-bottom: 0.35rem !important; }
    .product-item-content p { font-size: 0.85rem !important; line-height: 1.5 !important; }
    
    /* MINIMAL PRODUCT CARDS ON MOBILE */
    .product-item-content p { display: none !important; }
    .product-item-meta { display: none !important; }
    .product-item-content h3 { margin-bottom: 0 !important; }
    .product-item { align-items: center !important; }
    
    /* CARDS */
    .product-card, .agent-card, .approach-card { padding: 1.5rem !important; min-height: auto !important; }
    .product-card:hover, .agent-card:hover { transform: none !important; }
    .product-top { gap: 0.75rem !important; margin-bottom: 1rem !important; }
    .product-icon { width: 40px !important; height: 40px !important; }
    .product-top h3 { font-size: 1.15rem !important; }
    .product-desc { font-size: 0.875rem !important; margin-bottom: 1.25rem !important; }
    .product-stats { grid-template-columns: 1fr !important; gap: 1rem !important; }
    .pstat-val { font-size: 1.35rem !important; }
    
    /* PLATFORM */
    .demo-content h2 { font-size: 1.5rem !important; margin-bottom: 1rem !important; }
    .demo-content p { font-size: 0.9rem !important; margin-bottom: 1.5rem !important; }
    .agents-container { gap: 1rem !important; }
    .agent-header { gap: 0.75rem !important; margin-bottom: 1rem !important; }
    .agent-icon { width: 32px !important; height: 32px !important; }
    .agent-title { font-size: 1rem !important; }
    .agent-body { font-size: 0.85rem !important; min-height: auto; }
    
    /* CTA */
    .cta-box h2 { font-size: 1.5rem !important; margin-bottom: 1rem !important; }
    .cta-box p { font-size: 0.9rem !important; margin-bottom: 1.5rem !important; }
    .btn { padding: 0.875rem 2rem !important; font-size: 0.95rem !important; width: 100%; }
    .btn:hover { transform: none !important; }
    
    /* FOOTER */
    .footer { padding: 2.5rem 0 1.5rem !important; }
    
    /* NO ANIMATIONS */
    *, .nav, .product-card, .agent-card { backdrop-filter: none !important; animation: none !important; transition: none !important; }
    
    /* OVERRIDE INLINE STYLES */
    [style*="padding"] { padding: 1.5rem !important; }
    h1[style*="font-size"] { font-size: 1.85rem !important; }
    h2[style*="font-size"] { font-size: 1.5rem !important; }
    h3[style*="font-size"] { font-size: 1.15rem !important; }
    p[style*="font-size"] { font-size: 0.9rem !important; }
}

@media (min-width: 769px) {
    .nav-toggle { display: none !important; }
    .nav-menu { display: flex !important; visibility: visible !important; opacity: 1 !important; position: static !important; }
}
