* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            overflow-x: hidden;
            max-width: 100%;
        }

        body {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            background: #ffffff;
            min-height: 100vh;
            color: #0f172a;
            overflow-x: hidden;
            max-width: 100%;
        }

        /* Animated background particles */
        .bg-particles {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
        }

        .particle {
            position: absolute;
            width: 2px;
            height: 2px;
            background: rgba(59, 130, 246, 0.3);
            border-radius: 50%;
            animation: float 6s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
            50% { transform: translateY(-20px) rotate(180deg); opacity: 0.8; }
        }

        /* Glass morphism base */
        .glass {
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 16px;
        }

        /* Navbar */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            padding: 16px 24px;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            background: rgba(255, 255, 255, 0.9);
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .campaign-banner {
            position: fixed;
            top: 68px;
            left: 0;
            right: 0;
            z-index: 999;
            pointer-events: none;
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            background: rgba(2, 6, 23, 0.92);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .campaign-container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            min-height: 48px;
            padding: 8px 24px;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 0;
            pointer-events: auto;
        }

        .campaign-copy {
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 0;
        }

        .campaign-copy p {
            font-size: 13px;
            line-height: 1.45;
            color: rgba(255, 255, 255, 0.82);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .campaign-pill {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 28px;
            padding: 0 12px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.1);
            color: #ffffff;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            flex-shrink: 0;
        }

        .logo {
            font-weight: 600;
            font-size: 18px;
            color: #000;
        }

        .nav-links {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .nav-link {
            color: #64748b;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            padding: 8px 16px;
            border-radius: 8px;
        }

        .nav-link:hover {
            color: #0f172a;
            background: rgba(0, 0, 0, 0.05);
        }

        .nav-link.primary {
            background: #000000;
            color: white;
            padding: 10px 20px;
            border-radius: 999px;
            font-weight: 600;
            font-size: 14px;
            border: none;
            cursor: pointer;
            transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
        }

        .nav-link.primary:hover {
            transform: scale(1.03);
            opacity: 0.96;
            background: #1f1f1f;
        }

        /* Main content */
        .main-content {
            margin-top: 116px;
            position: relative;
            z-index: 1;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 24px;
        }

        /* Background Grid */
        .bg-grid {
            position: fixed;
            inset: 0;
            background-image:
                linear-gradient(to right, rgba(0,0,0,0.04) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(0,0,0,0.04) 1px, transparent 1px);
            background-size: 60px 60px;
            z-index: -2;
        }

        /* Hero section */
        .hero {
            max-width: 1200px;
            margin: 0 auto 8px;
            padding: 60px 20px;
            position: relative;
        }

        .hero::before {
            content: "";
            position: absolute;
            top: 20%;
            left: 50%;
            width: 600px;
            height: 600px;
            transform: translateX(-50%);
            background: none;
            filter: none;
            z-index: -1;
        }

        .hero-content {
            display: grid;
            grid-template-columns: 1.2fr 1fr;
            gap: 40px;
            align-items: center;
            margin-bottom: 40px;
        }

        .hero-left .tag {
            font-size: 12px;
            letter-spacing: 1px;
            color: #64748b;
            margin-bottom: 10px;
            font-weight: 500;
        }

        .hero h1 {
            font-size: 48px;
            font-weight: 600;
            color: #0f172a;
            line-height: 1.2;
            margin-bottom: 0;
            letter-spacing: -1px;
        }

        .hero-right .hero-desc {
            color: #475569;
            font-size: 14px;
            margin-bottom: 20px;
            line-height: 1.6;
        }

        .hero-buttons {
            display: flex;
            gap: 10px;
        }

        .btn-primary {
            background: #000000;
            color: white;
            padding: 10px 20px;
            border-radius: 999px;
            border: none;
            font-weight: 500;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.25s ease;
        }

        .btn-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.25);
        }

        .btn-secondary {
            background: rgba(0,0,0,0.05);
            backdrop-filter: blur(6px);
            color: #0f172a;
            padding: 10px 18px;
            border-radius: 999px;
            border: none;
            font-weight: 500;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.25s ease;
        }

        .btn-secondary:hover {
            background: rgba(0,0,0,0.08);
            transform: translateY(-1px);
        }

        .hero-card {
            margin-top: 40px;
            min-height: 420px;
            border-radius: 28px;
            background:
                radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 38%),
                linear-gradient(160deg, #111827 0%, #1f2937 55%, #0f172a 100%);
            animation: fadeUp 0.8s ease;
            border: 1px solid rgba(15,23,42,0.08);
            box-shadow: 0 18px 42px rgba(15,23,42,0.14);
            position: relative;
            z-index: 1;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 50px 30px 40px;
            gap: 16px;
            transition: transform 0.4s ease, box-shadow 0.4s ease;
        }

        .hero-card:hover {
            transform: translateY(-6px) scale(1.01);
            box-shadow: 0 24px 56px rgba(15,23,42,0.18);
        }

        .text-pressure-container {
            position: relative;
            width: 100%;
            height: 300px;
            overflow: hidden;
            margin: 0;
            border-radius: 28px;
            background: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .text-pressure-section {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 0 32px;
        }

        .text-pressure-title {
            margin: 0;
            text-align: center;
            white-space: nowrap;
            user-select: none;
            font-weight: 100;
            line-height: 1;
            letter-spacing: -0.06em;
        }

        .text-pressure-title span {
            display: inline-block;
        }

        .stroke span {
            position: relative;
        }

        .stroke span::after {
            content: attr(data-char);
            position: absolute;
            left: 0;
            top: 0;
            color: transparent;
            z-index: -1;
            -webkit-text-stroke-width: 2px;
        }

        .hero-card::before {
            content: "";
            position: absolute;
            right: -56px;
            top: -46px;
            width: 220px;
            height: 220px;
            border-radius: 44px;
            background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.02));
            transform: rotate(16deg);
            pointer-events: none;
        }

        .hero-card::after {
            content: "";
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 18% 16%, rgba(255,255,255,0.08), transparent 42%);
            pointer-events: none;
        }

        @keyframes fadeUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Top Product Tabs (Premium Style) */
        .top-product-tabs {
            display: flex;
            justify-content: center;
            gap: 12px;
            margin-bottom: 20px;
            background: rgba(255,255,255,0.10);
            border: 1px solid rgba(255,255,255,0.16);
            padding: 6px;
            border-radius: 999px;
            backdrop-filter: blur(12px);
            position: relative;
            z-index: 3;
        }
        
        .top-product-tabs button {
            border: none;
            background: transparent;
            padding: 8px 16px;
            border-radius: 999px;
            font-size: 13px;
            color: rgba(255,255,255,0.82);
            transition: all 0.25s ease, box-shadow 0.25s ease;
            cursor: pointer;
            font-weight: 500;
        }
        
        .top-product-tabs button.active {
            background: rgba(255,255,255,0.92);
            color: #0f172a;
            font-weight: 500;
            box-shadow: 0 8px 18px rgba(0,0,0,0.22);
        }
        
        .top-product-tabs button:hover {
            background: rgba(255,255,255,0.14);
            color: white;
        }

        /* DROPDOWN TOP-ANCHOR BUG FIXED */
        .hero-glass-panel {
            width: 100%;
            max-width: 820px;
            margin: 0 auto;
            padding: 20px;
            border-radius: 20px;
            background: rgba(255,255,255,0.95);
            backdrop-filter: blur(24px);
            box-shadow:
                0 10px 30px rgba(0,0,0,0.15),
                inset 0 1px rgba(255,255,255,0.6);
            position: relative;
            z-index: 2;
            height: 520px;
            overflow: hidden;
        }

        .hero-glass-panel::before {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: inherit;
            padding: 1px;
            background: linear-gradient(120deg, rgba(255,255,255,0.6), transparent);
            -webkit-mask:
                linear-gradient(#000 0 0) content-box,
                linear-gradient(#000 0 0);
            -webkit-mask-composite: xor;
            mask:
                linear-gradient(#000 0 0) content-box,
                linear-gradient(#000 0 0);
            mask-composite: exclude;
            pointer-events: none;
        }

        .hero-glass-panel * {
            max-width: 100%;
            box-sizing: border-box;
            position: relative;
        }

        .hero-glass-panel button {
            /* REMOVED: width: 100%; - causing settings button to expand */
            /* Individual buttons now control their own width */
            display: block;
        }

        /* FIX: Music play button must NOT inherit full-width from parent rule */
        .music-play-btn {
            width: 44px !important;
            height: 44px !important;
            display: flex !important;
            flex-shrink: 0;
        }

        /* GLASS NAV: Voice carousel buttons must NOT inherit full-width from parent rule */
        .voice-nav {
            width: 36px !important;
            height: 36px !important;
            display: flex !important;
        }
        .tts-voice-play-btn {
            width: 36px !important;
            height: 36px !important;
            min-width: 36px !important;
            display: flex !important;
        }

        .hero-glass-panel h2 {
            text-align: center;
        }

        .demo-text {
            display: none;
        }

        .highlight {
            color: #2563eb;
            font-weight: 500;
        }

        .demo-tags {
            display: none;
        }

        .wave-container {
            display: none;
        }

        .wave-container.active {
            opacity: 1;
        }

        .wave-bar {
            width: 4px;
            height: 10px;
            background: #2563eb;
            border-radius: 2px;
            animation: waveAnim 1s infinite ease-in-out;
            animation-play-state: paused;
        }

        .wave-bar:nth-child(1) { animation-delay: 0s; }
        .wave-bar:nth-child(2) { animation-delay: 0.1s; }
        .wave-bar:nth-child(3) { animation-delay: 0.2s; }
        .wave-bar:nth-child(4) { animation-delay: 0.3s; }
        .wave-bar:nth-child(5) { animation-delay: 0.4s; }
        .wave-bar:nth-child(6) { animation-delay: 0.5s; }

        @keyframes waveAnim {
            0%, 100% { height: 10px; opacity: 0.3; }
            50% { height: 30px; opacity: 1; }
        }

        /* REMOVED: Old TTS generator styles - now using unified card system */
        
        /* ============================================ */
        /* UPDATED TTS INPUT PANEL - ELEVENLABS STYLE */
        /* ============================================ */
        
        /* DROPDOWN TOP-ANCHOR BUG FIXED */
        .tts-input-panel {
            background: #ffffff;
            border-radius: 16px;
            padding: 16px;
            border: 1px solid rgba(0,0,0,0.06);
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
            overflow: visible !important;
        }
        
        .tts-textarea-header {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            margin-bottom: 8px;
            padding: 0 4px;
        }
        
        .tts-textarea {
            width: 100%;
            min-height: 120px;
            border: none;
            outline: none;
            font-size: 14px;
            line-height: 1.5;
            resize: none;
            font-family: inherit;
            color: #0f172a;
            background: transparent;
        }
        
        .tts-textarea::placeholder {
            color: #94a3b8;
        }
        
        .tts-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid rgba(0,0,0,0.06);
        }
        
        /* BUTTON WIDTH BALANCE FIXED */
        .tts-left-controls {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1; /* ← Allow to grow and fill space */
        }
        
        .tts-right-controls {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .tts-generate-btn {
            background: #0f172a;
            color: white;
            padding: 10px 16px;
            border-radius: 999px;
            font-size: 13px;
            font-weight: 500;
            border: none;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .tts-generate-btn:hover {
            background: #1a1a1a;
            transform: translateY(-1px);
        }
        
        .tts-char-count {
            font-size: 11px;
            color: #94a3b8;
            font-weight: 500;
            white-space: nowrap;
        }
        
        /* Voice Picker Container Styling */
        /* BUTTON WIDTH BALANCE FIXED */
        .voice-picker-wrapper {
            position: relative;
            display: inline-block;
            flex: 1; /* ← Takes available space (PRIMARY CONTROL) */
            min-width: 200px; /* ← Prevents too small */
            max-width: 320px; /* ← Prevents too wide */
            z-index: 1000;
        }
        
        /* CUSTOM VOICE PICKER STYLES */
        .voice-picker {
            position: relative;
            width: 100%;
        }
        
        /* FIXED AVATAR DISTORTION */
        .voice-picker-trigger {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            height: 36px;
            padding: 0 12px;
            border-radius: 999px;
            border: 1px solid #e5e7eb;
            background: #ffffff;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 13px;
            font-weight: 500;
            box-sizing: border-box;
        }
        
        /* SETTINGS BUTTON WIDTH FIXED */
        .tts-settings-btn {
            height: 36px;
            flex: 0 0 auto !important; /* ← Prevent growth */
            width: auto !important; /* ← Compact, content-sized */
            max-width: fit-content;
            padding: 0 14px;
            border-radius: 999px;
            border: 1px solid #e5e7eb;
            background: #ffffff;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 13px;
            font-weight: 500;
            box-sizing: border-box;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            color: #64748b;
            white-space: nowrap; /* ← Prevents text wrapping */
        }
        
        .voice-picker-trigger:hover,
        .tts-settings-btn:hover {
            background: #f9fafb;
        }
        
        /* LEFT SIDE - VOICE INFO */
        .voice-picker-left {
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 1;
        }
        
        /* AVATAR WRAPPER - PREVENT FLEX STRETCHING */
        .voice-avatar-wrapper {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto; /* PREVENT FLEX STRETCH */
        }
        
        /* PERFECT CIRCLE AVATAR */
        .voice-avatar {
            width: 20px;
            height: 20px;
            min-width: 20px;
            min-height: 20px;
            max-width: 20px;
            max-height: 20px;
            aspect-ratio: 1 / 1; /* KEY FIX */
            border-radius: 50%;
            background: linear-gradient(135deg, #c4b5fd, #f9a8d4);
            display: block;
            flex-shrink: 0;
        }
        
        /* CLEAN TYPOGRAPHY */
        #selectedVoiceLabel {
            font-size: 13px;
            font-weight: 500;
            color: #111827;
            display: flex;
            align-items: center;
        }
        
        /* RIGHT ALIGNED ARROW */
        .voice-arrow {
            font-size: 12px;
            color: #9ca3af;
            display: flex;
            align-items: center;
            margin-left: 6px;
            transition: transform 0.2s ease;
        }
        
        .voice-picker-trigger.open .voice-arrow {
            transform: rotate(180deg);
        }
        
        .tts-left-controls {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        /* DROPDOWN TOP-ANCHOR BUG FIXED */
        .voice-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            margin-top: 6px;
            width: 100%;
            border-radius: 12px;
            background: #ffffff;
            color: #111827;
            padding: 8px;
            display: none;
            flex-direction: column;
            gap: 6px;
            z-index: 9999;
            box-shadow: 0 10px 25px rgba(0,0,0,0.08);
            border: 1px solid #e5e7eb;
            opacity: 0;
            transform: translateY(-8px);
            transition: opacity 0.2s ease, transform 0.2s ease;
        }
        
        .voice-dropdown.show {
            display: flex;
            opacity: 1;
            transform: translateY(0);
        }
        
        .voice-search-wrapper {
            display: flex;
            align-items: center;
            gap: 8px;
            background: #f3f4f6;
            border-radius: 8px;
            padding: 8px 10px;
        }
        
        .search-icon {
            font-size: 14px;
            color: #9ca3af;
            line-height: 1;
            flex-shrink: 0;
        }
        
        .voice-search {
            width: 100%;
            padding: 0;
            border-radius: 0;
            border: none;
            outline: none;
            background: transparent;
            color: #111827;
            font-size: 13px;
            box-sizing: border-box;
        }
        
        .voice-search::placeholder {
            color: #9ca3af;
        }
        
        .voice-list {
            max-height: 200px;
            overflow-y: auto;
        }
        
        .voice-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
        }
        
        .voice-item:hover {
            background: #f9fafb;
            border: 1px solid #e5e7eb;
        }
        
        .voice-item.active {
            background: #f8fafc;
            border: 1px solid #e5e7eb;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
            border-radius: 12px;
        }
        
        .voice-item.active::before {
            content: "";
            position: absolute;
            left: 0;
            top: 10%;
            height: 80%;
            width: 3px;
            border-radius: 2px;
            background: linear-gradient(180deg, #ff7a18, #a855f7);
        }
        
        .voice-item.active .voice-item-name {
            color: #111827;
            font-weight: 500;
        }
        
        .voice-item.active .voice-item-meta {
            color: #6b7280;
        }
        
        .voice-item-info {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        
        .voice-item-name {
            font-size: 14px;
            font-weight: 500;
            color: #111827;
        }
        
        .voice-item-meta {
            font-size: 12px;
            color: #6b7280;
        }
        
        .voice-item-check {
            color: #6b7280;
            font-size: 14px;
            opacity: 0;
            transition: opacity 0.2s ease;
        }
        
        .voice-item.active .voice-item-check {
            opacity: 1;
            color: #111827;
        }
        
        .voice-item.active .voice-item-check {
            opacity: 1;
        }
        
        /* Download Button Styling */
        .tts-download-btn {
            width: 100%;
            background: #0f172a;
            color: white;
            padding: 14px;
            border-radius: 999px;
            font-size: 14px;
            font-weight: 500;
            margin-top: 16px;
            border: none;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        .tts-download-btn:hover {
            background: #1a1a1a;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        }
        
        /* Mobile Responsive */
        @media (max-width: 768px) {
            .tts-controls {
                flex-direction: column;
                gap: 12px;
                align-items: stretch;
            }
            
            .tts-left-controls,
            .tts-right-controls {
                justify-content: center;
            }
            
            .tts-generate-btn {
                width: 100%;
                justify-content: center;
            }
        }
        
        /* DROPDOWN TOP-ANCHOR BUG FIXED */
        .tts-card {
            background: white;
            border-radius: 16px;
            padding: 24px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            border: 1px solid rgba(0,0,0,0.06);
            height: 100%;
            display: flex;
            flex-direction: column;
            gap: 20px;
            box-sizing: border-box;
            overflow: visible !important;
        }
        
        /* FIX 2: Header alignment */
        .tts-header {
            display: flex;
            justify-content: space-between;
            align-items: center; /* FIX: was flex-start, now center for proper vertical alignment */
        }

        /* FIX 2: Left side of header */
        .tts-mode-switch {
            display: flex;
            align-items: center;
            gap: 8px;
            background: rgba(0,0,0,0.04);
            padding: 4px;
            border-radius: 999px;
        }
        
        .tts-mode-pill {
            padding: 6px 14px;
            border-radius: 999px;
            border: none;
            background: transparent;
            color: #64748b;
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .tts-mode-pill.active {
            background: #000000;
            color: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.15);
        }
        
        .tts-mode-pill:hover:not(.active) {
            background: rgba(0,0,0,0.08);
        }
        
        /* FIX 2: Right side of header */
        .tts-label {
            text-align: right;
        }
        
        /* FIX 7: Consistent label styling */
        .tts-label h3 {
            font-size: 14px;
            font-weight: 600;
            color: #0f172a;
            margin-bottom: 4px;
        }
        
        .tts-label p {
            font-size: 11px;
            color: #64748b;
            line-height: 1.4;
        }
        
        /* FIX 4: ENTER TEXT section spacing */
        .tts-input-section {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        /* FIX 7: Consistent label styling */
        .tts-input-label {
            font-size: 12px;
            font-weight: 600;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .tts-char-count {
            font-size: 10px;
            color: #9ca3af;
            font-weight: 500;
        }
        
        /* FIX 3: Textarea block */
        .tts-textarea {
            width: 100%;
            min-height: 100px;
            padding: 14px;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            font-size: 14px;
            font-family: inherit;
            line-height: 1.5;
            resize: none; /* FIX 3: prevent resize from breaking layout */
            transition: all 0.2s ease;
            background: #fafafa;
            box-sizing: border-box;
        }
        
        .tts-textarea:focus {
            outline: none;
            border-color: #000000;
            box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
            background: white;
        }
        
        .tts-textarea::placeholder {
            color: #9ca3af;
        }
        
        /* ============================================ */
        /* FIXED VOICE CAROUSEL                         */
        /* ============================================ */

        /* ============================================ */
        /* ENHANCED VERTICAL VOICE SCROLLING SYSTEM    */
        /* Shows 4 rows initially, scrolls through 100+ voices */
        /* ============================================ */

        /* FIX 5: Voice row fitting — relative so absolute arrows can overlap edges */
        .voice-carousel-container {
            display: flex;
            align-items: center;
            width: 100%;
            overflow: visible;
            position: relative;
            padding: 0; /* Remove arrow padding since we're hiding arrows */
        }

        /* Hide arrow navigation for vertical scrolling */
        .voice-nav {
            display: none !important;
        }

        /* Scrollable track wrapper - ENHANCED FOR VERTICAL SCROLLING */
        .tts-voice-track-wrap {
            flex: 1;
            overflow: hidden;
            height: 280px; /* Show exactly 4 rows (4 × 70px = 280px) */
            position: relative;
        }

        /* VERTICAL SCROLLING GRID - ENHANCED */
        .voice-carousel {
            display: grid;
            grid-template-columns: 1fr; /* Single column for vertical layout */
            gap: 8px;
            padding: 8px;
            height: auto;
            overflow-y: auto;
            overflow-x: hidden;
            max-height: 280px; /* Match container height */
            
            /* HIDE SCROLLBAR BUT KEEP FUNCTIONALITY */
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* IE/Edge */
        }

        /* Hide scrollbar for WebKit browsers */
        .voice-carousel::-webkit-scrollbar {
            display: none;
            width: 0;
            background: transparent;
        }

        /* SMOOTH SCROLLING BEHAVIOR */
        .voice-carousel {
            scroll-behavior: smooth;
            will-change: scroll-position;
        }

        /* Individual voice card - OPTIMIZED FOR VERTICAL LAYOUT */
        .voice-card-item {
            flex: none; /* Remove flex-basis for vertical layout */
            width: 100%; /* Full width in vertical layout */
            min-width: auto;
            height: 64px; /* Fixed height for consistent 4-row display */
            background: #f8fafc;
            border: 1px solid rgba(0,0,0,0.05);
            border-radius: 12px;
            padding: 10px 14px;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            cursor: pointer;
            position: static;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
            transition: all 0.2s ease;
            margin: 0; /* Remove any margins */
        }

        .voice-card-item > * { 
            text-align: left; 
        }

        .voice-card-item:hover {
            background: #ffffff;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            transform: translateY(-1px);
            border-color: rgba(0,0,0,0.1);
        }

        .voice-card-item.playing {
            border-color: #6366f1;
            background: #f1f5ff;
            box-shadow: 0 4px 12px rgba(99,102,241,0.15);
        }

        /* SCROLL INDICATOR (SUBTLE) */
        .tts-voice-track-wrap::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 30px;
            height: 3px;
            background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
            border-radius: 2px;
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }

        /* Show scroll indicator on hover */
        .tts-voice-track-wrap:hover::after {
            opacity: 1;
        }

        /* MOUSE WHEEL SCROLLING ENHANCEMENT */
        .voice-carousel {
            /* Enable smooth mouse wheel scrolling */
            overscroll-behavior: contain;
        }

        /* KEYBOARD NAVIGATION SUPPORT */
        .voice-carousel:focus {
            outline: 2px solid rgba(99,102,241,0.3);
            outline-offset: -2px;
        }

        /* TOUCH SCROLLING FOR MOBILE */
        .voice-carousel {
            -webkit-overflow-scrolling: touch;
        }

        /* ENHANCED VOICE CARD LAYOUT */
        .voice-card-item .voice-info {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 2px;
        }

        /* Enhanced circular avatar */
        .tts-voice-avatar {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            flex-shrink: 0;
            position: relative;
            overflow: hidden;
            margin-right: 12px;
            margin-bottom: 0;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        }

        /* ENHANCED: Voice info layout for vertical scrolling */
        .voice-info {
            display: flex;
            flex-direction: column;
            flex: 1;
            min-width: 0;
            justify-content: center;
            gap: 1px;
        }

        .tts-voice-avatar::before {
            content: '';
            position: absolute;
            inset: -50%;
            animation: rotateGradient 3s linear infinite;
        }

        /* Enhanced multi-tonal gradients with soft glows for TTS avatars */
        .tts-voice-avatar.va-1::before { background: radial-gradient(circle at 30% 30%, #a855f7, #ec4899, #f97316); }
        .tts-voice-avatar.va-1 { box-shadow: 0 8px 20px rgba(168, 85, 247, 0.4), 0 4px 12px rgba(236, 72, 153, 0.3); }
        
        .tts-voice-avatar.va-2::before { background: radial-gradient(circle at 30% 30%, #6366f1, #8b5cf6, #06b6d4); }
        .tts-voice-avatar.va-2 { box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4), 0 4px 12px rgba(139, 92, 246, 0.3); }
        
        .tts-voice-avatar.va-3::before { background: radial-gradient(circle at 30% 30%, #06b6d4, #3b82f6, #10b981); }
        .tts-voice-avatar.va-3 { box-shadow: 0 8px 20px rgba(6, 182, 212, 0.4), 0 4px 12px rgba(59, 130, 246, 0.3); }
        
        .tts-voice-avatar.va-4::before { background: radial-gradient(circle at 30% 30%, #ef4444, #ec4899, #f59e0b); }
        .tts-voice-avatar.va-4 { box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4), 0 4px 12px rgba(236, 72, 153, 0.3); }
        
        .tts-voice-avatar.va-5::before { background: radial-gradient(circle at 30% 30%, #3b82f6, #6366f1, #8b5cf6); }
        .tts-voice-avatar.va-5 { box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4), 0 4px 12px rgba(99, 102, 241, 0.3); }

        .tts-voice-initials {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 700;
            color: white;
            z-index: 1;
        }

        /* Voice name */
        .tts-voice-name {
            font-size: 14px;
            font-weight: 600;
            color: #0f172a;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Language line */
        .tts-voice-lang {
            font-size: 12px;
            color: #64748b;
            font-weight: 400;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Tone */
        .tts-voice-tone {
            font-size: 11px;
            font-weight: 400;
            color: #94a3b8;
            white-space: nowrap;
        }

        /* Rating */
        .tts-voice-rating {
            font-size: 10px;
            font-weight: 500;
            color: #f59e0b;
            white-space: nowrap;
            margin-top: 2px;
        }

        /* Play button */
        .tts-voice-play-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: #0f172a;
            color: white;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            flex-shrink: 0;
            transition: all 0.2s ease;
            padding: 0;
            position: static;
            transform: none;
            margin-top: 0;
            margin-left: 12px;
        }

        .tts-voice-play-btn:hover {
            background: #1a1a1a;
        }

        .tts-voice-play-btn:active {
            transform: scale(0.9);
        }

        .tts-voice-play-btn.loading-spin {
            pointer-events: none;
            opacity: 0.6;
        }

        .voice-card-item.playing .tts-voice-play-btn {
            background: #0f172a;
        }

        .tts-voice-play-btn svg {
            width: 11px;
            height: 11px;
            fill: white;
            stroke: none;
            display: block;
            margin: auto;
        }

        /* Favorite icon (top-right of card) */
        .tts-voice-fav {
            position: absolute;
            top: 8px;
            right: 8px;
            font-size: 11px;
            opacity: 0.3;
            cursor: pointer;
            transition: opacity 0.2s ease, transform 0.2s ease;
            line-height: 1;
        }

        .tts-voice-fav:hover,
        .tts-voice-fav.active {
            opacity: 1;
            transform: scale(1.2);
        }

        /* Keep old class alias for JS compatibility */
        .tts-voice-carousel { display: flex; align-items: center; gap: 8px; }
        .tts-voice-arrow { display: none; } /* replaced by .voice-nav */
        
        /* VOICE LIBRARY SECTION - Enhanced gradient avatar pills */
        .voice-avatar {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            position: relative;
            overflow: hidden;
            flex-shrink: 0;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        }

        .voice-avatar::before {
            content: '';
            position: absolute;
            inset: -50%;
            animation: rotateGradient 3s linear infinite;
        }

        /* Enhanced multi-tonal gradients with soft glows */
        .voice-avatar.grad-1::before { background: radial-gradient(circle at 30% 30%, #a855f7, #ec4899, #f97316); }
        .voice-avatar.grad-1 { box-shadow: 0 8px 20px rgba(168, 85, 247, 0.4), 0 4px 12px rgba(236, 72, 153, 0.3); }
        
        .voice-avatar.grad-2::before { background: radial-gradient(circle at 30% 30%, #6366f1, #8b5cf6, #06b6d4); }
        .voice-avatar.grad-2 { box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4), 0 4px 12px rgba(139, 92, 246, 0.3); }
        
        .voice-avatar.grad-3::before { background: radial-gradient(circle at 30% 30%, #06b6d4, #3b82f6, #10b981); }
        .voice-avatar.grad-3 { box-shadow: 0 8px 20px rgba(6, 182, 212, 0.4), 0 4px 12px rgba(59, 130, 246, 0.3); }
        
        .voice-avatar.grad-4::before { background: radial-gradient(circle at 30% 30%, #ef4444, #ec4899, #f59e0b); }
        .voice-avatar.grad-4 { box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4), 0 4px 12px rgba(236, 72, 153, 0.3); }
        
        .voice-avatar.grad-5::before { background: radial-gradient(circle at 30% 30%, #3b82f6, #6366f1, #8b5cf6); }
        .voice-avatar.grad-5 { box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4), 0 4px 12px rgba(99, 102, 241, 0.3); }
        
        .voice-avatar.grad-6::before { background: radial-gradient(circle at 30% 30%, #10b981, #84cc16, #14b8a6); }
        .voice-avatar.grad-6 { box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4), 0 4px 12px rgba(132, 204, 22, 0.3); }

        /* Generate Button */
        .tts-generate-btn {
            width: 100%;
            padding: 12px;
            background: #000000;
            color: white;
            border: none;
            border-radius: 999px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        .tts-generate-btn:hover:not(:disabled) {
            background: #1a1a1a;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        }
        
        .tts-generate-btn:disabled {
            background: #d1d5db;
            cursor: not-allowed;
            transform: none;
        }
        
        .tts-generate-btn.loading {
            opacity: 0.7;
            pointer-events: none;
        }
        
        /* Status Message */
        .tts-status-msg {
            font-size: 11px;
            text-align: center;
            padding: 8px;
            margin-top: 12px;
            border-radius: 8px;
            display: none;
        }
        
        .tts-status-msg.success {
            background: rgba(16, 185, 129, 0.1);
            color: #059669;
            border: 1px solid rgba(16, 185, 129, 0.2);
        }
        
        .tts-status-msg.error {
            background: rgba(239, 68, 68, 0.1);
            color: #dc2626;
            border: 1px solid rgba(239, 68, 68, 0.2);
        }
        
        .tts-status-msg.info {
            background: rgba(0, 0, 0, 0.04);
            color: #475569;
            border: 1px solid rgba(0, 0, 0, 0.08);
        }

        /* Inline Audio Player */
        .audio-player {
            background: rgba(0,0,0,0.04);
            border-radius: 12px;
            padding: 12px;
            border: 1px solid rgba(0,0,0,0.08);
        }

        .audio-controls {
            display: flex;
            gap: 8px;
            margin-bottom: 8px;
            align-items: center;
        }

        .audio-control-btn {
            background: #0f172a;
            color: white;
            border: none;
            border-radius: 999px;
            padding: 6px 12px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .audio-control-btn:hover {
            background: #1f2937;
            transform: translateY(-1px);
        }

        .audio-control-btn.secondary {
            background: rgba(0,0,0,0.1);
            color: #0f172a;
        }

        .audio-control-btn.secondary:hover {
            background: rgba(0,0,0,0.15);
        }

        .audio-progress {
            height: 4px;
            background: #e2e8f0;
            border-radius: 999px;
            overflow: hidden;
            margin-bottom: 6px;
        }

        .progress-bar {
            height: 100%;
            width: 0%;
            background: #6366f1;
            transition: width 0.2s linear;
        }

        .audio-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 11px;
            color: #64748b;
        }

        .success-msg {
            font-size: 13px;
            color: #059669;
            text-align: center;
            padding: 8px;
            background: rgba(16, 185, 129, 0.1);
            border-radius: 8px;
        }

        .form-group {
            margin-bottom: 12px;
        }

        .form-label {
            display: block;
            margin-bottom: 6px;
            font-weight: 500;
            color: #0f172a;
            font-size: 14px;
        }

        .text-input {
            width: 100%;
            min-height: 80px;
            padding: 10px;
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            color: #0f172a;
            font-size: 14px;
            font-family: inherit;
            resize: none;
            transition: all 0.3s ease;
            box-sizing: border-box;
        }

        .text-input:focus {
            outline: none;
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
            transform: scale(1.01);
        }

        .text-input::placeholder {
            color: #94a3b8;
        }

        .voice-select {
            width: 100%;
            padding: 10px;
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            color: #0f172a;
            font-size: 14px;
            font-family: inherit;
            cursor: pointer;
            transition: all 0.3s ease;
            appearance: none;
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23000000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
            background-position: right 12px center;
            background-repeat: no-repeat;
            background-size: 16px;
            padding-right: 40px;
        }

        .voice-select:focus {
            outline: none;
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
            transform: scale(1.01);
        }

        .voice-select option {
            background: #ffffff;
            color: #0f172a;
        }

        .generate-button {
            width: 100%;
            padding: 12px;
            background: #000000;
            color: white;
            border: none;
            border-radius: 999px;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            margin-top: 10px;
        }

        .generate-button:hover:not(:disabled) {
            transform: translateY(-1px);
            background: #1f1f1f;
        }

        .generate-button.loading {
            opacity: 0.7;
            pointer-events: none;
        }

        .generate-button:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .generate-button .loading {
            display: none;
        }

        .generate-button.loading .loading {
            display: inline-block;
            margin-right: 8px;
        }

        .generate-button.loading .text {
            display: none;
        }

        /* Loading spinner */
        .spinner {
            width: 20px;
            height: 20px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-top: 2px solid white;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Audio Player Section */
        .audio-section {
            max-width: 800px;
            margin: 0 auto 60px;
            padding: 32px;
            text-align: center;
            display: none;
            animation: fadeInUp 0.5s ease-out;
            background: rgba(255, 255, 255, 0.8);
            border: 1px solid rgba(0, 0, 0, 0.1);
        }

        .audio-section h3 {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 24px;
            color: #0f172a;
        }

        .audio-player {
            width: 100%;
            margin-bottom: 24px;
            border-radius: 12px;
            background: #ffffff;
        }

        .audio-controls {
            display: flex;
            gap: 16px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .audio-button {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 24px;
            background: #f1f5f9;
            color: #0f172a;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .audio-button:hover {
            background: #e2e8f0;
            transform: translateY(-1px);
        }

        .audio-button.primary {
            background: #000000;
            color: white;
            border-color: transparent;
        }

        .audio-button.primary:hover {
            background: #1f1f1f;
        }

        /* Footer */
        .footer {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            text-align: center;
            padding: 40px 24px;
            background: #ffffff;
            color: #64748b;
            border-top: 1px solid rgba(0, 0, 0, 0.1);
        }

        .footer .text-pressure-section {
            max-width: 1200px;
        }

        .footer p {
            position: static;
        }

        .footer a {
            color: inherit;
        }

        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Status messages */
        .status-message {
            padding: 10px;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 500;
            display: none;
            text-align: center;
            margin-top: 6px;
        }

        .status-message.success {
            background: rgba(16, 185, 129, 0.1);
            border: 1px solid rgba(16, 185, 129, 0.2);
            color: #059669;
        }

        .status-message.error {
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid rgba(239, 68, 68, 0.2);
            color: #dc2626;
        }

        .status-message.info {
            background: rgba(59, 130, 246, 0.1);
            border: 1px solid rgba(59, 130, 246, 0.2);
            color: #2563eb;
        }

        /* ============================================ */
        /* FIXED: UNIFIED GENERATOR PANEL DIMENSIONS */
        /* ============================================ */
        
        /* Base class for all generator panels */
        .generator-panel {
            display: none;
            opacity: 0;
            transform: translateY(10px);
            transition: opacity 0.25s ease, transform 0.25s ease;
            height: 100%;
            overflow: hidden;
        }
        
        .generator-panel.active {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }

        .stt-hero-card {
            background: #ffffff;
            border-radius: 16px;
            padding: 24px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            border: 1px solid rgba(0,0,0,0.06);
            height: 100%;
            display: flex;
            flex-direction: column;
            gap: 22px;
        }

        .stt-hero-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
        }

        .stt-eyebrow {
            display: inline-flex;
            align-items: center;
            width: fit-content;
            padding: 6px 12px;
            border-radius: 999px;
            background: rgba(15, 23, 42, 0.06);
            color: #0f172a;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            margin-bottom: 12px;
        }

        .stt-hero-copy h3 {
            font-size: 20px;
            line-height: 1.05;
            letter-spacing: -0.03em;
            color: #0f172a;
            margin-bottom: 8px;
        }

        .stt-hero-copy p {
            font-size: 13px;
            line-height: 1.6;
            color: #64748b;
            max-width: 620px;
        }

        .stt-hero-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 34px;
            padding: 0 14px;
            border-radius: 999px;
            background:
                radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 38%),
                linear-gradient(160deg, #111827 0%, #1f2937 55%, #0f172a 100%);
            color: #ffffff;
            font-size: 12px;
            font-weight: 600;
            white-space: nowrap;
        }

        .stt-hero-grid {
            display: grid;
            grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
            gap: 22px;
            flex: 1;
            min-height: 0;
        }

        .stt-hero-left,
        .stt-hero-right {
            display: flex;
            flex-direction: column;
            min-height: 0;
        }

        .stt-field-label {
            font-size: 12px;
            font-weight: 600;
            color: #334155;
            margin-bottom: 8px;
        }

        .stt-language-input {
            width: 100%;
            min-height: 46px;
            padding: 0 14px;
            border-radius: 12px;
            border: 1px solid rgba(15, 23, 42, 0.12);
            background: #ffffff;
            color: #0f172a;
            font-size: 14px;
            outline: none;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .stt-language-input:focus {
            border-color: rgba(15, 23, 42, 0.4);
            box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
        }

        .stt-support-note {
            margin-top: 10px;
            font-size: 12px;
            line-height: 1.5;
            color: #64748b;
            min-height: 18px;
            position: relative;
        }

        .stt-support-note.is-animated,
        .stt-status-text.is-loading {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .stt-support-note.is-animated::after,
        .stt-status-text.is-loading::after {
            content: '';
            width: 18px;
            height: 18px;
            border-radius: 999px;
            border: 2px solid rgba(37, 99, 235, 0.18);
            border-top-color: #2563eb;
            animation: stt-spin 0.9s linear infinite;
            flex-shrink: 0;
        }

        .stt-action-group {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 18px;
        }

        .stt-action-btn {
            min-height: 42px;
            padding: 0 16px;
            border-radius: 12px;
            border: 1px solid transparent;
            cursor: pointer;
            font-size: 13px;
            font-weight: 600;
            transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
        }

        .stt-action-btn.primary {
            background: #0f172a;
            color: #ffffff;
            box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
        }

        .stt-action-btn.primary:hover {
            transform: translateY(-1px);
            background: #020617;
        }

        .stt-action-btn.secondary {
            background: #ffffff;
            color: #0f172a;
            border-color: rgba(15, 23, 42, 0.12);
        }

        .stt-action-btn.secondary:hover {
            transform: translateY(-1px);
            border-color: rgba(15, 23, 42, 0.26);
            box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
        }

        .stt-status-row {
            margin-top: 16px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 13px;
            color: #334155;
        }

        .stt-status-dot {
            width: 10px;
            height: 10px;
            border-radius: 999px;
            background: #cbd5e1;
            flex-shrink: 0;
            box-shadow: 0 0 0 6px rgba(203, 213, 225, 0.22);
        }

        .stt-status-dot.live {
            background: #dc2626;
            box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.16);
            animation: stt-pulse 1.2s ease-in-out infinite;
        }

        .stt-status-dot.ready {
            background: #2563eb;
            box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.12);
        }

        .stt-status-dot.success {
            background: #059669;
            box-shadow: 0 0 0 6px rgba(5, 150, 105, 0.14);
        }

        .stt-status-dot.error {
            background: #ea580c;
            box-shadow: 0 0 0 6px rgba(234, 88, 12, 0.14);
        }

        .stt-result-card {
            height: 100%;
            border-radius: 16px;
            padding: 18px;
            background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
            border: 1px solid rgba(15, 23, 42, 0.08);
            display: flex;
            flex-direction: column;
            min-height: 0;
            min-width: 0;
            overflow: hidden;
        }

        .stt-result-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 14px;
        }

        .stt-meta-pill {
            display: inline-flex;
            align-items: center;
            min-height: 28px;
            padding: 0 10px;
            border-radius: 999px;
            background: rgba(15, 23, 42, 0.06);
            color: #334155;
            font-size: 11px;
            font-weight: 600;
        }

        .stt-result-label {
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: #64748b;
        }

        .stt-result-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 10px;
        }

        .stt-copy-btn {
            min-height: 32px;
            padding: 0 12px;
            border: 1px solid rgba(15, 23, 42, 0.1);
            border-radius: 999px;
            background: #ffffff;
            color: #0f172a;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
        }

        .stt-copy-btn:hover {
            transform: translateY(-1px);
            border-color: rgba(37, 99, 235, 0.28);
            background: #eff6ff;
        }

        .stt-copy-btn:disabled {
            opacity: 0.55;
            cursor: not-allowed;
            transform: none;
        }

        .stt-copy-btn.copied {
            background: #ecfdf5;
            border-color: rgba(5, 150, 105, 0.25);
            color: #047857;
        }

        .stt-result-box {
            flex: 1;
            width: 100%;
            max-width: 100%;
            border-radius: 14px;
            background: #ffffff;
            border: 1px solid rgba(15, 23, 42, 0.07);
            box-sizing: border-box;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            min-width: 0;
            min-height: 0;
        }

        .stt-result-text {
            flex: 1;
            width: 100%;
            min-height: 0;
            padding: 16px 12px 16px 16px;
            font-size: 15px;
            line-height: 1.75;
            color: #0f172a;
            box-sizing: border-box;
            display: block;
            overflow-y: auto;
            overflow-x: hidden;
            overscroll-behavior: contain;
            word-break: break-word;
            white-space: pre-wrap;
            scrollbar-width: thin;
            scrollbar-color: rgba(15, 23, 42, 0.38) rgba(15, 23, 42, 0.08);
        }

        .stt-result-text::-webkit-scrollbar {
            width: 10px;
        }

        .stt-result-text::-webkit-scrollbar-track {
            background: rgba(15, 23, 42, 0.08);
            border-radius: 999px;
        }

        .stt-result-text::-webkit-scrollbar-thumb {
            background: rgba(15, 23, 42, 0.32);
            border-radius: 999px;
            border: 2px solid #ffffff;
        }

        .stt-result-text::-webkit-scrollbar-thumb:hover {
            background: rgba(15, 23, 42, 0.5);
        }

        @keyframes stt-spin {
            from {
                transform: rotate(0deg);
            }
            to {
                transform: rotate(360deg);
            }
        }

        @keyframes stt-pulse {
            0%,
            100% {
                box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.16);
                transform: scale(1);
            }
            50% {
                box-shadow: 0 0 0 10px rgba(220, 38, 38, 0.08);
                transform: scale(1.08);
            }
        }
        
        /* FIXED: Music Generator Styles */
        .music-generator {
            /* Inherits from .generator-panel */
        }
        
        /* Music Card Container */
        .music-card {
            background: white; /* RESTORED: Individual card background */
            border-radius: 16px; /* RESTORED: Card border radius */
            padding: 24px; /* RESTORED: Card padding */
            box-shadow: 0 2px 8px rgba(0,0,0,0.08); /* RESTORED: Card shadow */
            border: 1px solid rgba(0,0,0,0.06); /* RESTORED: Card border */
            height: 100%; /* Fill parent panel */
            display: flex;
            flex-direction: column;
            overflow-y: auto; /* Scroll if content exceeds */
        }
        
        /* Header Section */
        .music-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 20px;
        }
        
        .music-mode-switch {
            display: flex;
            gap: 8px;
            background: rgba(0,0,0,0.04);
            padding: 4px;
            border-radius: 999px;
        }
        
        .mode-pill {
            padding: 6px 14px;
            border-radius: 999px;
            border: none;
            background: transparent;
            color: #64748b;
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .mode-pill.active {
            background: #000000;
            color: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.15);
        }
        
        .mode-pill:hover:not(.active) {
            background: rgba(0,0,0,0.08);
        }
        
        .music-label {
            text-align: right;
        }
        
        .music-label h3 {
            font-size: 14px;
            font-weight: 600;
            color: #0f172a;
            margin-bottom: 4px;
        }
        
        .music-label p {
            font-size: 11px;
            color: #64748b;
            line-height: 1.4;
        }
        
        /* UPDATED: Music Description Box (Read-only) */
        .music-description-box {
            background: #fafafa;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 20px;
        }
        
        .music-description-label {
            font-size: 11px;
            font-weight: 600;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 8px;
        }
        
        .music-description-text {
            font-size: 13px;
            line-height: 1.6;
            color: #0f172a;
        }
        
        /* UPDATED: Preview Track Card with Play Button on Right */
        .music-preview-card {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 16px;
            background: rgba(0,0,0,0.02);
            border-radius: 12px;
            border: 1px solid rgba(0,0,0,0.06);
        }
        
        /* UPDATED: Rotating Gradient Thumbnail */
        .music-thumbnail {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: linear-gradient(135deg, #f97316, #fb7185, #6366f1);
            flex-shrink: 0;
            position: relative;
            overflow: hidden;
        }
        
        .music-thumbnail::before {
            content: '';
            position: absolute;
            inset: -50%;
            background: linear-gradient(135deg, #f97316, #fb7185, #6366f1, #f97316);
            animation: rotateGradient 3s linear infinite;
        }
        
        @keyframes rotateGradient {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .music-track-info {
            flex: 1;
            min-width: 0;
        }
        
        .music-track-title {
            font-size: 14px;
            font-weight: 600;
            color: #0f172a;
            margin-bottom: 4px;
        }
        
        .music-track-duration {
            font-size: 12px;
            color: #64748b;
        }
        
        /* UPDATED: Play Button on Right End */
        .music-play-btn {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: #000000;
            color: white;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            flex-shrink: 0;
            font-size: 16px;
            margin-left: auto;
        }
        
        .music-play-btn:hover {
            background: #1a1a1a;
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(0,0,0,0.25);
        }
        
        .music-play-btn.playing {
            background: #6366f1;
        }
        
        /* REMOVED: Old hidden class - now using .generator-panel system */

        /* Responsive Design */
        @media (max-width: 768px) {
            .navbar {
                padding: 12px 16px;
            }

            .campaign-banner {
                top: 60px;
            }

            .campaign-container {
                min-height: 52px;
                padding: 10px 16px;
                align-items: flex-start;
            }

            .campaign-copy {
                align-items: flex-start;
                flex-direction: column;
                gap: 8px;
            }

            .campaign-copy p {
                white-space: normal;
                overflow: visible;
                text-overflow: unset;
            }

            .nav-links {
                gap: 16px;
            }

            .nav-link {
                padding: 6px 12px;
                font-size: 14px;
            }

            .main-content {
                margin-top: 76px;
                padding: 20px 16px;
            }

            .hero-content {
                grid-template-columns: 1fr;
                gap: 24px;
            }

            .hero-left h1 {
                font-size: 32px;
            }

            .hero-card {
                min-height: auto;
                padding: 30px 16px;
                gap: 12px;
            }

            .hero-card:hover {
                transform: none;
            }

            .hero-glass-panel {
                width: 100%;
                max-width: 100%;
                padding: 16px;
                min-height: 420px; /* FIXED: Adjusted for mobile */
                max-height: none; /* FIXED: Allow natural height on mobile */
            }

            .text-input {
                min-height: 70px;
            }

            .hero-tabs {
                flex-wrap: wrap;
                gap: 8px;
                margin-bottom: 16px;
            }
            
            .top-product-tabs {
                flex-wrap: wrap;
                gap: 8px;
            }
            
            .tts-voice-grid {
                grid-template-columns: 1fr;
                max-height: 150px;
            }
            
            .tts-header {
                flex-direction: column;
                gap: 12px;
            }
            
            .tts-label {
                text-align: left;
            }

            .wave-container {
                margin-top: 10px;
            }

            .audio-section {
                padding: 24px;
            }

            .audio-controls {
                flex-direction: column;
                align-items: center;
            }

            .audio-button {
                width: 100%;
                justify-content: center;
                max-width: 300px;
            }
            
            /* UPDATED: Music Generator Mobile Styles */
            .music-header {
                flex-direction: column;
                gap: 12px;
            }
            
            .music-label {
                text-align: left;
            }
            
            .music-preview-card {
                flex-wrap: wrap;
            }
            
            .music-play-btn {
                margin-left: 0;
            }
        }

        /* ============================================ */
        /* INTERACTIVE PLAYGROUND SECTION               */
        /* ============================================ */

        .playground-section {
            max-width: 1200px;
            margin: 0 auto 80px;
            padding: 0 20px;
        }

        .playground-header {
            text-align: center;
            margin-bottom: 40px;
        }

        .playground-label {
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: #94a3b8;
            margin-bottom: 14px;
        }

        .playground-header h2 {
            font-size: 36px;
            font-weight: 700;
            color: #0f172a;
            line-height: 1.2;
            letter-spacing: -0.8px;
            margin-bottom: 12px;
        }

        .playground-subtext {
            font-size: 14px;
            color: #64748b;
            line-height: 1.7;
        }

        .playground-card {
            background: #ffffff;
            border-radius: 24px;
            padding: 32px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.12);
            border: 1px solid rgba(0,0,0,0.08);
            display: grid;
            grid-template-columns: 1.2fr 1fr;
            gap: 32px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .playground-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 24px 72px rgba(0,0,0,0.15);
        }

        /* LEFT SIDE */
        .playground-left {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .playground-input-section {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .playground-label-text {
            font-size: 12px;
            font-weight: 600;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .playground-textarea {
            width: 100%;
            min-height: 120px;
            padding: 14px;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            font-size: 14px;
            font-family: inherit;
            line-height: 1.6;
            resize: vertical;
            transition: all 0.2s ease;
            background: #fafafa;
        }

        .playground-textarea:focus {
            outline: none;
            border-color: #000000;
            box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
            background: white;
        }

        .playground-controls {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .playground-control-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .playground-control-label {
            font-size: 12px;
            font-weight: 600;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .playground-value {
            font-size: 11px;
            font-weight: 600;
            color: #0f172a;
            background: rgba(0,0,0,0.05);
            padding: 2px 8px;
            border-radius: 999px;
        }

        .playground-select {
            width: 100%;
            padding: 10px 14px;
            background: #fafafa;
            border: 1px solid #e5e7eb;
            border-radius: 10px;
            font-size: 14px;
            font-family: inherit;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .playground-select:focus {
            outline: none;
            border-color: #000000;
            box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
            background: white;
        }

        .playground-slider {
            width: 100%;
            height: 6px;
            border-radius: 999px;
            background: #e5e7eb;
            outline: none;
            -webkit-appearance: none;
            appearance: none;
            cursor: pointer;
        }

        .playground-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #000000;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .playground-slider::-webkit-slider-thumb:hover {
            transform: scale(1.2);
            box-shadow: 0 0 0 4px rgba(0,0,0,0.1);
        }

        .playground-slider::-moz-range-thumb {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #000000;
            cursor: pointer;
            border: none;
            transition: all 0.2s ease;
        }

        .playground-slider::-moz-range-thumb:hover {
            transform: scale(1.2);
            box-shadow: 0 0 0 4px rgba(0,0,0,0.1);
        }

        .playground-tone-pills {
            display: flex;
            gap: 8px;
        }

        .playground-tone-pill {
            flex: 1;
            padding: 8px 12px;
            border-radius: 8px;
            border: 1px solid #e5e7eb;
            background: #fafafa;
            color: #64748b;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .playground-tone-pill:hover {
            background: rgba(0,0,0,0.05);
            border-color: #d1d5db;
        }

        .playground-tone-pill.active {
            background: #000000;
            color: white;
            border-color: #000000;
        }

        .playground-presets {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .playground-preset-buttons {
            display: flex;
            gap: 8px;
        }

        .playground-preset-btn {
            flex: 1;
            padding: 8px 12px;
            border-radius: 8px;
            border: 1px solid #e5e7eb;
            background: white;
            color: #0f172a;
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .playground-preset-btn:hover {
            background: #f8f9fb;
            border-color: #000000;
            transform: translateY(-1px);
        }

        .playground-generate-btn {
            width: 100%;
            padding: 14px;
            background: #000000;
            color: white;
            border: none;
            border-radius: 999px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.25s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .playground-generate-btn:hover:not(:disabled) {
            background: #1a1a1a;
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0,0,0,0.25);
        }

        .playground-generate-btn:disabled {
            background: #d1d5db;
            cursor: not-allowed;
            transform: none;
        }

        .playground-generate-btn.loading {
            opacity: 0.7;
            pointer-events: none;
        }

        .playground-btn-icon {
            font-size: 14px;
        }

        /* RIGHT SIDE */
        .playground-right {
            display: flex;
            flex-direction: column;
            gap: 20px;
            justify-content: center;
        }

        .playground-status {
            text-align: center;
            padding: 24px;
            background: #f8f9fb;
            border-radius: 16px;
            border: 1px solid rgba(0,0,0,0.06);
        }

        .playground-status-icon {
            font-size: 48px;
            margin-bottom: 12px;
        }

        .playground-status-text {
            font-size: 14px;
            font-weight: 500;
            color: #64748b;
        }

        .playground-status.generating {
            background: rgba(59, 130, 246, 0.1);
            border-color: rgba(59, 130, 246, 0.2);
        }

        .playground-status.generating .playground-status-text {
            color: #2563eb;
        }

        .playground-status.playing {
            background: rgba(16, 185, 129, 0.1);
            border-color: rgba(16, 185, 129, 0.2);
        }

        .playground-status.playing .playground-status-text {
            color: #059669;
        }

        .playground-waveform {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            height: 80px;
            padding: 20px;
            background: #f8f9fb;
            border-radius: 16px;
            border: 1px solid rgba(0,0,0,0.06);
        }

        .playground-wave-bar {
            width: 6px;
            height: 20px;
            background: #cbd5e1;
            border-radius: 3px;
            transition: all 0.3s ease;
        }

        .playground-waveform.active .playground-wave-bar {
            animation: playgroundWaveAnim 1s infinite ease-in-out;
        }

        .playground-wave-bar:nth-child(1) { animation-delay: 0s; }
        .playground-wave-bar:nth-child(2) { animation-delay: 0.1s; }
        .playground-wave-bar:nth-child(3) { animation-delay: 0.2s; }
        .playground-wave-bar:nth-child(4) { animation-delay: 0.3s; }
        .playground-wave-bar:nth-child(5) { animation-delay: 0.4s; }
        .playground-wave-bar:nth-child(6) { animation-delay: 0.5s; }
        .playground-wave-bar:nth-child(7) { animation-delay: 0.6s; }
        .playground-wave-bar:nth-child(8) { animation-delay: 0.7s; }
        .playground-wave-bar:nth-child(9) { animation-delay: 0.8s; }
        .playground-wave-bar:nth-child(10) { animation-delay: 0.9s; }

        @keyframes playgroundWaveAnim {
            0%, 100% { 
                height: 20px; 
                background: #cbd5e1;
            }
            50% { 
                height: 60px; 
                background: #6366f1;
            }
        }

        .playground-audio-player {
            background: #f8f9fb;
            border-radius: 16px;
            padding: 20px;
            border: 1px solid rgba(0,0,0,0.06);
        }

        .playground-player-controls {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .playground-play-btn {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: #000000;
            color: white;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            flex-shrink: 0;
            font-size: 16px;
            transition: all 0.2s ease;
        }

        .playground-play-btn:hover {
            background: #1a1a1a;
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(0,0,0,0.25);
        }

        .playground-player-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .playground-progress-bar {
            width: 100%;
            height: 6px;
            background: #e5e7eb;
            border-radius: 999px;
            overflow: hidden;
            cursor: pointer;
        }

        .playground-progress-fill {
            height: 100%;
            width: 0%;
            background: #6366f1;
            transition: width 0.1s linear;
        }

        .playground-time-info {
            display: flex;
            justify-content: space-between;
            font-size: 11px;
            color: #64748b;
            font-weight: 500;
        }

        .playground-download-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(0,0,0,0.05);
            border: 1px solid rgba(0,0,0,0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            flex-shrink: 0;
            transition: all 0.2s ease;
        }

        .playground-download-btn:hover {
            background: rgba(0,0,0,0.1);
            transform: scale(1.05);
        }

        .playground-download-btn svg {
            stroke: #0f172a;
        }

        /* RESPONSIVE */
        @media (max-width: 900px) {
            .playground-card {
                grid-template-columns: 1fr;
                gap: 24px;
            }
            
            .playground-header h2 {
                font-size: 28px;
            }
        }

        @media (max-width: 560px) {
            .playground-section {
                margin-bottom: 48px;
            }
            
            .playground-card {
                padding: 20px;
            }
            
            .playground-header h2 {
                font-size: 24px;
            }
            
            .playground-preset-buttons {
                flex-direction: column;
            }
            
            .playground-tone-pills {
                flex-direction: column;
            }
        }

        /* ============================================ */
        /* TRUST + METRICS SECTION                      */
        /* ============================================ */

        .trust-section {
            max-width: 1200px;
            margin: 0 auto 0;
            padding: 8px 20px 0;
        }

        .trust-grid {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr 1fr;
            align-items: stretch;
            gap: 18px;
            margin-bottom: 36px;
        }

        .trust-card {
            background: #f8f9fb;
            border: 1px solid rgba(0,0,0,0.07);
            border-radius: 16px;
            padding: 28px 24px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            gap: 20px;
            height: 100%;
            transition: transform 0.25s ease, box-shadow 0.25s ease;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }

        .trust-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 32px rgba(0,0,0,0.1);
        }

        .trust-card.dark {
            background: linear-gradient(145deg, #0a0a0a 0%, #1a1a1a 100%);
            border-color: rgba(255,255,255,0.08);
            position: relative;
            overflow: hidden;
        }

        .trust-card-main {
            display: flex;
            flex-direction: column;
        }

        .trust-card.dark::before {
            content: '';
            position: absolute;
            top: -60px;
            left: -60px;
            width: 220px;
            height: 220px;
            background: radial-gradient(circle, rgba(99,102,241,0.18), transparent 70%);
            pointer-events: none;
        }

        .trust-card.dark .trust-card-text {
            font-size: 18px;
            font-weight: 600;
            color: #ffffff;
            line-height: 1.45;
            letter-spacing: -0.3px;
            position: relative;
            z-index: 1;
        }

        .trust-card.dark .trust-card-badge {
            display: inline-block;
            font-size: 10px;
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: rgba(255,255,255,0.45);
            margin-bottom: 14px;
            position: relative;
            z-index: 1;
        }

        .trust-card.dark .trust-card-desc {
            font-size: 13px;
            font-weight: 400;
            color: rgba(255,255,255,0.7);
            line-height: 1.4;
            margin-top: 10px;
            min-height: 40px;
            position: relative;
            z-index: 1;
        }

        .trust-metric-label {
            font-size: 11px;
            font-weight: 600;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 0.6px;
            margin-bottom: 10px;
        }

        .trust-metric-value {
            font-size: 44px;
            font-weight: 700;
            color: #0f172a;
            letter-spacing: -2px;
            line-height: 1;
        }

        .trust-metric-desc {
            font-size: 13px;
            font-weight: 400;
            color: #6b7280;
            line-height: 1.4;
            margin-top: 10px;
            min-height: 40px;
        }

        .trust-logos {
            display: flex;
            align-items: center;
            padding: 20px 0;
            overflow: hidden;
            width: 100vw;
            position: relative;
            left: 50%;
            transform: translateX(-50%);
            background: #ffffff;
            border-top: 1px solid rgba(0,0,0,0.06);
            border-bottom: 1px solid rgba(0,0,0,0.06);
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
            min-height: 70px;
        }

        .trust-logo-marquee {
            display: flex;
            gap: 20px;
            animation: marqueeScroll 25s linear infinite;
            white-space: nowrap;
            will-change: transform;
        }

        .trust-logo-card {
            background: transparent;
            border: none;
            border-radius: 0;
            padding: 0;
            box-shadow: none;
            transition: transform 0.3s ease, color 0.3s ease;
            flex-shrink: 0;
            white-space: nowrap;
            min-width: fit-content;
            display: flex;
            align-items: center;
            height: 100%;
        }

        .trust-logo-item {
            font-size: 25px;
            font-weight: 600;
            color: #000000;
            letter-spacing: -0.3px;
            transition: color 0.3s ease, transform 0.3s ease;
            line-height: 1.2;
        }

        .trust-logo-card:hover .trust-logo-item {
            color: #6366f1;
            transform: scale(1.05);
        }

        .trust-logos:hover .trust-logo-marquee {
            animation-play-state: paused;
        }

        @keyframes marqueeScroll {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(-50%);
            }
        }

        /* Responsive adjustments */
        @media (max-width: 1200px) {
            .trust-logo-marquee {
                animation-duration: 22s;
            }
            
            .trust-logo-item {
                font-size: 23px;
            }
        }

        @media (max-width: 768px) {
            .trust-logos {
                padding: 16px 0;
                min-height: 60px;
            }
            
            .trust-logo-marquee {
                gap: 16px;
                animation-duration: 20s;
            }
            
            .trust-logo-item {
                font-size: 21px;
            }
        }

        @media (max-width: 480px) {
            .trust-logos {
                padding: 14px 0;
                min-height: 55px;
            }
            
            .trust-logo-marquee {
                gap: 12px;
                animation-duration: 18s;
            }
            
            .trust-logo-item {
                font-size: 19px;
            }
        }

        .trust-logos-label {
            font-size: 11px;
            font-weight: 600;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            text-align: center;
            margin-bottom: 20px;
        }

        .trust-logo-item {
            font-size: 14px;
            font-weight: 600;
            color: #64748b;
            opacity: 0.65;
            letter-spacing: -0.2px;
            transition: opacity 0.2s ease;
            white-space: nowrap;
        }

        .trust-logo-item:hover {
            opacity: 1;
        }

        @media (max-width: 900px) {
            .trust-grid {
                grid-template-columns: 1fr 1fr;
            }

            .trust-card.dark {
                grid-column: span 2;
                min-height: 140px;
            }
        }

        @media (max-width: 560px) {
            .trust-grid {
                grid-template-columns: 1fr;
            }

            .trust-card.dark {
                grid-column: span 1;
            }

            .trust-metric-value {
                font-size: 36px;
            }

            .trust-logos {
                gap: 24px;
            }
        }

        /* ============================================ */
        /* AI ANALYTICS SHOWCASE SECTION — FIXED LAYOUT */
        /* ============================================ */

        /* ALIGNMENT FIX */
        /* Section owns only background + vertical padding — no horizontal padding */
        .analytics-section {
            background:
                radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 38%),
                linear-gradient(160deg, #111827 0%, #1f2937 55%, #0f172a 100%);
            padding: 80px 0;
            margin: 0;
            width: 100%;
            position: relative;
            overflow: hidden;
        }

        .analytics-section::before {
            content: '';
            position: absolute;
            right: -56px;
            top: -46px;
            width: 220px;
            height: 220px;
            border-radius: 44px;
            background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.02));
            transform: rotate(16deg);
            pointer-events: none;
        }

        .analytics-section::after {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 18% 16%, rgba(255,255,255,0.08), transparent 42%);
            pointer-events: none;
        }

        /* HERO CONSISTENCY */
        /* Let the global .container rule handle max-width + horizontal padding */
        .analytics-section > .container {
            position: relative;
            z-index: 1;
            padding-top: 0;
            padding-bottom: 0;
        }

        /* Mirrors .hero-content exactly */
        .analytics-top {
            display: grid;
            grid-template-columns: 1.2fr 1fr;
            gap: 40px;
            align-items: center;
            margin-bottom: 48px;
        }

        /* Mirrors .hero-left — no max-width cap, fills its grid column */
        .analytics-left .analytics-label {
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: rgba(255,255,255,0.68);
            margin-bottom: 14px;
        }

        .analytics-left h2 {
            font-size: 36px;
            font-weight: 700;
            color: #ffffff;
            line-height: 1.2;
            letter-spacing: -0.8px;
            margin-bottom: 0;
        }

        /* Mirrors .hero-right — no max-width cap, fills its grid column */
        .analytics-right p {
            font-size: 14px;
            color: rgba(255,255,255,0.76);
            line-height: 1.7;
        }

        /* Graph block — full container width, no centering offset */
        .analytics-visual {
            width: 100%;
        }

        .analytics-card {
            background: #ffffff;
            border: 1px solid rgba(0,0,0,0.07);
            border-radius: 20px;
            padding: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
            transition: transform 0.25s ease, box-shadow 0.25s ease;
            max-width: 100%;
            margin: 0;
        }

        .analytics-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 20px 48px rgba(0,0,0,0.12);
        }

        /* Tabs */
        .analytics-tabs {
            display: flex;
            gap: 6px;
            margin-bottom: 20px;
        }

        .analytics-tab {
            padding: 5px 12px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 500;
            color: #64748b;
            background: transparent;
            border: 1px solid rgba(0,0,0,0.08);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .analytics-tab:hover {
            background: rgba(0,0,0,0.04);
            color: #0f172a;
        }

        .analytics-tab.active {
            background: #0f172a;
            color: #ffffff;
            border-color: #0f172a;
        }

        /* Metrics row */
        .analytics-metrics {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 4px;
            margin-bottom: 20px;
        }

        .analytics-metric {
            padding: 12px 10px;
            border-radius: 10px;
            background: #f8f9fb;
        }

        .analytics-metric-label {
            font-size: 10px;
            font-weight: 600;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 0.4px;
            margin-bottom: 6px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .analytics-metric-value {
            font-size: 20px;
            font-weight: 700;
            color: #0f172a;
            letter-spacing: -0.5px;
            line-height: 1;
            margin-bottom: 4px;
        }

        .analytics-metric-change {
            font-size: 10px;
            font-weight: 500;
            color: #16a34a;
        }

        /* Chart area */
        .analytics-chart {
            background: #f8f9fb;
            border-radius: 12px;
            padding: 16px 16px 8px;
            height: 240px;
            position: relative;
            overflow: hidden;
        }

        /* Grid lines */
        .analytics-chart::before {
            content: '';
            position: absolute;
            inset: 16px 16px 24px;
            background-image:
                linear-gradient(to bottom, rgba(0,0,0,0.05) 1px, transparent 1px);
            background-size: 100% 25%;
        }

        .chart-lines {
            position: absolute;
            inset: 16px 16px 24px;
        }

        .chart-lines svg {
            width: 100%;
            height: 100%;
            overflow: visible;
        }

        /* Y-axis labels */
        .chart-y-labels {
            position: absolute;
            left: 0;
            top: 16px;
            bottom: 24px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            pointer-events: none;
        }

        .chart-y-label {
            font-size: 9px;
            color: #cbd5e1;
            font-weight: 500;
        }

        /* X-axis labels */
        .chart-x-labels {
            position: absolute;
            bottom: 0;
            left: 16px;
            right: 16px;
            display: flex;
            justify-content: space-between;
        }

        .chart-x-label {
            font-size: 9px;
            color: #cbd5e1;
            font-weight: 500;
        }

        /* Chart legend */
        .chart-legend {
            display: flex;
            gap: 14px;
            margin-top: 12px;
        }

        .chart-legend-item {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 11px;
            color: #64748b;
            font-weight: 500;
        }

        .chart-legend-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        @media (max-width: 900px) {
            .analytics-left h2 {
                font-size: 28px;
            }
        }

        @media (max-width: 768px) {
            .analytics-top {
                grid-template-columns: 1fr;
                gap: 24px;
                margin-bottom: 32px;
            }
        }

        @media (max-width: 560px) {
            .analytics-section {
                padding: 48px 0;
            }

            .analytics-left h2 {
                font-size: 24px;
            }

            .analytics-metrics {
                grid-template-columns: repeat(2, 1fr);
            }

            .analytics-chart {
                height: 160px;
            }
        }

        @media (max-width: 480px) {
            .nav-links {
                gap: 8px;
            }

            .nav-link:not(.primary) {
                display: none;
            }

            .hero h1 {
                font-size: 2rem;
            }

            .tts-card {
                padding: 20px;
            }

            .card-header h2 {
                font-size: 1.5rem;
            }

            .text-pressure-container {
                height: 140px;
                margin: 4px 0 24px;
                border-radius: 20px;
            }
        }

        /* ============================================ */
        /* NEW HOW IT WORKS SECTION                     */
        /* ============================================ */

        .how-it-works {
            padding: 80px 0;
            background:
                radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 38%),
                linear-gradient(160deg, #111827 0%, #1f2937 55%, #0f172a 100%);
            position: relative;
            overflow: hidden;
        }

        .how-it-works::before {
            content: '';
            position: absolute;
            right: -56px;
            top: -46px;
            width: 220px;
            height: 220px;
            border-radius: 44px;
            background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.02));
            transform: rotate(16deg);
            pointer-events: none;
        }

        .how-it-works::after {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 18% 16%, rgba(255,255,255,0.08), transparent 42%);
            pointer-events: none;
        }

        .section-divider {
            width: 100vw;
            margin-left: calc(50% - 50vw);
            margin-right: calc(50% - 50vw);
        }

        .section-divider::after {
            content: '';
            display: block;
            width: 100%;
            height: 1px;
            background: rgba(0,0,0,0.08);
        }

        .how-it-works > .container {
            position: relative;
            z-index: 1;
            padding-top: 0;
            padding-bottom: 0;
        }

        .how-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 40px;
            margin-bottom: 40px;
        }

        .how-header-left {
            max-width: 55%;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .how-header-right {
            max-width: 40%;
            margin-top: 8px;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 14px;
        }

        .how-header .how-label {
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: rgba(255,255,255,0.68);
            margin-bottom: 0;
        }

        .how-header h2 {
            font-size: 36px;
            font-weight: 700;
            color: #ffffff;
            line-height: 1.2;
            letter-spacing: -0.8px;
            margin-bottom: 0;
        }

        .how-header p {
            font-size: 15px;
            color: rgba(255,255,255,0.76);
            line-height: 1.6;
            max-width: none;
        }

        .how-it-works .btn-primary {
            background: rgba(255,255,255,0.94);
            color: #0f172a;
            border: 1px solid rgba(255,255,255,0.72);
            box-shadow: 0 14px 28px rgba(15,23,42,0.18);
        }

        .how-it-works .btn-primary:hover {
            background: #ffffff;
            box-shadow: 0 18px 34px rgba(15,23,42,0.24);
        }

        .how-steps {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }

        .how-card {
            background: #f8f9fb;
            border: 1px solid rgba(0,0,0,0.07);
            border-radius: 16px;
            padding: 24px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            transition: transform 0.25s ease, box-shadow 0.25s ease;
            position: relative;
            overflow: hidden;
        }

        .how-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 32px rgba(0,0,0,0.1);
        }

        .how-card-number {
            position: absolute;
            top: 16px;
            right: 20px;
            font-size: 36px;
            font-weight: 700;
            color: rgba(0,0,0,0.05);
            line-height: 1;
            letter-spacing: -1px;
            pointer-events: none;
            user-select: none;
        }

        .how-card-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            background: #0f172a;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
            flex-shrink: 0;
        }

        .how-card-icon svg {
            width: 18px;
            height: 18px;
            stroke: #ffffff;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .how-card h3 {
            font-size: 15px;
            font-weight: 600;
            color: #0f172a;
            margin-bottom: 8px;
            letter-spacing: -0.2px;
        }

        .how-card p {
            font-size: 13px;
            color: #64748b;
            line-height: 1.65;
        }

        /* Connector line between cards */
        .how-steps::before {
            content: '';
            position: absolute;
            top: 44px;
            left: calc(33.33% - 10px);
            width: calc(33.33% + 20px);
            height: 1px;
            background: linear-gradient(to right, transparent, rgba(0,0,0,0.1), transparent);
            pointer-events: none;
        }

        .how-steps {
            position: relative;
        }

        @media (max-width: 768px) {
            .how-header {
                flex-direction: column;
                gap: 14px;
            }

            .how-header-left,
            .how-header-right {
                max-width: 100%;
            }

            .how-header-right {
                margin-top: 0;
            }

            .how-steps {
                grid-template-columns: repeat(2, 1fr);
            }
            .how-steps::before {
                display: none;
            }
            .how-header h2 {
                font-size: 28px;
            }
        }

        @media (max-width: 560px) {
            .how-it-works {
                padding: 48px 0;
            }
            .how-steps {
                grid-template-columns: 1fr;
            }
            .how-header h2 {
                font-size: 24px;
            }
        }

        /* ============================================ */
        /* VOICE SHOWCASE SECTION                       */
        /* ============================================ */

        .voice-showcase {
            padding: 80px 0;
        }

        .voice-showcase > .container {
            padding-top: 0;
            padding-bottom: 0;
        }

        .voice-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 40px;
            margin-bottom: 28px;
        }

        .voice-header-left {
            max-width: 55%;
        }

        .voice-header-right {
            max-width: 40%;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .voice-header .voice-label {
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: #94a3b8;
            margin-bottom: 14px;
        }

        .voice-header h2 {
            font-size: 36px;
            font-weight: 700;
            color: #0f172a;
            line-height: 1.2;
            letter-spacing: -0.8px;
            margin-bottom: 12px;
        }

        .voice-header p {
            font-size: 15px;
            color: #64748b;
            line-height: 1.6;
        }

        .voice-tabs {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .voice-tab {
            padding: 6px 14px;
            border-radius: 999px;
            border: 1px solid rgba(0,0,0,0.1);
            background: #f3f4f6;
            color: #64748b;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .voice-tab:hover {
            background: #e5e7eb;
            color: #0f172a;
        }

        .voice-tab.active {
            background: #0f172a;
            color: #ffffff;
            border-color: #0f172a;
        }

        .voice-showcase .voice-list-shell {
            --voice-card-row-height: 72px;
            --voice-card-gap: 14px;
            background:
                radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 38%),
                linear-gradient(160deg, #111827 0%, #1f2937 55%, #0f172a 100%);
            border: 1px solid rgba(15, 23, 42, 0.08);
            border-radius: 30px;
            padding: 24px 24px 16px;
            box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
            position: relative;
            overflow: hidden;
            height: 500px;
            display: flex;
            flex-direction: column;
        }

        .voice-showcase .voice-list-shell::before {
            content: '';
            position: absolute;
            right: -56px;
            top: -46px;
            width: 220px;
            height: 220px;
            border-radius: 44px;
            background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.02));
            transform: rotate(16deg);
            pointer-events: none;
        }

        .voice-showcase .voice-list-shell::after {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 18% 16%, rgba(255,255,255,0.08), transparent 42%);
            pointer-events: none;
        }

        .voice-showcase .voice-list-heading {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 18px;
            position: relative;
            z-index: 2;
        }

        .voice-showcase .voice-list-kicker {
            font-size: 16px;
            font-weight: 700;
            color: #ffffff;
            margin: 0 0 4px;
        }

        .voice-showcase .voice-list-subtitle {
            font-size: 13px;
            color: rgba(255,255,255,0.72);
        }

        .voice-showcase .voice-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            grid-auto-rows: var(--voice-card-row-height);
            gap: 14px;
            position: relative;
            z-index: 2;
            overflow-y: auto;
            padding-right: 6px;
            padding-bottom: 0;
            margin-bottom: 0;
            min-height: 0;
            flex: 1;
            align-content: start;
            background: transparent;
        }

        .voice-showcase .voice-grid::-webkit-scrollbar {
            width: 8px;
        }

        .voice-showcase .voice-grid::-webkit-scrollbar-track {
            background: transparent;
            border-radius: 999px;
        }

        .voice-showcase .voice-grid::-webkit-scrollbar-thumb {
            background: rgba(15, 23, 42, 0.18);
            border-radius: 999px;
        }

        .voice-showcase .voice-grid::-webkit-scrollbar-thumb:hover {
            background: rgba(15, 23, 42, 0.28);
        }

        .voice-showcase .voice-card {
            background: #ffffff;
            border: 1px solid rgba(0, 0, 0, 0.06);
            border-radius: 16px;
            min-width: 0;
            min-height: 0;
            padding: 14px 18px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
            transition: border-color 0.25s ease, box-shadow 0.25s ease;
            cursor: pointer;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        .voice-showcase .voice-card:hover {
            border: 1px solid rgba(0, 0, 0, 0.15);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
            background: #ffffff;
        }

        .voice-showcase .voice-card.active,
        .voice-showcase .voice-card.playing {
            border: 1.5px solid #000;
            box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
            background: #ffffff;
        }

        /* Enhanced Voice Showcase avatars */
        .voice-showcase .voice-avatar {
            width: 38px !important;
            height: 38px !important;
            min-width: 38px !important;
            min-height: 38px !important;
            max-width: 38px !important;
            max-height: 38px !important;
            border-radius: 50%;
            position: relative;
            overflow: hidden;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-weight: 600;
            font-size: 14px;
            box-shadow: none;
            transition: transform 0.25s ease;
        }

        .voice-showcase .voice-avatar span {
            position: relative;
            z-index: 1;
        }

        .voice-showcase .voice-avatar::before {
            content: '';
            position: absolute;
            inset: -50%;
            animation: rotateGradient 3s linear infinite;
        }

        /* Enhanced multi-tonal gradients with soft glows for Voice Showcase */
        .voice-showcase .voice-avatar.grad-1::before { background: radial-gradient(circle at 30% 30%, #a855f7, #ec4899, #f97316); }
        .voice-showcase .voice-avatar.grad-1 { box-shadow: none !important; }
        
        .voice-showcase .voice-avatar.grad-2::before { background: radial-gradient(circle at 30% 30%, #6366f1, #8b5cf6, #06b6d4); }
        .voice-showcase .voice-avatar.grad-2 { box-shadow: none !important; }
        
        .voice-showcase .voice-avatar.grad-3::before { background: radial-gradient(circle at 30% 30%, #06b6d4, #3b82f6, #10b981); }
        .voice-showcase .voice-avatar.grad-3 { box-shadow: none !important; }
        
        .voice-showcase .voice-avatar.grad-4::before { background: radial-gradient(circle at 30% 30%, #ef4444, #ec4899, #f59e0b); }
        .voice-showcase .voice-avatar.grad-4 { box-shadow: none !important; }
        
        .voice-showcase .voice-avatar.grad-5::before { background: radial-gradient(circle at 30% 30%, #3b82f6, #6366f1, #8b5cf6); }
        .voice-showcase .voice-avatar.grad-5 { box-shadow: none !important; }
        
        .voice-showcase .voice-avatar.grad-6::before { background: radial-gradient(circle at 30% 30%, #10b981, #84cc16, #14b8a6); }
        .voice-showcase .voice-avatar.grad-6 { box-shadow: none !important; }

        .voice-showcase .voice-card-header {
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 0;
            flex: 1;
        }

        .voice-showcase .voice-info {
            display: flex;
            flex-direction: column;
            justify-content: center;
            flex: 1;
            min-width: 0;
        }

        .voice-showcase .voice-name {
            font-weight: 600;
            font-size: 15px;
            color: #111827;
            margin-bottom: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .voice-showcase .voice-role {
            display: none;
        }

        .voice-showcase .voice-meta-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            flex-wrap: nowrap;
        }

        .voice-showcase .lang-badge {
            display: inline-flex;
            align-items: center;
            width: fit-content;
            font-size: 10px;
            font-weight: 500;
            line-height: 1;
            padding: 7px 11px;
            border-radius: 999px;
            background: rgba(0, 0, 0, 0.05);
            color: #4b5563;
            border: none;
            margin-top: 0;
            flex-shrink: 0;
        }

        .voice-showcase .voice-rating {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 10px;
            color: #f59e0b;
            font-weight: 500;
            margin-top: 0;
            flex-shrink: 0;
            white-space: nowrap;
        }

        .voice-showcase .voice-now-playing {
            font-size: 10px;
            font-weight: 600;
            color: #6366f1;
            letter-spacing: 0.3px;
            display: none;
        }

        .voice-showcase .play-btn {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background: #111827 !important;
            color: #ffffff !important;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            flex-shrink: 0;
            font-size: 11px;
            box-shadow: none !important;
            transition: all 0.25s ease;
        }

        .voice-showcase .play-btn svg {
            width: 12px;
            height: 12px;
            fill: #ffffff;
            display: block;
        }

        .voice-showcase .play-btn:hover {
            transform: scale(1.08);
            background: #000 !important;
            box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25) !important;
        }

        .voice-showcase .play-btn:active {
            transform: scale(0.9);
        }

        .voice-showcase .play-btn.playing {
            background: #2563eb !important;
        }


        /* Waveform bars shown when playing */
        .voice-showcase .voice-waveform {
            display: none;
            align-items: center;
            gap: 2px;
            height: 16px;
        }

        .voice-showcase .wv-bar {
            width: 3px;
            border-radius: 2px;
            background: #6366f1;
            animation: waveAnim 0.8s ease-in-out infinite;
        }

        .voice-showcase .wv-bar:nth-child(1) { height: 6px;  animation-delay: 0s; }
        .voice-showcase .wv-bar:nth-child(2) { height: 12px; animation-delay: 0.1s; }
        .voice-showcase .wv-bar:nth-child(3) { height: 8px;  animation-delay: 0.2s; }
        .voice-showcase .wv-bar:nth-child(4) { height: 14px; animation-delay: 0.15s; }
        .voice-showcase .wv-bar:nth-child(5) { height: 6px;  animation-delay: 0.05s; }

        @media (max-width: 1024px) {
            .voice-showcase .voice-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (max-width: 560px) {
            .voice-showcase {
                padding: 48px 0;
            }

            .voice-header {
                flex-direction: column;
                gap: 16px;
            }

            .voice-header-left,
            .voice-header-right {
                max-width: 100%;
            }

            .voice-showcase .voice-list-shell {
                padding: 18px;
                border-radius: 22px;
                height: auto;
            }

            .voice-showcase .voice-grid {
                grid-template-columns: 1fr;
                grid-auto-rows: auto;
                max-height: none;
                overflow: visible;
                padding-right: 0;
            }

            .voice-header h2 {
                font-size: 24px;
            }
        }

        /* ============================================ */
        /* FEATURES / CAPABILITIES SECTION              */
        /* ============================================ */

        .features-section {
            padding: 80px 0;
            background: #ffffff;
        }

        .features-section > .container {
            padding-top: 0;
            padding-bottom: 0;
        }

        .features-header {
            display: grid;
            grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.8fr);
            align-items: end;
            gap: 28px;
            margin-bottom: 40px;
        }

        .features-header-left {
            max-width: 680px;
        }

        .features-header-right {
            max-width: 420px;
            justify-self: end;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 18px;
        }

        .features-header .features-label {
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: #94a3b8;
            margin-bottom: 14px;
        }

        .features-header h2 {
            font-size: 36px;
            font-weight: 700;
            color: #0f172a;
            line-height: 1.2;
            letter-spacing: -0.8px;
            margin-bottom: 0;
        }

        .features-header p {
            font-size: 15px;
            color: #64748b;
            line-height: 1.7;
            max-width: 100%;
            margin: 0;
        }

        .features-cta {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 42px;
            padding: 0 18px;
            border-radius: 999px;
            background: #000000;
            color: #ffffff;
            text-decoration: none;
            font-size: 14px;
            font-weight: 400;
            transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
        }

        .features-cta:hover {
            background: #111111;
            transform: translateY(-1px);
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
        }

        .features-board {
            background: transparent;
            border: 0;
            border-radius: 0;
            padding: 0;
            box-shadow: none;
            overflow: visible;
        }

        .scroll-stack {
            position: relative;
            height: 360px;
        }

        .stack-stage {
            position: relative;
            top: auto;
            height: 100%;
            overflow: hidden;
            border-radius: 24px;
            background: #ffffff;
            border: 1px solid rgba(15, 23, 42, 0.08);
            box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
            isolation: isolate;
        }

        .stack-stage::before {
            content: '';
            position: absolute;
            inset: 0;
            background:
                radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 26%),
                radial-gradient(circle at bottom left, rgba(15, 23, 42, 0.06), transparent 30%);
            pointer-events: none;
            z-index: 0;
        }

        .stack-stage::after {
            content: '';
            position: absolute;
            left: 28px;
            right: 28px;
            bottom: 18px;
            height: 20px;
            border-radius: 999px;
            background: radial-gradient(circle, rgba(15, 23, 42, 0.14), transparent 72%);
            filter: blur(10px);
            pointer-events: none;
            z-index: 0;
        }

        .stack-card {
            position: absolute;
            inset: 0;
            overflow: hidden;
            padding: 30px;
            background:
                radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 38%),
                linear-gradient(160deg, #111827 0%, #1f2937 55%, #0f172a 100%);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 24px;
            box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
            transform-origin: top center;
            transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), filter 0.22s ease, opacity 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
            will-change: transform, filter, opacity;
            z-index: 1;
        }

        .stack-card:nth-child(1) { z-index: 1; }
        .stack-card:nth-child(2) { z-index: 2; }
        .stack-card:nth-child(3) { z-index: 3; }
        .stack-card:nth-child(4) { z-index: 4; }
        .stack-card:nth-child(5) { z-index: 5; }
        .stack-card:nth-child(6) { z-index: 6; }

        .stack-card::before {
            content: '';
            position: absolute;
            right: -42px;
            top: -40px;
            width: 150px;
            height: 150px;
            border-radius: 32px;
            background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.02));
            transform: rotate(16deg);
            opacity: 1;
            pointer-events: none;
        }

        .stack-card::after {
            content: '';
            position: absolute;
            inset: 1px;
            border-radius: 23px;
            background:
                linear-gradient(180deg, rgba(255,255,255,0.05), transparent 38%);
            pointer-events: none;
        }

        .stack-card.is-active {
            border-color: rgba(255, 255, 255, 0.18);
            box-shadow:
                0 24px 56px rgba(15, 23, 42, 0.24),
                0 0 0 1px rgba(255, 255, 255, 0.08) inset;
        }

        .stack-card.is-settled {
            box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
        }

        .stack-card.is-queued {
            box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
        }

        .stack-card-top,
        .stack-card h3,
        .stack-card p {
            position: relative;
            z-index: 1;
        }

        .stack-card-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 18px;
            margin-bottom: 30px;
        }

        .stack-card-kicker {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 48px;
            height: 32px;
            padding: 0 12px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.14);
            color: #ffffff;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.12em;
            transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
        }

        .stack-card-icon {
            width: 52px;
            height: 52px;
            border-radius: 16px;
            background: linear-gradient(160deg, #111827 0%, #1f2937 100%);
            box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
        }

        .stack-card-icon svg {
            width: 24px;
            height: 24px;
            stroke: #ffffff;
            fill: none;
            stroke-width: 1.75;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .stack-card h3 {
            max-width: 540px;
            font-size: clamp(28px, 3vw, 40px);
            font-weight: 700;
            color: #ffffff;
            margin-bottom: 14px;
            letter-spacing: -0.03em;
            line-height: 1.02;
            transition: transform 0.22s ease, opacity 0.22s ease;
        }

        .stack-card p {
            max-width: 520px;
            font-size: 16px;
            color: rgba(255,255,255,0.74);
            line-height: 1.7;
            transition: transform 0.22s ease, opacity 0.22s ease;
        }

        .stack-card.is-active .stack-card-kicker {
            background: rgba(255, 255, 255, 0.22);
            color: #ffffff;
            transform: translateY(-1px);
        }

        .stack-card.is-active .stack-card-icon {
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 20px 36px rgba(15, 23, 42, 0.24);
        }

        .stack-card.is-active h3,
        .stack-card.is-active p {
            transform: translateY(-1px);
        }

        .stack-end {
            display: none;
        }

        .use-doc-btn {
            align-self: flex-start;
            margin-top: 18px;
            margin-left: 0;
            padding: 10px 18px;
            text-decoration: none;
            position: relative;
            z-index: 1;
        }

        @media (max-width: 900px) {
            .stt-hero-grid {
                grid-template-columns: 1fr;
            }

            .stt-hero-header {
                flex-direction: column;
            }

            .features-header {
                grid-template-columns: 1fr;
                gap: 18px;
            }

            .features-header-right {
                justify-self: start;
                max-width: 560px;
            }

            .features-board {
                padding: 0;
            }

            .scroll-stack {
                height: 332px;
            }

            .stack-stage {
                height: 100%;
                border-radius: 22px;
            }

            .stack-card {
                padding: 26px;
            }

            .features-header h2 {
                font-size: 28px;
            }
        }

        @media (max-width: 560px) {
            .stt-hero-card {
                padding: 18px;
            }

            .stt-hero-copy h3 {
                font-size: 18px;
            }

            .stt-result-card {
                min-height: 220px;
            }

            .features-section {
                padding: 48px 0;
            }

            .features-board {
                padding: 0;
                border-radius: 0;
            }

            .scroll-stack {
                height: 300px;
            }

            .stack-stage {
                height: 100%;
                border-radius: 20px;
            }

            .stack-card {
                padding: 22px;
                border-radius: 20px;
            }

            .stack-card::after {
                border-radius: 19px;
            }

            .stack-card h3 {
                font-size: 24px;
            }

            .stack-card p {
                font-size: 15px;
            }

            .features-header h2 {
                font-size: 24px;
            }

            .features-header-right {
                gap: 14px;
            }

            .features-cta {
                min-height: 40px;
                padding: 0 16px;
            }
        }

        /* ============================================ */
        /* USE CASES SECTION                            */
        /* ============================================ */

        .use-cases {
            padding: 80px 0;
            background: transparent;
        }

        .use-cases > .container {
            padding-top: 0;
            padding-bottom: 0;
        }

        .use-header {
            display: grid;
            grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.8fr);
            align-items: end;
            gap: 28px;
            margin-bottom: 40px;
        }

        .use-header-left {
            max-width: 680px;
        }

        .use-header-right {
            max-width: 420px;
            justify-self: end;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 18px;
        }

        .use-header .use-label {
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: #94a3b8;
            margin-bottom: 14px;
        }

        .use-header h2 {
            font-size: 36px;
            font-weight: 700;
            color: #0f172a;
            line-height: 1.2;
            letter-spacing: -0.8px;
            margin-bottom: 0;
        }

        .use-header p {
            font-size: 15px;
            color: #64748b;
            line-height: 1.7;
            max-width: 100%;
            margin: 0;
        }

        .use-cta {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 42px;
            padding: 0 18px;
            border-radius: 999px;
            background: #000000;
            color: #ffffff;
            text-decoration: none;
            font-size: 14px;
            font-weight: 400;
            transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
        }

        .use-cta:hover {
            background: #111111;
            transform: translateY(-1px);
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
        }

        .use-board {
            background:
                radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 38%),
                linear-gradient(160deg, #111827 0%, #1f2937 55%, #0f172a 100%);
            border: 1px solid rgba(15,23,42,0.08);
            border-radius: 28px;
            padding: 24px 24px 0;
            box-shadow: 0 20px 48px rgba(15,23,42,0.16);
            min-height: 340px;
            display: flex;
            align-items: flex-end;
            justify-content: flex-end;
            position: relative;
            overflow: hidden;
        }

        .use-board::before {
            content: '';
            position: absolute;
            right: -56px;
            top: -46px;
            width: 220px;
            height: 220px;
            border-radius: 44px;
            background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.02));
            transform: rotate(16deg);
            pointer-events: none;
        }

        .use-board::after {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 18% 16%, rgba(255,255,255,0.08), transparent 42%);
            pointer-events: none;
        }

        .use-grid {
            width: 100%;
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            gap: 28px;
        }

        .use-board-copy {
            flex: 1 1 360px;
            max-width: 420px;
            align-self: center;
            padding: 10px 0 32px;
            position: relative;
            z-index: 1;
        }

        .use-board-eyebrow {
            display: inline-flex;
            align-items: center;
            padding: 5px 10px;
            border-radius: 999px;
            background: rgba(255,255,255,0.12);
            border: 1px solid rgba(255,255,255,0.16);
            color: rgba(255,255,255,0.72);
            font-size: 10px;
            font-weight: 600;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            margin-bottom: 16px;
        }

        .use-board-copy h3 {
            font-size: 28px;
            font-weight: 600;
            line-height: 1.15;
            letter-spacing: -0.04em;
            color: #ffffff;
            margin: 0 0 16px;
            max-width: 320px;
        }

        .use-board-copy p {
            margin: 0 0 12px;
            font-size: 15px;
            line-height: 1.7;
            color: rgba(255,255,255,0.74);
            max-width: 360px;
        }

        .use-card-swap {
            position: relative;
            width: min(100%, 540px);
            height: 580px;
            margin-right: -36px;
            margin-bottom: -92px;
        }

        .use-swap-card {
            position: absolute;
            top: 50%;
            left: 0;
            right: auto;
            width: calc(100% - 2px);
            min-height: 470px;
            transform: translateY(-50%);
            background: #fafafa;
            border: 1px solid rgba(15,23,42,0.08);
            border-radius: 18px;
            padding: 26px 24px 28px;
            box-shadow: 0 12px 28px rgba(15,23,42,0.08);
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            gap: 16px;
            will-change: transform;
        }

        .use-swap-card::before {
            content: '';
            position: absolute;
            top: 24px;
            right: 20px;
            bottom: -140px;
            width: 15px;
            border-radius: 999px;
            background: linear-gradient(180deg, #0f172a 0%, #475569 100%);
            opacity: 0.14;
            z-index: 0;
        }

        .use-swap-label {
            display: inline-flex;
            align-items: center;
            width: fit-content;
            padding: 4px 9px;
            border-radius: 999px;
            background: rgba(15,23,42,0.06);
            color: #64748b;
            font-size: 10px;
            font-weight: 600;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            position: relative;
            z-index: 1;
            margin-right: 34px;
        }

        .use-swap-card strong {
            font-size: 24px;
            font-weight: 600;
            line-height: 1.15;
            letter-spacing: -0.03em;
            color: #0f172a;
            position: relative;
            z-index: 1;
            margin-right: 34px;
        }

        .use-swap-card p {
            margin: 0;
            font-size: 15px;
            color: #64748b;
            line-height: 1.7;
            position: relative;
            z-index: 1;
            margin-right: 38px;
        }

        .use-swap-points {
            margin: 0;
            padding-left: 0;
            list-style: none;
            position: relative;
            z-index: 1;
            margin-right: 38px;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .use-swap-points li {
            font-size: 14px;
            color: #64748b;
            line-height: 1.6;
            position: relative;
            padding-left: 24px;
        }

        .use-swap-points li::before {
            content: '✓';
            position: absolute;
            left: 0;
            top: 0;
            color: #0f172a;
            font-weight: 600;
        }

        @media (max-width: 900px) {
            .use-header {
                grid-template-columns: 1fr;
                gap: 18px;
            }

            .use-header-right {
                justify-self: start;
                max-width: 560px;
            }

            .use-grid {
                width: 100%;
                flex-direction: column;
                align-items: stretch;
                gap: 18px;
            }

            .use-board-copy {
                max-width: 560px;
                padding: 4px 0 0;
                align-self: flex-start;
            }

            .use-board-copy h3 {
                max-width: none;
            }

            .use-header h2 {
                font-size: 28px;
            }
        }

        @media (max-width: 560px) {
            .use-cases {
                padding: 48px 0;
            }

            .use-board {
                padding: 16px;
                border-radius: 22px;
                min-height: 320px;
            }

            .use-grid {
                width: 100%;
            }

            .use-board-copy {
                max-width: 100%;
                padding: 0;
            }

            .use-board-copy h3 {
                font-size: 22px;
            }

            .use-board-copy p {
                font-size: 14px;
                max-width: 100%;
            }

            .use-header h2 {
                font-size: 24px;
            }

            .use-header-right {
                gap: 14px;
            }

            .use-cta {
                min-height: 40px;
                padding: 0 16px;
            }

            .use-card-swap {
                width: 100%;
                height: 470px;
                margin-right: -12px;
                margin-bottom: -64px;
            }

            .use-swap-card {
                width: 100%;
                min-height: 380px;
                padding: 20px;
            }

            .use-doc-btn {
                margin-left: 0;
            }

            .use-swap-card strong {
                font-size: 22px;
            }
        }

        /* ============================================ */
        /* API / DEVELOPER SECTION                      */
        /* ============================================ */

        .api-section {
            padding: 80px 0;
            background:
                radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 38%),
                linear-gradient(160deg, #111827 0%, #1f2937 55%, #0f172a 100%);
            position: relative;
            overflow: hidden;
        }

        .api-section::before {
            content: '';
            position: absolute;
            right: -56px;
            top: -46px;
            width: 220px;
            height: 220px;
            border-radius: 44px;
            background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.02));
            transform: rotate(16deg);
            pointer-events: none;
        }

        .api-section::after {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 18% 16%, rgba(255,255,255,0.08), transparent 42%);
            pointer-events: none;
        }

        .api-section > .container {
            position: relative;
            z-index: 1;
            padding-top: 0;
            padding-bottom: 0;
        }

        .api-grid {
            display: grid;
            grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
            gap: 40px;
            align-items: center;
        }

        .api-left,
        .api-right {
            min-width: 0;
        }

        .api-left .api-label {
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: rgba(255,255,255,0.68);
            margin-bottom: 14px;
        }

        .api-left h2 {
            font-size: 36px;
            font-weight: 700;
            color: #ffffff;
            line-height: 1.2;
            letter-spacing: -0.8px;
            margin-bottom: 16px;
        }

        .api-left p {
            font-size: 14px;
            color: rgba(255,255,255,0.76);
            line-height: 1.7;
            max-width: 480px;
            margin-bottom: 28px;
        }

        .api-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .api-section .btn-primary {
            background: rgba(255,255,255,0.94);
            color: #0f172a;
            border: 1px solid rgba(255,255,255,0.72);
            box-shadow: 0 14px 28px rgba(15,23,42,0.18);
        }

        .api-section .btn-primary:hover {
            background: #ffffff;
            box-shadow: 0 18px 34px rgba(15,23,42,0.24);
        }

        .api-section .btn-secondary {
            background: rgba(255,255,255,0.12);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            color: #ffffff;
            border: 1px solid rgba(255,255,255,0.16);
        }

        .api-section .btn-secondary:hover {
            background: rgba(255,255,255,0.18);
            border-color: rgba(255,255,255,0.26);
            color: #ffffff;
        }

        /* Code block card */
        .code-block {
            background: #0f172a;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 20px 48px rgba(0,0,0,0.18);
            transition: box-shadow 0.3s ease;
            width: 100%;
            max-width: 100%;
        }

        .code-block:hover {
            box-shadow: 0 24px 60px rgba(99,102,241,0.18), 0 20px 48px rgba(0,0,0,0.2);
        }

        /* Top bar: lang tabs + copy button */
        .code-block-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 16px;
            border-bottom: 1px solid rgba(255,255,255,0.07);
        }

        .code-lang-tabs {
            display: flex;
            gap: 4px;
        }

        .code-lang-tab {
            padding: 4px 12px;
            border-radius: 999px;
            border: none;
            background: transparent;
            color: rgba(255,255,255,0.4);
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            font-family: inherit;
        }

        .code-lang-tab:hover {
            color: rgba(255,255,255,0.75);
            background: rgba(255,255,255,0.06);
        }

        .code-lang-tab.active {
            background: rgba(255,255,255,0.1);
            color: #ffffff;
        }

        .code-copy-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 4px 12px;
            border-radius: 999px;
            border: 1px solid rgba(255,255,255,0.12);
            background: transparent;
            color: rgba(255,255,255,0.5);
            font-size: 11px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            font-family: inherit;
        }

        .code-copy-btn:hover {
            background: rgba(255,255,255,0.08);
            color: rgba(255,255,255,0.85);
            border-color: rgba(255,255,255,0.2);
        }

        .code-copy-btn.copied {
            color: #4ade80;
            border-color: rgba(74,222,128,0.3);
        }

        /* Code body */
        .code-block-body {
            padding: 20px;
            height: 320px;
            overflow: hidden;
            width: 100%;
            max-width: 100%;
        }

        .code-snippet {
            display: none;
            margin: 0;
            font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
            font-size: 13px;
            line-height: 1.7;
            color: #e2e8f0;
            white-space: pre;
            overflow-x: auto;
            overflow-y: auto;
            height: 100%;
            width: 100%;
            max-width: 100%;
            padding-right: 8px;
            box-sizing: border-box;
        }

        .code-snippet {
            scrollbar-width: thin;
            scrollbar-color: rgba(148, 163, 184, 0.45) rgba(255,255,255,0.04);
        }

        .code-snippet::-webkit-scrollbar {
            width: 10px;
            height: 10px;
        }

        .code-snippet::-webkit-scrollbar-track {
            background: rgba(255,255,255,0.04);
            border-radius: 999px;
        }

        .code-snippet::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, rgba(148, 163, 184, 0.75) 0%, rgba(100, 116, 139, 0.78) 100%);
            border-radius: 999px;
            border: 2px solid rgba(15, 23, 42, 0.92);
        }

        .code-snippet::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg, rgba(226, 232, 240, 0.82) 0%, rgba(148, 163, 184, 0.88) 100%);
        }

        .code-snippet::-webkit-scrollbar-corner {
            background: transparent;
        }

        .code-snippet.active {
            display: block;
        }

        /* Syntax colours */
        .tok-method  { color: #f472b6; }
        .tok-path    { color: #a5f3fc; }
        .tok-key     { color: #93c5fd; }
        .tok-str     { color: #86efac; }
        .tok-num     { color: #fcd34d; }
        .tok-comment { color: rgba(255,255,255,0.3); font-style: italic; }
        .tok-kw      { color: #c084fc; }
        .tok-fn      { color: #f472b6; }
        .tok-var     { color: #a5f3fc; }

        @media (max-width: 900px) {
            .api-left h2 { font-size: 28px; }
        }

        @media (max-width: 768px) {
            .api-grid {
                grid-template-columns: 1fr;
            }
            .api-section { padding: 48px 0; }
            .api-left h2 { font-size: 24px; }
        }

        /* ============================================ */
        /* PRICING SECTION                              */
        /* ============================================ */

        .pricing-section {
            padding: 80px 0;
            background: transparent;
        }

        .pricing-section > .container {
            padding-top: 0;
            padding-bottom: 0;
        }

        .pricing-header {
            display: grid;
            grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
            align-items: end;
            gap: 28px;
            margin-bottom: 40px;
        }

        .pricing-header-left {
            max-width: 640px;
        }

        .pricing-header-right {
            max-width: 420px;
            justify-self: end;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 18px;
        }

        .pricing-header .pricing-label {
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: #94a3b8;
            margin-bottom: 14px;
        }

        .pricing-header h2 {
            font-size: 36px;
            font-weight: 700;
            color: #0f172a;
            line-height: 1.2;
            letter-spacing: -0.8px;
            margin-bottom: 0;
        }

        .pricing-header p {
            font-size: 15px;
            color: #64748b;
            line-height: 1.7;
            margin: 0;
        }

        .pricing-toggle-wrap {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            width: 100%;
        }

        .pricing-toggle {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-top: 0;
            flex-wrap: wrap;
        }

        .pricing-toggle-label {
            font-size: 13px;
            font-weight: 500;
            color: #64748b;
            cursor: pointer;
            transition: color 0.2s ease;
        }

        .pricing-toggle-label.active {
            color: #0f172a;
            font-weight: 600;
        }

        .pricing-toggle-switch {
            position: relative;
            width: 44px;
            height: 24px;
            background: #e2e8f0;
            border-radius: 999px;
            cursor: pointer;
            transition: background 0.25s ease;
            border: none;
            flex-shrink: 0;
        }

        .pricing-toggle-switch.yearly {
            background: #0f172a;
        }

        .pricing-toggle-switch::after {
            content: '';
            position: absolute;
            top: 3px;
            left: 3px;
            width: 18px;
            height: 18px;
            background: #ffffff;
            border-radius: 50%;
            transition: transform 0.25s ease;
            box-shadow: 0 1px 4px rgba(0,0,0,0.15);
        }

        .pricing-toggle-switch.yearly::after {
            transform: translateX(20px);
        }

        .pricing-save-badge {
            font-size: 10px;
            font-weight: 600;
            letter-spacing: 0.4px;
            color: #16a34a;
            background: rgba(22,163,74,0.1);
            padding: 2px 8px;
            border-radius: 999px;
            opacity: 0;
            transform: translateX(-4px);
            transition: opacity 0.2s ease, transform 0.2s ease;
        }

        .pricing-save-badge.visible {
            opacity: 1;
            transform: translateX(0);
        }

        .pricing-container {
            background: #ffffff;
            border-radius: 20px;
            padding: 32px;
            border: 1px solid #e5e7eb;
            box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
        }

        .pricing-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 20px;
            align-items: stretch;
        }

        .pricing-card {
            background:
                radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 38%),
                linear-gradient(160deg, #111827 0%, #1f2937 55%, #0f172a 100%);
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 16px;
            padding: 24px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            gap: 18px;
            transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
            position: relative;
            min-height: 100%;
            overflow: hidden;
        }

        .pricing-card:hover {
            border-color: rgba(255,255,255,0.24);
            box-shadow: 0 18px 36px rgba(15,23,42,0.18);
            transform: translateY(-2px);
        }

        .pricing-card.popular {
            border: 2px solid rgba(255,255,255,0.34);
        }

        .pricing-card::before {
            content: '';
            position: absolute;
            right: -42px;
            top: -40px;
            width: 150px;
            height: 150px;
            border-radius: 32px;
            background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.02));
            transform: rotate(16deg);
            pointer-events: none;
        }

        .pricing-card-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
        }

        .pricing-card-title {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .pricing-card h3 {
            font-size: 20px;
            font-weight: 700;
            color: #ffffff;
            margin: 0;
        }

        .plan-desc {
            font-size: 13px;
            color: rgba(255,255,255,0.68);
            margin: 0;
        }

        .popular-badge {
            background: rgba(255,255,255,0.92);
            color: #0f172a;
            font-size: 11px;
            padding: 4px 10px;
            border-radius: 999px;
            font-weight: 600;
            white-space: nowrap;
        }

        .pricing-card-price {
            display: flex;
            align-items: baseline;
            gap: 4px;
        }

        .pricing-card-price .pricing-amount {
            font-size: 28px;
            font-weight: 700;
            color: #ffffff;
            margin: 12px 0;
            line-height: 1;
            letter-spacing: -1px;
        }

        .pricing-amount-custom {
            font-size: 28px;
            letter-spacing: -0.6px;
        }

        .pricing-period {
            font-size: 16px;
            color: rgba(255,255,255,0.68);
        }

        .pricing-features {
            margin: 16px 0 0;
            padding: 0;
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 10px;
            flex: 1;
        }

        .pricing-feature {
            margin: 0;
            font-size: 14px;
            color: rgba(255,255,255,0.82);
            display: flex;
            align-items: flex-start;
            gap: 10px;
            line-height: 1.5;
        }

        .pricing-feature-extra {
            display: none;
        }

        .pricing-card.expanded .pricing-feature-extra {
            display: flex;
        }

        .pricing-feature-icon {
            width: 18px;
            height: 18px;
            flex-shrink: 0;
            margin-top: 1px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .pricing-feature-icon svg {
            width: 18px;
            height: 18px;
            color: #ffffff;
        }

        .pricing-card-actions {
            margin-top: auto;
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .pricing-more-toggle {
            align-self: flex-start;
            min-height: 20px;
            padding: 0;
            border: none;
            background: transparent;
            color: rgba(255,255,255,0.72);
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: color 0.2s ease;
            font-family: inherit;
        }

        .pricing-more-toggle:hover {
            color: #ffffff;
        }

        .pricing-more-placeholder {
            display: block;
            min-height: 20px;
        }

        .pricing-cta {
            width: 100%;
            height: 42px;
            border-radius: 10px;
            font-size: 14px;
            font-weight: 600;
            border: 1px solid transparent;
            cursor: pointer;
            transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
            font-family: inherit;
        }

        .pricing-cta.outline {
            background: rgba(255,255,255,0.94);
            color: #0f172a;
            border-color: rgba(255,255,255,0.7);
        }

        .pricing-cta.outline:hover {
            background: #ffffff;
            border-color: #ffffff;
        }

        .pricing-cta.solid {
            background: rgba(255,255,255,0.14);
            color: #ffffff;
            border-color: rgba(255,255,255,0.18);
        }

        .pricing-cta.solid:hover {
            background: rgba(255,255,255,0.2);
        }

        @media (max-width: 1024px) {
            .pricing-header {
                grid-template-columns: 1fr;
                gap: 18px;
            }

            .pricing-header-right {
                justify-self: start;
                max-width: 560px;
            }

            .pricing-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .pricing-header h2 { font-size: 28px; }
        }

        @media (max-width: 560px) {
            .pricing-section { padding: 48px 0; }
            .pricing-container { padding: 20px; }
            .pricing-grid {
                grid-template-columns: 1fr;
            }
            .pricing-header h2 { font-size: 24px; }
            .pricing-card-price .pricing-amount { font-size: 32px; }
        }

        /* ============================================ */
        /* TESTIMONIALS SECTION                         */
        /* ============================================ */

        .testimonials-section {
            padding: 80px 0;
            background:
                radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 38%),
                linear-gradient(160deg, #111827 0%, #1f2937 55%, #0f172a 100%);
            position: relative;
            overflow: hidden;
        }

        .testimonials-section::before {
            content: '';
            position: absolute;
            right: -56px;
            top: -46px;
            width: 220px;
            height: 220px;
            border-radius: 44px;
            background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.02));
            transform: rotate(16deg);
            pointer-events: none;
        }

        .testimonials-section::after {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 18% 16%, rgba(255,255,255,0.08), transparent 42%);
            pointer-events: none;
        }

        .testimonials-section > .container {
            position: relative;
            z-index: 1;
            padding-top: 0;
            padding-bottom: 0;
        }

        .testimonials-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 32px;
            margin-bottom: 32px;
        }

        .testimonials-header-left {
            max-width: 520px;
        }

        .testimonials-header-right {
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: flex-end;
            flex: 1;
            gap: 16px;
            padding-top: 30px;
        }

        .testimonials-header .testimonials-label {
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: rgba(255,255,255,0.68);
            margin-bottom: 14px;
        }

        .testimonials-header h2 {
            font-size: 36px;
            font-weight: 700;
            color: #ffffff;
            line-height: 1.2;
            letter-spacing: -0.8px;
            margin-bottom: 12px;
        }

        .testimonials-header p {
            font-size: 14px;
            color: rgba(255,255,255,0.76);
            line-height: 1.7;
            margin: 0;
        }

        .testimonials-header-description {
            max-width: 320px;
            text-align: left;
        }

        .testimonials-nav {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
        }

        .testimonials-nav-btn {
            width: 48px;
            height: 44px;
            border-radius: 999px;
            border: 1px solid rgba(255,255,255,0.16);
            background: rgba(255,255,255,0.12);
            color: #ffffff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            cursor: pointer;
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
            box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
        }

        .testimonials-nav-btn:hover {
            transform: translateY(-2px);
            border-color: rgba(255,255,255,0.28);
            background: rgba(255,255,255,0.18);
            box-shadow: 0 18px 30px rgba(15, 23, 42, 0.24);
        }

        .testimonials-nav-btn:disabled {
            opacity: 0.38;
            cursor: default;
            transform: none;
            box-shadow: none;
        }

        .testimonials-carousel {
            overflow: hidden;
            background: transparent;
            border: none;
            box-shadow: none;
            padding: 6px;
            margin: -6px;
        }

        /* Grid */
        .testimonials-grid {
            display: flex;
            gap: 18px;
            align-items: stretch;
            background: transparent;
            transition: transform 0.35s ease;
            will-change: transform;
        }

        /* Card */
        .testimonial-card {
            background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
            border: 1px solid rgba(15, 23, 42, 0.08);
            border-radius: 20px;
            padding: 22px 20px;
            box-shadow: 0 16px 32px rgba(15, 23, 42, 0.10);
            transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            min-height: 100%;
            flex: 0 0 calc((100% - 18px) / 2);
        }

        .testimonial-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 22px 42px rgba(15, 23, 42, 0.14);
            border-color: rgba(15, 23, 42, 0.12);
        }

        .testimonial-card-featured {
            min-height: 0;
        }

        .testimonial-card-accent {
            background:
                radial-gradient(circle at top right, rgba(16, 185, 129, 0.10), transparent 34%),
                linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        }

        /* Decorative background quote mark */
        .testimonial-card::before {
            content: '\201C';
            position: absolute;
            top: -4px;
            right: 14px;
            font-size: 72px;
            font-weight: 700;
            color: rgba(15, 23, 42, 0.05);
            line-height: 1;
            pointer-events: none;
            user-select: none;
            font-family: Georgia, serif;
        }

        .testimonial-card-tag {
            align-self: flex-start;
            margin-bottom: 14px;
            padding: 7px 11px;
            border-radius: 999px;
            background: rgba(15, 23, 42, 0.05);
            color: #334155;
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 0.2px;
            position: relative;
            z-index: 1;
        }

        /* Star rating */
        .testimonial-stars {
            display: flex;
            gap: 3px;
            margin-bottom: 14px;
            position: relative;
            z-index: 1;
        }

        .testimonial-star {
            width: 14px;
            height: 14px;
            color: #f59e0b;
            fill: #f59e0b;
        }

        /* Quote text */
        .testimonial-quote {
            font-size: 14px;
            color: #334155;
            line-height: 1.7;
            margin-bottom: 20px;
            position: relative;
            z-index: 1;
            flex: 1;
        }

        /* Author row */
        .testimonial-author {
            display: flex;
            align-items: center;
            gap: 12px;
            padding-top: 14px;
            border-top: 1px solid rgba(15, 23, 42, 0.08);
            position: relative;
            z-index: 1;
        }

        /* Avatar circle with initials */
        .testimonial-avatar {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            font-weight: 700;
            color: #ffffff;
            flex-shrink: 0;
            letter-spacing: 0.3px;
        }

        .testimonial-avatar.av-1 { background: linear-gradient(135deg, #f97316, #fb7185); }
        .testimonial-avatar.av-2 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
        .testimonial-avatar.av-3 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
        .testimonial-avatar.av-4 { background: linear-gradient(135deg, #10b981, #06b6d4); }

        .testimonial-name {
            font-size: 14px;
            font-weight: 600;
            color: #0f172a;
            margin-bottom: 2px;
            letter-spacing: -0.1px;
        }

        .testimonial-role {
            font-size: 12px;
            color: #94a3b8;
            font-weight: 500;
        }

        @media (max-width: 900px) {
            .testimonials-header {
                align-items: flex-start;
                flex-direction: column;
                gap: 16px;
            }

            .testimonials-header-right {
                justify-content: flex-start;
                align-items: flex-start;
                flex-direction: column;
                padding-top: 0;
            }

            .testimonials-header-description {
                max-width: 100%;
            }

            .testimonials-nav {
                align-self: flex-start;
            }

            .testimonial-card,
            .testimonial-card-featured,
            .testimonial-card-compact { min-height: auto; }
            .testimonials-header h2 { font-size: 28px; }
        }

        @media (max-width: 560px) {
            .testimonials-section { padding: 48px 0; }
            .testimonial-card,
            .testimonial-card-featured,
            .testimonial-card-compact { flex-basis: 100%; }
            .testimonials-nav-btn {
                width: 40px;
                height: 40px;
            }
            .testimonials-header h2 { font-size: 24px; }
        }

        .blog-section {
            padding: 72px 24px;
            background: transparent;
        }

        .blog-section > .container {
            padding-top: 0;
            padding-bottom: 0;
        }

        .blog-section-header {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            gap: 20px;
            margin-bottom: 28px;
        }

        .blog-section-label {
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: #64748b;
            margin-bottom: 10px;
        }

        .blog-section-header h2 {
            font-size: 40px;
            line-height: 1.05;
            letter-spacing: -1px;
            color: #0f172a;
        }

        .blog-section-cta {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 12px 18px;
            border-radius: 999px;
            border: 1px solid rgba(15, 23, 42, 0.10);
            background: #ffffff;
            color: #0f172a;
            text-decoration: none;
            font-size: 13px;
            font-weight: 600;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .blog-section-cta:hover {
            transform: translateY(-1px);
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
        }

        .blog-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 18px;
        }

        .blog-card {
            display: flex;
            flex-direction: column;
            gap: 0;
            background: #ffffff;
            border: 1px solid rgba(15, 23, 42, 0.08);
            border-radius: 24px;
            padding: 14px;
            box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
        }

        .blog-card-thumb {
            min-height: 244px;
            border-radius: 20px;
            position: relative;
            overflow: hidden;
            background:
                radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 38%),
                linear-gradient(160deg, #111827 0%, #1f2937 55%, #0f172a 100%);
            color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 28px;
            font-size: 18px;
            font-weight: 500;
            line-height: 1.2;
            letter-spacing: -0.03em;
        }

        .blog-card-thumb::before {
            content: '';
            position: absolute;
            right: -42px;
            top: -40px;
            width: 150px;
            height: 150px;
            border-radius: 32px;
            background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.02));
            transform: rotate(16deg);
            pointer-events: none;
        }

        .blog-card-body {
            padding: 18px 8px 8px;
        }

        .blog-card-title {
            font-size: 16px;
            line-height: 1.35;
            color: #0f172a;
            font-weight: 500;
            margin-bottom: 8px;
        }

        .blog-card-excerpt {
            font-size: 14px;
            line-height: 1.6;
            color: #334155;
            margin-bottom: 10px;
        }

        .blog-card-meta {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            font-size: 12px;
            color: #64748b;
            font-weight: 500;
        }

        .blog-card-category {
            color: #0f172a;
        }

        .blog-card-loading {
            grid-column: 1 / -1;
        }

        .blog-card-loading .blog-card-thumb {
            min-height: 180px;
        }

        .landing-ad-section {
            padding: 0 24px 80px;
        }

        .landing-ad-shell {
            max-width: 1200px;
            margin: 0 auto;
        }

        .landing-ad-card {
            position: relative;
            overflow: hidden;
            min-height: 280px;
            border-radius: 30px;
            padding: 36px;
            background:
                radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 38%),
                linear-gradient(160deg, #111827 0%, #1f2937 55%, #0f172a 100%);
            border: 1px solid rgba(15,23,42,0.08);
            box-shadow: 0 18px 42px rgba(15,23,42,0.14);
            display: grid;
            grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
            gap: 28px;
            align-items: end;
        }

        .landing-ad-card::before {
            content: '';
            position: absolute;
            right: -56px;
            top: -46px;
            width: 220px;
            height: 220px;
            border-radius: 44px;
            background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.02));
            transform: rotate(16deg);
            pointer-events: none;
        }

        .landing-ad-content,
        .landing-ad-preview {
            position: relative;
            z-index: 1;
        }

        .landing-ad-kicker {
            display: inline-flex;
            align-items: center;
            padding: 6px 12px;
            border-radius: 999px;
            background: rgba(255,255,255,0.12);
            border: 1px solid rgba(255,255,255,0.16);
            color: rgba(255,255,255,0.8);
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            margin-bottom: 16px;
        }

        .landing-ad-title {
            max-width: 560px;
            color: #fff;
            font-size: clamp(34px, 4vw, 52px);
            line-height: 0.94;
            letter-spacing: -0.05em;
            font-weight: 700;
            margin-bottom: 14px;
        }

        .landing-ad-description {
            max-width: 420px;
            color: rgba(255,255,255,0.78);
            font-size: 16px;
            line-height: 1.55;
            margin-bottom: 24px;
        }

        .landing-ad-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 150px;
            min-height: 48px;
            padding: 0 20px;
            border-radius: 999px;
            background: #ffffff;
            color: #0f172a;
            font-size: 14px;
            font-weight: 700;
            text-decoration: none;
            transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
        }

        .landing-ad-button:hover {
            background: #f8fafc;
            transform: translateY(-2px);
            box-shadow: 0 16px 28px rgba(0,0,0,0.14);
        }

        .landing-ad-preview {
            justify-self: end;
            width: min(100%, 320px);
            padding: 20px;
            border-radius: 24px;
            background: rgba(255,255,255,0.08);
            border: 1px solid rgba(255,255,255,0.14);
            backdrop-filter: blur(10px);
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .landing-ad-preview-label {
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: rgba(255,255,255,0.64);
        }

        .landing-ad-preview-title {
            color: #fff;
            font-size: 24px;
            font-weight: 700;
            line-height: 1;
            letter-spacing: -0.04em;
        }

        .landing-ad-preview-desc {
            color: rgba(255,255,255,0.76);
            font-size: 13px;
            line-height: 1.55;
        }

        .landing-ad-preview-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: fit-content;
            min-height: 34px;
            padding: 0 14px;
            border-radius: 999px;
            background: rgba(255,255,255,0.94);
            color: #0f172a;
            font-size: 12px;
            font-weight: 700;
        }

        .landing-ad-loading {
            min-height: 220px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #64748b;
            background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
        }

        @media (max-width: 900px) {
            .blog-grid {
                grid-template-columns: 1fr;
            }

            .blog-section-header {
                align-items: flex-start;
                flex-direction: column;
            }

            .landing-ad-card {
                grid-template-columns: 1fr;
                padding: 28px;
            }

            .landing-ad-preview {
                justify-self: stretch;
                width: 100%;
            }
        }

        @media (max-width: 560px) {
            .blog-section {
                padding: 52px 16px;
            }

            .blog-section-header h2 {
                font-size: 28px;
            }

            .blog-card-thumb {
                min-height: 200px;
                font-size: 16px;
            }

            .landing-ad-section {
                padding: 0 16px 72px;
            }

            .landing-ad-card {
                min-height: 0;
                border-radius: 24px;
                padding: 24px;
                gap: 20px;
            }

            .landing-ad-title {
                font-size: 32px;
            }

            .landing-ad-description {
                font-size: 14px;
            }
        }

        /* ============================================ */
        /* FINAL CTA SECTION                            */
        /* ============================================ */

        .cta-section {
            padding: 80px 24px;
            background:
                radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 38%),
                linear-gradient(160deg, #111827 0%, #1f2937 55%, #0f172a 100%);
            position: relative;
            overflow: hidden;
        }

        .cta-section::before {
            content: '';
            position: absolute;
            right: -56px;
            top: -46px;
            width: 220px;
            height: 220px;
            border-radius: 44px;
            background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.02));
            transform: rotate(16deg);
            pointer-events: none;
        }

        .cta-section::after {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 18% 16%, rgba(255,255,255,0.08), transparent 42%);
            pointer-events: none;
        }

        .cta-section > .container {
            position: relative;
            z-index: 1;
            padding-top: 0;
            padding-bottom: 0;
        }

        .cta-grid {
            display: grid;
            grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
            gap: 20px;
            align-items: stretch;
        }

        .cta-content {
            text-align: left;
            padding: 48px 40px;
            border-radius: 28px;
            background: #ffffff;
            border: 1px solid rgba(15, 23, 42, 0.08);
            box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
            background-image: none;
            background-size: auto;
            animation: none;
            position: relative;
            overflow: hidden;
        }

        /* Radial glow overlay */
        .cta-content::before {
            content: '';
            position: absolute;
            inset: 0;
            background: none;
            pointer-events: none;
        }

        .cta-card-primary {
            min-height: 100%;
        }

        .cta-flip-card {
            position: relative;
            width: 100%;
            min-height: 100%;
            perspective: 1400px;
            z-index: 1;
        }

        .cta-flip-card-inner {
            position: relative;
            width: 100%;
            min-height: 100%;
            transform-style: preserve-3d;
            transition: transform 0.6s ease;
        }

        .cta-flip-card.is-flipped .cta-flip-card-inner {
            transform: rotateY(180deg);
        }

        .cta-flip-face {
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            min-height: 100%;
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
        }

        .cta-flip-face-back {
            position: absolute;
            inset: 0;
            transform: rotateY(180deg);
        }

        .cta-flip-face-back.is-success .cta-form-header,
        .cta-flip-face-back.is-success .cta-contact-form {
            display: none;
        }

        .cta-card-secondary {
            background: #ffffff;
            background-image: none;
        }

        .cta-card-secondary::before {
            background: none;
        }

        .cta-card-label {
            display: inline-flex;
            align-items: center;
            align-self: flex-start;
            width: fit-content;
            max-width: max-content;
            margin-bottom: 18px;
            padding: 8px 12px;
            border-radius: 999px;
            background: rgba(15, 23, 42, 0.05);
            border: 1px solid rgba(15, 23, 42, 0.08);
            color: #475569;
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            position: relative;
            z-index: 1;
        }

        .cta-content h2 {
            font-size: 42px;
            font-weight: 700;
            color: #0f172a;
            line-height: 1.15;
            letter-spacing: -1px;
            margin-bottom: 16px;
            position: relative;
            z-index: 1;
        }

        .cta-form-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 20px;
            position: relative;
            z-index: 1;
        }

        .cta-form-close {
            border: 1px solid rgba(15, 23, 42, 0.08);
            background: #ffffff;
            color: #0f172a;
            border-radius: 999px;
            padding: 10px 14px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
        }

        .cta-content p {
            font-size: 15px;
            color: #64748b;
            line-height: 1.65;
            margin-bottom: 32px;
            position: relative;
            z-index: 1;
        }

        .cta-contact-list {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px;
            margin-bottom: 28px;
            position: relative;
            z-index: 1;
        }

        .cta-contact-item {
            display: flex;
            flex-direction: column;
            gap: 6px;
            padding: 14px 16px;
            border-radius: 18px;
            background: #ffffff;
            border: 1px solid rgba(15, 23, 42, 0.08);
        }

        .cta-contact-kicker {
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: #94a3b8;
        }

        .cta-contact-value {
            font-size: 15px;
            font-weight: 600;
            line-height: 1.5;
            color: #0f172a;
        }

        .cta-contact-form {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px;
            position: relative;
            z-index: 1;
            align-content: start;
        }

        .cta-form-field {
            display: flex;
            flex-direction: column;
            gap: 8px;
            font-size: 13px;
            font-weight: 600;
            color: #334155;
        }

        .cta-form-field span {
            color: #475569;
        }

        .cta-form-field input,
        .cta-form-field select {
            width: 100%;
            height: 46px;
            border-radius: 14px;
            border: 1px solid rgba(15, 23, 42, 0.10);
            background: #ffffff;
            padding: 0 14px;
            font: inherit;
            color: #0f172a;
            outline: none;
        }

        .cta-form-field input:focus,
        .cta-form-field select:focus {
            border-color: #0f172a;
            box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
        }

        .cta-form-field.cta-form-field-full {
            grid-column: 1 / -1;
        }

        .cta-submit-btn {
            grid-column: 1 / -1;
            justify-content: center;
            width: 100%;
        }

        .cta-success-dialog {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: flex-start;
            min-height: 100%;
            position: relative;
            z-index: 1;
        }

        .cta-success-dialog h2 {
            margin-bottom: 12px;
        }

        .cta-success-dialog p {
            max-width: 420px;
            margin-bottom: 24px;
        }

        .cta-success-btn {
            min-width: 200px;
            justify-content: center;
        }

        .cta-buttons {
            display: flex;
            gap: 12px;
            justify-content: flex-start;
            flex-wrap: wrap;
            position: relative;
        }

        /* Override btn-primary inside CTA for white-on-dark treatment */
        .cta-content .btn-primary {
            background: #0f172a;
            color: #ffffff;
            padding: 12px 28px;
            font-size: 15px;
        }

        .cta-content .btn-primary:hover {
            background: #111827;
            transform: translateY(-2px);
            box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
        }

        /* Override btn-secondary inside CTA for glass treatment */
        .cta-content .btn-secondary {
            background: #ffffff;
            color: #0f172a;
            border: 1px solid rgba(15, 23, 42, 0.1);
            padding: 12px 28px;
            font-size: 15px;
        }

        .cta-content .btn-secondary:hover {
            background: #f8fafc;
            transform: translateY(-2px);
        }

        @media (max-width: 768px) {
            .cta-grid {
                grid-template-columns: 1fr;
            }
            .cta-content {
                padding: 48px 28px;
            }
            .cta-contact-form {
                grid-template-columns: 1fr;
            }
            .cta-content h2 {
                font-size: 32px;
            }
        }

        @media (max-width: 480px) {
            .cta-section { padding: 48px 16px; }
            .cta-content {
                padding: 40px 20px;
                border-radius: 20px;
            }
            .cta-contact-list {
                grid-template-columns: 1fr;
            }
            .cta-content h2 { font-size: 26px; }
            .cta-buttons { flex-direction: column; align-items: stretch; }
            .cta-content .btn-primary,
            .cta-content .btn-secondary { width: 100%; max-width: 280px; justify-content: center; }
        }

        .scroll-section {
            background: #000000;
            padding: 22px 0;
        }

        .parallax {
            overflow: hidden;
            position: relative;
        }

        .scroller {
            display: flex;
            white-space: nowrap;
            font-size: 48px;
            font-weight: bold;
            color: #ffffff;
            will-change: transform;
        }

        .scroller span {
            margin-right: 40px;
        }

        @media (max-width: 560px) {
            .scroll-section {
                padding: 18px 0;
            }

            .scroller {
                font-size: 32px;
            }
        }

        /* FIX 4: Mini waveform — animates when card has .playing class */
        .mini-wave {
            display: flex;
            gap: 3px;
            height: 16px;
            justify-content: center;
            margin-top: 0;
        }
        .mini-wave span {
            width: 3px;
            height: 6px;
            background: #cbd5e1;
            border-radius: 2px;
            transition: background 0.2s;
        }
        .voice-card-item.playing .mini-wave span {
            background: #6366f1;
            animation: miniWave 1s infinite ease-in-out;
        }
        .voice-card-item.playing .mini-wave span:nth-child(2) { animation-delay: 0.15s; }
        .voice-card-item.playing .mini-wave span:nth-child(3) { animation-delay: 0.30s; }
        .voice-card-item.playing .mini-wave span:nth-child(4) { animation-delay: 0.45s; }
        @keyframes miniWave {
            0%,100% { height: 6px; }
            50%      { height: 14px; }
        }


/* ============================================ */
/* TTS CARD — ELEVENLABS-STYLE PROFESSIONAL    */
/* ============================================ */

.tts-card-new {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 12px 40px rgba(0,0,0,0.13);
    border: 1px solid rgba(0,0,0,0.07);
}

/* ── TTS CARD HEADER ── */
.tts-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 12px;
    flex-shrink: 0;
    border-bottom: 1px solid #f0f1f3;
}

.tts-card-header-left {
    display: flex;
    gap: 8px;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 999px;
}

.tts-mode {
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    color: #6b7280;
    transition: background 0.18s, color 0.18s;
}

.tts-mode.active {
    background: #000;
    color: #fff;
}

.tts-card-header-right {
    text-align: right;
}

.tts-card-header-right h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #111827;
}

.tts-card-header-right p {
    font-size: 12px;
    color: #6b7280;
    margin: 2px 0 0;
}

/* ── MAIN CONTENT (2 COLUMN) ── */
.tts-main {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.tts-content {
    flex: 1;
    overflow: hidden;
}

.tts-inner {
    padding: 16px;
}

.left-panel {
    padding: 12px;
}

.right-panel {
    padding: 12px;
}

/* ── LEFT PANEL: VOICE LIST ── */
.tts-left {
    background: #fafafa;
    border-right: 1px solid #eeeff2;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    min-height: 0;
}

.tts-left-header {
    padding: 12px 12px 10px;
    border-bottom: 1px solid #eeeff2;
    flex-shrink: 0;
    background: #fafafa;
}

.tts-left-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.tts-left-header h4 {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.voice-count {
    font-size: 11px;
    background: #f0f0f0;
    color: #9ca3af;
    font-weight: 500;
    padding: 1px 7px;
    border-radius: 999px;
}

.tts-voice-search-input {
    width: 100%;
    padding: 7px 11px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.tts-voice-search-input:focus {
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.voice-list-scroll {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 6px;
    min-height: 0;
}

.voice-list-scroll::-webkit-scrollbar { width: 6px; }
.voice-list-scroll::-webkit-scrollbar-track { background: transparent; }
.voice-list-scroll::-webkit-scrollbar-thumb { 
    background: #d1d5db; 
    border-radius: 6px;
    transition: background 0.2s ease;
}
.voice-list-scroll::-webkit-scrollbar-thumb:hover { 
    background: #9ca3af; 
}

/* ── Voice Item ── */
.voice-item-new {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    background: transparent;
    position: relative;
    border: 1px solid transparent;
    min-height: 52px;
}

.voice-item-new + .voice-item-new {
    margin-top: 0;
}

.voice-item-new:hover {
    background: #f0f0f0;
    border-color: transparent;
}

.voice-item-new.active {
    background: #111827;
    border-color: #111827;
}

.voice-item-new.active .voice-name-new {
    color: #ffffff;
}

.voice-item-new.active .voice-meta-new {
    color: rgba(255,255,255,0.55);
}

.voice-item-new.active .voice-avatar-new {
    opacity: 0.92;
}

/* ── Voice Left Section ── */
.voice-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

/* ── Enhanced Abstract Avatar Shape ── */
.voice-avatar-new {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #a855f7, #ec4899, #f97316);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

.voice-avatar-new::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: linear-gradient(135deg, #f97316, #fb7185, #6366f1, #f97316);
    animation: rotateGradient 3s linear infinite;
}

/* Enhanced gradient variations with soft glows for different voices */
.voice-item-new:nth-child(1) .voice-avatar-new {
    background: radial-gradient(circle at 30% 30%, #a855f7, #ec4899, #f97316);
    box-shadow: none;
}
.voice-item-new:nth-child(1) .voice-avatar-new::before {
    background: radial-gradient(circle at 30% 30%, #a855f7, #ec4899, #f97316, #a855f7);
}

.voice-item-new:nth-child(2) .voice-avatar-new {
    background: radial-gradient(circle at 30% 30%, #6366f1, #8b5cf6, #06b6d4);
    box-shadow: none;
}
.voice-item-new:nth-child(2) .voice-avatar-new::before {
    background: radial-gradient(circle at 30% 30%, #6366f1, #8b5cf6, #06b6d4, #6366f1);
}

.voice-item-new:nth-child(3) .voice-avatar-new {
    background: radial-gradient(circle at 30% 30%, #06b6d4, #3b82f6, #10b981);
    box-shadow: none;
}
.voice-item-new:nth-child(3) .voice-avatar-new::before {
    background: radial-gradient(circle at 30% 30%, #06b6d4, #3b82f6, #10b981, #06b6d4);
}

.voice-item-new:nth-child(4) .voice-avatar-new {
    background: radial-gradient(circle at 30% 30%, #ef4444, #ec4899, #f59e0b);
    box-shadow: none;
}
.voice-item-new:nth-child(4) .voice-avatar-new::before {
    background: radial-gradient(circle at 30% 30%, #ef4444, #ec4899, #f59e0b, #ef4444);
}

.voice-item-new:nth-child(5) .voice-avatar-new {
    background: radial-gradient(circle at 30% 30%, #3b82f6, #6366f1, #8b5cf6);
    box-shadow: none;
}
.voice-item-new:nth-child(5) .voice-avatar-new::before {
    background: radial-gradient(circle at 30% 30%, #3b82f6, #6366f1, #8b5cf6, #3b82f6);
}

.voice-item-new:nth-child(6) .voice-avatar-new {
    background: radial-gradient(circle at 30% 30%, #10b981, #84cc16, #14b8a6);
    box-shadow: none;
}
.voice-item-new:nth-child(6) .voice-avatar-new::before {
    background: radial-gradient(circle at 30% 30%, #10b981, #84cc16, #14b8a6, #10b981);
}

/* ── Voice Info ── */
.voice-info-new {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: relative;
    z-index: 1;
}

.voice-avatar-new span {
    position: relative;
    z-index: 1;
}

/* ── Name Row with Checkmark ── */
.voice-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.voice-name-new {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* ── Checkmark removed - no selection indicator ── */
.voice-check {
    display: none !important;
}

/* ── Rich Metadata (accent • gender • age) ── */
.voice-meta-new {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 400;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Voice Profile Card (Clean Minimal Style) ── */
.voice-profile-card {
    padding: 16px 14px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: none;
    flex-direction: column;
    gap: 0;
    animation: slideIn 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.voice-profile-card.active {
    display: flex;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back Button (Compact Chip Style) */
.voice-profile-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 999px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 10px;
    color: #6b7280;
    font-weight: 500;
}

.voice-profile-back:hover {
    background: #e5e7eb;
    color: #111827;
}

.voice-profile-back svg {
    width: 14px;
    height: 14px;
}

/* Header Section (Avatar + Name) */
.voice-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

/* Avatar (Premium Gradient Blob) */
.voice-profile-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.voice-profile-avatar::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: linear-gradient(135deg, #6366f1, #ec4899, #f97316, #6366f1);
    animation: rotateGradient 3s linear infinite;
}

/* Name + Language */
.voice-profile-info {
    flex: 1;
    min-width: 0;
}

.voice-profile-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.voice-profile-language {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.3;
}

/* Divider */
.voice-profile-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 10px 0;
}

/* Clean Inline Metadata Container */
.voice-meta-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

/* Inline Row Layout */
.voice-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
}

/* Label Styling */
.meta-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

/* Value Styling */
.meta-value {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    max-width: 60%;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Light Badge Style */
.meta-value.badge {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

/* Gender Badge (Purple) */
.meta-value.badge.gender {
    background: #ede9fe;
    color: #7c3aed;
}

/* Quality Badges */
.meta-value.badge.quality-high {
    background: #dcfce7;
    color: #16a34a;
}

.meta-value.badge.quality-medium {
    background: #fef3c7;
    color: #d97706;
}

.meta-value.badge.quality-standard {
    background: #dbeafe;
    color: #2563eb;
}

/* Rating Stars */
.meta-value.rating {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #fbbf24;
    font-size: 14px;
}

/* ── RIGHT PANEL ── */
.tts-right {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #ffffff;
    overflow: hidden;
    min-height: 0;
}

.tts-selected-voice-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #f8fafc;
    border: 1px solid #eeeff2;
    border-radius: 10px;
    font-size: 13px;
    flex-shrink: 0;
}

.tts-selected-voice-bar .sv-label {
    color: #9ca3af;
    font-size: 12px;
}

.tts-selected-voice-bar .sv-name {
    font-weight: 600;
    color: #111827;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tts-selected-voice-bar .sv-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #111827;
    flex-shrink: 0;
}

/* Settings chips bar */
.tts-settings-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding-bottom: 11px;
    border-bottom: 1px solid #f0f2f5;
    flex-wrap: wrap;
}

.tts-setting-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    border: none;
    background: #0f172a;
    font-size: 11.5px;
    color: white;
    font-weight: 500;
    cursor: default;
    user-select: none;
    transition: background 0.15s;
}

.tts-setting-chip:hover {
    background: #1a1a1a;
}

/* Text area section */
.tts-text-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
}

.tts-text-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.tts-text-title {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
}

.tts-char-count {
    font-size: 12px;
    color: #aaa;
}

.tts-text-helper {
    min-height: 18px;
    padding: 0 14px 10px;
    font-size: 12px;
    color: #9ca3af;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    flex-shrink: 0;
}

.tts-text-helper.visible {
    opacity: 1;
}

.tts-textarea-new {
    width: 100%;
    min-height: 0;
    flex: 1;
    border: none;
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.65;
    resize: none;
    outline: none;
    background: #fff;
    color: #111827;
}

.tts-textarea-new:focus {
    background: #ffffff;
}

.tts-textarea-new::placeholder {
    color: #c4c9d4;
    font-size: 13px;
}

/* Bottom Controls */
.tts-bottom-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
    background: #fafafa;
}

.tts-controls-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tts-speed-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tts-speed-lbl {
    font-size: 12px;
    color: #666;
}

.tts-speed-input {
    width: 58px;
    padding: 4px 8px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 12px;
    font-family: inherit;
    text-align: center;
    outline: none;
    transition: border-color 0.15s;
    background: #fff;
}

.tts-speed-input:focus {
    border-color: #000;
}

/* Language pill */
.language-select {
    height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    background: #0f172a;
    color: white;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border: none;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    font-family: inherit;
    letter-spacing: 0.01em;
}

.language-select:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.language-select .dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Generate button — matches site primary button */
.play-btn-primary {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: #0f172a;
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border: none;
    font-weight: 500;
    flex-shrink: 0;
    white-space: nowrap;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    font-family: inherit;
    letter-spacing: 0.01em;
}

.play-btn-primary:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.play-btn-primary svg {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .tts-main {
        grid-template-columns: 1fr;
    }

    .tts-left {
        border-right: none;
        border-bottom: 1px solid #e8ecf0;
    }

    .voice-list-scroll {
        max-height: 200px;
    }

    .tts-selected-voice-bar {
        padding: 8px 12px;
    }
}

/* ============================================ */
/* LANGUAGE SELECTOR + PLAYER UI ENHANCED       */
/* ============================================ */

/* ── Language picker trigger ── */
.lang-picker {
    position: relative;
    display: inline-block;
}

/* <!-- BACKEND LANGUAGE DETECTION INTEGRATED --> */
.detected-language {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.detected-language svg {
    flex-shrink: 0;
}

.detected-language.detecting {
    background: #fef3c7;
    color: #92400e;
}

.detected-language.detected {
    background: #d1fae5;
    color: #065f46;
}

.lang-picker-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
    line-height: 1;
}

.lang-picker-btn:hover {
    background: #e8ecf0;
    border-color: #d1d5db;
}

.lang-picker-btn.open {
    background: #e8ecf0;
    border-color: #d1d5db;
}

/* Green status dot */
.lang-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

/* Chevron */
.lang-arrow {
    flex-shrink: 0;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.lang-picker-btn.open .lang-arrow {
    transform: rotate(180deg);
}

/* ── Language dropdown panel ── */
.lang-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    width: max-content;
    border-radius: 12px;
    background: #ffffff;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 9999;
    box-shadow: 0 10px 28px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.lang-dropdown.show {
    opacity: 1;
    transform: translateY(0);
}

/* ── Language list ── */
.lang-list {
    max-height: 180px;
    overflow-y: auto;
}

.lang-list::-webkit-scrollbar { width: 3px; }
.lang-list::-webkit-scrollbar-track { background: transparent; }
.lang-list::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 999px; }

.lang-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.13s ease;
    font-size: 13px;
    color: #111827;
    font-weight: 500;
}

.lang-item:hover {
    background: #f3f4f6;
}

.lang-item.active {
    background: #f9fafb;
}

.lang-item-check {
    font-size: 11px;
    color: #0f172a;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.lang-item.active .lang-item-check {
    opacity: 1;
}

/* ============================================ */
/* TTS OUTPUT PANEL WITH STATE MANAGEMENT       */
/* ============================================ */

/* PERSISTENT CONTAINER - Always visible */
.tts-output-panel {
    display: block;
    width: 100%;
    padding: 0;
    margin-top: 16px;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* Base audio panel container */
.audio-panel {
    height: 48px;
    margin: 12px 16px 16px 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    box-sizing: border-box;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* STATE 1: IDLE (Empty state placeholder) */
.audio-panel.idle {
    background: #fafbfc;
    border: 1px dashed #e5e7eb;
    opacity: 0.6;
    justify-content: center;
    gap: 8px;
}

.idle-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.idle-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: #cbd5e1;
}

.idle-icon svg {
    width: 16px;
    height: 16px;
}

.idle-text {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

.idle-subtext {
    font-size: 9px;
    color: #cbd5e1;
    font-weight: 400;
}

/* STATE 2: GENERATING (Processing with animated gradient) */
.audio-panel.generating {
    background: #f1f5f9;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    justify-content: center;
}

.generating-content {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.generating-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #e5e7eb;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.generating-text {
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}

.progress-gradient {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, rgba(99,102,241,0.15), rgba(168,85,247,0.15));
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}

/* STATE 3: READY (Audio player with controls) */
.audio-panel.ready {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    padding: 0 16px;
}

.audio-left {
    width: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.audio-center {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.audio-right {
    display: flex;
    align-items: center;
}

.play-btn {
    background: transparent !important;
    border: none;
    outline: none;
    color: #0f172a;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    box-shadow: none !important;
}

.play-btn::before,
.play-btn::after {
    display: none !important;
    content: none !important;
}

.play-btn:hover {
    background: transparent !important;
    box-shadow: none !important;
    transform: scale(1.05);
}

.play-btn:active {
    transform: scale(0.95);
}

.play-icon {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    background: none !important;
}

.progress-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.audio-visualizer {
    position: relative;
    flex: 1;
    height: 32px;
    display: flex;
    align-items: center;
    border-radius: 6px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.audio-visualizer canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.progress-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(99,102,241,0.25), rgba(168,85,247,0.25));
    pointer-events: none;
    transition: width 0.1s linear;
    border-radius: 6px;
}

.progress-bar {
    flex: 1;
    height: 3px;
    border-radius: 999px;
    background: #e5e7eb;
    position: relative;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    transition: width 0.1s linear;
}

.time-label {
    font-size: 12px;
    color: #6b7280;
    min-width: 60px;
    text-align: right;
}

.signup-btn {
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    font-family: inherit;
    letter-spacing: 0.01em;
}

.signup-btn:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.download-btn {
    height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    background: #0f172a;
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border: none;
    font-weight: 500;
    flex-shrink: 0;
    white-space: nowrap;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    font-family: inherit;
    letter-spacing: 0.01em;
}

.download-btn:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Button state transformations */
.play-btn-primary.loading {
    opacity: 0.7;
    pointer-events: none;
}

.play-btn-primary.loading svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


/* ── Hero card mode row (TTS Standard/Neural toggle) ── */
.tts-card-mode-row {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

/* ── TTS hero card overrides ── */
#ttsGenerator .stt-hero-grid {
    grid-template-columns: 200px 1fr;
    align-items: stretch;
}
#ttsGenerator .stt-hero-left {
    gap: 6px;
}
#ttsGenerator .voice-list-scroll {
    flex: 1;
    min-height: 120px;
    max-height: 220px;
    overflow-y: auto;
    margin-top: 6px;
}
#ttsGenerator .stt-hero-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}
#ttsGenerator .stt-result-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: visible;
}
#ttsGenerator .tts-textarea-new {
    flex: 1;
    min-height: 120px;
    resize: none;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    color: #0f172a;
    line-height: 1.65;
    width: 100%;
}
#ttsGenerator .tts-output-panel {
    flex-shrink: 0;
}

/* ── TTS full-width generate bar ── */
.tts-generate-bar {
    width: 100%;
    margin-top: 8px;
}
.tts-generate-full-btn {
    width: 100%;
    height: 46px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
    letter-spacing: -0.01em;
}
.tts-generate-full-btn:hover {
    background: #020617;
    transform: translateY(-1px);
}
.tts-generate-full-btn:disabled,
.tts-generate-full-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* generating state injected by JS */
#ttsOutputPanel .audio-panel.generating {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    position: relative;
    margin-top: 8px;
}
#ttsOutputPanel .progress-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: tts-shimmer 1.4s ease-in-out infinite;
}
@keyframes tts-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
#ttsOutputPanel .generating-content {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}
#ttsOutputPanel .generating-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tts-spin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes tts-spin { to { transform: rotate(360deg); } }
#ttsOutputPanel .generating-text {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    font-family: inherit;
}

/* ready state (audio player) injected by JS */
#ttsOutputPanel .audio-panel.ready {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid rgba(15,23,42,0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    margin-top: 8px;
    animation: tts-fade-in 0.3s ease;
}
@keyframes tts-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
#ttsOutputPanel .audio-panel.ready .audio-left { flex-shrink: 0; }
#ttsOutputPanel .audio-panel.ready .audio-center { flex: 1; min-width: 0; }
#ttsOutputPanel .audio-panel.ready .audio-right { flex-shrink: 0; }
#ttsOutputPanel .audio-panel.ready .download-btn {
    height: 32px;
    padding: 0 14px;
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease;
}
#ttsOutputPanel .audio-panel.ready .download-btn:hover { background: #020617; }

/* error state */
#ttsOutputPanel .audio-panel.error {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #dc2626;
    font-weight: 500;
    margin-top: 8px;
    padding: 0 14px;
    animation: tts-fade-in 0.3s ease;
}

/* ── TTS output panel alignment fix ── */
#ttsGenerator .tts-output-panel {
    flex-shrink: 0;
    width: 100%;
}
#ttsGenerator .tts-generate-bar {
    width: 100%;
    margin-top: 0;
}
#ttsGenerator .tts-generate-full-btn {
    width: 100%;
    height: 50px;
    border-radius: 16px;
    border: 1px solid rgba(15,23,42,0.08);
    box-sizing: border-box;
}
#ttsGenerator #ttsOutputPanel .audio-panel.generating {
    width: 100%;
    height: 50px;
    border-radius: 16px;
    border: 1px solid rgba(15,23,42,0.08);
    margin-top: 0;
    box-sizing: border-box;
}
#ttsGenerator #ttsOutputPanel .audio-panel.ready {
    width: 100%;
    height: 50px;
    border-radius: 16px;
    border: 1px solid rgba(15,23,42,0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 0 16px;
    margin-top: 0;
    box-sizing: border-box;
}
#ttsGenerator #ttsOutputPanel .audio-panel.error {
    width: 100%;
    height: 50px;
    border-radius: 16px;
    margin-top: 0;
    box-sizing: border-box;
}

#ttsGenerator .stt-hero-right {
    gap: 10px;
}
#ttsGenerator .stt-result-card {
    border-radius: 16px;
    border: 1px solid rgba(15,23,42,0.08);
    box-sizing: border-box;
}

/* ── TTS hero output slot — all 3 states pixel-identical ── */
.tts-hero-output-slot {
    width: 100%;
    height: 52px;
    flex-shrink: 0;
    position: relative;
}

/* State 1: Generate button */
.tts-hero-output-slot .tts-generate-full-btn,
/* State 2: Generating bar (injected by JS) */
.tts-hero-output-slot .audio-panel.generating,
/* State 3: Audio player (injected by JS) */
.tts-hero-output-slot .audio-panel.ready {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    border: 1px solid rgba(15,23,42,0.08);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0 16px;
    gap: 10px;
    font-family: inherit;
}

/* State 1 specific */
.tts-hero-output-slot .tts-generate-full-btn {
    background: #0f172a;
    color: #fff;
    border: none;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: -0.01em;
    transition: background 0.2s ease, transform 0.15s ease;
}
.tts-hero-output-slot .tts-generate-full-btn:hover {
    background: #020617;
    transform: translateY(-1px);
}
.tts-hero-output-slot .tts-generate-full-btn:disabled,
.tts-hero-output-slot .tts-generate-full-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* State 2 specific */
.tts-hero-output-slot .audio-panel.generating {
    background: #0f172a;
    justify-content: center;
    overflow: hidden;
    animation: tts-fade-in 0.25s ease;
}
.tts-hero-output-slot .progress-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: tts-shimmer 1.4s ease-in-out infinite;
    border-radius: 16px;
}
.tts-hero-output-slot .generating-content {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}
.tts-hero-output-slot .generating-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tts-spin 0.7s linear infinite;
    flex-shrink: 0;
}
.tts-hero-output-slot .generating-text {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    font-family: inherit;
}

/* State 3 specific */
.tts-hero-output-slot .audio-panel.ready {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    animation: tts-fade-in 0.3s ease;
}
.tts-hero-output-slot .audio-panel.ready .audio-left { flex-shrink: 0; }
.tts-hero-output-slot .audio-panel.ready .audio-center { flex: 1; min-width: 0; }
.tts-hero-output-slot .audio-panel.ready .audio-right { flex-shrink: 0; }
.tts-hero-output-slot .audio-panel.ready .play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0f172a;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s ease;
}
.tts-hero-output-slot .audio-panel.ready .play-btn:hover { background: #020617; }
.tts-hero-output-slot .audio-panel.ready .play-icon svg { display: block; }
.tts-hero-output-slot .audio-panel.ready .progress-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}
.tts-hero-output-slot .audio-panel.ready .audio-visualizer {
    position: relative;
    width: 100%;
    height: 28px;
    cursor: pointer;
}
.tts-hero-output-slot .audio-panel.ready canvas {
    width: 100%;
    height: 28px;
    display: block;
}
.tts-hero-output-slot .audio-panel.ready .progress-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,0.12);
    width: 0%;
    border-radius: 4px;
}
.tts-hero-output-slot .audio-panel.ready .time-label {
    font-size: 11px;
    color: #64748b;
    font-family: inherit;
}
.tts-hero-output-slot .audio-panel.ready .download-btn {
    height: 32px;
    padding: 0 14px;
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease;
}
.tts-hero-output-slot .audio-panel.ready .download-btn:hover { background: #020617; }

/* Error state */
.tts-hero-output-slot .audio-panel.error {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    border: 1px solid #fca5a5;
    background: #fef2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #dc2626;
    font-weight: 500;
    font-family: inherit;
    padding: 0 16px;
    box-sizing: border-box;
    animation: tts-fade-in 0.25s ease;
}

/* ── Audio player ready state layout fix ── */
.tts-hero-output-slot .audio-panel.ready {
    padding: 0 14px;
    gap: 12px;
    align-items: center;
}
.tts-hero-output-slot .audio-panel.ready .audio-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}
.tts-hero-output-slot .audio-panel.ready .play-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0f172a;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s ease;
}
.tts-hero-output-slot .audio-panel.ready .play-btn:hover { background: #020617; }
.tts-hero-output-slot .audio-panel.ready .time-label {
    font-size: 10px;
    color: #64748b;
    font-family: inherit;
    white-space: nowrap;
    line-height: 1;
}
.tts-hero-output-slot .audio-panel.ready .audio-center {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}
.tts-hero-output-slot .audio-panel.ready .progress-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.tts-hero-output-slot .audio-panel.ready .audio-visualizer {
    position: relative;
    width: 100%;
    height: 32px;
    cursor: pointer;
}
.tts-hero-output-slot .audio-panel.ready canvas {
    width: 100%;
    height: 32px;
    display: block;
}
.tts-hero-output-slot .audio-panel.ready .progress-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,0.12);
    width: 0%;
    border-radius: 4px;
}
/* hide the time-label inside progress-wrapper (moved to audio-left) */
.tts-hero-output-slot .audio-panel.ready .progress-wrapper .time-label {
    display: none;
}

/* ── Time label compact below play button ── */
.tts-hero-output-slot .audio-panel.ready .audio-left .time-label {
    display: block;
    font-size: 10px;
    color: #64748b;
    font-family: inherit;
    white-space: nowrap;
    text-align: center;
    line-height: 1;
    margin-top: 2px;
}

/* ── Audio player: play button perfectly centered, no time label ── */
.tts-hero-output-slot .audio-panel.ready .audio-left {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tts-hero-output-slot .audio-panel.ready .play-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0f172a;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s ease, transform 0.15s ease;
    padding: 0;
}
.tts-hero-output-slot .audio-panel.ready .play-btn:hover {
    background: #020617;
    transform: scale(1.05);
}
.tts-hero-output-slot .audio-panel.ready .play-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
/* hide any time-label that may exist */
.tts-hero-output-slot .audio-panel.ready .time-label { display: none !important; }



/* CTA Contact Modal */
.cta-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.cta-modal-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

.cta-modal {
    background: #fff;
    border-radius: 20px;
    padding: 36px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 24px 60px rgba(15,23,42,0.18);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.25s ease;
    position: relative;
}

.cta-modal-overlay.is-open .cta-modal {
    transform: translateY(0) scale(1);
}

.cta-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}

.cta-modal-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 4px 0 0;
}

.cta-modal-close {
    background: rgba(15,23,42,0.06);
    border: none;
    border-radius: 8px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    color: #64748b;
    transition: background 0.15s;
}

.cta-modal-close:hover { background: rgba(15,23,42,0.12); }

/* stacked body — form and success occupy same space */
.cta-modal-body {
    position: relative;
}

.cta-contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: opacity 0.2s ease;
}

.cta-contact-form.is-hidden {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    inset: 0;
}

/* success dialog — invisible by default, same height as form */
.cta-success-dialog {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 8px 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    inset: 0;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.cta-success-dialog.is-visible {
    opacity: 1;
    pointer-events: all;
    position: relative;
    inset: auto;
}

.cta-success-dialog h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.cta-success-dialog p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* animated tick */
.cta-success-icon { width: 64px; height: 64px; }

.cta-tick-circle { width: 64px; height: 64px; display: block; }

.cta-tick-circle-ring {
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
}

.cta-tick-check {
    stroke-dasharray: 36;
    stroke-dashoffset: 36;
}

.cta-success-dialog.is-visible .cta-tick-circle-ring {
    animation: tickRing 0.5s cubic-bezier(0.4,0,0.2,1) 0.1s forwards;
}

.cta-success-dialog.is-visible .cta-tick-check {
    animation: tickCheck 0.35s cubic-bezier(0.4,0,0.2,1) 0.55s forwards;
}

@keyframes tickRing {
    to { stroke-dashoffset: 0; }
}

@keyframes tickCheck {
    to { stroke-dashoffset: 0; }
}

.cta-contact-list .cta-contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    background: rgba(15,23,42,0.04);
    border-radius: 10px;
    border: 1px solid rgba(15,23,42,0.07);
}


/* ============================================ */
/* MOBILE & TABLET RESPONSIVE — FOCUSED FIXES  */
/* ============================================ */

/* ── TABLET (481px – 900px) ── */
@media (min-width: 481px) and (max-width: 900px) {
    .main-content {
        margin-top: 130px;
    }

    .hero {
        padding: 32px 16px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 28px;
    }

    .hero h1 {
        font-size: 36px;
    }

    /* Hero card: keep it but make it fit the screen */
    .hero-card {
        padding: 28px 20px 24px;
        min-height: auto;
        border-radius: 22px;
    }

    .hero-card:hover {
        transform: none;
    }

    /* Glass panel: auto height so content isn't clipped */
    .hero-glass-panel {
        height: auto;
        min-height: 480px;
        max-height: none;
        padding: 16px;
        overflow: visible;
    }

    /* Tabs: wrap on tablet */
    .top-product-tabs {
        flex-wrap: wrap;
        gap: 6px;
        border-radius: 16px;
        justify-content: flex-start;
        padding: 6px 8px;
    }

    .top-product-tabs button {
        padding: 7px 12px;
        font-size: 12px;
    }

    /* STT hero grid: stack on tablet */
    .stt-hero-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stt-hero-header {
        flex-direction: column;
        gap: 10px;
    }

    .stt-hero-card {
        gap: 16px;
    }

    /* Generator panel: allow natural height */
    .generator-panel {
        overflow: visible;
    }

    .generator-panel.active {
        height: auto;
    }

    /* Voice list scroll: shorter on tablet */
    .tts-voice-track-wrap {
        height: 220px;
    }

    .voice-carousel {
        max-height: 220px;
    }

    /* Trust grid: 2 cols on tablet */
    .trust-grid {
        grid-template-columns: 1fr 1fr;
    }

    .trust-card.dark {
        grid-column: span 2;
    }
}

/* ── MOBILE (≤480px) ── */
@media (max-width: 480px) {
    /* Hide the entire hero playbook card on mobile */
    .hero-card {
        display: none !important;
    }

    /* Hide the use cases section on mobile */
    .use-cases {
        display: none !important;
    }

    /* Hero layout cleanup */
    .main-content {
        margin-top: 130px;
        padding: 0;
    }

    .hero {
        padding: 24px 16px 16px;
        margin-bottom: 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 0;
    }

    .hero h1 {
        font-size: 28px;
        letter-spacing: -0.5px;
    }

    .hero-right .hero-desc {
        font-size: 14px;
    }

    .hero-buttons {
        flex-wrap: wrap;
        gap: 8px;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        flex: 1;
        min-width: 120px;
        text-align: center;
        justify-content: center;
    }

    /* Container padding on mobile */
    .container {
        padding: 24px 16px;
    }

    /* Campaign banner: compact on mobile */
    .campaign-banner {
        top: 58px;
    }

    .campaign-container {
        padding: 8px 14px;
        min-height: 44px;
    }

    .campaign-copy {
        flex-direction: column;
        gap: 4px;
    }

    .campaign-copy p {
        font-size: 12px;
        white-space: normal;
    }

    /* Trust grid: single col on mobile */
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .trust-card.dark {
        grid-column: span 1;
    }

    /* Section dividers hidden on mobile to save space */
    .section-divider {
        display: none;
    }
}


/* ============================================ */
/* HORIZONTAL OVERFLOW FIX — MOBILE & TABLET   */
/* ============================================ */

/* Root-level containment */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Fix full-bleed breakout elements that cause horizontal scroll */
@media (max-width: 900px) {

    /* section-divider uses 100vw + negative margins — clamp it */
    .section-divider {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    /* trust-logos uses 100vw + left:50% + translateX(-50%) — reset to normal flow */
    .trust-logos {
        width: 100%;
        left: auto;
        transform: none;
        position: relative;
    }

    /* Scroller text can overflow — contain it */
    .scroll-section {
        overflow: hidden;
    }

    .parallax {
        overflow: hidden;
        max-width: 100%;
    }

    /* Use-card-swap has negative right margin that bleeds out */
    .use-card-swap {
        margin-right: 0;
        width: 100%;
    }

    /* Landing ad section padding can push content */
    .landing-ad-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Blog section padding */
    .blog-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* CTA section padding */
    .cta-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Ensure all sections don't overflow */
    .hero,
    .trust-section,
    .how-it-works,
    .features-section,
    .analytics-section,
    .use-cases,
    .api-section,
    .pricing-section,
    .testimonials-section {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Container max-width clamp */
    .container {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Hero glass panel must not overflow */
    .hero-glass-panel {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Code block body horizontal scroll only inside, not page */
    .code-block-body {
        overflow-x: hidden;
    }

    .code-snippet {
        overflow-x: auto;
        max-width: 100%;
    }
}


/* ============================================================ */
/* COMPREHENSIVE RESPONSIVE — TABLET (768px) + MOBILE (480px)  */
/* No functional changes — layout/sizing only                   */
/* ============================================================ */

/* ── TABLET: 768px ── */
@media (max-width: 768px) {

    /* NAVBAR + BANNER */
    .navbar { padding: 12px 16px; }
    .campaign-banner { top: 60px; }
    .campaign-container { min-height: auto; padding: 10px 16px; align-items: flex-start; }
    .campaign-copy { flex-direction: column; align-items: flex-start; gap: 6px; }
    .campaign-copy p { white-space: normal; overflow: visible; text-overflow: unset; font-size: 12px; }

    /* MAIN CONTENT OFFSET */
    .main-content { margin-top: 130px; }
    .container { padding: 28px 16px; }

    /* HERO */
    .hero { padding: 32px 16px; }
    .hero-content { grid-template-columns: 1fr; gap: 20px; margin-bottom: 28px; }
    .hero h1 { font-size: 34px; letter-spacing: -0.5px; }
    .hero-right .hero-desc { font-size: 14px; }
    .hero-buttons { flex-wrap: wrap; gap: 8px; }
    .hero-card { padding: 28px 16px 24px; gap: 14px; min-height: auto; border-radius: 22px; }
    .hero-card:hover { transform: none; box-shadow: 0 18px 42px rgba(15,23,42,0.14); }

    /* HERO TABS — scrollable row on tablet */
    .top-product-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 6px;
        padding: 5px;
        border-radius: 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .top-product-tabs::-webkit-scrollbar { display: none; }
    .top-product-tabs button { padding: 7px 14px; font-size: 12px; white-space: nowrap; flex-shrink: 0; }

    /* HERO GLASS PANEL */
    .hero-glass-panel {
        height: auto;
        min-height: 0;
        max-height: none;
        overflow: visible;
        padding: 16px;
    }

    /* STT HERO CARD — stack header + grid */
    .stt-hero-card { padding: 18px; gap: 16px; }
    .stt-hero-header { flex-direction: column; gap: 10px; }
    .stt-hero-grid { grid-template-columns: 1fr; gap: 16px; }
    .stt-hero-copy h3 { font-size: 17px; }
    .stt-hero-copy p { font-size: 13px; }

    /* TTS HERO — mode buttons + badge row */
    .stt-hero-header > div:last-child { flex-direction: row; flex-wrap: wrap; gap: 8px; }

    /* TTS VOICE LIST */
    .voice-list-scroll { max-height: 180px; }
    .tts-voice-track-wrap { height: 200px; }
    .voice-carousel { max-height: 200px; }

    /* TTS OUTPUT PANEL */
    .tts-hero-output-slot { margin-top: 10px; }
    .tts-generate-full-btn { width: 100%; justify-content: center; }

    /* TTS TEXT CARD */
    .tts-text-card-hero .tts-textarea-new { min-height: 80px; }

    /* TRUST GRID */
    .trust-section { padding: 8px 16px 0; }
    .trust-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .trust-card.dark { grid-column: span 2; }
    .trust-metric-value { font-size: 36px; }

    /* ANALYTICS */
    .analytics-section { padding: 56px 0; }
    .analytics-top { grid-template-columns: 1fr; gap: 20px; margin-bottom: 28px; }
    .analytics-left h2 { font-size: 26px; }
    .analytics-metrics { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .analytics-chart { height: 180px; }
    .chart-legend { flex-wrap: wrap; gap: 8px; }

    /* HOW IT WORKS */
    .how-it-works { padding: 56px 0; }
    .how-header { flex-direction: column; gap: 14px; }
    .how-header-left, .how-header-right { max-width: 100%; }
    .how-header-right { margin-top: 0; }
    .how-header h2 { font-size: 26px; }
    .how-steps { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .how-steps::before { display: none; }

    /* FEATURES */
    .features-section { padding: 56px 0; }
    .features-header { grid-template-columns: 1fr; gap: 16px; }
    .features-header-right { justify-self: start; max-width: 100%; }
    .features-header h2 { font-size: 26px; }
    .scroll-stack { height: 320px; }
    .stack-card { padding: 24px; }
    .stack-card h3 { font-size: clamp(22px, 4vw, 32px); }

    /* USE CASES */
    .use-cases { padding: 56px 0; }
    .use-header { grid-template-columns: 1fr; gap: 16px; }
    .use-header-right { justify-self: start; max-width: 100%; }
    .use-header h2 { font-size: 26px; }
    .use-board { padding: 20px 20px 0; border-radius: 22px; min-height: 280px; }
    .use-grid { flex-direction: column; align-items: stretch; gap: 16px; }
    .use-board-copy { max-width: 100%; padding: 8px 0 0; align-self: flex-start; }
    .use-board-copy h3 { font-size: 22px; max-width: none; }
    .use-board-copy p { font-size: 14px; max-width: 100%; }
    .use-card-swap { width: 100%; height: 500px; margin-right: -16px; margin-bottom: -72px; }
    .use-swap-card { width: 100%; min-height: 420px; padding: 22px; }
    .use-swap-card strong, .use-swap-card p, .use-swap-points { margin-right: 28px; }

    /* API */
    .api-section { padding: 56px 0; }
    .api-grid { grid-template-columns: 1fr; gap: 28px; }
    .api-left h2 { font-size: 26px; }
    .api-left p { max-width: 100%; }
    .code-block-body { height: 260px; }
    .code-snippet { font-size: 12px; }

    /* PRICING */
    .pricing-section { padding: 56px 0; }
    .pricing-header { grid-template-columns: 1fr; gap: 16px; }
    .pricing-header-right { justify-self: start; max-width: 100%; }
    .pricing-header h2 { font-size: 26px; }
    .pricing-container { padding: 20px 16px; }
    .pricing-grid { grid-template-columns: 1fr; gap: 16px; }

    /* TESTIMONIALS */
    .testimonials-section { padding: 56px 0; }
    .testimonials-header { flex-direction: column; gap: 14px; }
    .testimonials-header-right { align-items: flex-start; padding-top: 0; }
    .testimonials-header h2 { font-size: 26px; }
    .testimonials-header-description { max-width: 100%; }
    .testimonials-nav { align-self: flex-start; }

    /* BLOG */
    .blog-section { padding: 52px 16px; }
    .blog-section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .blog-section-header h2 { font-size: 28px; }
    .blog-grid { grid-template-columns: 1fr; gap: 14px; }
    .blog-card-thumb { min-height: 200px; font-size: 16px; }

    /* LANDING AD */
    .landing-ad-section { padding: 0 16px 56px; }
    .landing-ad-card { grid-template-columns: 1fr; padding: 24px; gap: 20px; border-radius: 22px; }
    .landing-ad-preview { justify-self: stretch; width: 100%; }
    .landing-ad-title { font-size: clamp(26px, 5vw, 40px); }

    /* CTA */
    .cta-section { padding: 56px 16px; }
    .cta-grid { grid-template-columns: 1fr; gap: 16px; }
    .cta-content { padding: 36px 24px; border-radius: 22px; }
    .cta-content h2 { font-size: 30px; }
    .cta-contact-form { grid-template-columns: 1fr; }
    .cta-contact-list { grid-template-columns: 1fr; }

    /* CONTACT MODAL */
    .cta-modal { width: calc(100vw - 32px); max-width: 480px; margin: 16px; }

    /* FOOTER */
    .text-pressure-container { height: 160px; border-radius: 20px; }
    .footer { padding: 32px 16px; }
}

/* ── MOBILE: 480px ── */
@media (max-width: 480px) {

    /* NAVBAR */
    .navbar { padding: 10px 14px; }
    .logo { font-size: 16px; }
    .nav-link:not(.primary) { display: none; }
    .nav-link.primary { padding: 8px 16px; font-size: 13px; }

    /* BANNER */
    .campaign-banner { top: 56px; }
    .campaign-copy p { font-size: 11px; }
    .campaign-pill { font-size: 10px; padding: 0 10px; min-height: 24px; }

    /* MAIN CONTENT */
    .main-content { margin-top: 118px; }
    .container { padding: 20px 14px; }

    /* HERO */
    .hero { padding: 20px 14px; }
    .hero h1 { font-size: 26px; letter-spacing: -0.3px; }
    .hero-right .hero-desc { font-size: 13px; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; text-align: center; }
    .hero-card { padding: 20px 14px 18px; border-radius: 18px; }

    /* HERO TABS */
    .top-product-tabs { border-radius: 14px; padding: 4px; }
    .top-product-tabs button { padding: 6px 11px; font-size: 11px; }

    /* HERO GLASS PANEL */
    .hero-glass-panel { padding: 12px; border-radius: 16px; }

    /* STT HERO CARD */
    .stt-hero-card { padding: 14px; gap: 12px; }
    .stt-hero-copy h3 { font-size: 15px; }
    .stt-eyebrow { font-size: 10px; padding: 4px 10px; }
    .stt-hero-badge { font-size: 11px; padding: 0 10px; min-height: 28px; }
    .stt-action-group { gap: 8px; }
    .stt-action-btn { min-height: 38px; font-size: 12px; padding: 0 12px; }
    .stt-result-card { padding: 14px; min-height: 160px; }
    .stt-result-text { font-size: 13px; padding: 12px; }

    /* TTS SPEED + CHAR COUNT ROW */
    .tts-speed-wrap { display: none; }
    .stt-result-header { flex-wrap: wrap; gap: 8px; }

    /* VOICE LIST */
    .voice-list-scroll { max-height: 150px; }
    .tts-voice-track-wrap { height: 160px; }
    .voice-carousel { max-height: 160px; }
    .voice-card-item { height: 56px; padding: 8px 10px; gap: 8px; }
    .tts-voice-name { font-size: 13px; }
    .tts-voice-lang { font-size: 11px; }

    /* TRUST */
    .trust-section { padding: 6px 14px 0; }
    .trust-grid { grid-template-columns: 1fr; gap: 10px; }
    .trust-card.dark { grid-column: span 1; }
    .trust-card { padding: 20px 16px; }
    .trust-metric-value { font-size: 32px; }
    .trust-card.dark .trust-card-text { font-size: 16px; }

    /* ANALYTICS */
    .analytics-section { padding: 40px 0; }
    .analytics-left h2 { font-size: 22px; }
    .analytics-metrics { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .analytics-metric { padding: 10px 8px; }
    .analytics-metric-value { font-size: 18px; }
    .analytics-chart { height: 140px; }
    .chart-legend { gap: 6px; }
    .chart-legend-item { font-size: 10px; }

    /* HOW IT WORKS */
    .how-it-works { padding: 40px 0; }
    .how-header h2 { font-size: 22px; }
    .how-steps { grid-template-columns: 1fr; gap: 12px; }
    .how-card { padding: 18px; }

    /* FEATURES */
    .features-section { padding: 40px 0; }
    .features-header h2 { font-size: 22px; }
    .scroll-stack { height: 280px; }
    .stack-card { padding: 18px; border-radius: 18px; }
    .stack-card h3 { font-size: 20px; }
    .stack-card p { font-size: 14px; }
    .stack-card-top { margin-bottom: 20px; }
    .stack-card-icon { width: 44px; height: 44px; border-radius: 12px; }

    /* USE CASES */
    .use-cases { padding: 40px 0; }
    .use-header h2 { font-size: 22px; }
    .use-board { padding: 16px 16px 0; border-radius: 18px; min-height: 240px; }
    .use-board-copy h3 { font-size: 20px; }
    .use-board-copy p { font-size: 13px; }
    .use-card-swap { width: 100%; height: 440px; margin-right: -8px; margin-bottom: -56px; }
    .use-swap-card { min-height: 360px; padding: 18px; }
    .use-swap-card strong { font-size: 20px; margin-right: 20px; }
    .use-swap-card p { font-size: 13px; margin-right: 20px; }
    .use-swap-points { margin-right: 20px; }
    .use-swap-points li { font-size: 13px; }

    /* API */
    .api-section { padding: 40px 0; }
    .api-left h2 { font-size: 22px; }
    .api-buttons { flex-direction: column; align-items: stretch; }
    .api-buttons .btn-primary, .api-buttons .btn-secondary { width: 100%; justify-content: center; }
    .code-block-body { height: 220px; padding: 14px; }
    .code-snippet { font-size: 11px; line-height: 1.6; }
    .code-lang-tab { padding: 4px 8px; font-size: 11px; }

    /* PRICING */
    .pricing-section { padding: 40px 0; }
    .pricing-header h2 { font-size: 22px; }
    .pricing-container { padding: 14px; border-radius: 16px; }
    .pricing-grid { gap: 12px; }
    .pricing-card { padding: 20px; }
    .pricing-card h3 { font-size: 18px; }
    .pricing-card-price .pricing-amount { font-size: 28px; }

    /* TESTIMONIALS */
    .testimonials-section { padding: 40px 0; }
    .testimonials-header h2 { font-size: 22px; }
    .testimonial-card, .testimonial-card-featured, .testimonial-card-compact { flex-basis: 100%; }
    .testimonials-nav-btn { width: 40px; height: 40px; font-size: 16px; }
    .testimonial-quote { font-size: 13px; }

    /* BLOG */
    .blog-section { padding: 40px 14px; }
    .blog-section-header h2 { font-size: 24px; }
    .blog-card-thumb { min-height: 180px; font-size: 15px; padding: 20px; }

    /* LANDING AD */
    .landing-ad-section { padding: 0 14px 48px; }
    .landing-ad-card { padding: 20px; border-radius: 18px; gap: 16px; }
    .landing-ad-title { font-size: 26px; }
    .landing-ad-description { font-size: 13px; }
    .landing-ad-button { min-height: 42px; font-size: 13px; }

    /* CTA */
    .cta-section { padding: 40px 14px; }
    .cta-content { padding: 28px 18px; border-radius: 18px; }
    .cta-content h2 { font-size: 24px; letter-spacing: -0.5px; }
    .cta-content p { font-size: 14px; margin-bottom: 24px; }
    .cta-buttons { flex-direction: column; align-items: stretch; gap: 10px; }
    .cta-content .btn-primary, .cta-content .btn-secondary { width: 100%; justify-content: center; padding: 12px 20px; font-size: 14px; }

    /* CONTACT MODAL */
    .cta-modal { width: calc(100vw - 24px); margin: 12px; border-radius: 20px; }
    .cta-modal-header { padding: 20px 18px 14px; }
    .cta-modal-body { padding: 0 18px 20px; }
    .cta-contact-form { gap: 10px; }
    .cta-form-field input, .cta-form-field select { height: 42px; border-radius: 12px; }

    /* SCROLL SECTION */
    .scroll-section { padding: 16px 0; }
    .scroller { font-size: 28px; }

    /* FOOTER */
    .text-pressure-container { height: 120px; border-radius: 16px; }
    .footer { padding: 24px 14px; font-size: 13px; }
}

/* ── EXTRA SMALL: 390px (iPhone 14 Pro) ── */
@media (max-width: 390px) {
    .hero h1 { font-size: 23px; }
    .top-product-tabs button { padding: 5px 9px; font-size: 10px; }
    .stt-hero-copy h3 { font-size: 14px; }
    .trust-metric-value { font-size: 28px; }
    .analytics-left h2, .how-header h2, .features-header h2,
    .use-header h2, .api-left h2, .pricing-header h2,
    .testimonials-header h2 { font-size: 20px; }
    .stack-card h3 { font-size: 18px; }
    .cta-content h2 { font-size: 21px; }
    .blog-section-header h2 { font-size: 22px; }
    .use-card-swap { height: 400px; margin-right: -4px; margin-bottom: -48px; }
    .use-swap-card { min-height: 330px; }
}


/* ============================================================ */
/* FIX: Hero glass panel dead space / scroll on mobile         */
/* The fixed height:520px causes empty space when panels hide  */
/* ============================================================ */

@media (max-width: 768px) {
    .hero-glass-panel {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .generator-panel {
        height: auto !important;
        overflow: visible !important;
    }

    .generator-panel.active {
        height: auto !important;
    }

    .stt-hero-card {
        height: auto !important;
    }
}


/* ============================================================ */
/* MOBILE HAMBURGER + SIDEBAR                                   */
/* ============================================================ */

/* Hamburger — hidden on desktop, shown on mobile */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 4px;
    border-radius: 10px;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.nav-hamburger:hover {
    background: rgba(0,0,0,0.06);
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #0f172a;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Animate to X when open */
.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Overlay */
.mob-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.48);
    z-index: 1100;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.mob-sidebar-overlay.is-open {
    display: block;
    opacity: 1;
}

/* Sidebar panel */
.mob-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(80vw, 300px);
    background: #ffffff;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -8px 0 32px rgba(15, 23, 42, 0.14);
}

.mob-sidebar.is-open {
    transform: translateX(0);
}

/* Sidebar header */
.mob-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
}

.mob-sidebar-logo {
    font-size: 17px;
    font-weight: 600;
    color: #0f172a;
}

.mob-sidebar-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(15, 23, 42, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #0f172a;
    transition: background 0.2s ease;
}

.mob-sidebar-close:hover {
    background: rgba(15, 23, 42, 0.1);
}

/* Nav links */
.mob-sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 12px 12px;
    gap: 2px;
    overflow-y: auto;
}

.mob-sidebar-link {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.mob-sidebar-link:hover {
    background: rgba(15, 23, 42, 0.05);
    color: #0f172a;
}

/* Footer CTA */
.mob-sidebar-footer {
    padding: 16px 20px 28px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
}

.mob-sidebar-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 20px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mob-sidebar-cta:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

/* Show hamburger, hide desktop nav-links on mobile */
@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        display: none !important;
    }
}

/* Blog section: show only first post on mobile */
@media (max-width: 768px) {
    .blog-grid .blog-card:not(:first-child) {
        display: none;
    }
}

/* Capabilities stack nav buttons */

.stack-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.features-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stack-nav-btn {
    width: 48px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: #ffffff;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.stack-nav-btn:hover:not(:disabled) {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.24);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
}

.stack-nav-btn:disabled {
    opacity: 0.35;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.scroll-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: auto !important;
}

.stack-stage {
    height: 360px;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .stack-stage { height: 332px; }
}

@media (max-width: 560px) {
    .stack-stage { height: 300px; }
}


/* ============================================
   MOBILE HERO FEATURES (shown when playground hidden)
   ============================================ */

.mobile-hero-features {
    display: none;
    padding: 0 20px 40px;
}

.mobile-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.mobile-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.mobile-feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15,23,42,0.08);
    border-color: rgba(15,23,42,0.12);
}

.mobile-feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(15,23,42,0.15);
}

.mobile-feature-icon svg {
    width: 20px;
    height: 20px;
    color: #fff;
    stroke-width: 2;
}

.mobile-feature-content {
    flex: 1;
    min-width: 0;
}

.mobile-feature-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.mobile-feature-content p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Show on mobile when playground is hidden */
@media (max-width: 768px) {
    .mobile-hero-features {
        display: block;
    }
    
    .hero-card {
        display: none;
    }
}

/* Adjust spacing for very small screens */
@media (max-width: 480px) {
    .mobile-hero-features {
        padding: 0 16px 32px;
    }
    
    .mobile-features-grid {
        gap: 12px;
    }
    
    .mobile-feature-item {
        padding: 14px;
        gap: 12px;
    }
    
    .mobile-feature-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    
    .mobile-feature-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .mobile-feature-content h4 {
        font-size: 14px;
    }
    
    .mobile-feature-content p {
        font-size: 12px;
    }
}

/* ── TTS Error Panel ─────────────────────────────────────────────────────── */
.tts-error-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fff8f8;
    border: 1px solid #fecaca;
    border-radius: 12px;
    width: 100%;
}

.tts-error-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #fee2e2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
}

.tts-error-body {
    flex: 1;
    min-width: 0;
}

.tts-error-title {
    font-size: 13px;
    font-weight: 600;
    color: #991b1b;
    margin-bottom: 2px;
}

.tts-error-message {
    font-size: 12px;
    color: #b91c1c;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
}

.tts-error-retry {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.15s;
}

.tts-error-retry:hover {
    opacity: 0.85;
}

/* Agents Showcase */
.agents-section {
    padding: 88px 0;
    background:
        radial-gradient(circle at 20% 12%, rgba(15, 23, 42, 0.04), transparent 30%),
        radial-gradient(circle at 88% 18%, rgba(15, 23, 42, 0.03), transparent 26%),
        #f8f8f8;
    position: relative;
    overflow: hidden;
}

.agents-section::before,
.agents-section::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.agents-section::before {
    right: -70px;
    top: -80px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(255,255,255,0.88), rgba(255,255,255,0.05));
    opacity: 0.65;
}

