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

:root {
    /* Vibrant Color Palette with High Contrast */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --accent: #10b981;
    --accent-dark: #059669;
    --danger: #ef4444;
    --warning: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border: #e5e7eb;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-out;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* HEADER */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.header-mic-icon {
    width: 40px;
    height: 40px;
    padding: 0px;
    border-radius: 50%;
    background: transparent;
    object-fit: cover;
    display: block;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* MAIN CONTENT */
.main {
    flex: 1;
    padding: 1rem 0;
}

/* MIC TEST SECTION */
/* Hero Layout - Side by Side */
.hero-layout {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    align-items: stretch;
}

.mic-test-section {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 1.7rem 2rem;
    box-shadow: var(--shadow-2xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mic-test-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.mic-icon-container {
    margin-bottom: 0.5rem;
    padding-top: 1rem;
    position: relative;
    z-index: 1;
}

/* Simple Microphone Icon with Water Drop Animation */
.mic-icon-simple {
    width: 110px;
    height: 110px;
    margin: 0 auto;
    position: relative;
    background: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: waterDrop 2s ease-out infinite;
}

.mic-icon-simple.active {
    animation: waterDrop 0.6s ease-out infinite;
}

.mic-icon-img {
    width: 90px;
    height: 90px;
    position: relative;
    z-index: 2;
    object-fit: contain;
}

.water-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(240, 231, 231, 0.35);
    animation: ripple 2s ease-out infinite;
}

.mic-icon-simple.active .water-ripple {
    animation: ripple 0.6s ease-out infinite;
}

@keyframes waterDrop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes ripple {
    0% {
        width: 100%;
        height: 100%;
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        width: 150%;
        height: 150%;
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

@keyframes pulse {

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

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.test-title {
    font-size: 1.75rem;
    font-weight: 700;
    padding-top: 0.7rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.2;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.test-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

/* Test Controls Container */
.test-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Microphone Selector */
.mic-selector-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
}

.mic-selector-wrapper.hidden {
    display: none;
}

.mic-selector {
    padding: 0.5rem 1rem;
    padding-right: 2.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    max-width: 400px;
    min-height: 36px;
    height: auto;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236366f1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    box-sizing: border-box;
}

.mic-selector:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.mic-selector:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Live Voice Button */
.btn-live-voice {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    overflow: hidden;
    height: auto;
    min-height: 44px;
}

.btn-live-voice.hidden {
    display: none;
}

.btn-live-voice.active {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

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

.btn-live-voice:hover:not(:disabled)::before {
    width: 300px;
    height: 300px;
}

.btn-live-voice:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2xl);
}

.btn-live-voice:active:not(:disabled) {
    transform: translateY(-1px);
}

/* PRIMARY BUTTON */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 0.65rem 1.3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    overflow: hidden;
    height: auto;
    min-height: 42px;
}

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

.btn-primary:hover:not(:disabled)::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2xl);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-logo-icon {
    width: 25px;
    height: 25px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    object-fit: contain;
}

.btn-icon {
    position: relative;
    z-index: 1;
    font-size: 1.3rem;
}

/* AUDIO VISUALIZATION */
.audio-visualization {
    margin: 2rem 0;
    position: relative;
    z-index: 1;
}

.level-meter-container {
    margin-bottom: 1.5rem;
    padding-top: 0.6rem;
}

.level-meter {
    width: 100%;
    max-width: 600px;
    height: 50px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    border: 3px solid var(--border);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.meter-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent) 0%, #fbbf24 50%, var(--danger) 100%);
    border-radius: var(--radius-sm);
    transition: width 0.1s ease-out;
    position: relative;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.meter-bar.active {
    animation: glow 1s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    }

    50% {
        box-shadow: 0 0 30px rgba(16, 185, 129, 0.8);
    }
}

.meter-indicators {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 1rem;
    pointer-events: none;
}

.meter-indicators .indicator {
    width: 3px;
    height: 40%;
    background: rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-full);
}

.waveform {
    width: 100%;
    max-width: 700px;
    height: 100px;
    display: block;
    margin: 0 auto;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: var(--radius-lg);
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.3), var(--shadow-lg);
    border: 2px solid rgba(99, 102, 241, 0.2);
}

.status-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    min-height: 1.5rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.status-text.hidden {
    display: none;
}

.status-text.active {
    color: var(--accent);
    font-weight: 600;
}

.status-text.error {
    color: var(--danger);
    font-weight: 600;
}

