/* ============================================
   MEDGemma Design System — Premium Redesign
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== Design Tokens — Light (Default) ===== */

:root {
    --bg: #FAFAF8;
    --bg-subtle: #F4F4F1;
    --bg-muted: #ECEAE6;
    --bg-card: #FFFFFF;
    --text: #1A1A2E;
    --text-secondary: #4A4A5A;
    --text-tertiary: #8888A0;
    --border: #E2E0DC;
    --border-hover: #C8C6C0;
    --accent: #4338CA;
    --accent-hover: #3730A3;
    --accent-secondary: #0D9488;
    --accent-muted: #EEF2FF;
    --accent-text: #ffffff;
    --accent-glow: rgba(67, 56, 202, 0.25);
    --warm-accent: #D97706;
    --warm-accent-muted: rgba(217, 119, 6, 0.08);
    --check: #059669;
    --shadow-sm: 0 1px 3px rgba(26, 26, 46, 0.04);
    --shadow-md: 0 4px 16px rgba(26, 26, 46, 0.06);
    --shadow-lg: 0 12px 40px rgba(26, 26, 46, 0.08);
    --shadow-xl: 0 20px 60px rgba(26, 26, 46, 0.10);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --max-width: 1120px;
    --nav-height: 64px;
    --transition: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Mockup tokens */
    --mockup-bg: #F8F9FC;
    --mockup-nav-bg: #FFFFFF;
    --mockup-nav-border: #E5E7EB;
    --mockup-card-bg: #FFFFFF;
    --mockup-card-border: #E5E7EB;
    --mockup-text: #1F2937;
    --mockup-text-secondary: #6B7280;
    --mockup-text-tertiary: #9CA3AF;
    --mockup-accent: #4F46E5;
    --mockup-green: #059669;
    --mockup-orange: #D97706;
    --mockup-purple: #7C3AED;
    --mockup-output-bg: #F9FAFB;
}

/* ===== Dark Mode Tokens ===== */

[data-theme="dark"] {
    --bg: #0D0D12;
    --bg-subtle: #141419;
    --bg-muted: #1C1C24;
    --bg-card: #141419;
    --text: #EDEDF0;
    --text-secondary: #9898A6;
    --text-tertiary: #6E6E7A;
    --border: #2A2A34;
    --border-hover: #3A3A48;
    --accent: #818CF8;
    --accent-hover: #6366F1;
    --accent-secondary: #5EEAD4;
    --accent-muted: rgba(129, 140, 248, 0.1);
    --accent-text: #0D0D12;
    --accent-glow: rgba(129, 140, 248, 0.3);
    --warm-accent: #F59E0B;
    --warm-accent-muted: rgba(245, 158, 11, 0.08);
    --check: #34D399;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.5);

    /* Mockup tokens */
    --mockup-bg: #0F1117;
    --mockup-nav-bg: #161822;
    --mockup-nav-border: #2A2D3A;
    --mockup-card-bg: #1A1D2B;
    --mockup-card-border: #2A2D3A;
    --mockup-text: #E5E7EB;
    --mockup-text-secondary: #9CA3AF;
    --mockup-text-tertiary: #6B7280;
    --mockup-accent: #818CF8;
    --mockup-green: #34D399;
    --mockup-orange: #FBBF24;
    --mockup-purple: #A78BFA;
    --mockup-output-bg: #12141E;
}

[data-theme="dark"] nav {
    background: rgba(13, 13, 18, 0.85);
}


/* ===== Reset & Base ===== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    letter-spacing: -0.01em;
    font-feature-settings: 'cv11', 'ss01';
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Subtle grain texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

[data-theme="dark"] body::before {
    opacity: 0.03;
}

/* Skip navigation link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    padding: 8px 16px;
    background: var(--accent);
    color: var(--accent-text);
    border-radius: 0 0 var(--radius) var(--radius);
    font-size: 14px;
    font-weight: 500;
    z-index: 200;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* Language switcher */
.lang-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-tertiary);
    border: 1px solid transparent;
    transition: all var(--transition-smooth);
    flex-shrink: 0;
    text-decoration: none;
}

.lang-switch:hover {
    background: var(--bg-muted);
    border-color: var(--border);
    color: var(--text);
}

.lang-switch:active {
    transform: scale(0.92);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }


/* ===== Layout ===== */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}


/* ===== Typography ===== */

h1, h2, h3, h4 {
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 600;
}

h1 {
    font-size: clamp(38px, 5.5vw, 64px);
    font-weight: 700;
    letter-spacing: -0.035em;
}

h2 {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 700;
    letter-spacing: -0.025em;
}

h3 { font-size: 20px; }


