:root {
    /* AutoStream Core Palette */
    --bg-primary: #07111f;
    --bg-secondary: #0f1f36;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.08);
    --accent-primary: #1de9b6;
    --accent-secondary: #3aa9ff;
    --highlight: #8c7bff;
    --text-main: #ffffff;
    --text-muted: #9fb4c8;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

.muted { color: var(--text-muted); }
.center-text { text-align: center; }

/* Layout Utilities */
main {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.section-header { text-align: center; margin-bottom: 4rem; max-width: 800px; margin-inline: auto; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }

/* Hero Specifics */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 5rem; position: relative; }
.hero-content { position: relative; z-index: 3; max-width: 850px; }
.hero-title { font-size: 4.5rem; letter-spacing: -1.5px; margin-bottom: 1.5rem; }
.hero-subtitle { font-size: 1.8rem; font-weight: 500; margin-bottom: 1.5rem; color: var(--text-muted); }
.hero-copy { font-size: 1.15rem; color: var(--text-muted); max-width: 700px; margin-bottom: 2.5rem; }
.massive-text { font-size: 3.2rem; letter-spacing: -1px; }

.signal-badge {
    display: inline-block; padding: 0.5rem 1rem; border-radius: 20px;
    background: rgba(29, 233, 182, 0.1); border: 1px solid rgba(29, 233, 182, 0.3);
    color: var(--accent-primary); font-size: 0.85rem; font-weight: 600;
    margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1px;
}

/* Navigation */
.glass-nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: rgba(7, 17, 31, 0.5); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color); transition: var(--transition);
}
.nav-container.center-nav { display: flex; justify-content: center; padding: 1.5rem; }
.logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--text-main); text-decoration: none; }

/* UI Components */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.85rem 1.75rem; border-radius: 8px; font-weight: 600; font-size: 1rem;
    text-decoration: none; transition: var(--transition); cursor: pointer; border: none; outline: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #000; box-shadow: 0 4px 20px rgba(29, 233, 182, 0.2);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(29, 233, 182, 0.4); }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; }

.glass-card {
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 16px; padding: 2.5rem; backdrop-filter: blur(20px);
    transition: var(--transition); position: relative; overflow: hidden;
}
.glass-card:hover { border-color: rgba(255, 255, 255, 0.2); transform: translateY(-3px); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); }
.glass-card.large p { margin-bottom: 1.5rem; font-size: 1.05rem; }
.glass-card.large p:last-child { margin-bottom: 0; }

.icon-glow { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, var(--accent-primary), var(--highlight)); margin-bottom: 1.5rem; opacity: 0.8; }

.glass-input {
    width: 100%; padding: 1rem 1.5rem; background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-main);
    font-size: 1rem; font-family: var(--font-body); outline: none; transition: var(--transition);
}
.glass-input:focus { border-color: var(--accent-primary); box-shadow: 0 0 15px rgba(29, 233, 182, 0.1); }

/* Domain Tags */
.domain-grid { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.domain-tag {
    padding: 1rem 1.5rem; background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 30px; font-family: var(--font-heading); font-size: 1rem;
    transition: var(--transition); cursor: default;
}
.domain-tag:hover { border-color: var(--accent-primary); box-shadow: 0 0 20px rgba(29, 233, 182, 0.2); color: var(--accent-primary); }

/* Background Effects: Aurora & Bubbles/Particles */
.background-effects { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 0; overflow: hidden; pointer-events: none; background: var(--bg-primary); }
.aurora { position: absolute; border-radius: 50%; filter: blur(140px); opacity: 0.3; animation: float 20s infinite ease-in-out alternate; }
.aurora-1 { width: 600px; height: 600px; background: var(--accent-primary); top: -200px; left: -100px; }
.aurora-2 { width: 500px; height: 500px; background: var(--highlight); bottom: -100px; right: -100px; animation-delay: -5s; }
.aurora-3 { width: 700px; height: 700px; background: var(--accent-secondary); top: 30%; left: 40%; animation-delay: -10s; opacity: 0.2; }
#particle-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.6; z-index: 1; }

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    100% { transform: translate(100px, 150px) rotate(45deg) scale(1.2); }
}

/* Scroll Reveals */
.scroll-reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.visible.reveal-left, .visible.reveal-right { transform: translateX(0); }

/* Timeline UI */
.aie-timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--accent-primary), var(--highlight)); transform: translateX(-50%); opacity: 0.3; }
.timeline-item { display: flex; justify-content: flex-end; padding-right: 50%; position: relative; margin-bottom: 4rem; width: 100%; }
.timeline-item:nth-child(even) { justify-content: flex-start; padding-right: 0; padding-left: 50%; }
.timeline-item .glass-card { width: 90%; }
.timeline-dot { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; background: var(--bg-primary); border: 3px solid var(--accent-primary); border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 15px var(--accent-primary); z-index: 2; }

/* Demo & Streams UI */
.demo-container { display: flex; flex-direction: column; gap: 2rem; max-width: 800px; margin: 0 auto; }
.demo-input-group { display: flex; gap: 1rem; }
.demo-input-group input { flex: 1; }
.hidden { display: none !important; }

.streams-container { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1rem; padding: 2rem; background: rgba(0, 0, 0, 0.3); border-radius: 12px; border: 1px solid var(--border-color); }
.stream-step { display: flex; align-items: center; gap: 1.5rem; opacity: 0.4; transition: all 0.5s ease; }
.stream-step.processing, .stream-step.completed { opacity: 1; }
.stream-indicator { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--text-muted); background: transparent; transition: all 0.5s ease; flex-shrink: 0; }
.stream-step.processing .stream-indicator { border-color: var(--accent-primary); box-shadow: 0 0 15px rgba(29, 233, 182, 0.4); animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite; }
.stream-step.completed .stream-indicator { border-color: var(--accent-primary); background: var(--accent-primary); box-shadow: 0 0 10px rgba(29, 233, 182, 0.5); }
.stream-info h4 { margin: 0 0 0.2rem 0; font-family: var(--font-heading); font-size: 1.1rem; }
.stream-status { margin: 0; font-size: 0.9rem; font-family: monospace; }

.demo-final-cta { margin-top: 2rem; text-align: center; padding: 2.5rem; background: rgba(140, 123, 255, 0.05); border: 1px solid rgba(140, 123, 255, 0.2); border-radius: 12px; animation: fade-in-up 0.6s ease forwards; }

@keyframes pulse-ring { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(29, 233, 182, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(29, 233, 182, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(29, 233, 182, 0); } }
@keyframes fade-in-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Footer */
.glass-footer { border-top: 1px solid var(--border-color); background: rgba(7, 17, 31, 0.8); backdrop-filter: blur(20px); padding: 3rem 2rem; position: relative; z-index: 2; }

.specialties-text { font-size: 0.9rem; line-height: 2; color: rgba(255,255,255,0.4); margin-bottom: 2rem; }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-title { font-size: 3.5rem; }
    .hero-subtitle { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero { text-align: center; }
    .hero-content { margin: 0 auto; }
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-cta .btn { width: 100%; }
    
    .timeline-line { left: 20px; }
    .timeline-item { padding-right: 0; padding-left: 50px; justify-content: flex-start; margin-bottom: 2rem; }
    .timeline-item:nth-child(even) { padding-left: 50px; }
    .timeline-item .glass-card { width: 100%; }
    .timeline-dot { left: 20px; }
    
    .demo-input-group { flex-direction: column; }
    .massive-text { font-size: 2rem; }
}
