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

:root {
    --primary-color: #4A9EFF;
    --secondary-color: #00D4FF;
    --dark-bg: #0a0a0f;
    --darker-bg: #050507;
    --card-bg: rgba(20, 20, 35, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #a8a8b3;
    --border-color: rgba(255, 255, 255, 0.1);
    --gradient: linear-gradient(135deg, #4A9EFF 0%, #00D4FF 100%);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Removed supernova background - using real image now */
/* Keep these for demo and support pages */
.supernova-bg {
    display: none;
}

.stars-static {
    display: none;
}

/* Nebula background for lower sections */
.nebula-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    z-index: 0;
    background: 
        linear-gradient(125deg, transparent 0%, rgba(138, 43, 226, 0.1) 40%, transparent 100%),
        linear-gradient(235deg, transparent 0%, rgba(30, 144, 255, 0.1) 40%, transparent 100%),
        linear-gradient(45deg, transparent 0%, rgba(255, 20, 147, 0.05) 40%, transparent 100%);
    background-size: 300% 300%;
    animation: nebula-drift 30s ease-in-out infinite;
}

.nebula-bg::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 30% 40%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(2px 2px at 50% 60%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 70% 30%, rgba(255, 255, 255, 0.25), transparent),
        radial-gradient(1px 1px at 90% 80%, rgba(255, 255, 255, 0.15), transparent),
        radial-gradient(2px 2px at 20% 70%, rgba(74, 158, 255, 0.2), transparent),
        radial-gradient(1px 1px at 60% 90%, rgba(0, 212, 255, 0.2), transparent),
        radial-gradient(1px 1px at 40% 10%, rgba(255, 255, 255, 0.2), transparent);
    background-size: 100% 100%;
    animation: constellation-twinkle 4s ease-in-out infinite alternate;
}

.nebula-bg::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(74, 158, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 100, 200, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(0, 212, 255, 0.04) 0%, transparent 50%);
    animation: cosmic-dust 20s linear infinite;
}

@keyframes nebula-drift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes constellation-twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

