:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --danger-color: #ef4444;
    --success-color: #22c55e;
    --font-family: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% 0%, #1e293b 0%, #0f172a 100%);
}

.app-container {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

header {
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Visualizer */
.visualizer-container {
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.visualizer-container.active {
    opacity: 1;
}

.wave {
    width: 6px;
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 10px;
    animation: wave 1s ease-in-out infinite;
}

.wave:nth-child(1) {
    animation-delay: 0.0s;
    height: 40%;
}

.wave:nth-child(2) {
    animation-delay: 0.1s;
    height: 70%;
}

.wave:nth-child(3) {
    animation-delay: 0.2s;
    height: 100%;
}

.wave:nth-child(4) {
    animation-delay: 0.3s;
    height: 70%;
}

.wave:nth-child(5) {
    animation-delay: 0.4s;
    height: 40%;
}

@keyframes wave {

    0%,
    100% {
        transform: scaleY(0.5);
    }

    50% {
        transform: scaleY(1.2);
    }
}

/* Controls */
.controls {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.btn-record {
    background: linear-gradient(135deg, var(--accent-color), #2563eb);
    border: none;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: all 0.3s ease;
}

.btn-record:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-record.recording {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Output Area */
.output-container {
    background-color: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

textarea {
    width: 100%;
    height: 200px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.6;
    resize: none;
    outline: none;
    font-family: var(--font-family);
}

textarea::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.btn-action {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-action:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Landing Page Styles */
.landing-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}

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

.nav-logo {
    width: 40px;
    height: 40px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #2563eb);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-primary.small {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.btn-primary.large {
    padding: 1rem 3rem;
    font-size: 1.2rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.btn-secondary.large {
    padding: 1rem 3rem;
    font-size: 1.2rem;
}

.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 0;
    flex: 1;
    position: relative;
}

.hero-content {
    max-width: 600px;
    z-index: 10;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.gradient-text {
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

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

.hero-visual {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-circle {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-color);
    filter: blur(60px);
    opacity: 0.4;
    animation: float 6s ease-in-out infinite;
}

.c1 {
    width: 300px;
    height: 300px;
    background: #3b82f6;
    animation-delay: 0s;
}

.c2 {
    width: 200px;
    height: 200px;
    background: #8b5cf6;
    animation-delay: -2s;
}

.c3 {
    width: 150px;
    height: 150px;
    background: #ec4899;
    animation-delay: -4s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.features-section {
    padding: 6rem 0;
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--text-primary);
}

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

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.9);
}

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

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

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

.landing-footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .landing-container {
        padding: 0 1.5rem;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .landing-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn-primary.large,
    .btn-secondary.large {
        width: 100%;
        padding: 1rem;
    }

    .hero-visual {
        display: none;
    }

    .features-section {
        padding: 4rem 0;
    }

    .features-section h2 {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    .browsers-section {
        padding: 4rem 0;
    }

    .browsers-grid {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

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

    .browser-card {
        width: 100%;
        max-width: 280px;
    }
}

/* Browser Section Styles */
.browsers-section {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(30, 41, 59, 0.3) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.browsers-section h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--text-primary);
}

.browsers-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.browser-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    width: 200px;
}

.browser-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.browser-icon {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.browser-card:hover .browser-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.2));
}

.browser-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.browser-card h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.browser-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.browser-note {
    margin-top: 3rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}