/* ============================================================
   DEEPRUST — Mobile-First Responsive CSS
   Fully redesigned for mobile app feel, login-first flow
   ============================================================ */

/* Root Variables */
:root {
    --bg-primary: #05080f;
    --bg-secondary: #0a0e18;
    --bg-card: #0f1520;
    --border-color: #1a2235;
    --border-light: #252d40;
    --text-primary: #f0f4f8;
    --text-secondary: #8b95a5;
    --text-muted: #5a6577;
    --accent-blue: #00b4d8;
    --accent-purple: #9b5de5;
    --accent-cyan: #00f5d4;
    --accent-red: #ff4757;
    --accent-green: #00d26a;
    --gradient-blue: linear-gradient(135deg, #00b4d8, #0077b6);
    --gradient-purple: linear-gradient(135deg, #9b5de5, #7209b7);
    --gradient-success: linear-gradient(135deg, #00d26a, #00a86b);
    --gradient-danger: linear-gradient(135deg, #ff4757, #c0392b);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    /* Mobile safe area */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100%;
    min-height: 100dvh;
}

/* ── Background Effects ─────────────────────────────────────── */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 180, 216, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 180, 216, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.bg-radial {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 180, 216, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(155, 93, 229, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* ── Auth Pages (Login / Register) ─────────────────────────── */
.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(1.5rem + var(--safe-top)) 1.25rem calc(1.5rem + var(--safe-bottom));
    position: relative;
    z-index: 1;
}

.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.auth-logo-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(0,180,216,0.15), rgba(155,93,229,0.15));
    border: 1px solid rgba(0,180,216,0.3);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.auth-logo-icon svg {
    width: 26px;
    height: 26px;
    color: var(--accent-blue);
}

.auth-logo h1 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-primary);
}

.auth-logo p {
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-lg);
}

.auth-card h2 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.auth-card .auth-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
}

.form-group {
    margin-bottom: 1.125rem;
}

.form-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.12);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.auth-submit-btn {
    width: 100%;
    padding: 1rem;
    margin-top: 0.5rem;
    border: none;
    border-radius: var(--radius-md);
    background: var(--gradient-blue);
    color: white;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.25);
    letter-spacing: 0.01em;
}

.auth-submit-btn:active {
    transform: scale(0.98);
    opacity: 0.92;
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
}

.auth-skip {
    margin-top: 1.25rem;
    text-align: center;
}

.auth-skip a {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: color 0.2s;
}

.auth-skip a:hover {
    color: var(--text-secondary);
}

.auth-skip a svg {
    width: 14px;
    height: 14px;
}

/* ── Landing Page ───────────────────────────────────────────── */
.landing-container {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(1.25rem + var(--safe-top)) 1.25rem 1.25rem;
    position: relative;
    z-index: 10;
}

.logo-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.logo-badge svg {
    color: var(--accent-blue);
    flex-shrink: 0;
}

/* Nav buttons REMOVED from landing — handled in auth pages */
.nav-links { display: none; }

.landing-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.25rem calc(2rem + var(--safe-bottom));
}

.hero-content {
    text-align: center;
    width: 100%;
    max-width: 560px;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.875rem;
    background: rgba(0, 210, 106, 0.1);
    border: 1px solid rgba(0, 210, 106, 0.3);
    border-radius: 100px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--accent-green);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: blink 1.5s infinite;
    flex-shrink: 0;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

.hero-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.title-line { display: block; }

.gradient-text {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* Scan Cards */
.scan-options {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 2rem;
}

.scan-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.125rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
}

.scan-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(0, 180, 216, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scan-card:active {
    transform: scale(0.985);
    opacity: 0.9;
}

@media (hover: hover) {
    .scan-card:hover {
        border-color: var(--accent-blue);
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
    }
    .scan-card:hover::before { opacity: 1; }
    .scan-card:hover .scan-card-arrow { opacity: 1; transform: translateX(0); }
}

.scan-card-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.scan-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(0, 180, 216, 0.1);
}

