/* Import Better Fonts with optimal loading */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Space+Grotesk:wght@600;700&display=swap');

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Unique Modern Palette */
    --primary: #8B5CF6;
    --primary-glow: rgba(139, 92, 246, 0.4);
    --accent: #F59E0B;
    --accent-glow: rgba(245, 158, 11, 0.3);

    /* Backgrounds */
    --bg: #050505;
    --bg-elevated: #0D0D0D;
    --bg-card: #161616;
    --bg-input: #1F1F1F;

    /* Text */
    --text: #FAFAFA;
    --text-secondary: #9CA3AF;
    --text-dim: #6B7280;

    /* Borders */
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    /* Status */
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;

    /* Shadows */
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.7);

    /* Transitions */
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

html {
    scroll-behavior: smooth !important;
    scroll-padding-top: 80px;
    background: #050505; /* Dark background behind shader */
}

* {
    scroll-behavior: smooth !important;
}

/* Ultra smooth scroll */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: transparent;
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    text-transform: lowercase;
    /* Ultra smooth scrolling on mobile */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;
    /* Performance optimizations */
    contain: layout style paint;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar - Minimal Clean */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    will-change: transform;
    contain: layout style paint;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    padding: 0 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.03em;
    transition: transform 0.2s var(--ease);
}

.nav-brand:hover {
    transform: translateY(-1px);
}

.logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.brand-name {
    background: linear-gradient(135deg, #8B5CF6 0%, #F59E0B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s var(--ease);
    letter-spacing: -0.01em;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s var(--ease);
}

.nav-links a:hover {
    color: rgba(255, 255, 255, 1);
}

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

.wallet-btn {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(245, 158, 11, 0.1));
    color: var(--text);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 0.5rem 1.125rem;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    letter-spacing: -0.01em;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
}

.wallet-btn:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(245, 158, 11, 0.2));
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.wallet-btn.connected {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.wallet-btn.connected:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
    will-change: transform;
}

.mobile-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s var(--ease);
}

.mobile-menu a:hover {
    background: var(--bg-card);
    color: var(--text);
}

.mobile-menu.active {
    display: flex;
}

/* Hero - Bold Modern */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    overflow: hidden;
    background: transparent;
}

/* Removed hero-background elements - shader provides background now */

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4rem 2rem;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.7;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 4px 16px rgba(0, 0, 0, 0.6);
    font-weight: 500;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary), #7C3AED);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 10px;
    font-size: 1.0625rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    box-shadow: 0 0 30px var(--primary-glow);
    letter-spacing: -0.01em;
}

.cta-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 40px var(--primary-glow);
}

/* Contract Address Section */
.ca-section {
    padding: 3rem 0;
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
    contain: layout style;
}

.ca-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.ca-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.ca-label svg {
    color: var(--primary);
}

.ca-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.875rem 1rem;
}

.ca-address {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--text);
    background: transparent;
    border: none;
    outline: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ca-copy-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    white-space: nowrap;
}

.ca-copy-btn:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 15px var(--primary-glow);
}

.ca-copy-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ca-copy-btn.copied {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

/* Profile Section */
.profile-section {
    padding: 6rem 0 3rem;
    background: rgba(13, 13, 13, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    contain: layout style;
}

.profile-section.hidden {
    display: none;
}

.profile-header {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    overflow: hidden;
}

.profile-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.profile-address {
    color: var(--text-secondary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
}

.profile-stats {
    display: flex;
    gap: 3rem;
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.profile-stat-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Recording Section */
.recording-section {
    position: relative;
    padding: 5rem 0;
    background: transparent;
    overflow: hidden;
}

/* Animated gradient container */
.recording-gradient-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.8;
    filter: blur(80px);
    will-change: background;
}

/* Animated gradient class (added by JS) */
.animated-gradient {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Ensure content is above gradient */
.recording-section .container {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

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

.recording-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.recording-controls {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

.recording-visualizer {
    width: 100%;
    height: 200px;
    background: var(--bg-input);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
}

#visualizerCanvas {
    width: 100%;
    height: 100%;
}

.recording-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-input);
    border-radius: 10px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-dim);
    transition: all 0.2s ease;
}

.status-dot.recording {
    background: var(--error);
    animation: pulse 1.5s ease-in-out infinite;
}

.status-dot.ready {
    background: var(--success);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.15);
    }
}

#statusText {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.recording-timer {
    font-family: 'Space Grotesk', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.05em;
}

.control-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 2rem;
    border: 1px solid var(--border);
    background: var(--bg-input);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    color: var(--text);
    font-weight: 600;
    font-size: 0.875rem;
}

.control-btn:hover:not(:disabled) {
    border-color: var(--primary);
    background: var(--bg-card);
    transform: translateY(-2px);
}

.control-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.control-btn svg {
    width: 24px;
    height: 24px;
}

.record-btn:hover:not(:disabled) {
    border-color: var(--error);
    color: var(--error);
}

.stop-btn:hover:not(:disabled) {
    border-color: var(--warning);
    color: var(--warning);
}

.play-btn:hover:not(:disabled) {
    border-color: var(--success);
    color: var(--success);
}

.transcription-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.transcription-container h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.transcription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.language-selector label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.language-select {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    outline: none;
    min-width: 180px;
}

.language-select:hover {
    border-color: var(--border-hover);
}

.language-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.language-select option {
    background: var(--bg-card);
    color: var(--text);
    padding: 0.5rem;
}

.transcription-box {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    min-height: 250px;
    margin-bottom: 1.5rem;
    overflow-y: auto;
}

.transcription-placeholder {
    color: var(--text-dim);
    font-style: italic;
}