.agents-section::after {
    left: -90px;
    bottom: -100px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(15,23,42,0.06), rgba(15,23,42,0.01));
    opacity: 0.55;
}

.agents-section > .container {
    padding-top: 0;
    padding-bottom: 0;
    position: relative;
    z-index: 1;
}

.agents-header {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    align-items: end;
    gap: 28px;
    margin-bottom: 34px;
}

.agents-header-left {
    max-width: 720px;
}

.agents-header-right {
    max-width: 420px;
    justify-self: end;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.agents-header h2 {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.8px;
    margin-bottom: 0;
}

.agents-header p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
    max-width: 100%;
    margin: 0;
}

.agents-header-left p {
    color: #64748b;
}

.agents-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 14px;
}

.agents-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.agents-header-description {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
    font-size: 15px;
}

.agents-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.agents-cta:hover {
    background: #111111;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    color: #ffffff;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.agent-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 440px;
    padding: 22px 24px 18px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 32px;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    overflow: hidden;
}

.agent-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.28), transparent 28%);
    pointer-events: none;
}

.agent-card:hover {
    transform: translateY(-6px);
    border-color: rgba(15, 23, 42, 0.10);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.09);
}

.agent-card.is-active {
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.10);
}

.agent-card.is-live {
    transform: translateY(-4px) scale(1.01);
}