/* ===== Buttons ===== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition-smooth);
    white-space: nowrap;
    cursor: pointer;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-text);
    box-shadow: var(--shadow-sm);
}

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

.btn-primary:active {
    transform: scale(0.97) translateY(0);
}

.btn-ghost {
    color: var(--text-secondary);
    padding: 12px 16px;
}

.btn-ghost:hover {
    color: var(--accent);
}

.btn-ghost svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition);
}

.btn-ghost:hover svg {
    transform: translateX(3px);
}

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

.btn-secondary:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}


/* ===== Navigation ===== */

nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    background: rgba(250, 250, 248, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 1px 0 rgba(0, 0, 0, 0.02);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-text);
    transition: all var(--transition-smooth);
}

.logo-icon:hover {
    box-shadow: 0 2px 12px var(--accent-glow);
    transform: scale(1.05);
}

.logo-icon svg { width: 16px; height: 16px; }
.logo-text { font-weight: 300; }
.logo-text strong { font-weight: 700; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 450;
    color: var(--text-tertiary);
    transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

/* Theme toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all var(--transition-smooth);
    flex-shrink: 0;
    margin-left: 4px;
}

.theme-toggle:hover {
    background: var(--bg-muted);
    border-color: var(--border);
    color: var(--text);
}

.theme-toggle:active {
    transform: scale(0.92);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-smooth);
}

.theme-toggle:hover svg {
    transform: rotate(15deg);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon { display: none; }

[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-cta .btn {
    padding: 8px 18px;
    font-size: 13px;
    border-radius: 8px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--text);
    transition: all var(--transition);
}


/* ===== Hero ===== */

.hero {
    padding: 72px 0 48px;
    position: relative;
    overflow: hidden;
}

/* Hero gradient mesh background */
.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -20%;
    right: -20%;
    bottom: -20%;
    background:
        radial-gradient(ellipse 60% 50% at 20% 30%, rgba(67, 56, 202, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 75% 20%, rgba(13, 148, 136, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 50% 80%, rgba(217, 119, 6, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .hero::before {
    background:
        radial-gradient(ellipse 60% 50% at 20% 30%, rgba(129, 140, 248, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 75% 20%, rgba(94, 234, 212, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 50% 80%, rgba(245, 158, 11, 0.04) 0%, transparent 70%);
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 0.6s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: var(--accent-muted);
    border: 1px solid rgba(67, 56, 202, 0.12);
    border-radius: 100px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

/* Shimmer animation */
.hero-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(67, 56, 202, 0.06), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

[data-theme="dark"] .hero-badge {
    border-color: rgba(129, 140, 248, 0.15);
}

[data-theme="dark"] .hero-badge::after {
    background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.08), transparent);
}

.hero h1 {
    margin-bottom: 20px;
    color: var(--text);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 36px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-image {
    max-width: 920px;
    margin: 56px auto 0;
    padding: 0 24px;
    animation: fadeInUp 0.6s ease 0.15s both;
}

/* Browser chrome frame */
.browser-frame {
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    background: var(--bg-card);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .browser-frame {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(129, 140, 248, 0.05);
}

.browser-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.browser-dots span:nth-child(1) { background: #EF4444; }
.browser-dots span:nth-child(2) { background: #F59E0B; }
.browser-dots span:nth-child(3) { background: #22C55E; }

.browser-url {
    flex: 1;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-tertiary);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 12px;
    max-width: 240px;
    margin: 0 auto;
}

.browser-content img {
    width: 100%;
    display: block;
}

.hero-image img {
    width: 100%;
}


/* ===== Product Mockup System ===== */

.mockup {
    background: var(--mockup-bg);
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: var(--mockup-text);
    overflow: hidden;
    user-select: none;
    pointer-events: none;
}

.mockup-sm {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Mockup nav bar */
.mockup-nav {
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: 42px;
    background: var(--mockup-nav-bg);
    border-bottom: 1px solid var(--mockup-nav-border);
    gap: 16px;
    font-size: 12px;
}

.mockup-nav-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.mockup-nav-logo {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--mockup-accent), var(--accent-secondary));
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.mockup-nav-logo svg { width: 12px; height: 12px; }

.mockup-nav-name {
    font-weight: 600;
    font-size: 13px;
}

.mockup-nav-links {
    display: flex;
    gap: 16px;
    flex: 1;
    color: var(--mockup-text-tertiary);
    font-size: 12px;
    font-weight: 450;
}

.mockup-nav-links .active {
    color: var(--mockup-accent);
    font-weight: 600;
}

.mockup-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--mockup-text-tertiary);
    font-size: 11px;
}

.mockup-icon-btn svg,
.mockup-logout svg {
    width: 14px;
    height: 14px;
}

.mockup-logout {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Mockup body layout */
.mockup-body {
    padding: 20px 24px;
}

.mockup-page-header {
    margin-bottom: 16px;
}

.mockup-page-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--mockup-text);
    letter-spacing: -0.02em;
    margin-bottom: 2px;
    line-height: 1.3;
}

.mockup-page-subtitle {
    font-size: 12px;
    color: var(--mockup-text-secondary);
}

.mockup-columns {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 16px;
}

/* Mockup cards */
.mockup-upload-card,
.mockup-waveform-card,
.mockup-output-card {
    border: 1px solid var(--mockup-card-border);
    border-radius: 10px;
    background: var(--mockup-card-bg);
    overflow: hidden;
}

.mockup-upload-header,
.mockup-waveform-header,
.mockup-output-header {
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 600;
    border-bottom: 1px solid var(--mockup-card-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* File list */
.mockup-file-list {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mockup-file {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    background: var(--mockup-output-bg);
    position: relative;
}

.mockup-file-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    flex-shrink: 0;
}

.mockup-file-icon.done {
    background: rgba(5, 150, 105, 0.1);
    color: var(--mockup-green);
}

[data-theme="dark"] .mockup-file-icon.done {
    background: rgba(52, 211, 153, 0.12);
}

.mockup-file-icon.done svg { width: 12px; height: 12px; }

.mockup-file-icon.pending {
    background: var(--mockup-output-bg);
    border: 1px solid var(--mockup-card-border);
    color: var(--mockup-text-tertiary);
}

.mockup-file-info {
    flex: 1;
    min-width: 0;
}

.mockup-file-name {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--mockup-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mockup-file-meta {
    font-size: 10px;
    color: var(--mockup-text-tertiary);
}

.mockup-file.completed .mockup-file-meta { color: var(--mockup-green); }
.mockup-file.processing .mockup-file-meta { color: var(--mockup-accent); }

/* Progress bar */
.mockup-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--mockup-card-border);
}

.mockup-progress-fill {
    height: 100%;
    width: 65%;
    background: var(--mockup-accent);
    border-radius: 2px;
    animation: mockup-progress 3s ease-in-out infinite;
}

/* Spinner */
.mockup-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--mockup-card-border);
    border-top-color: var(--mockup-accent);
    border-radius: 50%;
    animation: mockup-spin 0.8s linear infinite;
}

/* Waveform */
.mockup-waveform-card {
    margin-top: 8px;
}

.mockup-waveform-header svg {
    width: 14px;
    height: 14px;
    color: var(--mockup-accent);
}

.mockup-recording-badge {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 600;
    color: #EF4444;
}

.mockup-recording-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #EF4444;
    animation: mockup-blink 1s infinite;
}

.mockup-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 14px 16px;
    height: 50px;
}

.mockup-waveform .bar {
    width: 3px;
    border-radius: 2px;
    background: var(--mockup-accent);
    opacity: 0.6;
    animation: mockup-wave 1.5s ease-in-out infinite;
}

.mockup-waveform .bar:nth-child(1)  { height: 12px; animation-delay: 0.00s; }
.mockup-waveform .bar:nth-child(2)  { height: 20px; animation-delay: 0.04s; }
.mockup-waveform .bar:nth-child(3)  { height: 28px; animation-delay: 0.08s; }
.mockup-waveform .bar:nth-child(4)  { height: 16px; animation-delay: 0.12s; }
.mockup-waveform .bar:nth-child(5)  { height: 32px; animation-delay: 0.16s; }
.mockup-waveform .bar:nth-child(6)  { height: 22px; animation-delay: 0.20s; }
.mockup-waveform .bar:nth-child(7)  { height: 36px; animation-delay: 0.24s; }
.mockup-waveform .bar:nth-child(8)  { height: 18px; animation-delay: 0.28s; }
.mockup-waveform .bar:nth-child(9)  { height: 26px; animation-delay: 0.32s; }
.mockup-waveform .bar:nth-child(10) { height: 14px; animation-delay: 0.36s; }
.mockup-waveform .bar:nth-child(11) { height: 30px; animation-delay: 0.40s; }
.mockup-waveform .bar:nth-child(12) { height: 20px; animation-delay: 0.44s; }
.mockup-waveform .bar:nth-child(13) { height: 34px; animation-delay: 0.48s; }
.mockup-waveform .bar:nth-child(14) { height: 10px; animation-delay: 0.52s; }
.mockup-waveform .bar:nth-child(15) { height: 24px; animation-delay: 0.56s; }
.mockup-waveform .bar:nth-child(16) { height: 28px; animation-delay: 0.60s; }
.mockup-waveform .bar:nth-child(17) { height: 16px; animation-delay: 0.64s; }
.mockup-waveform .bar:nth-child(18) { height: 32px; animation-delay: 0.68s; }
.mockup-waveform .bar:nth-child(19) { height: 12px; animation-delay: 0.72s; }
.mockup-waveform .bar:nth-child(20) { height: 22px; animation-delay: 0.76s; }
.mockup-waveform .bar:nth-child(21) { height: 36px; animation-delay: 0.80s; }
.mockup-waveform .bar:nth-child(22) { height: 14px; animation-delay: 0.84s; }
.mockup-waveform .bar:nth-child(23) { height: 26px; animation-delay: 0.88s; }
.mockup-waveform .bar:nth-child(24) { height: 30px; animation-delay: 0.92s; }
.mockup-waveform .bar:nth-child(25) { height: 18px; animation-delay: 0.96s; }
.mockup-waveform .bar:nth-child(26) { height: 34px; animation-delay: 1.00s; }
.mockup-waveform .bar:nth-child(27) { height: 10px; animation-delay: 1.04s; }
.mockup-waveform .bar:nth-child(28) { height: 24px; animation-delay: 1.08s; }
.mockup-waveform .bar:nth-child(29) { height: 20px; animation-delay: 1.12s; }
.mockup-waveform .bar:nth-child(30) { height: 28px; animation-delay: 1.16s; }
.mockup-waveform .bar:nth-child(31) { height: 16px; animation-delay: 1.20s; }
.mockup-waveform .bar:nth-child(32) { height: 32px; animation-delay: 1.24s; }
.mockup-waveform .bar:nth-child(33) { height: 12px; animation-delay: 1.28s; }
.mockup-waveform .bar:nth-child(34) { height: 22px; animation-delay: 1.32s; }
.mockup-waveform .bar:nth-child(35) { height: 26px; animation-delay: 1.36s; }
.mockup-waveform .bar:nth-child(36) { height: 18px; animation-delay: 1.40s; }
.mockup-waveform .bar:nth-child(37) { height: 30px; animation-delay: 1.44s; }
.mockup-waveform .bar:nth-child(38) { height: 14px; animation-delay: 1.48s; }
.mockup-waveform .bar:nth-child(39) { height: 24px; animation-delay: 1.52s; }
.mockup-waveform .bar:nth-child(40) { height: 20px; animation-delay: 1.56s; }

/* Transcription output */
.mockup-output-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mockup-output-header .mockup-badge-success {
    margin-left: auto;
    background: rgba(5, 150, 105, 0.1);
    color: var(--mockup-green);
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 600;
}

[data-theme="dark"] .mockup-output-header .mockup-badge-success {
    background: rgba(52, 211, 153, 0.12);
}

.mockup-output-body {
    padding: 14px;
    flex: 1;
    font-size: 11px;
    line-height: 1.7;
    color: var(--mockup-text-secondary);
    background: var(--mockup-output-bg);
}

.mockup-output-body p { margin-bottom: 6px; }
.mockup-output-body p:last-child { margin-bottom: 0; }

.mockup-output-body strong {
    color: var(--mockup-accent);
    font-size: 10px;
    letter-spacing: 0.04em;
    display: block;
    margin-top: 10px;
    margin-bottom: 2px;
}

.mockup-output-body p:first-child strong { margin-top: 0; }

.mockup-cursor {
    display: inline-block;
    width: 2px;
    height: 12px;
    background: var(--mockup-accent);
    margin-left: 1px;
    vertical-align: text-bottom;
    animation: mockup-blink 1s step-end infinite;
}

.mockup-output-actions {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    border-top: 1px solid var(--mockup-card-border);
}

.mockup-btn-primary {
    background: var(--mockup-accent);
    color: white;
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    border: none;
}

.mockup-btn-ghost {
    color: var(--mockup-text-secondary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    border: 1px solid var(--mockup-card-border);
    background: transparent;
}

/* Mini nav (feature panels) */
.mockup-nav-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    background: var(--mockup-nav-bg);
    border-bottom: 1px solid var(--mockup-nav-border);
    font-size: 11px;
    color: var(--mockup-text-tertiary);
}

.mockup-nav-mini .active {
    color: var(--mockup-accent);
    font-weight: 600;
}

.mockup-nav-mini-logo {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--mockup-accent), var(--accent-secondary));
    border-radius: 4px;
    flex-shrink: 0;
}

.mockup-body-sm {
    padding: 14px;
}

.mockup-mini-cols {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 12px;
}

/* Text line placeholders */
.mockup-text-line {
    height: 6px;
    border-radius: 3px;
    background: var(--mockup-card-border);
    margin-bottom: 5px;
}

.mockup-text-line.w100 { width: 100%; }
.mockup-text-line.w90  { width: 90%; }
.mockup-text-line.w80  { width: 80%; }
.mockup-text-line.w75  { width: 75%; }
.mockup-text-line.w70  { width: 70%; }
.mockup-text-line.w60  { width: 60%; }

/* Mini file items */
.mockup-mini-file {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 5px;
    background: var(--mockup-output-bg);
    font-size: 10px;
    color: var(--mockup-text-secondary);
    margin-bottom: 4px;
}

.mockup-mini-file .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mockup-mini-file .dot.green { background: var(--mockup-green); }
.mockup-mini-file .dot.blue  { background: var(--mockup-accent); }
.mockup-mini-file .dot.pulse { animation: mockup-blink 1s infinite; }
.mockup-mini-file .meta { margin-left: auto; font-size: 9px; color: var(--mockup-text-tertiary); }

/* Mini waveform */
.mockup-mini-waveform {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 10px 8px;
    height: 36px;
}

.mockup-mini-waveform .bar {
    width: 2px;
    border-radius: 1px;
    background: var(--mockup-accent);
    opacity: 0.5;
    animation: mockup-wave 1.5s ease-in-out infinite;
}

.mockup-mini-waveform .bar:nth-child(1)  { height: 8px;  animation-delay: 0.00s; }
.mockup-mini-waveform .bar:nth-child(2)  { height: 14px; animation-delay: 0.06s; }
.mockup-mini-waveform .bar:nth-child(3)  { height: 20px; animation-delay: 0.12s; }
.mockup-mini-waveform .bar:nth-child(4)  { height: 10px; animation-delay: 0.18s; }
.mockup-mini-waveform .bar:nth-child(5)  { height: 22px; animation-delay: 0.24s; }
.mockup-mini-waveform .bar:nth-child(6)  { height: 16px; animation-delay: 0.30s; }
.mockup-mini-waveform .bar:nth-child(7)  { height: 24px; animation-delay: 0.36s; }
.mockup-mini-waveform .bar:nth-child(8)  { height: 12px; animation-delay: 0.42s; }
.mockup-mini-waveform .bar:nth-child(9)  { height: 18px; animation-delay: 0.48s; }
.mockup-mini-waveform .bar:nth-child(10) { height: 20px; animation-delay: 0.54s; }
.mockup-mini-waveform .bar:nth-child(11) { height: 8px;  animation-delay: 0.60s; }
.mockup-mini-waveform .bar:nth-child(12) { height: 16px; animation-delay: 0.66s; }
.mockup-mini-waveform .bar:nth-child(13) { height: 22px; animation-delay: 0.72s; }
.mockup-mini-waveform .bar:nth-child(14) { height: 14px; animation-delay: 0.78s; }
.mockup-mini-waveform .bar:nth-child(15) { height: 20px; animation-delay: 0.84s; }
.mockup-mini-waveform .bar:nth-child(16) { height: 10px; animation-delay: 0.90s; }
.mockup-mini-waveform .bar:nth-child(17) { height: 18px; animation-delay: 0.96s; }
.mockup-mini-waveform .bar:nth-child(18) { height: 24px; animation-delay: 1.02s; }
.mockup-mini-waveform .bar:nth-child(19) { height: 12px; animation-delay: 1.08s; }
.mockup-mini-waveform .bar:nth-child(20) { height: 16px; animation-delay: 1.14s; }

.mockup-mini-output {
    padding: 8px;
    background: var(--mockup-output-bg);
    border-radius: 6px;
    border: 1px solid var(--mockup-card-border);
}

/* X-ray / imaging mockup */
.mockup-xray {
    background: #0A0A14;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    border: 1px solid var(--mockup-card-border);
}

.mockup-xray-image svg {
    width: 100%;
    max-width: 100px;
    color: #4A5568;
}

.mockup-image-grid-count {
    font-size: 9px;
    color: var(--mockup-text-tertiary);
    margin-top: 6px;
}

.mockup-prompt-box {
    margin-top: 8px;
    padding: 8px 10px;
    border: 1px solid var(--mockup-card-border);
    border-radius: 6px;
    font-size: 10px;
    color: var(--mockup-text-tertiary);
    font-style: italic;
    background: var(--mockup-card-bg);
}

.mockup-finding-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--mockup-accent);
    margin-bottom: 4px;
    margin-top: 8px;
}

