:root {
    --bg-base: #030712; /* Slate 950 */
    --bg-surface: #0f172a; /* Slate 900 */
    --bg-glass: rgba(15, 23, 42, 0.6);
    --border-glass: rgba(148, 163, 184, 0.1);
    
    --text-main: #f8fafc; /* Slate 50 */
    --text-muted: #94a3b8; /* Slate 400 */
    
    --accent: #38bdf8; /* Light Blue 400 */
    --accent-glow: rgba(56, 189, 248, 0.4);
    --primary: #818cf8; /* Indigo 400 */
    --primary-glow: rgba(129, 140, 248, 0.4);
    
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-display: 'Outfit', system-ui, sans-serif;
    
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-base);
    line-height: 1.6;
}

body {
    overflow-x: hidden;
    position: relative;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.1;
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }

/* Layout Utils */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

/* UI Elements */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    border: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    color: var(--text-main);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Background Effects */
.glow-background {
    position: absolute;
    top: -20vh;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 60vh;
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.15) 0%, rgba(3, 7, 18, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-glass);
    transition: background-color var(--transition-fast);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-main);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-glass);
    position: absolute;
    top: 4.5rem;
    left: 0;
    width: 100%;
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-link {
    padding: 1rem 0;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--border-glass);
}

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-size: 50px 50px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, black 20%, transparent 80%);
    -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 80%);
    z-index: 0;
    pointer-events: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: pulse-dot 2s infinite;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 5rem;
}

/* Mockup UI */
.hero-dashboard-mockup {
    margin: 0 auto;
    max-width: 900px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
}

.hero-dashboard-mockup::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(135deg, var(--accent-glow), transparent, var(--primary-glow));
    z-index: -1;
    border-radius: calc(var(--radius-lg) + 2px);
}

.mockup-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
}

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

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-glass);
}
.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #eab308; }
.mockup-dots span:nth-child(3) { background: #22c55e; }

.mockup-url {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 2rem;
    border-radius: 4px;
}

.mockup-body {
    display: flex;
    height: 400px;
}

.dashboard-sidebar {
    width: 60px;
    border-right: 1px solid var(--border-glass);
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.sidebar-item {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-item.active {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.dashboard-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-top {
    display: flex;
    gap: 1rem;
}

.stat-card {
    flex: 1;
    height: 80px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
}

.dashboard-main {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.chart-area {
    flex: 2;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    gap: 1rem;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary), var(--accent));
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
}

.h-60 { height: 60%; }
.h-80 { height: 80%; }
.h-40 { height: 40%; }
.h-100 { height: 100%; }
.h-70 { height: 70%; }

.ai-chat-area {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-bubble {
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    max-width: 90%;
}

.chat-bubble.bot {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent);
    align-self: flex-start;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.chat-bubble.user {
    background: rgba(255, 255, 255, 0.1);
    align-self: flex-end;
}

.chat-input-mock {
    margin-top: auto;
    height: 30px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
}

/* Sections */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 4rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: transform var(--transition-smooth), border-color var(--transition-fast);
}

.hover-lift:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(56, 189, 248, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Integrations Section */
.bg-darker {
    background: #02040a;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.check-icon {
    width: 24px;
    height: 24px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.integration-circle-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    z-index: 10;
    border: 2px solid var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}

.pulse {
    animation: pulse-ring 3s infinite;
}

.orbit-item {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    z-index: 5;
    animation: orbit 20s linear infinite;
}

.item-1 { animation-delay: 0s; transform-origin: 180px center; }
.item-2 { animation-delay: -6.66s; transform-origin: 180px center; }
.item-3 { animation-delay: -13.33s; transform-origin: 180px center; }

/* Deployment Cards */
.deployment-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.deployment-card {
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.border-accent { border-color: rgba(56, 189, 248, 0.3); }
.border-primary { border-color: rgba(129, 140, 248, 0.3); }

.hover-glow:hover.border-accent { box-shadow: 0 0 40px rgba(56, 189, 248, 0.15); transform: translateY(-5px); }
.hover-glow:hover.border-primary { box-shadow: 0 0 40px rgba(129, 140, 248, 0.15); transform: translateY(-5px); }

.card-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.card-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.card-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.check-list {
    list-style: none;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.check-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.check-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* CTA Section */
.cta-section {
    padding: 8rem 0;
    border-top: 1px solid var(--border-glass);
}

.cta-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    opacity: 0.3;
    z-index: 0;
}

.contact-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 3rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    min-width: 280px;
}

.contact-text {
    color: var(--text-main);
    font-size: 1.125rem;
    font-weight: 600;
}

.contact-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-glass);
    padding: 4rem 0 2rem;
    background: #02040a;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-desc {
    color: var(--text-muted);
    max-width: 300px;
    font-size: 0.95rem;
}

.footer-links {
    display: contents;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.link-group a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.link-group a:hover {
    color: var(--text-main);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
}

/* Animations */
@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(56, 189, 248, 0); }
    100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4); }
    50% { box-shadow: 0 0 30px 10px rgba(56, 189, 248, 0.1); }
    100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4); }
}

@keyframes orbit {
    0% { transform: rotate(0deg) translateX(160px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(160px) rotate(-360deg); }
}

.animate-fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Responsive */
@media (max-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
    
    .integration-circle-wrapper {
        max-width: 400px;
        margin: 0 auto;
        padding-top: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .btn {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    @keyframes orbit {
        0% { transform: rotate(0deg) translateX(120px) rotate(0deg); }
        100% { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
    }
    
    .orbit-item {
        width: 60px;
        height: 60px;
    }
    
    .center-circle {
        width: 100px;
        height: 100px;
    }
}

/* --- Demo Link Styles --- */

/* Glowing "Try Live Demo" button */
.btn-demo {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-demo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
    border-radius: inherit;
    pointer-events: none;
}

.btn-demo:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 32px rgba(16, 185, 129, 0.5);
    filter: brightness(1.08);
}

/* Navbar "Live Demo" link */
.nav-link-demo {
    color: #10b981 !important;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600 !important;
}

.nav-link-demo:hover {
    color: #34d399 !important;
}

/* Pulsing green dot indicator */
.demo-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
    animation: pulse-demo-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-demo-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(16, 185, 129, 0.8); }
    50%       { opacity: 0.6; box-shadow: 0 0 14px rgba(16, 185, 129, 0.4); }
}

/* Mobile demo nav link */
.mobile-nav-link-demo {
    color: #10b981 !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

/* Hero demo note */
.hero-demo-note {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: -3rem;
    margin-bottom: 2rem;
    opacity: 0.85;
}

.hero-demo-note strong {
    color: var(--text-main);
}