.agent-card-loading {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.agent-card-orb-shell {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 4px 0 12px;
}

.agent-card-orb {
    position: relative;
    width: min(100%, 236px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--agent-avatar-gradient, radial-gradient(circle at 30% 30%, #0ea5e9, #38bdf8, #0f172a));
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.14),
        0 10px 24px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(255,255,255,0.55) inset;
    overflow: hidden;
    animation: orbFloat 8s ease-in-out infinite;
    transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

.agent-card:hover .agent-card-orb {
    transform: scale(1.03);
    filter: saturate(1.06);
    box-shadow:
        0 28px 72px rgba(15, 23, 42, 0.18),
        0 14px 34px rgba(15, 23, 42, 0.10),
        0 0 0 1px rgba(255,255,255,0.60) inset;
}

.agent-card-orb::before,
.agent-card-orb::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.agent-card-orb::before {
    background:
        radial-gradient(circle at 30% 26%, rgba(255,255,255,0.34), transparent 28%),
        radial-gradient(circle at 78% 78%, rgba(255,255,255,0.14), transparent 32%);
    mix-blend-mode: screen;
    opacity: 0.9;
}

.agent-card-orb::after {
    inset: 12px;
    border-radius: inherit;
    border: 1px solid rgba(255,255,255,0.18);
    background: linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.02));
    backdrop-filter: blur(14px);
}

.agent-card-orb-inner {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 1;
}

.agent-card-orb-glow {
    position: absolute;
    inset: 18%;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(255,255,255,0.24), transparent 65%);
    filter: blur(14px);
    opacity: 0.9;
}