.scan-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent-blue);
}

.audio-icon { background: rgba(155, 93, 229, 0.1); }
.audio-icon svg { stroke: var(--accent-purple); }

.scan-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.scan-info p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.model-badge {
    display: none; /* hidden on mobile landing, shown on desktop */
}

.scan-card-arrow {
    opacity: 0.4;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.scan-card-arrow svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-muted);
}

.system-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.separator { color: var(--border-light); }

/* Floating Elements */
.floating-elements {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.float-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.04), rgba(155, 93, 229, 0.04));
    animation: float 20s infinite ease-in-out;
}

.float-circle:nth-child(1) { width: 340px; height: 340px; top: -80px; right: -80px; animation-delay: 0s; }
.float-circle:nth-child(2) { width: 260px; height: 260px; bottom: -40px; left: -40px; animation-delay: -5s; }
.float-circle:nth-child(3) { width: 180px; height: 180px; top: 50%; left: 50%; animation-delay: -10s; }

@keyframes float {
    0%,  100% { transform: translate(0, 0) scale(1); }
    25%        { transform: translate(16px, -16px) scale(1.04); }
    50%        { transform: translate(-8px, 8px) scale(0.96); }
    75%        { transform: translate(-16px, -8px) scale(1.02); }
}

/* ── Scan Page ──────────────────────────────────────────────── */
.scan-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.scan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(1rem + var(--safe-top)) 1.25rem 1rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: rgba(5, 8, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 20;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.25rem 0;
    min-width: 60px;
}

.back-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.back-link:hover { color: var(--text-primary); }

.page-title {
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.05em;
}

.header-spacer { min-width: 60px; }

.scan-content {
    flex: 1;
    padding: 1.5rem 1.25rem calc(2rem + var(--safe-bottom));
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
    animation: fadeInUp 0.5s ease;
}

/* Upload Zone */
.upload-container { margin-bottom: 1.5rem; }

.upload-zone {
    position: relative;
    min-height: 240px;
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(15, 21, 32, 0.5);
    -webkit-user-select: none;
    user-select: none;
}

.upload-zone:active { opacity: 0.85; }

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--accent-blue);
    background: rgba(0, 180, 216, 0.05);
}

.upload-zone.audio-zone:hover,
.upload-zone.audio-zone.dragover {
    border-color: var(--accent-purple);
    background: rgba(155, 93, 229, 0.05);
}

.upload-content {
    text-align: center;
    padding: 1.75rem 1.5rem;
}

.upload-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 180, 216, 0.1);
    border-radius: var(--radius-md);
}

.upload-icon svg { width: 30px; height: 30px; stroke: var(--accent-blue); }
.audio-upload-icon { background: rgba(155, 93, 229, 0.1); }
.audio-upload-icon svg { stroke: var(--accent-purple); }

.upload-text {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.upload-formats {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.upload-preview {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.upload-preview img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.remove-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-btn svg { width: 16px; height: 16px; stroke: var(--text-secondary); }

.remove-btn:hover,
.remove-btn:active {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

.remove-btn:hover svg,
.remove-btn:active svg { stroke: white; }

.audio-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
    padding: 1.75rem;
    width: 100%;
}

.audio-waveform {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 36px;
}

.wave-bar {
    width: 4px;
    height: 100%;
    background: var(--accent-purple);
    border-radius: 2px;
    animation: wave 1s ease-in-out infinite;
}

.wave-bar:nth-child(1) { animation-delay: 0s; }
.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.5); }
    50%       { transform: scaleY(1); }
}

.audio-filename {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

/* Model Section */
.model-section { margin-bottom: 1.25rem; }

.model-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.625rem;
    font-family: 'JetBrains Mono', monospace;
}

.model-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(0, 180, 216, 0.08);
    border: 1px solid rgba(0, 180, 216, 0.2);
}

.model-display.audio-model {
    background: rgba(155, 93, 229, 0.08);
    border-color: rgba(155, 93, 229, 0.2);
}