@keyframes cosmic-dust {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    cursor: pointer;
    letter-spacing: -0.01em;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

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

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.login-btn {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: opacity 0.3s;
}

.login-btn:hover {
    opacity: 0.8;
}

.cta-btn {
    background: var(--gradient);
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(74, 158, 255, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    width: 100%;
    position: relative;
    background-image: 
        linear-gradient(to bottom, rgba(10, 10, 15, 0.3), rgba(10, 10, 15, 0.7)),
        url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero content wrapper */
.hero-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

/* WebP support with fallback */
.webp .hero {
    background-image: 
        linear-gradient(to bottom, rgba(10, 10, 15, 0.3), rgba(10, 10, 15, 0.7)),
        url('hero-bg.webp');
}

/* Mobile-specific background handling */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll; /* Fixed background can be janky on mobile */
        background-position: center center;
    }
}

/* Tablet-specific adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero {
        background-position: center center;
    }
}

/* Removed floating elements for cleaner professional look */

.hero-content {
    flex: 1;
    max-width: 550px;
    padding-right: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.primary-btn {
    background: var(--gradient);
    color: var(--text-primary);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(74, 158, 255, 0.3);
}

.secondary-btn {
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 100px;
    border: 2px solid var(--border-color);
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.secondary-btn:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(74, 158, 255, 0.2);
}

/* Hero Visual - Chat Demo */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
    min-width: 450px;
}

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

.chat-window {
    background: rgba(20, 20, 35, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.chat-header {
    background: rgba(30, 30, 45, 0.95);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.chat-header-icon {
    color: var(--primary-color);
}

.chat-header-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.chat-status-dot {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    margin-left: auto;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7); }
    50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(0, 255, 0, 0); }
}

.chat-messages {
    padding: 1.5rem;
    height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.message {
    display: flex;
    gap: 0.75rem;
    opacity: 0;
    animation: messageSlideIn 0.5s ease-out forwards;
}

.user-message {
    animation-delay: 0.5s;
}

.bot-message {
    animation-delay: 2s;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-avatar {
    background: #5B5FC7;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

.bot-avatar {
    background: transparent;
}

.message-content {
    flex: 1;
}

.message-author {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.message-text {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.message-text code {
    background: rgba(74, 158, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', monospace;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.message-source {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.message-source a {
    color: var(--primary-color);
    text-decoration: none;
}

.message-source a:hover {
    text-decoration: underline;
}

/* Typing Indicator */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.75rem;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: typing 1.4s ease-in-out infinite;
}

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

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

@keyframes typing {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-10px);
    }
}

.chat-input {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(30, 30, 45, 0.95);
    border-top: 1px solid var(--border-color);
}

.chat-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.send-btn {
    background: var(--gradient);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(74, 158, 255, 0.3);
}

/* Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

section:not(.hero) {
    background: linear-gradient(180deg, var(--dark-bg) 0%, rgba(10, 10, 15, 0.95) 100%);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h3 {
    font-weight: 600;
    letter-spacing: -0.01em;
}

h4 {
    font-weight: 600;
    letter-spacing: -0.01em;
}

.section-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 3rem;
}

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(74, 158, 255, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card ul {
    list-style: none;
    color: var(--text-secondary);
}

.feature-card li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.feature-card li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Advantages */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.advantage-card {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.1), rgba(0, 212, 255, 0.1));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s;
}

.advantage-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(74, 158, 255, 0.2);
}

.advantage-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.advantage-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Use Cases */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.use-case {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.use-case:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.use-case h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.use-case p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Technical Specs */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.spec {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.spec-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.spec-value {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Code Block */
.code-block {
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    font-family: 'Monaco', 'Courier New', monospace;
}

.code-block code {
    color: #4A9EFF;
    font-size: 0.95rem;
    line-height: 1.6;
}

.center-text {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 2rem;
}

/* Footer */
footer {
    background: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-top: 5rem;
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-tagline {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Deployment Section */
.deployment-section {
    margin-top: 4rem;
}

.deployment-section h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.deployment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.deployment-card {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.1), rgba(0, 212, 255, 0.05));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.deployment-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(74, 158, 255, 0.2);
}

.deployment-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.deployment-card h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.deployment-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* LLM Section */
.llm-section {
    margin-top: 4rem;
}

.llm-section h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.llm-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.llm-option {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.llm-option:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(74, 158, 255, 0.15);
}

.llm-option h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.llm-option ul {
    list-style: none;
    color: var(--text-secondary);
}

.llm-option li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.llm-option li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Agent Query Section - Different Theme */
.agent-query {
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #0a0f0a 0%, #0d1410 50%, #0a0f0a 100%);
    border-top: 1px solid #00ff41;
    border-bottom: 1px solid #00ff41;
}

/* Agent Query Hero Layout */
.agent-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin: 4rem auto;
    max-width: 1300px;
    padding: 0 2rem;
}

.agent-left {
    padding-right: 2rem;
}

.agent-left h3 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    line-height: 1.3;
}

.agent-left p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.agent-right {
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .agent-hero {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .agent-left {
        padding-top: 0;
    }
}

/* Interactive CLI Demo */
.cli-demo-container {
    width: 100%;
    margin: 0;
}

.cli-window {
    background: #000;
    border: 1px solid #00ff41;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 255, 65, 0.2);
    width: 100%;
    max-width: 700px;
}

.cli-header {
    background: linear-gradient(90deg, #0a0f0a 0%, #0d1410 100%);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #00ff41;
}

.cli-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.cli-title {
    color: #00ff41;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.cli-content {
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    min-height: 500px;
    max-height: 600px;
    overflow-y: auto;
}

.cli-line {
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 0.5s forwards;
}

.cli-line.user-line { color: #00ff41; }
.cli-line.agent-line { color: #4A9EFF; }
.cli-line.sql-line { color: #ffbd2e; }
.cli-line.answer-line { color: #27c93f; }
.cli-line.cursor-line { color: #00ff41; }

.prompt {
    font-weight: bold;
    margin-right: 0.75rem;
}

.prompt.agent { color: #4A9EFF; }
.prompt.sql { color: #ffbd2e; }
.prompt.answer { color: #27c93f; }

.typed-text, .thinking, .sql-query, .answer-text {
    display: inline-block;
}

.sql-query {
    font-size: 0.9rem;
    color: #ffd700;
}

/* SQL Table Styles */
.sql-table {
    margin: 1rem 0 2rem 3rem;
    opacity: 0;
    animation: fadeInUp 0.5s forwards;
}

.sql-table table {
    background: #0a0f0a;
    border: 1px solid #00ff41;
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    min-width: 500px;
}

.sql-table th {
    background: #00ff41;
    color: #000;
    padding: 0.5rem 1rem;
    text-align: left;
    font-weight: bold;
}

.sql-table td {
    color: #00ff41;
    padding: 0.5rem 1rem;
    border-top: 1px solid rgba(0, 255, 65, 0.2);
}

.sql-table tr:hover td {
    background: rgba(0, 255, 65, 0.05);
}

/* CLI Cursor Animation */
.cli-cursor {
    display: inline-block;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

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



.data-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
    pointer-events: none;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.product-badge-alt {
    display: inline-block;
    background: #000;
    border: 1px solid #00ff41;
    color: #00ff41;
    padding: 0.5rem 1.5rem;
    border-radius: 0;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    font-weight: 500;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.agent-title {
    font-family: 'Courier New', monospace;
    font-size: 3rem;
    color: #00ff41;
    margin-bottom: 0.5rem;
    text-align: center;
}

.terminal-prompt {
    color: #00ff41;
    opacity: 0.5;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.cursor-blink {
    animation: blink 1s infinite;
    color: #00ff41;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.subtitle-terminal {
    text-align: center;
    color: #00cc35;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.8;
}

.agent-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
    align-items: center;
}

.data-gradient {
    background: linear-gradient(90deg, #00ff41, #00cc35, #00ff41);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.agent-content p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Database Animation Visual */
.agent-visual-new {
    perspective: 1000px;
}

.database-animation {
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-10deg);
}

.db-table {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff41;
    border-radius: 0;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    animation: float-table 3s ease-in-out infinite;
    animation-delay: var(--delay);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

@keyframes float-table {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.table-header {
    color: #00ff41;
    border-bottom: 1px solid #00ff41;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.table-row {
    color: #00cc35;
    padding: 0.25rem 0;
    opacity: 0.8;
}

.db-connection {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ff41, transparent);
    animation: connection-pulse 2s infinite;
}

@keyframes connection-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.agent-features {
    display: grid;
    gap: 3rem;
    margin: 4rem auto;
    max-width: 1300px;
    padding: 0 2rem;
}

.agent-feature {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #00ff41;
    border-radius: 0;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.agent-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff41, transparent);
    animation: scan-line 3s linear infinite;
}

@keyframes scan-line {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.agent-feature h4 {
    color: #00ff41;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

.agent-feature ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: rgba(0, 255, 65, 0.8);
    font-family: 'Courier New', monospace;
}

.agent-feature li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.agent-interfaces {
    margin: 5rem auto 4rem;
    text-align: center;
    max-width: 1300px;
    padding: 0 2rem;
}

.agent-interfaces h3 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.interface-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.interface-card {
    background: #000;
    border: 1px solid #00ff41;
    border-radius: 0;
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
}

.interface-card::after {
    content: '>';
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #00ff41;
    font-family: 'Courier New', monospace;
    animation: blink 1s infinite;
}

.interface-card:hover {
    transform: translateY(-5px);
    border-color: #00ff41;
    box-shadow: 0 20px 40px rgba(0, 255, 65, 0.2);
    background: rgba(0, 255, 65, 0.05);
}

.interface-card h4 {
    color: #00ff41;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

.interface-card p {
    color: rgba(0, 204, 53, 0.9);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

.agent-benefits {
    margin: 4rem auto;
    max-width: 1300px;
    padding: 0 2rem;
}

.agent-benefits h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.agent-benefits h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #00ff41;
    font-family: 'Courier New', monospace;
}

.benefit {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 0;
    border-left: 3px solid #00ff41;
    color: rgba(0, 255, 65, 0.8);
    transition: all 0.3s;
    font-family: 'Courier New', monospace;
}

.benefit:hover {
    background: rgba(0, 255, 65, 0.05);
    transform: translateX(5px);
    border-left-width: 5px;
}

.agent-cta {
    text-align: center;
    margin: 4rem auto 0;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #00ff41;
    border-radius: 0;
    position: relative;
    max-width: 1300px;
}

.agent-cta::before,
.agent-cta::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 1px solid #00ff41;
    background: #000;
}

.agent-cta::before {
    top: -5px;
    left: -5px;
}

.agent-cta::after {
    bottom: -5px;
    right: -5px;
}

.agent-cta h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: #00ff41;
    font-family: 'Courier New', monospace;
}

.agent-cta p {
    color: rgba(0, 255, 65, 0.8);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
    font-family: 'Courier New', monospace;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .primary-btn,
.cta-buttons .secondary-btn {
    background: #000;
    border: 1px solid #00ff41;
    color: #00ff41;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    transition: all 0.3s;
}

.cta-buttons .primary-btn:hover {
    background: #00ff41;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.cta-buttons .secondary-btn:hover {
    background: rgba(0, 255, 65, 0.1);
    border-color: #00ff41;
    color: #00ff41;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Agent Query Mobile Styles */
    .agent-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .interface-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .primary-btn,
    .cta-buttons .secondary-btn {
        width: 100%;
    }
    
    .hero-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 6rem 1rem 3rem;
        gap: 2.5rem;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 0 1rem;
        padding-right: 1rem;
    }
    
    .hero-visual {
        min-width: unset;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .hero-actions {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }
    
    .primary-btn, .secondary-btn {
        width: 100%;
        max-width: 300px;
    }
    
    
    .hero-visual {
        width: 100%;
        margin-top: 2rem;
    }
    
    .chat-demo {
        max-width: 100%;
    }
    
    .chat-window {
        max-width: 100%;
    }
    
    .chat-messages {
        height: 250px;
    }
    
    .nav-links {
        display: none;
    }
    
    .features-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-element {
        display: none; /* Hide floating elements on mobile */
    }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 7rem 2rem 4rem;
        gap: 3rem;
    }
    
    .hero-content {
        max-width: 100%;
        padding-right: 0;
    }
    
    .hero-visual {
        min-width: unset;
        width: 100%;
        max-width: 500px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.3rem;
    }
    
    .hero-stats {
        justify-content: center;
        margin: 2rem 0;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large screens */
@media (min-width: 1920px) {
    .hero {
        background-size: cover;
        background-position: center center;
    }
    
    .hero-wrapper {
        max-width: 1600px;
        gap: 6rem;
    }
    
    .hero-content {
        max-width: 650px;
    }
    
    .chat-demo {
        max-width: 550px;
    }
}