.agent-card-orb-mark {
    position: relative;
    z-index: 1;
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.20);
    text-shadow: 0 4px 22px rgba(15,23,42,0.24);
}

.agent-card-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 74px;
    height: 74px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.96);
    color: #0f172a;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(255,255,255,0.7) inset;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    z-index: 2;
}

.agent-card-play svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.agent-card-play:hover {
    transform: scale(1.06);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.20), 0 0 0 6px rgba(255,255,255,0.35);
}

.agent-card.is-live .agent-card-play {
    box-shadow: 0 16px 34px rgba(34, 197, 94, 0.22), 0 0 0 6px rgba(34, 197, 94, 0.12);
    animation: playPulse 1.8s ease-in-out infinite;
}

.agent-card-live-dot {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.38);
    opacity: 0;
    z-index: 3;
}

.agent-card.is-live .agent-card-live-dot {
    opacity: 1;
    animation: livePulse 1.8s ease-out infinite;
}

.agent-avatar-blob {
    border-radius: 50%;
    animation: orbBlob 8s ease-in-out infinite;
}

.agent-avatar-pill {
    border-radius: 999px;
    width: min(100%, 236px);
}

.agent-avatar-ring {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.42);
    box-shadow:
        0 22px 52px rgba(15, 23, 42, 0.12),
        0 0 0 10px rgba(15, 23, 42, 0.04);
}