.status-text.waiting {
    color: var(--text-light);
    font-size: 1.125rem;
}

/* RESULT DISPLAY */
.result-display {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    z-index: 1;
    animation: slideIn 0.5s ease-out;
    scroll-margin-top: 20px;
}

.result-display.hidden {
    display: none;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.result-icon.result-success {
    animation: successPulse 1s ease-out;
}

.result-icon.result-error {
    animation: errorShake 0.5s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes errorShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

/* 3D Check Mark */
.check-3d {
    width: 80px;
    height: 80px;
    position: relative;
    transform-style: preserve-3d;
    animation: checkRotate 2s ease-in-out infinite;
}

.check-3d::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 8px;
    background: var(--accent);
    border-radius: 4px;
    top: 45px;
    left: 20px;
    transform: rotate(-45deg) translateZ(20px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.5);
}

.check-3d::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 8px;
    background: var(--accent);
    border-radius: 4px;
    top: 35px;
    left: 30px;
    transform: rotate(45deg) translateZ(20px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.5);
}

@keyframes checkRotate {

    0%,
    100% {
        transform: rotateY(0deg);
    }

    50% {
        transform: rotateY(180deg);
    }
}

/* 3D Cross Mark */
.cross-3d {
    width: 80px;
    height: 80px;
    position: relative;
    transform-style: preserve-3d;
    animation: crossRotate 2s ease-in-out infinite;
}

.cross-3d::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 8px;
    background: var(--danger);
    border-radius: 4px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg) translateZ(20px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.5);
}

.cross-3d::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 8px;
    background: var(--danger);
    border-radius: 4px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg) translateZ(20px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.5);
}

@keyframes crossRotate {

    0%,
    100% {
        transform: rotateY(0deg);
    }

    50% {
        transform: rotateY(180deg);
    }
}

.result-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.result-title.result-success {
    color: var(--accent);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-title.result-error {
    color: var(--danger);
}

.result-message {
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

.result-message.result-success {
    color: var(--text-secondary);
}

.result-message.result-error {
    color: var(--text-secondary);
}

/* SECTION STYLES */
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    text-align: center;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--radius-full);
}

.how-to-section {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 1rem 1rem;
    box-shadow: var(--shadow-xl);
    height: 100%;
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
}

.how-to-section .section-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.how-to-section .steps-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex: 1;
}

.how-to-section .step-card {
    padding: 0.75rem 0.75rem;
}

.how-to-section .step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    line-height: 1.3;
    font-weight: 600;
    color: var(--text-primary);
}

.how-to-section .step-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
    color: var(--text-secondary);
}

.how-to-section .step-number {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.features-section,
.troubleshooting-section,
.related-articles-section,
.faq-section {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 2.5rem 1.75rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-xl);
}

/* STEPS GRID */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-top: 1.75rem;
}

.step-card {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    transform: scaleX(0);
    transition: var(--transition);
}

.step-card:hover::before {
    transform: scaleX(1);
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.step-number {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.step-card:hover .step-number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-lg);
}

.step-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-align: center;
}

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

/* TROUBLESHOOTING GRID */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.75rem;
}

.feature-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-left: 4px solid var(--accent);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

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

/* Feature Icons */
.feature-icon-svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-align: center;
}

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

.troubleshooting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.75rem;
}

.trouble-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-left: 4px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.trouble-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.trouble-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-left-color: var(--accent);
}

/* Troubleshooting Icons */
.trouble-icon-svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trouble-icon-img {
    width: 100%;
    height: 100%;
    color: var(--primary);
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.2));
}

.trouble-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-align: center;
}

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

/* RELATED ARTICLES GRID */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.75rem;
}

.article-card {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
    background: var(--bg-primary);
}

.article-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.article-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex: 1;
}

.article-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.article-link:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

/* FAQ SECTION */
.faq-container {
    max-width: 800px;
    margin: 1.75rem auto 0;
}

.faq-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border: 2px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.faq-question-btn {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.5rem 2rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.faq-question-btn:hover {
    background: var(--bg-tertiary);
}

.faq-question-btn[aria-expanded="true"] {
    background: var(--bg-tertiary);
}

.faq-question-btn[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-question {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    flex: 1;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary);
    transition: var(--transition);
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
}

.faq-answer-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 2rem;
}

.faq-item.active .faq-answer-wrapper {
    max-height: 500px;
    padding: 0 2rem 1.5rem;
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* FAQ CTA Styles */
.faq-cta-primary {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-start;
}

.faq-cta-btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

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

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

.faq-cta-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2xl);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: white;
    text-decoration: none;
}