.mockup-finding-label:first-child { margin-top: 0; }

.mockup-findings {
    padding: 8px;
    background: var(--mockup-output-bg);
    border-radius: 6px;
    border: 1px solid var(--mockup-card-border);
}

.mockup-confidence {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 10px;
    color: var(--mockup-text-tertiary);
}

.mockup-confidence-bar {
    flex: 1;
    height: 5px;
    background: var(--mockup-card-border);
    border-radius: 3px;
    overflow: hidden;
}

.mockup-confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--mockup-accent), var(--accent-secondary));
    border-radius: 3px;
}

/* Analytics mockup */
.mockup-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.mockup-stat-card {
    background: var(--mockup-card-bg);
    border: 1px solid var(--mockup-card-border);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.mockup-stat-label {
    display: block;
    font-size: 9px;
    color: var(--mockup-text-tertiary);
    margin-bottom: 2px;
}

.mockup-stat-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.mockup-stat-value.accent { color: var(--mockup-accent); }
.mockup-stat-value.green  { color: var(--mockup-green); }
.mockup-stat-value.purple { color: var(--mockup-purple); }
.mockup-stat-value.orange { color: var(--mockup-orange); }

.mockup-chart-area {
    background: var(--mockup-card-bg);
    border: 1px solid var(--mockup-card-border);
    border-radius: 8px;
    padding: 12px;
}

.mockup-chart-title {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
}

.mockup-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 80px;
}