.agent-avatar-ring::after {
    inset: 16px;
    border-radius: 50%;
    background: var(--agent-avatar-gradient, radial-gradient(circle at 30% 30%, #0ea5e9, #38bdf8, #0f172a));
}

.agent-avatar-wave {
    border-radius: 50%;
    animation: orbWave 6s ease-in-out infinite;
}

.agent-card-body {
    width: 100%;
    margin-top: 0;
}

.agent-card-body h3 {
    margin: 0;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.6px;
    color: #0f172a;
}

.agent-card-body h3 span {
    font-size: 0.9em;
    color: #94a3b8;
}

.agent-card-body p {
    margin: 10px auto 0;
    max-width: 30ch;
    color: #64748b;
    line-height: 1.7;
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.4em;
}

.agent-card-actions {
    margin-top: 8px;
    width: 100%;
    display: flex;
    justify-content: stretch;
}

.agent-card-cta,
.agent-card-status {
    width: 100%;
    min-height: 52px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, opacity 0.22s ease;
}

.agent-card-cta {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.agent-card-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
    background: #f8fafc;
}

.agent-card-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.16);
}

.agent-card-status-live::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.14);
}

.agent-card-status:disabled {
    opacity: 1;
    cursor: default;
}

.agent-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2, 6, 23, 0.68);
    backdrop-filter: blur(10px);
}

