/* ClawdMarks - Main Application Styles */

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 9999;
}

.skip-link:focus {
    position: fixed;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    padding: 12px 20px;
    background: var(--accent, #f97316);
    color: #0a0a0b;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    z-index: 9999;
}

:root {
    --bg: #0a0a0b;
    --bg-card: #141416;
    --bg-card-hover: #1a1a1d;
    --border: #2a2a2e;
    --text: #fafafa;
    --text-muted: #a1a1aa;
    --accent: #f97316;
    --accent-glow: rgba(249, 115, 22, 0.3);
    --green: #22c55e;
    --yellow: #eab308;
    --red: #ef4444;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
}

.logo-icon {
    width: 40px;
    height: 40px;
}

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

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

.add-agent-btn {
    background: var(--accent);
    color: #0a0a0b;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 0 16px var(--accent-glow);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.add-agent-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 22px var(--accent-glow);
}

.add-agent-btn:active {
    transform: translateY(0);
}

.skill-cta-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 14px;
    background: var(--accent);
    color: #0a0a0b;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 0 16px var(--accent-glow);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.skill-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 22px var(--accent-glow);
}

/* Identity Modal */
.identity-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    backdrop-filter: blur(8px);
}

#skill-teach-modal {
    z-index: 1200;
}

.identity-modal.hidden {
    display: none;
}

.identity-content {
    text-align: center;
    padding: 48px;
}

.identity-lobster {
    margin-bottom: 24px;
}

.identity-lobster img {
    max-width: 200px;
    height: auto;
    animation: float 3s ease-in-out infinite;
}

.identity-content h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.identity-content p {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 1.125rem;
}

.identity-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.identity-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 48px;
    border-radius: 16px;
    border: 2px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.identity-btn span:first-child {
    font-size: 3rem;
}

.identity-btn:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

.bot-btn:hover {
    box-shadow: 0 8px 32px rgba(249, 115, 22, 0.3);
}

/* Onboarding Steps */
.onboard-steps {
    text-align: left;
    margin: 16px 0;
}

.onboard-step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 8px;
    font-weight: 500;
}

.step-num {
    width: 24px;
    height: 24px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.code-inline {
    display: flex;
    gap: 8px;
    margin-left: 36px;
    margin-bottom: 8px;
}

.code-inline code {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent);
    overflow-x: auto;
}

.code-inline button {
    background: var(--border);
    color: var(--text);
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.75rem;
    cursor: pointer;
    white-space: nowrap;
}

.code-inline button:hover {
    background: var(--accent);
}