.mockup-chart-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--mockup-accent), rgba(79, 70, 229, 0.3));
    border-radius: 4px 4px 0 0;
    min-height: 4px;
}

[data-theme="dark"] .mockup-chart-bar {
    background: linear-gradient(180deg, var(--mockup-accent), rgba(129, 140, 248, 0.2));
}

/* Role badge */
.mockup-role-badge {
    margin-left: auto;
    background: var(--mockup-accent);
    color: white;
    padding: 1px 8px;
    border-radius: 100px;
    font-size: 9px;
    font-weight: 600;
}

/* Dark mode glow enhancements */
[data-theme="dark"] .mockup-stat-value.accent {
    text-shadow: 0 0 12px rgba(129, 140, 248, 0.3);
}

[data-theme="dark"] .mockup-confidence-fill {
    box-shadow: 0 0 6px rgba(129, 140, 248, 0.4);
}

[data-theme="dark"] .mockup-waveform .bar,
[data-theme="dark"] .mockup-mini-waveform .bar {
    opacity: 0.7;
}

/* Feature panel mockup min-height */
.feature-panel-image .mockup-sm {
    min-height: 300px;
}


/* ===== Proof / Stats ===== */

.proof {
    padding: 56px 0;
    position: relative;
}

/* Gradient separator top */
.proof::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