.agent-modal-overlay.is-visible {
    display: flex;
}

.agent-modal {
    width: min(1120px, 100%);
    max-height: min(92vh, 980px);
    overflow: auto;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 252, 0.98));
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.25);
    color: #0f172a;
    padding: 24px;
}

.agent-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.agent-modal-header h2 {
    margin: 0;
    font-size: 30px;
}

.agent-modal-close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #e2e8f0;
    color: #0f172a;
    cursor: pointer;
}

.agent-modal-body {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 18px;
}

.agent-modal-summary,
.agent-modal-chat {
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(180deg, rgba(248, 250, 252, 1), rgba(255, 255, 255, 1));
    padding: 20px;
}

.agent-summary-pill {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 12px;
    font-weight: 700;
}

.agent-demo-waveform {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 72px;
    margin: 18px 0;
}

.agent-demo-waveform span {
    width: 8px;
    border-radius: 999px;
    background: linear-gradient(180deg, #38bdf8, #0f172a);
    animation: agentWave 1.1s ease-in-out infinite;
}

.agent-demo-waveform span:nth-child(2n) { animation-delay: 0.12s; }
.agent-demo-waveform span:nth-child(3n) { animation-delay: 0.24s; }
.agent-demo-waveform span:nth-child(4n) { animation-delay: 0.36s; }

.agent-demo-waveform span:nth-child(1) { height: 18px; }
.agent-demo-waveform span:nth-child(2) { height: 34px; }
.agent-demo-waveform span:nth-child(3) { height: 22px; }
.agent-demo-waveform span:nth-child(4) { height: 46px; }
.agent-demo-waveform span:nth-child(5) { height: 28px; }
.agent-demo-waveform span:nth-child(6) { height: 52px; }
.agent-demo-waveform span:nth-child(7) { height: 24px; }
.agent-demo-waveform span:nth-child(8) { height: 40px; }

.agent-demo-waveform.is-active span {
    opacity: 1;
}

@keyframes agentWave {
    0%, 100% { transform: scaleY(0.9); opacity: 0.65; }
    50% { transform: scaleY(1.15); opacity: 1; }
}

.agent-demo-log {
    min-height: 240px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #fff;
    padding: 16px;
    white-space: pre-wrap;
    line-height: 1.7;
    color: #334155;
}

.agent-demo-chat-head {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #0ea5e9;
    font-weight: 700;
    margin-bottom: 10px;
}

.agent-demo-chat {
    min-height: 280px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #fff;
    padding: 14px;
    overflow: auto;
}

.agent-demo-message {
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.agent-demo-message.user {
    background: #dbeafe;
    color: #0f172a;
}

.agent-demo-message.agent {
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: #0f172a;
}

.agent-demo-input {
    width: 100%;
    min-height: 90px;
    margin-top: 12px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 14px;
    resize: vertical;
}

.agent-demo-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

@media (max-width: 1000px) {
    .agents-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .agent-modal-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .agents-header {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 24px;
    }

    .agents-header-right {
        justify-self: start;
        max-width: 100%;
    }

    .agents-header-actions {
        width: 100%;
    }

    .agents-header-actions .features-cta {
        width: auto;
    }

    .agents-grid {
        grid-template-columns: 1fr;
    }

    .agent-card {
        min-height: auto;
        padding: 20px 18px 16px;
    }

    .agent-card-orb-shell {
        padding-bottom: 10px;
    }

    .agent-card-orb {
        width: min(100%, 220px);
    }

    .agent-card-play {
        width: 68px;
        height: 68px;
    }

    .agent-card-body p {
        max-width: 100%;
        min-height: 0;
    }

    .agent-modal {
        padding: 16px;
    }
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.01); }
}

