/* ======================================
   Univox Website - Minimal Production
   ====================================== */

:root {
    --bg-color: #000;
    --primary-color: #00E676;
    --accent-color: #00B0FF;
    --text-primary: #fff;
    --text-secondary: #888;
    
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.06);
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html { scroll-behavior: smooth; }

/* ======================================
   AMBIENT LIGHT CANVAS
   ====================================== */
body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body::before,
body::after {
    content: '';
    position: fixed;
    pointer-events: none;
    z-index: -1;
}

body::before {
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 150vw;
    height: 80vh;
    background: radial-gradient(ellipse at center, rgba(0, 230, 118, 0.08), transparent 60%);
    filter: blur(80px);
}

body::after {
    bottom: -10%;
    left: 30%;
    width: 100vw;
    height: 60vh;
    background: radial-gradient(ellipse at center, rgba(0, 176, 255, 0.04), transparent 60%);
    filter: blur(100px);
}

.ambient-layer {
    position: fixed;
    top: 40%;
    right: -20%;
    width: 80vw;
    height: 80vh;
    background: radial-gradient(ellipse at center, rgba(0, 230, 118, 0.03), transparent 50%);
    filter: blur(120px);
    pointer-events: none;
    z-index: -1;
}

/* ======================================
   TYPOGRAPHY
   ====================================== */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    text-shadow: 
        0 0 20px rgba(0, 230, 118, 0.3),
        0 0 40px rgba(0, 230, 118, 0.2),
        0 0 80px rgba(0, 230, 118, 0.1);
}

h2 {
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    max-width: 650px;
    line-height: 1.8;
}

ul {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    margin: 0 auto 2.5rem;
    max-width: 500px;
    color: var(--text-secondary);
}

/* ======================================
   LAYOUT
   ====================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ======================================
   HEADER
   ====================================== */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(92%, 900px);
    height: 56px;
    z-index: 1000;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 0 1.5rem;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.03),
        0 4px 30px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(0, 230, 118, 0.05);
}

header nav {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo { 
    font-weight: 700; 
    font-size: 1rem; 
    display: flex; 
    gap: 0.5rem; 
    align-items: center;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-links { 
    display: flex; 
    gap: 1.5rem; 
    align-items: center; 
}

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

.nav-links a:hover { color: #fff; }

/* ======================================
   LEGAL PAGES
   ====================================== */
.legal-page {
    padding-top: 120px;
    padding-bottom: 6rem;
    width: 100%;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(20px);
}

.highlight-box {
    background: rgba(0, 230, 118, 0.05);
    border-left: 3px solid var(--primary-color);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0 12px 12px 0;
    color: #ddd;
}

/* ======================================
   FAQ & CONTACT (Support)
   ====================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: 0.2s;
}

.contact-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.faq-list {
    margin-top: 2rem;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 1rem;
}

.faq-question {
    padding: 1.5rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-size: 1.1rem;
    color: #fff;
}

.faq-answer {
    padding-bottom: 1.5rem;
    color: var(--text-secondary);
    display: none;
}

/* ======================================
   HERO (Index)
   ====================================== */
.hero {
    width: 100%;
    padding: 140px 0 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    background: rgba(0, 230, 118, 0.08);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 230, 118, 0.15);
}

/* ======================================
   BUTTONS
   ====================================== */
.btn-group { 
    display: flex; 
    gap: 1rem; 
    justify-content: center; 
    margin-bottom: 3rem; 
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: #fff;
    color: #000;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.08);
}

/* ======================================
   APP SHOWCASE
   ====================================== */
.app-showcase {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    /* Auto height to fit content, minimum aspect ratio */
    min-height: 350px; 
    background: rgba(10, 10, 10, 0.8);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    box-shadow: 
        0 0 0 1px rgba(255,255,255,0.02),
        0 0 60px rgba(0, 230, 118, 0.08),
        0 0 100px rgba(0, 176, 255, 0.04);
    display: flex; /* Flex to center content */
}

.showcase-inner {
    width: 100%;
    /* height: 100%; Removed fixed height */
    min-height: 100%;
    background: linear-gradient(135deg, #0a0a0a, #050505);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem; /* Reduced side padding */
}

.showcase-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0,230,118,0.12), transparent 70%);
    filter: blur(50px);
}

/* Flow Container */
.flow-container {
    display: flex;
    align-items: flex-start; /* Align to top for multiline labels */
    justify-content: center;
    gap: 1rem; /* Reduced gap */
    z-index: 10;
    position: relative;
    width: 100%;
    max-width: 500px; /* Constrain width */
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex: 1; /* Distribute space evenly */
}

.flow-bubble {
    width: 64px; /* Slightly larger for touch targets */
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    position: relative;
    flex-shrink: 0; /* Prevent shrinking */
}

.flow-bubble.input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.flow-bubble.ai {
    background: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 230, 118, 0.3);
    color: #000; /* Ensure contrast */
}

.flow-bubble.output {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.25);
    color: var(--primary-color);
}

.flow-label {
    font-size: 0.85rem;
    color: #aaa;
    text-align: center;
    line-height: 1.3;
    width: 100%;
}

.flow-sublabel {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 0.2rem;
}

.flow-arrow {
    font-size: 1.2rem;
    color: #444;
    margin-top: 18px; /* Align with bubbles */
    flex-shrink: 0;
}

.mic-pulse {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5); /* Lighter pulse */
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* ======================================
   FOOTER
   ====================================== */
footer {
    padding: 2rem 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.06), transparent);
}

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

.footer-content p {
    font-size: 0.85rem;
    color: #444;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: #555;
    text-decoration: none;
    transition: 0.2s;
}

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

/* ======================================
   RESPONSIVE
   ====================================== */
@media (max-width: 768px) {
    header { 
        top: 12px; 
        width: calc(100% - 24px); 
        padding: 0 1rem;
        height: 50px;
    }
    
    .nav-links { gap: 1rem; }
    .nav-links a { font-size: 0.8rem; }
    
    .hero { padding-top: 100px; }
    
    h1 { font-size: 2rem; }
    .subtitle { font-size: 1rem; }
    
    .btn-group { flex-direction: column; width: 100%; max-width: 280px; margin: 0 auto 2rem; }
    .btn { width: 100%; justify-content: center; }
    
    .app-showcase { aspect-ratio: 4/3; }
    
    .flow-container { 
        gap: 0.75rem; 
    }
    
    .flow-bubble {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
    
    .flow-label {
        font-size: 0.65rem;
        max-width: 80px;
    }
    
    .flow-arrow {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .legal-container { padding: 1.5rem; }
}