/* Gradient separator bottom */
.proof::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

.proof-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.proof-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.proof-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

[data-theme="dark"] .proof-number {
    text-shadow: 0 0 20px var(--accent-glow);
}

.proof-label {
    font-size: 14px;
    color: var(--text-tertiary);
}

.proof-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.4;
}


/* ===== Interactive Feature Showcase ===== */

.features {
    padding: 100px 0;
}

.features-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-label {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

[data-theme="dark"] .section-label {
    text-shadow: 0 0 16px var(--accent-glow);
}

.features-header p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 440px;
    margin: 0 auto;
}

/* Feature Tabs */

.feature-tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 56px;
}

.feature-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    background: var(--bg);
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.feature-tab:hover {
    color: var(--text);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
}

.feature-tab.active {
    color: var(--accent-text);
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 2px 12px var(--accent-glow);
    transform: translateY(-1px);
}

[data-theme="dark"] .feature-tab.active {
    box-shadow: 0 2px 20px var(--accent-glow);
}

.feature-tab svg {
    width: 18px;
    height: 18px;
}

/* Feature Panels */

.feature-panel {
    display: none;
    grid-template-columns: 1fr 1.15fr;
    gap: 56px;
    align-items: center;
    animation: fadeIn 0.35s ease;
}

.feature-panel.active {
    display: grid;
}