.model-icon svg { width: 18px; height: 18px; stroke: var(--accent-blue); }
.audio-model .model-icon svg { stroke: var(--accent-purple); }

.model-text {
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
}

/* ── Analyze Button ─────────────────────────────────────────── */
.analyze-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    /* Always flex — btn-text and btn-loader toggled via JS */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    position: relative;
    letter-spacing: 0.01em;
    -webkit-user-select: none;
    user-select: none;
}

.analyze-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
}

.analyze-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.image-btn {
    background: var(--gradient-blue);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.28);
}

@media (hover: hover) {
    .image-btn:not(:disabled):hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 24px rgba(0, 180, 216, 0.38);
    }
}

.audio-btn {
    background: var(--gradient-purple);
    color: white;
    box-shadow: 0 4px 20px rgba(155, 93, 229, 0.28);
}

@media (hover: hover) {
    .audio-btn:not(:disabled):hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 24px rgba(155, 93, 229, 0.38);
    }
}

/* The loader span sits inside the button.
   JS controls visibility via .hidden attribute. */
.btn-text  { display: flex; align-items: center; gap: 0.5rem; }
.btn-loader { display: flex; align-items: center; gap: 0.5rem; }

/* When hidden attribute is set, hide with display:none */
.btn-text[hidden], .btn-loader[hidden] { display: none !important; }

.spinner {
    width: 18px;
    height: 18px;
    animation: spin 0.9s linear infinite;
    flex-shrink: 0;
}

.spinner circle {
    stroke-dasharray: 31.4;
    stroke-dashoffset: 10;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Result Container ───────────────────────────────────────── */
.result-container {
    margin-top: 1.5rem;
    padding: 1.375rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.result-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
}

.result-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-icon.real { background: rgba(0, 210, 106, 0.15); }
.result-icon.fake { background: rgba(255, 71, 87, 0.15); }

.result-icon::after {
    content: '';
    width: 22px;
    height: 22px;
    background-size: contain;
    background-repeat: no-repeat;
}

.result-icon.real::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300d26a' stroke-width='2'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

.result-icon.fake::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff4757' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M15 9l-6 6M9 9l6 6'/%3E%3C/svg%3E");
}

.result-title {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.result-title.real { color: var(--accent-green); }
.result-title.fake { color: var(--accent-red); }

.result-confidence { margin-bottom: 1.25rem; }

.confidence-bar {
    height: 7px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.confidence-fill {
    height: 100%;
    border-radius: 4px;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.confidence-fill.real { background: var(--gradient-success); }
.confidence-fill.fake { background: var(--gradient-danger); }

.confidence-value {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

.result-details {
    padding: 0.875rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.new-scan-btn {
    width: 100%;
    padding: 0.875rem;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.new-scan-btn:hover,
.new-scan-btn:active {
    background: var(--border-color);
}

/* ── Desktop Enhancements ───────────────────────────────────── */
@media (min-width: 640px) {
    .auth-page { padding: 2rem; }
    .auth-card { padding: 2.5rem; }

    .scan-content { padding: 2rem 1.5rem; }

    .scan-options {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .scan-card-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.875rem;
    }

    .model-badge {
        display: inline-flex;
        flex-direction: column;
        gap: 0.125rem;
        padding: 0.4rem 0.625rem;
        background: rgba(0, 180, 216, 0.1);
        border-radius: var(--radius-sm);
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.6rem;
        width: fit-content;
    }

    .model-name { font-weight: 600; color: var(--accent-blue); }
    .model-accuracy { color: var(--text-secondary); }
    .audio-badge { background: rgba(155, 93, 229, 0.1); }
    .audio-badge .model-name { color: var(--accent-purple); }

    .hero-description { font-size: 1rem; }
}

@media (min-width: 768px) {
    .landing-header { padding: 1.5rem 2rem; }
    .landing-main { padding: 2rem; }
    .hero-content { max-width: 680px; }
}

/* ── Focus & Accessibility ──────────────────────────────────── */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