.transcription-text {
    color: var(--text);
    line-height: 1.8;
    white-space: pre-wrap;
}

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

.btn-primary, .btn-secondary {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #7C3AED);
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--primary-glow);
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
    border-color: var(--primary);
    background: var(--bg-card);
    transform: translateY(-2px);
}

.btn-primary:disabled, .btn-secondary:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* History Section */
.history-section {
    padding: 5rem 0;
    background: rgba(13, 13, 13, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    contain: layout style;
}

.history-section.hidden {
    display: none;
}

.history-list {
    display: grid;
    gap: 1rem;
}

.history-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s var(--ease);
}

.history-item:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.history-info {
    flex: 1;
}

.history-date {
    color: var(--text-dim);
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
}

.history-transcription {
    color: var(--text);
    margin-bottom: 0.5rem;
}

.history-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.history-status.pending {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.history-status.approved {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.history-expand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    transition: all 0.2s var(--ease);
}

.history-item:hover .history-expand-icon {
    color: var(--primary);
    transform: translateX(4px);
}

/* How It Works */
.how-it-works {
    padding: 7rem 0;
    background: transparent;
}

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

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s var(--ease);
    position: relative;
}

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

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
    box-shadow: 0 0 20px var(--primary-glow);
}

.step-icon {
    width: 72px;
    height: 72px;
    margin: 1rem auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    border-radius: 50%;
    color: var(--primary);
}

.step-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

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

/* FAQ Section - Demo Style with Two Columns */
.faq-section {
    padding: 5rem 0;
    background: rgba(13, 13, 13, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    contain: layout style;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr 2fr;
        gap: 4rem;
    }
}

.faq-sidebar {
    position: relative;
}

.faq-sidebar-content {
    position: sticky;
    top: 5rem;
}

.faq-sidebar h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.faq-sidebar p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9375rem;
}

.faq-sidebar a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s var(--ease);
}

.faq-sidebar a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0 1rem;
    overflow: hidden;
    transition: all 0.2s var(--ease);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
}

.faq-item:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.4);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 0;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s var(--ease);
    letter-spacing: -0.01em;
}

.faq-question:hover {
    color: var(--text);
}

.faq-question-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.faq-question-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: color 0.2s var(--ease);
}

.faq-item.active .faq-question-icon {
    color: var(--primary);
}

.faq-icon {
    color: var(--text-secondary);
    transition: all 0.3s var(--ease);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease), opacity 0.3s var(--ease);
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    opacity: 1;
}

.faq-answer p {
    padding: 0 0 1.25rem 2.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* Smooth height animation keyframes (radix-ui style) */
@keyframes faq-accordion-down {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        height: var(--faq-content-height);
        opacity: 1;
    }
}

@keyframes faq-accordion-up {
    from {
        height: var(--faq-content-height);
        opacity: 1;
    }
    to {
        height: 0;
        opacity: 0;
    }
}

/* Enhanced FAQ hover states */
.faq-item:hover .faq-question {
    color: var(--text);
}

/* Footer */
.footer {
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
    padding: 5rem 0 2rem;
    contain: layout style;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

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

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s var(--ease);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--primary-glow);
}

.footer-section h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

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

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.875rem;
}

.footer-disclaimer {
    margin-top: 0.5rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    background: rgba(10, 10, 10, 0.98);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    min-width: 350px;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: popIn 0.3s var(--ease);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    pointer-events: all;
}

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

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

@keyframes popIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.toast.success {
    border-color: var(--success);
}

.toast.error {
    border-color: var(--error);
}

.toast.warning {
    border-color: var(--warning);
    background: rgba(255, 214, 0, 0.15);
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    will-change: opacity;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s var(--ease);
    line-height: 1;
}

.modal-close:hover {
    background: var(--bg-input);
    color: var(--text);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.modal-body textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.2s var(--ease);
}

.modal-body textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Recording Details Modal */
.modal-large {
    max-width: 800px;
}

.recording-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.recording-detail-item:last-child {
    border-bottom: none;
}

.recording-detail-item.full-width {
    flex-direction: column;
    gap: 0.75rem;
}

.recording-detail-item label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 100px;
    font-size: 0.875rem;
}

.recording-detail-item span {
    color: var(--text);
}

.view-status {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: lowercase;
}

.view-status.pending {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.view-status.approved {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.recording-full-text {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    color: var(--text);
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
}

/* Utility */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .recording-container {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Typewriter Effect Styles */
.typewriter-text {
    display: inline;
}

.typewriter-cursor {
    display: inline-block;
    margin-left: 2px;
    animation: typewriter-blink 1s infinite;
    font-weight: 400;
    color: var(--primary);
}

@keyframes typewriter-blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

/* Ensure typewriter container inherits styles */
#heroTypewriter {
    display: inline;
}

#heroTypewriter .highlight {
    color: var(--primary);
    font-weight: 700;
}

#heroTypewriter .sparkle-text {
    position: relative;
    display: inline-block;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .toast {
        min-width: 90vw;
        max-width: 90vw;
        padding: 1.25rem 1.5rem;
    }

    .toast-message {
        font-size: 0.9375rem;
    }

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

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

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .ca-content {
        flex-direction: column;
        align-items: stretch;
    }

    .ca-copy-btn {
        width: 100%;
        justify-content: center;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-info {
        flex-direction: column;
        text-align: center;
    }

    .profile-stats {
        width: 100%;
        justify-content: center;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }

    .control-buttons {
        flex-direction: column;
    }

    .toast-container {
        left: 1.25rem;
        right: 1.25rem;
    }

    .toast {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .cta-button {
        width: 100%;
    }

    .transcription-actions {
        flex-direction: column;
    }
}