.faq-cta-btn-primary:active {
    transform: translateY(-1px);
}

.faq-cta-soft {
    margin-top: 1.25rem;
    display: flex;
    justify-content: flex-start;
}

.faq-cta-link-soft {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    display: inline-block;
    border: 2px solid transparent;
}

.faq-cta-link-soft:hover {
    color: var(--primary-dark);
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateX(4px);
    text-decoration: none;
}

/* troubleshotting CTA */
.trouble-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #6d5dfc, #4f46e5);
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trouble-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.45);
}

.trouble-cta-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.trouble-card {
    display: flex;
    flex-direction: column;
}

.trouble-card p {
    flex-grow: 1;
}

/* FOOTER */
.footer {
    background: rgba(17, 24, 39, 0.98);
    backdrop-filter: blur(10px);
    color: white;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 0 1rem;
    min-height: auto;
}

.footer-brand-link {
    text-decoration: none;
    color: inherit;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.footer-mic-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    object-fit: cover;
    display: block;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.footer-company-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    margin-top: 0;
    line-height: 1.2;
}

.footer-company-tagline {
    font-size: 0.9rem;
    color: rgba(249, 250, 251, 0.8);
    max-width: 260px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.footer-section-title {
    display: none;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: rgba(249, 250, 251, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.footer-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.footer-links a.active {
    color: #fff;
    background: rgba(99, 102, 241, 0.25);
    font-weight: 600;
    pointer-events: none;
    cursor: default;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    background: rgba(55, 65, 81, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon-img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.social-link:hover .social-icon-img {
    filter: brightness(0) invert(0);
}

.social-link:hover {
    background: #ffffff;
    color: #111827;
}

.footer-bottom {
    border-top: 1px solid rgba(55, 65, 81, 0.9);
    padding: 1rem 0;
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.footer-copy {
    font-size: 0.85rem;
    opacity: 0.75;
    text-align: center;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .how-to-section {
        position: static;
    }

    .how-to-section .steps-grid {
        grid-template-columns: 1fr;
    }

    .test-controls {
        flex-direction: column;
        gap: 0.75rem;
    }

    .mic-selector {
        min-width: 100%;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

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

    .test-subtitle {
        font-size: 1.125rem;
    }

    .mic-test-section {
        padding: 2rem 1.5rem;
    }

    .static-container {
        padding: 2rem 1.5rem;
    }

    .static-container h1 {
        font-size: 2rem;
    }

    .mic-icon-simple {
        width: 100px;
        height: 100px;
    }

    .mic-icon-img {
        width: 80px;
        height: 80px;
    }

    .btn-primary {
        padding: 0.55rem 1.1rem;
        font-size: 0.9rem;
        min-height: 38px;
        height: auto;
        width: auto;
        max-width: 100%;
        white-space: nowrap;
    }

    .btn-live-voice {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        min-height: 36px;
        height: auto;
        width: auto;
        max-width: 100%;
        white-space: nowrap;
    }

    .btn-icon {
        font-size: 1.1rem;
    }

    .btn-logo-icon {
        width: 20px;
        height: 20px;
    }

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

    .steps-grid,
    .features-grid,
    .troubleshooting-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .waveform {
        height: 150px;
    }

    .how-to-section,
    .features-section,
    .troubleshooting-section,
    .related-articles-section,
    .faq-section {
        padding: 2rem 1.25rem;
    }

    .faq-container {
        margin-top: 1.5rem;
    }

    .faq-item {
        margin-bottom: 0.5rem;
    }

    .faq-question-btn {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    .faq-question {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .faq-icon {
        width: 20px;
        height: 20px;
        font-size: 1.1rem;
    }

    .faq-answer-wrapper {
        padding: 0 1rem;
    }

    .faq-item.active .faq-answer-wrapper {
        padding: 0 1rem 0.75rem;
    }

    .faq-answer {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .main {
        padding: 0.75rem 0;
    }

    .mic-test-section {
        padding: 2rem 1rem;
    }

    .mic-icon-simple {
        width: 80px;
        height: 80px;
    }

    .mic-icon-simple svg {
        width: 80px;
        height: 80px;
    }

    .test-title {
        font-size: 1.75rem;
    }

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

    .btn-primary {
        padding: 0.5rem 0.7rem;
        font-size: 0.95rem;
        min-height: 32px;
        height: auto;
        gap: 0.35rem;
        white-space: nowrap;
    }

    .btn-live-voice {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        min-height: 32px;
        height: auto;
        white-space: nowrap;
    }

    .btn-logo-icon {
        width: 18px;
        height: 18px;
    }

    .test-controls {
        gap: 0.6rem;
        margin-bottom: 1rem;
    }

    .step-card,
    .feature-card,
    .trouble-card,
    .article-card {
        padding: 2rem 1.5rem;
    }
}

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

.btn-primary:focus-visible,
.nav-link:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Smooth scroll offset for anchor links */
section {
    scroll-margin-top: 100px;
}

/* Static pages (About, Contact, Privacy, Terms) */
.static-page {
    background: var(--bg-secondary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.simple-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.simple-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.simple-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.75rem;
}

.simple-logo-link .header-mic-icon {
    width: 32px;
    height: 32px;
    fill: var(--primary);
}

.simple-logo-text {
    font-size: 1.75rem;
}

.simple-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.simple-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.simple-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

.simple-nav a:hover::after {
    width: 100%;
}

.static-main {
    flex: 1;
    padding: 3rem 0;
}

.static-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-lg);
}

.static-container h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 1rem;
}

.static-container h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--radius-full);
}

.static-container p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.blog-article {
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
    scroll-margin-top: 100px;
    transition: var(--transition);
    position: relative;
}

.blog-article:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.blog-article:last-child {
    margin-bottom: 0;
}

.blog-article h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    margin-top: 0;
    color: var(--primary);
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary);
    line-height: 1.3;
}

.blog-article h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.blog-article h4:first-of-type {
    margin-top: 0;
}

.blog-article p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: left;
}

.blog-article ul {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    margin-left: 1.5rem;
    padding-left: 0;
    list-style-type: disc;
}

.blog-article ul li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.blog-article ul li:last-child {
    margin-bottom: 0;
}

/* Primary CTA — Glassmorphism Compact (blog pages) */
.blog-cta-glass-wrapper {
    margin-top: 1.75rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 14px;
    padding: 2px;
}

.blog-cta-glass {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.blog-cta-glass p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #4b5563;
    flex: 1;
    min-width: 200px;
}

.blog-cta-glass p strong {
    color: #1f2937;
}

.blog-cta-glass-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.55rem 1.3rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

.blog-cta-glass-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.45);
    color: white;
    text-decoration: none;
}

.blog-cta-glass-btn::after {
    content: '→';
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.blog-cta-glass-btn:hover::after {
    transform: translateX(3px);
}

@media (max-width: 480px) {
    .blog-cta-glass {
        text-align: left;
        padding: 0.9rem 1rem;
        gap: 0.75rem;
    }

    .blog-cta-glass p {
        min-width: auto;
        font-size: 0.85rem;
    }

    .blog-cta-glass-btn {
        padding: 0.5rem 1.1rem;
        font-size: 0.82rem;
    }
}

/* Blog article heading reductions - Mobile */
@media (max-width: 768px) {
    .blog-article h1 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .blog-article h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .blog-article h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .blog-article p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}

/* Legacy blog-cta for intent pages (root folder) */
.blog-cta {
    margin-top: 32px;
    padding-left: 16px;
    border-left: 3px solid #2f80ed;
}

.blog-cta p {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.blog-cta-link {
    font-size: 14px;
    font-weight: 600;
    color: #2f80ed;
    text-decoration: none;
}

/* Soft contextual CTA */
.soft-cta {
    color: #2f80ed;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

/* Blog internal contextual links */
.blog-contextual-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: inherit;
    line-height: inherit;
    transition: color 0.2s ease;
}

.blog-contextual-link:hover {
    color: #1d4ed8;
}

.static-container strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Hide social media on static pages */
.static-page .footer-right {
    display: none;
}

/* Adjust footer grid for static pages */
.static-page .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

/* Responsive footer - iPad */
@media (max-width: 1024px) and (min-width: 769px) {
    .footer-grid {
        gap: 1.5rem;
        padding: 1.5rem 1rem 1rem;
    }
}

/* Responsive footer - Mobile */
@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem 1rem 1.5rem;
    }

    .footer-left {
        align-self: flex-start;
        text-align: left;
    }

    .footer-brand {
        justify-content: flex-start;
    }

    .footer-company {
        text-align: left;
    }

    .footer-company-tagline {
        margin: 0;
    }

    .footer-links {
        width: 100%;
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom-inner {
        padding: 0 1rem;
    }
}