/* Mesaplex.com — Shared Styles v2.0.0 */

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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --text-primary: #e5e5e5;
    --text-secondary: #a0a0a0;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --success: #10b981;
    --warning: #f59e0b;
    --border: #2a2a2a;
    --code-bg: #141414;
    --ai-accent: #8b5cf6;
}

/* Skip to content (accessibility) */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    z-index: 1000;
    font-size: 14px;
    transition: top 0.2s;
}
.skip-to-content:focus {
    top: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

code, pre, .mono {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Courier New', monospace;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

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

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

/* Header & Navigation */
header {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    transition: none;
}

.logo:hover {
    color: var(--text-primary);
}

.logo-mono {
    font-family: 'SF Mono', monospace;
    color: var(--accent);
}

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

nav a {
    color: var(--text-secondary);
    font-size: 15px;
}

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

nav a.active {
    font-weight: 600;
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    cursor: pointer;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -16px;
    margin-top: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 0;
    min-width: 280px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: background 0.15s, color 0.15s;
}

.nav-dropdown-menu a:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.nav-dropdown-menu .dropdown-icon {
    font-size: 20px;
    width: 28px;
    text-align: center;
}

.nav-dropdown-menu .dropdown-info {
    display: flex;
    flex-direction: column;
}

.nav-dropdown-menu .dropdown-name {
    font-family: 'SF Mono', monospace;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.nav-dropdown-menu .dropdown-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.nav-dropdown-menu .dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 28px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    z-index: 200;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 150;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 80px 32px 32px;
    overflow-y: auto;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav a {
    display: block;
    padding: 16px 0;
    font-size: 18px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

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

.mobile-nav-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 28px;
    cursor: pointer;
    padding: 4px 8px;
}

.mobile-nav .mobile-sub-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    padding: 16px 0 4px;
    border-bottom: none;
    opacity: 0.6;
}

.mobile-nav .mobile-sub-item {
    padding: 10px 0 10px 16px;
    font-size: 15px;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    text-align: center;
}

.hero h1 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 16px;
}

.hero .value-prop {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero Install Command */
.hero-install {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--code-bg);
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 24px;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.1s;
    max-width: 100%;
}

.hero-install:hover {
    border-color: var(--accent-hover);
    transform: translateY(-2px);
}

.hero-install .prompt {
    color: var(--success);
    font-family: 'SF Mono', monospace;
    font-size: 14px;
    user-select: none;
}

.hero-install code {
    font-family: 'SF Mono', monospace;
    font-size: 18px;
    color: var(--text-primary);
    white-space: nowrap;
}

.hero-install .copy-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.hero-install .copy-btn:hover {
    background: var(--accent-hover);
}

.hero-install .copy-btn.copied {
    background: var(--success);
}

/* Terminal Demo */
.terminal-demo {
    max-width: 700px;
    margin: 0 auto;
    background: #0d1117;
    border-radius: 12px;
    border: 1px solid #30363d;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.terminal-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #161b22;
    border-bottom: 1px solid #30363d;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: #8b949e;
    font-family: 'SF Mono', monospace;
}

.terminal-body {
    padding: 20px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    min-height: 280px;
}

.terminal-line {
    opacity: 0;
    animation: termFadeIn 0.3s forwards;
    white-space: pre;
}

.terminal-line.prompt-line {
    color: #e6edf3;
}

.terminal-line .term-prompt {
    color: #3fb950;
}

.terminal-line .term-cmd {
    color: #e6edf3;
}

.terminal-line .term-url {
    color: #58a6ff;
}

.terminal-line.result-header {
    color: #8b949e;
    margin-top: 8px;
}

.terminal-line.result-pass {
    color: #3fb950;
}

.terminal-line.result-fail {
    color: #f85149;
}

.terminal-line.result-warn {
    color: #d29922;
}

.terminal-line.result-score {
    color: #e6edf3;
    font-weight: bold;
    margin-top: 8px;
}

.terminal-line.result-grade {
    color: #3fb950;
    font-size: 16px;
    font-weight: bold;
}

/* Terminal animation delays */
.terminal-line:nth-child(1) { animation-delay: 0.5s; }
.terminal-line:nth-child(2) { animation-delay: 1.5s; }
.terminal-line:nth-child(3) { animation-delay: 2.0s; }
.terminal-line:nth-child(4) { animation-delay: 2.4s; }
.terminal-line:nth-child(5) { animation-delay: 2.8s; }
.terminal-line:nth-child(6) { animation-delay: 3.2s; }
.terminal-line:nth-child(7) { animation-delay: 3.6s; }
.terminal-line:nth-child(8) { animation-delay: 4.0s; }
.terminal-line:nth-child(9) { animation-delay: 4.6s; }
.terminal-line:nth-child(10) { animation-delay: 5.2s; }

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

/* Typing cursor effect for first line */
.terminal-line.prompt-line .term-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #3fb950;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
    margin-left: 2px;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* npm / GitHub Badges */
.shield-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.shield-badges img {
    height: 20px;
    border-radius: 3px;
}

/* Stats bar with badges */
.stats-badge-bar {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 24px 0;
}

.stats-badge-bar .badge-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stats-badge-bar .badge-group-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: 'SF Mono', monospace;
}