.feature-panel-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.feature-panel-text h3 {
    font-size: clamp(24px, 3vw, 32px);
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.feature-panel-text > p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.feature-list li svg {
    width: 15px;
    height: 15px;
    color: var(--check);
    flex-shrink: 0;
}

.feature-panel-image {
    position: relative;
}

.feature-panel-image img,
.feature-panel-image .mockup-sm {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-panel-image:hover img,
.feature-panel-image:hover .mockup-sm {
    transform: translateY(-4px) scale(1.005);
    box-shadow: var(--shadow-xl);
}


/* ===== Expandable Trust Cards ===== */

.trust {
    padding: 88px 0;
    background: var(--bg-subtle);
    position: relative;
    transition: background-color 0.3s ease;
}

/* Gradient separator top */
.trust::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

/* Gradient separator bottom */
.trust::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

.trust-header {
    text-align: center;
    margin-bottom: 48px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.trust-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
    overflow: hidden;
    cursor: default;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.trust-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

[data-theme="dark"] .trust-card:hover {
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(129, 140, 248, 0.06);
}

.trust-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 24px 24px;
}

.trust-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-muted), rgba(13, 148, 136, 0.06));
    color: var(--accent);
    flex-shrink: 0;
    transition: all var(--transition-smooth);
}

.trust-icon svg { width: 18px; height: 18px; }

.trust-card:hover .trust-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: var(--accent-text);
    box-shadow: 0 2px 12px var(--accent-glow);
}

.trust-card-header h3 {
    font-size: 15px;
    flex: 1;
}

.trust-card-body {
    padding: 0 24px 24px;
}

.trust-card-body p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 14px;
}

