:root {
    --primary-bg: #0a0e27;
    --secondary-bg: #1a1d2e;
    --glass-bg: rgba(26, 29, 46, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary-gradient: linear-gradient(135deg, #00d4ff 0%, #0099ff 50%, #9333ea 100%);
    --secondary-gradient: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --glow-blue: rgba(0, 212, 255, 0.5);
    --glow-purple: rgba(147, 51, 234, 0.5);
}

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

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

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.navbar {
    position: relative;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

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

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
    box-shadow: 0 0 10px var(--glow-blue);
}

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

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline:hover {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: var(--text-primary);
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
}

.hero {
    position: relative;
    z-index: 1;
    padding: 4rem 5% 6rem;
}

.hero-content {
    display: flex;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-left {
    flex: 1;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(20deg); }
}

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

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

.btn-cta {
    background: var(--primary-gradient);
    border: none;
    color: var(--text-primary);
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-cta:hover::before {
    width: 300px;
    height: 300px;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.dashboard-card {
    flex: 1;
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: fadeInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--primary-gradient);
    border-radius: 24px;
    opacity: 0.3;
    filter: blur(20px);
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
}

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

/* Mode Toggle */
.mode-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 12px;
}

.mode-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mode-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.mode-btn.active {
    background: var(--primary-gradient);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.mode-content {
    display: none;
}

.mode-content.active {
    display: block !important;
}

/* Speaker Voices */
.speaker-voices {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.speaker-voice-item {
    display: flex;
    gap: 0.75rem;
}

.speaker-input {
    flex: 1;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.speaker-input:focus {
    outline: none;
    border-color: rgba(0, 212, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.speaker-input::placeholder {
    color: var(--text-muted);
}

.speaker-select {
    flex: 1;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.speaker-select:focus {
    outline: none;
    border-color: rgba(0, 212, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    font-weight: 600;
    font-size: 1.1rem;
}

.header-tabs {
    margin-left: auto;
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.header-tabs span {
    cursor: pointer;
    transition: color 0.3s;
}

.header-tabs span:hover {
    color: var(--text-primary);
}

textarea {
    width: 100%;
    min-height: 140px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    resize: vertical;
    margin-bottom: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

textarea:focus {
    outline: none;
    border-color: rgba(0, 212, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

textarea::placeholder {
    color: var(--text-muted);
}

.char-count {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.voice-control {
    flex: 1;
}

.voice-control label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

select {
    width: 100%;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

select:focus {
    outline: none;
    border-color: rgba(0, 212, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

select option {
    background: var(--secondary-bg);
    color: var(--text-primary);
}

.speed-control {
    flex: 1;
}

.speed-control label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.slider-container {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
    -webkit-appearance: none;
    position: relative;
    z-index: 2;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary-gradient);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px var(--glow-blue);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 25px var(--glow-blue);
}

#speedValue {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(0, 212, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
}

.btn-generate {
    width: 100%;
    padding: 1rem;
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

.btn-generate:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.6);
}

.btn-generate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-generate:hover .btn-glow {
    transform: translate(-50%, -50%) scale(2);
}

.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-msg {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

.audio-player {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.play-btn {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
    flex-shrink: 0;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 212, 255, 0.6);
}

.waveform-container {
    flex: 1;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

#waveformCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

#audioElement {
    display: none;
}

.time-display {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--secondary-gradient);
    border: none;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(147, 51, 234, 0.4);
    flex-shrink: 0;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(147, 51, 234, 0.6);
}

.features {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 3rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:nth-child(2) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.2s;
}

.feature-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--primary-gradient);
    border-radius: 20px;
    opacity: 0;
    filter: blur(20px);
    z-index: -1;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.3);
}

.feature-card:hover .feature-glow {
    opacity: 0.4;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(0, 212, 255, 0.2);
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .controls {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    nav {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .player-controls {
        flex-wrap: wrap;
    }
    
    .waveform-container {
        width: 100%;
        order: 4;
    }
}
/* ===== RESPONSIVE LAYER START ===== */

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px var(--glow-blue);
}

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

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

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

.nav-cta {
    display: none;
}

/* Mobile Small (320px - 480px) */
@media (max-width: 480px) {
    .menu-toggle {
        display: flex;
    }
    
    .navbar {
        padding: 1rem 3%;
        flex-wrap: wrap;
        position: relative;
    }
    
    .logo {
        font-size: 1rem;
        flex: 1;
    }
    
    .logo img {
        width: 32px;
        height: 32px;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(30px);
        border-top: 1px solid var(--glass-border);
        padding: 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    
    nav.active {
        max-height: 400px;
        opacity: 1;
        padding: 1rem 0;
    }
    
    nav a {
        padding: 1rem 3%;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        text-align: center;
    }
    
    nav a.active::after {
        display: none;
    }
    
    .nav-cta {
        display: block;
        width: calc(100% - 6%);
        margin: 1rem 3% 0.5rem;
        padding: 0.85rem;
        font-size: 0.9rem;
    }
    
    .nav-buttons {
        display: none;
    }
    
    .hero {
        padding: 2rem 3% 3rem;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .hero-left {
        text-align: center;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
    
    .hero-subtitle br {
        display: none;
    }
    
    .hero-buttons {
    width: 70%;
    flex-direction: column;
    gap: 0.75rem;
    margin-left: 60px;
    }
    
    .btn-cta,
    .btn-secondary {
        width: 100%;
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .dashboard-card {
        padding: 1.25rem;
        width:350px;
        border-radius: 16px;
    }
    
    .mode-toggle {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .mode-btn {
        font-size: 0.8rem;
        padding: 0.65rem 0.75rem;
    }
    
    .mode-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .speaker-voice-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    textarea {
        min-height: 120px;
        font-size: 0.9rem;
        padding: 0.85rem;
    }
    
    .controls {
        gap: 0.75rem;
    }
    
    select {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .slider-container {
        height: 36px;
    }
    
    #speedValue {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
    
    .btn-generate {
        padding: 0.85rem;
        font-size: 0.9rem;
    }
    
    .audio-player {
        padding: 1rem;
    }
    
    .player-controls {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .play-btn {
        width: 40px;
        height: 40px;
    }
    
    .waveform-container {
        width: 100%;
        height: 40px;
        order: 2;
    }
    
    .time-display {
        width: 100%;
        justify-content: center;
        order: 3;
        font-size: 0.8rem;
    }
    
    .download-btn {
        width: 100%;
        justify-content: center;
        order: 4;
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 3%;
    }
    
    .feature-card {
        padding: 1.75rem;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
}

/* Mobile Large (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .navbar {
        padding: 1.25rem 4%;
        flex-wrap: wrap;
        position: relative;
    }
    
    .logo {
        font-size: 1.1rem;
        flex: 1;
    }
    
    .logo img {
        width: 38px;
        height: 38px;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(30px);
        border-top: 1px solid var(--glass-border);
        padding: 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    
    nav.active {
        max-height: 400px;
        opacity: 1;
        padding: 1rem 0;
    }
    
    nav a {
        padding: 1rem 4%;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        text-align: center;
    }
    
    nav a.active::after {
        display: none;
    }
    
    .nav-cta {
        display: block;
        width: calc(100% - 8%);
        margin: 1rem 4% 0.5rem;
        padding: 0.85rem;
    }
    
    .nav-buttons {
        display: none;
    }
    
    .hero {
        padding: 2.5rem 4% 4rem;
    }
    
    .hero-content {
        gap: 2.5rem;
    }
    
    .hero-left {
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.25rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .hero-subtitle br {
        display: none;
    }
    
    .hero-buttons {
        gap: 0.85rem;
    }
    
    .btn-cta,
    .btn-secondary {
        flex: 1;
    }
    
    .dashboard-card {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    textarea {
        min-height: 130px;
    }
    
    .player-controls {
        flex-wrap: wrap;
        gap: 0.85rem;
    }
    
    .play-btn {
        width: 44px;
        height: 44px;
    }
    
    .waveform-container {
        flex: 1;
        min-width: 200px;
    }
    
    .time-display {
        order: 3;
    }
    
    .download-btn {
        width: 100%;
        order: 4;
        justify-content: center;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        padding: 2.5rem 4%;
    }
    
    .feature-card {
        padding: 2rem;
    }
}

/* Tablet (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .navbar {
        padding: 1.5rem 4.5%;
    }
    
    nav {
        gap: 1.5rem;
    }
    
    .hero {
        padding: 3rem 4.5% 5rem;
    }
    
    .hero-content {
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .dashboard-card {
        padding: 1.75rem;
    }
    
    .features {
        grid-template-columns: repeat(2, 1fr);
        padding: 2.75rem 4.5%;
    }
    
    .feature-card:last-child {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Laptop (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .hero-content {
        gap: 3.5rem;
    }
    
    .hero-title {
        font-size: 3.25rem;
    }
    
    .features {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Screens (1441px+) */
@media (min-width: 1441px) {
    .hero-content {
        max-width: 1600px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .features {
        max-width: 1600px;
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Landscape Mobile Fix */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding: 2rem 5%;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        margin-bottom: 1.5rem;
    }
    
    .dashboard-card {
        padding: 1.5rem;
    }
    
    textarea {
        min-height: 100px;
    }
}

/* ===== RESPONSIVE LAYER END ===== */