@keyframes orbBlob {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.03) rotate(2deg); }
}

@keyframes orbWave {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.02) rotate(-2deg); }
}

@keyframes playPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.34); transform: scale(1); }
    70% { box-shadow: 0 0 0 14px rgba(34, 197, 94, 0); transform: scale(1.08); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); transform: scale(1); }
}


/* Voice Call Overlay */
.voice-call-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.voice-call-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

.voice-call-modal {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.voice-call-overlay.is-open .voice-call-modal {
    transform: scale(1) translateY(0);
}

.voice-call-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(15, 23, 42, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.voice-call-close:hover {
    background: rgba(15, 23, 42, 0.15);
    transform: scale(1.1);
}

.voice-call-header {
    padding: 48px 32px 24px;
    text-align: center;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.voice-call-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}

.voice-call-header p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.voice-call-body {
    padding: 32px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.voice-call-status {
    font-size: 13px;
    color: #16a34a;
    font-weight: 600;
    padding: 8px 16px;
    background: rgba(22, 163, 74, 0.1);
    border-radius: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.voice-call-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
}

.voice-call-avatar::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 3px solid rgba(14, 165, 233, 0.3);
    animation: ripple 2s ease-in-out infinite;
}

@keyframes ripple {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

.voice-call-transcript {
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    padding: 16px;
    background: rgba(15, 23, 42, 0.03);
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
}

.voice-call-controls {
    padding: 24px 32px 32px;
    display: flex;
    gap: 12px;
    justify-content: center;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.voice-call-btn {
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.voice-call-btn.mute {
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

.voice-call-btn.mute:hover {
    background: rgba(15, 23, 42, 0.15);
}

.voice-call-btn.end {
    background: #ef4444;
    color: #fff;
}

.voice-call-btn.end:hover {
    background: #dc2626;
}

@media (max-width: 640px) {
    .voice-call-modal {
        width: 95%;
        max-width: none;
    }
    
    .voice-call-header {
        padding: 40px 24px 20px;
    }
    
    .voice-call-body {
        padding: 24px;
        min-height: 250px;
    }
    
    .voice-call-avatar {
        width: 100px;
        height: 100px;
    }
    
    .voice-call-controls {
        padding: 20px 24px 24px;
    }
}