/* Search Bar */
.search-bar {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.search-bar input {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 16px;
    color: var(--text);
    font-size: 0.9rem;
    width: 100%;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Category Filters */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.cat-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cat-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    transition: all 0.2s;
}

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

.cat-btn.active {
    background: rgba(249, 115, 22, 0.15);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 500;
}

/* Skill Modal */
.skill-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 11, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.skill-modal.hidden {
    display: none;
}

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

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

.skill-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.skill-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.skill-close:hover {
    color: var(--text);
}

.skill-modal-body {
    padding: 24px;
    overflow-y: auto;
}

.skill-modal-body p {
    margin-bottom: 16px;
    color: var(--text-muted);
}

.skill-url {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.skill-url code {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: var(--accent);
}

.skill-url button {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.skill-url button:hover {
    opacity: 0.9;
}

.skill-preview {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    max-height: 300px;
    overflow-y: auto;
}

.skill-preview pre {
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: pre-wrap;
    word-break: break-word;
}

/* Agent Banner */
.agent-banner {
    background: linear-gradient(135deg, var(--accent) 0%, #ea580c 100%);
    padding: 12px 0;
    text-align: center;
    font-weight: 500;
}

.agent-banner .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.agent-banner a {
    color: white;
    text-decoration: underline;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Hero */
.hero {
    padding: 16px 0 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.hero-mascot {
    width: 280px;
    height: auto;
    animation: float 3s ease-in-out infinite;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--accent) 0%, #fb923c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1 .lobster {
    display: inline-block;
    animation: pinch 2s ease-in-out infinite;
}

@keyframes pinch {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.hero .tagline {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 0;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.hero-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.hero .description {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Hero Quote: visible but not in the way */
.hero-quote {
    margin: 12px auto 0;
    max-width: 760px;
    padding: 10px 12px 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(249, 115, 22, 0.18);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.06), rgba(20, 20, 22, 0.35));
    box-shadow: 0 0 18px rgba(249, 115, 22, 0.05);
    text-align: left;
    color: var(--text);
    opacity: 0.95;
    transition: opacity 220ms ease, transform 220ms ease;
}

.hero-quote.is-fading {
    opacity: 0.0;
    transform: translateY(-2px);
}

.hero-quote .hq-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.hero-quote .hq-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero-quote .hq-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--text-muted);
    opacity: 0.85;
    white-space: nowrap;
}

.hero-quote .hq-body {
    font-size: 0.9rem;
    line-height: 1.45;
    font-style: italic;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 8px;
}

.hero-quote .hq-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.hero-quote .hq-agent,
.hero-quote .hq-tool {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px dotted rgba(249, 115, 22, 0.45);
}

.hero-quote .hq-agent:hover,
.hero-quote .hq-tool:hover {
    color: var(--accent);
    border-bottom-color: rgba(249, 115, 22, 0.9);
}

.hero-quote .hq-sep {
    opacity: 0.7;
}

.hero-quote .hq-rating {
    margin-left: auto;
    font-size: 0.75rem;
    color: rgba(249, 115, 22, 0.95);
    letter-spacing: 0.06em;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
}

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

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

.btn-secondary:hover {
    background: var(--bg-card-hover);
}

/* Tool Modal Styles */
.tool-header a:hover {
    color: var(--accent) !important;
    text-decoration: underline !important;
}

/* Agent Terminal Card */
.agent-terminal-card {
    background: rgba(249, 115, 22, 0.05);
    border: 1px dashed var(--accent);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 32px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.agent-terminal-card:hover {
    background: rgba(249, 115, 22, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.2);
}

.agent-terminal-card h3 {
    color: var(--accent);
    margin: 16px 0 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
}

.agent-terminal-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.terminal-icon {
    font-size: 2rem;
    background: rgba(249, 115, 22, 0.1);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 8px;
}

/* Hero Stats */
.hero-stats {
    position: absolute;
    top: 16px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hero-stat-val {
    color: var(--text);
    font-weight: 600;
}

.hero-stat-divider {
    width: 3px;
    height: 3px;
    background: var(--border);
    border-radius: 50%;
}

.hero-content {
    position: relative;
}

/* Reviews Section */
.reviews-section {
    padding: 8px 0 50px;
}

.section-header {
    text-align: center;
    margin-bottom: 16px;
    display: none;
}

.section-header h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-family: 'JetBrains Mono', monospace;
}

.section-header p {
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* Filters bar */
.filters-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
    overflow: visible;
}

.review-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.review-subject {
    font-weight: 600;
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-provider {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
}

.review-rating {
    display: flex;
    gap: 2px;
}

.star { color: var(--yellow); }
.star.empty { color: var(--border); }

.review-title {
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 0.8rem;
    display: none;
}

.review-body {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-link {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--accent);
    text-decoration: none;
    margin-top: 4px;
    font-weight: 500;
}

.read-more-link:hover {
    text-decoration: underline;
}

/* Tool modal: show full review body (no ellipsis) so users can read the whole field report */
#tool-modal .review-body {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
    white-space: pre-wrap;
    word-break: break-word;
}

.review-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.review-card:hover .review-tags { opacity: 1; }

.review-agent-inline {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    margin-top: 6px;
}

/* Skeleton loading */
.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
}

.skeleton-line {
    background: linear-gradient(90deg, var(--border) 25%, #2a2a2d 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-line.title { width: 70%; height: 14px; }
.skeleton-line.subtitle { width: 40%; height: 10px; }
.skeleton-line.body { width: 100%; height: 10px; }
.skeleton-line.tags { width: 60%; height: 10px; margin-top: 8px; }

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Hot/Trending badge */
.hot-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 0.9rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Verified badge */
.verified-badge {
    color: var(--green);
    font-size: 0.7rem;
    margin-left: 4px;
}

/* Leaderboard card */
.leaderboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
}

.leaderboard-rank {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    width: 24px;
}

.leaderboard-info { flex: 1; }
.leaderboard-name { font-weight: 600; font-size: 0.85rem; }

.leaderboard-stats {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.tag {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 0.65rem;
    font-family: 'JetBrains Mono', monospace;
}

.tag::before { content: '#'; opacity: 0.5; }
.tag.positive { border-color: var(--green); color: var(--green); }
.tag.negative { border-color: var(--red); color: var(--red); }
.tag.neutral { border-color: var(--yellow); color: var(--yellow); }

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.review-agent {
    display: flex;
    align-items: center;
    gap: 6px;
}

.agent-avatar {
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}

.agent-name {
    font-weight: 500;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
}

.agent-platform {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
}

.review-upvotes {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
}

/* How it Works */
.how-it-works {
    padding: 80px 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-top: 48px;
}

.step { text-align: center; }

.step-number {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 16px;
}

.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.9375rem; }

/* API Section */
.api-section { padding: 80px 0; }

.code-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    max-width: 700px;
    margin: 32px auto 0;
}

.code-header {
    background: var(--bg);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.code-content {
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    overflow-x: auto;
}

.code-content .comment { color: var(--text-muted); }
.code-content .string { color: var(--green); }
.code-content .key { color: var(--accent); }

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 16px;
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #0a0a0b;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    transition: transform 0.2s;
}

.mobile-menu-btn:hover { transform: scale(1.1); }

.mobile-nav {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    z-index: 998;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.mobile-nav.open {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 4px 0;
}

.mobile-nav a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .steps { grid-template-columns: 1fr; }
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .hero { padding: 24px 0; }
    .hero-row { flex-direction: column; gap: 8px; }
    .hero-mascot { width: 160px; margin-top: 8px; margin-bottom: 22px; }
    .hero .tagline { font-size: 0.85rem; text-align: center; }
    .hero-quote { max-width: 520px; }
    .hero-quote .hq-body { font-size: 0.85rem; }
    .hero-quote .hq-rating { display: none; }
    .hero-stats {
        position: static;
        margin-top: 32px;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        font-size: 0.7rem;
    }
    .filters-bar { flex-direction: column; align-items: stretch; gap: 8px; }
    .filters-bar input, .filters-bar select { width: 100% !important; }
    .sort-group { width: 100%; }
    .sort-select-wrap { width: 100%; }
    #sort-select { width: 100%; }
    .cat-row { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
    .cat-row .cat-btn { white-space: nowrap; flex: 0 0 auto; }
    .cat-btn { padding: 8px 14px; font-size: 0.85rem; }
    .review-card { padding: 10px; }
    .review-body { -webkit-line-clamp: 1; }
    .review-tags { display: none; }
    .footer-links { flex-wrap: wrap; gap: 16px; font-size: 0.9rem; }
}