.stats-badge-bar .badge-group-badges {
    display: flex;
    gap: 4px;
}

.stats-badge-bar .badge-group-badges img {
    height: 20px;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

/* Content Layout */
.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
}

.content h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.content h2 {
    font-size: 32px;
    margin-top: 48px;
    margin-bottom: 16px;
}

.content h3 {
    font-size: 24px;
    margin-top: 32px;
    margin-bottom: 12px;
}

.content h4 {
    font-size: 20px;
    margin-top: 24px;
    margin-bottom: 8px;
}

.content p {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.content ul, .content ol {
    margin-bottom: 16px;
    padding-left: 32px;
}

.content li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.content code {
    background: var(--code-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-primary);
}

.content pre {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin: 24px 0;
    overflow-x: auto;
    max-width: 100%;
}

.content pre code {
    background: none;
    padding: 0;
    word-wrap: break-word;
    white-space: pre;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    transition: transform 0.2s, border-color 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.product-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.product-icon {
    font-size: 32px;
    margin-right: 12px;
}

.product-name {
    font-size: 24px;
    font-weight: 600;
    font-family: 'SF Mono', monospace;
}

.product-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 15px;
}

.product-features {
    list-style: none;
    margin-bottom: 24px;
    padding: 0;
}

.product-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.product-features li:before {
    content: "→";
    color: var(--accent);
    margin-right: 12px;
    font-weight: bold;
}

/* Install Box */
.install-box {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.install-box:hover {
    border-color: var(--accent);
}

.install-command {
    font-family: 'SF Mono', monospace;
    font-size: 14px;
    color: var(--text-primary);
    overflow-x: auto;
    white-space: nowrap;
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: var(--border);
    color: var(--text-primary);
}

.copy-btn.copied {
    color: var(--success);
}

.product-links {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.product-links a {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Code Example */
.code-example {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin: 24px 0;
    overflow-x: auto;
    max-width: 100%;
}

.code-example-title {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.code-example pre {
    margin: 0;
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    color: var(--text-primary);
    overflow-x: auto;
    max-width: 100%;
}

.code-example pre code {
    white-space: pre;
    word-wrap: normal;
}

/* Badges */
.badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
}

.badge-free {
    background: var(--success);
    color: white;
}

.badge-pro {
    background: var(--accent);
    color: white;
}

.badge-ai {
    background: var(--ai-accent);
    color: white;
}

.badge-mcp {
    background: #ec4899;
    color: white;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature {
    text-align: center;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Stats Grid */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
    margin: 48px 0;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px 32px;
    text-align: center;
}

.pricing-card.featured {
    border-color: var(--accent);
    position: relative;
}

.pricing-tier {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.pricing-amount {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-period {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.pricing-features {
    text-align: left;
    margin-bottom: 32px;
    list-style: none;
    padding: 0;
}

.pricing-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 15px;
}

.pricing-features li:before {
    content: "✓";
    color: var(--success);
    margin-right: 12px;
    font-weight: bold;
}

/* Waitlist CTA */
.waitlist-box {
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    margin-top: 24px;
}

.waitlist-box h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.waitlist-box .waitlist-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 20px;
}

.waitlist-box .waitlist-form {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.waitlist-box .waitlist-form input[type="email"] {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 16px;
    color: var(--text-primary);
    font-size: 15px;
    width: 260px;
    max-width: 100%;
    outline: none;
    transition: border-color 0.2s;
}

.waitlist-box .waitlist-form input[type="email"]:focus {
    border-color: var(--accent);
}

.waitlist-box .waitlist-form button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.waitlist-box .waitlist-form button:hover {
    background: var(--accent-hover);
}

.waitlist-box .waitlist-or {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 8px;
}

.waitlist-box .waitlist-mailto {
    display: inline-block;
    color: var(--accent);
    font-size: 14px;
}

.early-bird-note {
    color: var(--warning);
    font-size: 14px;
    font-weight: 500;
    margin-top: 12px;
}

/* FAQ */
.faq {
    max-width: 800px;
    margin: 48px auto 0;
}

.faq-item {
    margin-bottom: 32px;
}

.faq-question {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.faq-answer {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 48px 0;
    display: block;
    overflow-x: auto;
    max-width: 100%;
}

.comparison-table th {
    background: var(--bg-card);
    padding: 16px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.comparison-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.comparison-table tr:hover {
    background: var(--bg-card);
}

.comparison-table .check {
    color: var(--success);
    font-weight: bold;
}

.comparison-table .cross {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* MCP Config Box */
.mcp-config {
    background: var(--code-bg);
    border: 2px solid var(--ai-accent);
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
}

.mcp-config-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ai-accent);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mcp-config pre {
    margin: 0;
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    color: var(--text-primary);
    overflow-x: auto;
}

/* MCP tooltip */
.mcp-tooltip {
    position: relative;
    border-bottom: 1px dotted var(--ai-accent);
    cursor: help;
    color: var(--ai-accent);
}

.mcp-tooltip .mcp-tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    z-index: 50;
    transition: opacity 0.2s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    max-width: 340px;
    white-space: normal;
    text-align: left;
    line-height: 1.4;
}

.mcp-tooltip:hover .mcp-tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* AI-Native Section */
.ai-native-banner {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    border: 1px solid var(--ai-accent);
    border-radius: 12px;
    padding: 32px;
    margin: 32px 0;
    text-align: center;
}

.ai-native-banner h3 {
    color: var(--ai-accent);
    margin-bottom: 12px;
}

.ai-compat-logos {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 16px;
    font-size: 15px;
    color: var(--text-secondary);
}

.ai-compat-logos span {
    padding: 6px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
}

/* Buttons */
.cta-button {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s, transform 0.1s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.cta-button:hover {
    background: var(--accent-hover);
    color: white;
    transform: translateY(-1px);
}

.cta-button.secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.cta-button.secondary:hover {
    border-color: var(--accent);
}

/* Footer */
footer {
    padding: 48px 0 32px;
    border-top: 1px solid var(--border);
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 48px;
    margin-bottom: 32px;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--text-secondary);
    font-size: 15px;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 32px;
    text-align: center;
}

.copyright {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-legal {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-legal a {
    color: var(--text-secondary);
    margin: 0 8px;
}

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

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
}

.legal-content h1 {
    font-size: 36px;
    margin-bottom: 8px;
}

.legal-content .last-updated {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 32px;
}

.legal-content h2 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 12px;
}

.legal-content p, .legal-content li {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-content ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

/* Product Page (individual) */
.product-page-hero {
    padding: 80px 0 40px;
    text-align: center;
}

.product-page-hero .product-icon-large {
    font-size: 64px;
    margin-bottom: 16px;
}

.product-page-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: 'SF Mono', monospace;
}

.product-page-hero .product-tagline {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 24px;
}

/* Responsive */
@media (max-width: 1024px) {
    nav {
        gap: 20px;
    }
    nav a {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 40px;
    }

    .hero .subtitle {
        font-size: 18px;
    }

    .content h1 {
        font-size: 36px;
    }

    /* Hide desktop nav, show hamburger */
    nav {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .mobile-nav,
    .mobile-nav-overlay {
        display: block;
    }

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

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

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

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

    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
        font-size: 14px;
    }

    .section {
        padding: 60px 0;
    }

    .hero {
        padding: 80px 0 60px;
    }

    .ai-compat-logos {
        gap: 12px;
    }

    .ai-compat-logos span {
        font-size: 13px;
        padding: 4px 12px;
    }

    .code-example pre {
        font-size: 12px;
    }

    .hero-install code {
        font-size: 14px;
    }

    .terminal-body {
        font-size: 12px;
        padding: 16px;
    }

    .mcp-tooltip .mcp-tooltip-text {
        left: 0;
        transform: none;
        max-width: 260px;
    }

    .waitlist-box .waitlist-form input[type="email"] {
        width: 100%;
    }
}

@media (max-width: 375px) {
    .hero h1 {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .content h1 {
        font-size: 28px;
    }

    .container {
        padding: 0 16px;
    }

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

    .product-card {
        padding: 24px;
    }

    .install-command {
        font-size: 12px;
    }

    .hero-install {
        padding: 12px 16px;
    }

    .hero-install code {
        font-size: 13px;
    }
}

/* Global code overflow fix */
pre, code {
    max-width: 100%;
}

pre {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    max-width: 100%;
}