.trust-card-body ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.trust-card-body li {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-card-body li svg {
    width: 14px;
    height: 14px;
    color: var(--check);
    flex-shrink: 0;
}


/* ===== CTA ===== */

.cta-section {
    padding: 100px 0;
}

.cta-card {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    padding: 64px 48px;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: all var(--transition-smooth);
}

/* Gradient border using outline trick */
.cta-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: calc(var(--radius-xl) + 2px);
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    z-index: -2;
}

/* Card fill to cover gradient except border */
.cta-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    z-index: -1;
}

.cta-card:hover {
    box-shadow: var(--shadow-lg), 0 0 40px var(--accent-glow);
}

.cta-card h2 {
    margin-bottom: 12px;
    font-size: clamp(24px, 3vw, 32px);
    position: relative;
}

.cta-card > p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 28px;
    line-height: 1.65;
    position: relative;
}

.cta-card > .btn {
    position: relative;
}


/* ===== Footer ===== */

footer {
    padding: 56px 0 40px;
    position: relative;
    transition: background-color 0.3s ease;
}

/* Gradient separator top */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-tertiary);
    font-size: 13px;
    line-height: 1.6;
    margin-top: 14px;
    max-width: 260px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: var(--text-tertiary);
    padding: 5px 0;
    transition: color var(--transition);
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
    padding-top: 28px;
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-tertiary);
}


/* ===== Subpages (about, docs) ===== */

.page-hero {
    padding: 72px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Page hero gradient mesh */
.page-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -20%;
    right: -20%;
    bottom: -20%;
    background:
        radial-gradient(ellipse 60% 50% at 20% 30%, rgba(67, 56, 202, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 75% 20%, rgba(13, 148, 136, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .page-hero::before {
    background:
        radial-gradient(ellipse 60% 50% at 20% 30%, rgba(129, 140, 248, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 75% 20%, rgba(94, 234, 212, 0.05) 0%, transparent 70%);
}

.page-hero > .container {
    position: relative;
    z-index: 1;
}

.page-hero-content {
    max-width: 640px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease;
}

.page-hero h1 {
    font-size: clamp(32px, 4.5vw, 52px);
    margin-bottom: 14px;
}

.page-hero p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.65;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 52px;
}

.section-header h2 { margin-bottom: 12px; }

.section-header p {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 440px;
    margin: 0 auto;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.team-card {
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.team-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

[data-theme="dark"] .team-card:hover {
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(129, 140, 248, 0.06);
}

.team-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--accent-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Team avatar colored backgrounds */
.team-card:nth-child(1) .team-avatar {
    background: linear-gradient(135deg, rgba(67, 56, 202, 0.12), rgba(13, 148, 136, 0.08));
}

.team-card:nth-child(2) .team-avatar {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.12), rgba(16, 185, 129, 0.08));
}

.team-card:nth-child(3) .team-avatar {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.12), rgba(245, 158, 11, 0.08));
}

[data-theme="dark"] .team-card:nth-child(1) .team-avatar {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.15), rgba(94, 234, 212, 0.1));
}

[data-theme="dark"] .team-card:nth-child(2) .team-avatar {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(16, 185, 129, 0.1));
}

[data-theme="dark"] .team-card:nth-child(3) .team-avatar {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(251, 191, 36, 0.1));
}

.team-card:nth-child(2) .team-avatar-initials {
    color: var(--check);
}

.team-card:nth-child(3) .team-avatar-initials {
    color: var(--warm-accent);
}

.team-avatar-initials {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
}

.team-card h3 { font-size: 18px; margin-bottom: 4px; }

.team-role {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}

.team-bio {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 18px;
}

.team-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.team-tags span {
    padding: 3px 10px;
    background: var(--accent-muted);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 500;
    color: var(--accent);
}

/* Mission Section */
.mission-section {
    background: var(--bg-subtle);
    position: relative;
    transition: background-color 0.3s ease;
}

.mission-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

/* Mission */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.mission-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.mission-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

[data-theme="dark"] .mission-card:hover {
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(129, 140, 248, 0.06);
}

.mission-card-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--accent-muted);
    color: var(--accent);
    margin-bottom: 18px;
}

.mission-card-icon svg { width: 18px; height: 18px; }
.mission-card h3 { margin-bottom: 10px; }

.mission-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Docs */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 52px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 22px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
}

.tab-btn:hover {
    color: var(--text);
    border-color: var(--border-hover);
}

.tab-btn.active {
    color: var(--accent-text);
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 2px 12px var(--accent-glow);
    transform: translateY(-1px);
}

[data-theme="dark"] .tab-btn.active {
    box-shadow: 0 2px 20px var(--accent-glow);
}

.tab-content { display: none; animation: fadeIn 0.35s ease; }
.tab-content.active { display: block; }

