/* CSS Custom Properties - Dark Minimalist Tech Theme */
:root {
    /* Primary colors */
    --primary-blue: #3B82F6;
    --primary-blue-light: #60A5FA;
    --primary-blue-dark: #2563EB;

    /* Background colors - Dark theme */
    --bg-primary: #0A0A0B;
    --bg-secondary: #111113;
    --bg-tertiary: #1A1A1D;
    --bg-card: #161618;

    /* Text colors */
    --text-primary: #FAFAFA;
    --text-secondary: #A1A1AA;
    --text-tertiary: #71717A;

    /* Accent colors */
    --accent-blue: #3B82F6;
    --accent-cyan: #06B6D4;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.12);

    /* Effects */
    --glow-subtle: 0 0 40px rgba(59, 130, 246, 0.15);
    --glow-medium: 0 0 60px rgba(59, 130, 246, 0.25);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-elevated: 0 8px 40px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-blue);
    color: var(--bg-primary);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    font-weight: 500;
}

.skip-link:focus {
    top: 0;
}

/* Focus Styles for Keyboard Navigation */
a:focus,
button:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    transition: border-color 0.3s ease;
}

.navbar.scrolled {
    border-bottom-color: var(--border-medium);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

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

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

.nav-cta {
    padding: 0.6rem 1.4rem;
    background: var(--accent-blue);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.nav-cta:hover {
    background: var(--primary-blue-light);
    border-color: var(--border-subtle);
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    padding: 180px 0 120px;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(6, 182, 212, 0.08), transparent);
    pointer-events: none;
}

@keyframes gradientShift {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(5%) translateY(5%); }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 500px;
}

.hero-cta {
    padding: 1rem 2rem;
    font-size: 1rem;
    background: var(--accent-blue);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--glow-subtle);
}

.hero-cta:hover {
    background: var(--primary-blue-light);
    box-shadow: var(--glow-medium);
}

.hero-requirements {
    margin-top: 1rem;
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.voice-animation {
    position: relative;
    width: 300px;
    height: 300px;
}

.wave {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--accent-blue);
    opacity: 0;
    animation: wave 3s ease-out infinite;
}

.wave-1 { animation-delay: 0s; }
.wave-2 { animation-delay: 1s; }
.wave-3 { animation-delay: 2s; }

@keyframes wave {
    0% {
        width: 100px;
        height: 100px;
        opacity: 0.8;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent-blue);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.cta-button:hover {
    background: var(--primary-blue-light);
    transform: translateY(-2px);
    box-shadow: var(--glow-subtle);
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--bg-secondary);
}

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

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-card);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-medium);
    box-shadow: var(--shadow-elevated);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--accent-blue);
    stroke: var(--accent-blue);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Demo Section */
.demo {
    padding: 100px 0;
    background: var(--bg-primary);
}

.demo-video-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.demo-placeholder {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow-card);
}

.demo-interface {
    text-align: center;
}

.demo-microphone {
    width: 64px;
    height: 64px;
    margin: 0 auto 2rem;
    color: var(--accent-blue);
    stroke: var(--accent-blue);
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
}

.demo-text {
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
    border: 1px solid var(--border-subtle);
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: var(--bg-secondary);
}

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

.testimonial-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-card);
}

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

.testimonial-stars {
    font-size: 1rem;
    text-align: center;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-quote {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.testimonial-author {
    font-weight: 500;
    color: var(--accent-blue);
    text-align: center;
    font-size: 0.9rem;
}

/* Download Section */
.download {
    padding: 120px 0;
    background: var(--bg-primary);
    text-align: center;
    position: relative;
}

.download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 60% 40% at 50% 100%, rgba(59, 130, 246, 0.12), transparent);
    pointer-events: none;
}

.download-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.download-cta {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--accent-blue);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--glow-subtle);
    position: relative;
    z-index: 1;
}

.download-cta:hover {
    background: var(--primary-blue-light);
    box-shadow: var(--glow-medium);
}

.download-cta {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    display: inline-block;
    background: var(--accent-blue);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--glow-subtle);
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-copyright {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

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

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

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

/* Lazy Loading Images */
img {
    loading: lazy;
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-subtle);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-cta {
        display: none;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .download-title {
        font-size: 2rem;
    }

    .download-cta {
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .features-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 300px;
    max-width: 500px;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.toast.success {
    background: #10B981;
    color: white;
}

.toast.error {
    background: #EF4444;
    color: white;
}

.toast.info {
    background: #0066FF;
    color: white;
}

.toast.hiding {
    animation: slideOut 0.3s ease-in forwards;
}

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

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

@media (max-width: 768px) {
    .toast {
        min-width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
    }
}