.docs-feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.docs-feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    background: var(--bg-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.docs-feature-block:hover {
    border-color: var(--border-hover);
    border-left-color: var(--accent-secondary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

[data-theme="dark"] .docs-feature-block:hover {
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(129, 140, 248, 0.06);
}

.docs-feature-block.reverse { direction: rtl; }
.docs-feature-block.reverse > * { direction: ltr; }
.docs-feature-block.full-width { grid-template-columns: 1fr; }

.docs-feature-block h3 { font-size: 22px; margin-bottom: 10px; }

.docs-feature-block > .docs-feature-content > p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 18px;
}

.docs-mockup {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.docs-mockup img { width: 100%; height: auto; }

.docs-feature-list .feature-list li { font-size: 13px; }

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.tech-badge {
    padding: 3px 10px;
    background: var(--accent-muted);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
}

.arch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.arch-card {
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-subtle);
}

.arch-card h4 {
    font-size: 14px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.arch-card h4 svg { width: 15px; height: 15px; color: var(--accent); }

.arch-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.55;
}


/* ===== Dark mode glow effects ===== */

[data-theme="dark"] .hero-badge {
    text-shadow: 0 0 16px var(--accent-glow);
}

[data-theme="dark"] .logo-icon {
    box-shadow: 0 2px 12px var(--accent-glow);
}


/* ===== Animations ===== */

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

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

/* Mockup animations */
@keyframes mockup-wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.4); }
}

@keyframes mockup-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes mockup-progress {
    0% { width: 45%; }
    50% { width: 75%; }
    100% { width: 45%; }
}

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

@media (prefers-reduced-motion: reduce) {
    .mockup-waveform .bar,
    .mockup-mini-waveform .bar,
    .mockup-recording-dot,
    .mockup-cursor,
    .mockup-progress-fill,
    .mockup-spinner {
        animation: none;
    }
    .mockup-waveform .bar,
    .mockup-mini-waveform .bar { transform: scaleY(1); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ===== Responsive ===== */

@media (max-width: 968px) {
    .feature-panel { grid-template-columns: 1fr; gap: 32px; }
    .trust-grid { grid-template-columns: 1fr; }
    .docs-feature-block { grid-template-columns: 1fr; }
    .docs-feature-block.reverse { direction: ltr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

    /* Mockup responsive — tablet */
    .mockup-columns { grid-template-columns: 1fr; }
    .mockup-nav-links span:nth-child(n+5) { display: none; }
    .mockup-nav-actions .mockup-logout { display: none; }
    .mockup-stats-row { grid-template-columns: repeat(2, 1fr); }
    .mockup-mini-cols { grid-template-columns: 1fr; }
    .feature-panel-image .mockup-sm { min-height: auto; }
}

@media (max-width: 768px) {
    nav { padding: 0 20px; }

    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0; right: 0; bottom: 0;
        background: var(--bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        z-index: 99;
    }

    .nav-links.active { display: flex; }
    .nav-links a { font-size: 17px; }
    .nav-cta .btn { display: none; }
    .nav-toggle { display: flex; }

    /* Theme toggle stays visible on mobile */
    .theme-toggle { order: 0; }

    .hero { padding: 48px 0 24px; }
    .hero-image { margin-top: 36px; }

    /* Simplified hero gradient on mobile */
    .hero::before {
        background:
            radial-gradient(ellipse 80% 60% at 50% 30%, rgba(67, 56, 202, 0.05) 0%, transparent 70%);
    }

    [data-theme="dark"] .hero::before {
        background:
            radial-gradient(ellipse 80% 60% at 50% 30%, rgba(129, 140, 248, 0.06) 0%, transparent 70%);
    }

    .proof-bar { gap: 24px; }
    .proof-divider { display: none; }
    .proof-item { flex-direction: column; gap: 2px; }

    .features { padding: 64px 0; }

    .feature-tabs {
        flex-wrap: wrap;
        gap: 6px;
    }

    .feature-tab {
        padding: 8px 16px;
        font-size: 13px;
    }

    .footer-grid { grid-template-columns: 1fr; gap: 24px; }

    /* Mockup responsive — mobile */
    .mockup-nav { padding: 0 10px; height: 36px; gap: 8px; }
    .mockup-nav-name { display: none; }
    .mockup-nav-links span:nth-child(n+4) { display: none; }
    .mockup-nav-links { font-size: 10px; gap: 8px; }
    .mockup-nav-actions { display: none; }
    .mockup-body { padding: 12px; }
    .mockup-page-title { font-size: 14px; }
    .mockup-columns { grid-template-columns: 1fr; }
    .mockup-sm .mockup-mini-left { display: none; }
    .mockup-sm .mockup-mini-cols { grid-template-columns: 1fr; }
    .mockup-stats-row { grid-template-columns: repeat(2, 1fr); }
    .mockup-chart-bars { height: 50px; }
    .mockup-waveform .bar:nth-child(n+25) { display: none; }
}
