/* ============================================================
   SPRIME — "Data Observatory" Design System
   Dark, precision-engineered, mission-control aesthetic
   ============================================================ */

:root {
    /* Core palette */
    --bg-base: #0c0e14;
    --bg-raised: #12151e;
    --bg-surface: #181c28;
    --bg-surface-hover: #1e2333;
    --border: #252a3a;
    --border-subtle: #1c2030;

    /* Text */
    --text-primary: #e8ecf4;
    --text-secondary: #8892a8;
    --text-muted: #5a6377;

    /* Accent */
    --accent: #3b82f6;
    --accent-bright: #60a5fa;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --accent-glow-strong: rgba(59, 130, 246, 0.3);

    /* Status colors */
    --green: #22c55e;
    --green-dim: rgba(34, 197, 94, 0.15);
    --amber: #f59e0b;
    --red: #ef4444;
    --red-muted: #fca5a5;

    /* Tier colors */
    --tier-free: #22c55e;
    --tier-starter: #3b82f6;
    --tier-pro: #a855f7;

    /* Typography */
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

    /* Sizing */
    --max-width: 1200px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;

    /* Transitions */
    --transition: 0.2s ease;
    --transition-slow: 0.4s ease;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px var(--accent-glow);

    /* Legacy mappings (for non-homepage pages) */
    --primary-purple: #3b82f6;
    --primary-violet: #6366f1;
    --dark-gray: #0c0e14;
    --light-gray: #12151e;
    --white: #181c28;
    --border-color: #252a3a;
    --text-dark: #e8ecf4;
    --text-medium: #8892a8;
    --text-light: #5a6377;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

html {
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    -webkit-text-size-adjust: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

pre, code, table {
    max-width: 100%;
}

pre {
    overflow-wrap: break-word;
    word-wrap: break-word;
    white-space: pre-wrap;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: var(--font-body);
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Ambient grid background */
.sp-grid-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--border-subtle) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
}

/* Skip to content - accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    z-index: 1000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 var(--radius-sm) 0;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

nav {
    background: rgba(12, 14, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.85rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-xs);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--text-primary);
    background: var(--bg-surface);
}

.nav-links a.active {
    color: var(--accent-bright);
    background: var(--accent-glow);
}

.nav-links a.active::after {
    display: none;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    z-index: 101;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   SECTION HEADERS (shared)
   ============================================================ */

.hp-section-header {
    margin-bottom: 3rem;
}

.hp-section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-bright);
    background: var(--accent-glow);
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    margin-bottom: 1rem;
}

.hp-section-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}

.hp-section-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.65;
}

/* ============================================================
   HERO
   ============================================================ */

.hp-hero {
    padding: 5rem 1.5rem 4rem;
    position: relative;
    z-index: 1;
}

.hp-hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hp-hero-inner > * {
    min-width: 0;
}

.hp-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--green);
    background: var(--green-dim);
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hp-status-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: sp-pulse 2s ease-in-out infinite;
}

@keyframes sp-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0); }
}

.hp-hero h1 {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.hp-hero-accent {
    background: linear-gradient(135deg, var(--accent-bright), #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hp-hero-sub {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 2rem;
}

.hp-hero-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Buttons */
.hp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: var(--font-body);
}

.hp-btn-icon {
    font-size: 1.1rem;
    transition: transform 0.15s;
}

.hp-btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.3);
}

.hp-btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.hp-btn-primary:hover .hp-btn-icon {
    transform: translateX(3px);
}

.hp-btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.hp-btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
    background: var(--bg-surface);
}

.hp-btn-full {
    display: block;
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* ============================================================
   TERMINAL
   ============================================================ */

.hp-term {
    background: var(--bg-raised);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.hp-term-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
}

.hp-term-dots {
    display: flex;
    gap: 6px;
}

.hp-term-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.hp-term-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.hp-term-body {
    padding: 1.25rem 1.5rem;
    min-height: 220px;
}

.hp-term-req {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.hp-term-method {
    background: rgba(34, 197, 94, 0.15);
    color: var(--green);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.hp-term-url {
    color: var(--accent-bright);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    word-break: break-all;
}

.hp-term-loader {
    display: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    background-size: 200% 100%;
    animation: hp-loader 1.2s ease-in-out infinite;
    border-radius: 2px;
    margin-bottom: 0.75rem;
}

@keyframes hp-loader {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.hp-term-meta {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 1.2em;
}

.hp-term-status {
    font-weight: 700;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.hp-term-ok { color: var(--green); }
.hp-term-fail { color: var(--red); }
.hp-term-time { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.75rem; }
.hp-term-err { color: var(--amber); font-size: 0.8rem; }

.hp-term-output {
    position: relative;
}

.hp-term-output pre, #demo-json {
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}

.hp-term-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 16px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.hp-preset {
    padding: 4px 12px;
    background: var(--bg-raised);
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: var(--transition);
}

.hp-preset:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
    background: var(--bg-surface-hover);
}

.hp-term-form {
    flex: 1;
    min-width: 120px;
}

.hp-term-form input {
    width: 100%;
    padding: 4px 12px;
    background: var(--bg-base);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    font-size: 0.78rem;
    font-family: var(--font-mono);
    margin: 0;
    outline: none;
    transition: border-color var(--transition);
}

.hp-term-form input:focus {
    border-color: var(--accent);
}

.hp-term-form input::placeholder {
    color: var(--text-muted);
}

/* Copy buttons */
.hp-copy-btn {
    padding: 3px 10px;
    background: var(--bg-surface);
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.68rem;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.hp-copy-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.hp-copy-json {
    position: absolute;
    top: 0;
    right: 0;
}

/* ============================================================
   SIGNAL STRIP
   ============================================================ */

.hp-signals {
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.hp-signals-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 2rem 2.5rem;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.hp-signal {
    text-align: center;
}

.hp-signal-value {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hp-signal-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.hp-signal-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

/* ============================================================
   BEFORE / AFTER COMPARE
   ============================================================ */

.hp-compare {
    padding: 6rem 1.5rem;
    position: relative;
    z-index: 1;
}

.hp-compare-inner {
    max-width: 920px;
    margin: 0 auto;
}

.hp-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.hp-compare-grid > * {
    min-width: 0;
}

.hp-compare-card {
    background: var(--bg-raised);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color var(--transition);
}

.hp-compare-after-card {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: var(--shadow-glow);
}

.hp-compare-label {
    padding: 0.75rem 1.25rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hp-compare-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hp-compare-before {
    background: rgba(239, 68, 68, 0.12);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.hp-compare-after {
    background: rgba(34, 197, 94, 0.12);
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.hp-code-block {
    padding: 1.25rem 1.5rem;
    background: var(--bg-base);
    position: relative;
}

.hp-code-block pre {
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
}

.hp-code-block .hp-copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Syntax highlighting */
.c-key { color: #7dd3fc; }
.c-str { color: #86efac; }
.c-num { color: #fbbf24; }
.c-brace { color: var(--text-muted); }

.hp-compare-note {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 1.5rem;
    text-align: center;
    font-family: var(--font-mono);
    letter-spacing: 0.3px;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */

.hp-steps {
    padding: 6rem 1.5rem;
    position: relative;
    z-index: 1;
}

.hp-steps-inner {
    max-width: 920px;
    margin: 0 auto;
}

.hp-steps .hp-section-header {
    text-align: center;
}

.hp-steps .hp-section-header p {
    margin: 0 auto;
}

.hp-steps-grid {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.hp-step {
    flex: 1;
    background: var(--bg-raised);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    border: 1px solid var(--border);
    transition: border-color var(--transition), box-shadow var(--transition);
    min-width: 0;
}

.hp-step:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: var(--shadow-glow);
}

.hp-step-connector {
    width: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 1.5rem;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.hp-step-connector::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--border);
    display: block;
}

.hp-step-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-bright);
    background: var(--accent-glow);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hp-step h3 {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hp-step p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ============================================================
   ENDPOINTS SHOWCASE
   ============================================================ */

.hp-endpoints {
    padding: 6rem 1.5rem;
    position: relative;
    z-index: 1;
}

.hp-endpoints-inner {
    max-width: 920px;
    margin: 0 auto;
}

.hp-endpoints .hp-section-header {
    text-align: center;
}

.hp-endpoints-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.hp-endpoint-card {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: all var(--transition);
    position: relative;
    min-width: 0;
}

.hp-endpoint-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.hp-endpoint-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    color: var(--accent-bright);
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.hp-endpoint-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.hp-endpoint-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 1rem;
}

.hp-endpoint-tier {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hp-endpoint-tier.free {
    background: rgba(34, 197, 94, 0.1);
    color: var(--tier-free);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.hp-endpoint-tier.starter {
    background: rgba(59, 130, 246, 0.1);
    color: var(--tier-starter);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.hp-endpoint-tier.pro {
    background: rgba(168, 85, 247, 0.1);
    color: var(--tier-pro);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

/* ============================================================
   PRICING
   ============================================================ */

.hp-pricing {
    padding: 6rem 1.5rem;
    position: relative;
    z-index: 1;
}

.hp-pricing-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.hp-pricing .hp-section-header {
    text-align: center;
}

.hp-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.hp-pricing-grid > * {
    min-width: 0;
}

.hp-pricing-card {
    background: var(--bg-raised);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
}

.hp-pricing-card:hover {
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.hp-pricing-featured {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.hp-pricing-featured:hover {
    border-color: var(--accent-bright);
    box-shadow: 0 0 40px var(--accent-glow-strong);
}

.hp-pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--accent);
    color: white;
    padding: 3px 14px;
    border-radius: 20px;
}

.hp-pricing-tier {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.hp-price {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.04em;
    line-height: 1;
}

.hp-price-currency {
    font-size: 1.6rem;
    vertical-align: super;
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 2px;
}

.hp-price-period {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.75rem;
    margin-top: 0.25rem;
}

.hp-pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.hp-pricing-card li {
    padding: 0.6rem 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border);
}

.hp-pricing-card li:last-child {
    border-bottom: none;
}

/* ============================================================
   FAQ
   ============================================================ */

.hp-faq {
    padding: 6rem 1.5rem 4rem;
    position: relative;
    z-index: 1;
}

.hp-faq-inner {
    max-width: 700px;
    margin: 0 auto;
}

.hp-faq .hp-section-header {
    text-align: center;
}

.hp-faq-list details {
    background: var(--bg-raised);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color var(--transition);
}

.hp-faq-list details[open] {
    border-color: rgba(59, 130, 246, 0.2);
}

.hp-faq-list summary {
    padding: 1.1rem 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.92rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color var(--transition);
}

.hp-faq-list summary:hover {
    color: var(--accent-bright);
}

.hp-faq-list summary::-webkit-details-marker {
    display: none;
}

.hp-faq-list summary::after {
    content: '+';
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.2s;
}

.hp-faq-list details[open] summary::after {
    content: '\2212';
}

.hp-faq-list details p {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.65;
}

.hp-faq-list details code {
    background: var(--bg-surface);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.85em;
    font-family: var(--font-mono);
    color: var(--accent-bright);
}

.hp-faq-list details a {
    color: var(--accent-bright);
    text-decoration: none;
}

.hp-faq-list details a:hover {
    text-decoration: underline;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
    background: var(--bg-raised);
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 3rem 1.5rem 2rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.footer-container > * {
    min-width: 0;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-mono);
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    transition: color var(--transition);
}

.footer-section a:hover {
    color: var(--accent-bright);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
    .hp-hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hp-hero h1 { font-size: 2.6rem; }

    .hp-compare-grid { grid-template-columns: 1fr; }

    .hp-steps-grid {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hp-step-connector {
        width: auto;
        min-width: auto;
        height: 20px;
        padding-top: 0;
    }

    .hp-step-connector::before {
        width: 1px;
        height: 14px;
    }

    .hp-endpoints-grid { grid-template-columns: 1fr 1fr; }

    .hp-pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .hp-signals-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        padding: 1.5rem 2rem;
    }

    .hp-signal-divider { display: none; }

    .hp-section-header h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-container { flex-direction: row; position: relative; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-raised);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        border-left: 1px solid var(--border);
        transition: right 0.3s ease;
        gap: 0;
        z-index: 100;
    }

    .nav-links.open { right: 0; }

    .nav-links li { border-bottom: 1px solid var(--border); }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 1rem;
        border-radius: 0;
    }

    .nav-links a.active::after { display: none; }

    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.6);
        z-index: 99;
    }

    .nav-overlay.open { display: block; }

    .hp-endpoints-grid { grid-template-columns: 1fr; }

    footer { text-align: center; }
    .footer-container { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hp-hero { padding: 3rem 1.25rem 2.5rem; }
    .hp-hero h1 { font-size: 2rem; }
    .hp-hero-sub { font-size: 0.95rem; }

    .hp-signals-inner { gap: 1rem; padding: 1.25rem; }
    .hp-signal-value { font-size: 1.3rem; }

    .hp-compare, .hp-steps, .hp-endpoints, .hp-pricing, .hp-faq {
        padding: 3.5rem 1.25rem;
    }

    .hp-section-header h2 { font-size: 1.6rem; }

    .hp-term-body {
        padding: 0.75rem 1rem;
        min-height: 180px;
    }

    .hp-term-output pre, #demo-json { font-size: 0.72rem; }

    .hp-preset {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

/* ============================================================
   NON-HOMEPAGE PAGE STYLES (preserved)
   Docs, Dashboard, Changelog, Privacy, Terms
   ============================================================ */

/* Global form elements */
input {
    width: 100%;
    padding: 0.9rem;
    margin: 1.2rem 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color var(--transition);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: var(--font-body);
}

input:focus {
    outline: none;
    border-color: var(--accent);
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238892a8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
    background-color: var(--bg-surface);
    border-color: var(--border);
    color: var(--text-primary);
}

/* Page hero for non-home pages */
.hero, .header-banner {
    max-width: 100%;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    text-align: center;
    color: var(--text-primary);
}

.hero h1, .header-banner h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.15;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.8;
    max-width: 550px;
    margin: 0 auto 1.5rem;
    color: var(--text-secondary);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 3rem 0 1.5rem;
    padding: 0 1.5rem;
}

/* Container for content pages */
.container, .main-container {
    max-width: 1200px;
    margin: 2rem auto 4rem;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 900px;
    background: var(--bg-raised);
    padding: 3rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: clip;
}

.container h2 { color: var(--text-primary); margin-bottom: 1rem; }
.container h3 { color: var(--text-primary); margin-top: 2rem; margin-bottom: 0.5rem; }
.container p, .container ul { color: var(--text-secondary); line-height: 1.7; }

.container code {
    background: var(--bg-surface);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--accent-bright);
    font-weight: 500;
    font-family: var(--font-mono);
}

/* Card styles */
.card, .pricing-card, .feature-card {
    background: var(--bg-raised);
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.feature-card:hover,
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card h3 { color: var(--text-primary); margin-bottom: 0.75rem; font-size: 1.25rem; }
.feature-card p { color: var(--text-secondary); line-height: 1.6; }

.pricing-card, .card { flex: 1 1 300px; max-width: 380px; text-align: center; }
.pricing-card h3 { color: var(--text-primary); font-size: 1.5rem; margin-bottom: 0.5rem; }
.card h3 { color: var(--text-primary); margin-bottom: 1rem; }

.cta-button {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    transition: all 0.2s;
    font-size: 1rem;
}

.pricing-card .cta-button {
    width: 100%;
    margin-top: 1.5rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.cta-button:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.4);
    outline-offset: 2px;
}

/* Dashboard grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    min-width: 0;
}

.dashboard-grid > * { min-width: 0; }

/* Features grid */
.features {
    max-width: 1200px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 2rem;
}

.features > * { min-width: 0; }

.stat-val {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    margin: 0.5rem 0;
    font-family: var(--font-mono);
}

.progress-container {
    background: var(--bg-surface);
    height: 8px;
    border-radius: 4px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--accent), #818cf8);
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 4px;
}

.key-box {
    background: var(--bg-base);
    color: var(--accent-bright);
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    overflow: hidden;
    border: 1px solid var(--border);
}

.key-box span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
}

.modal-content {
    background: var(--bg-raised);
    max-width: 400px;
    margin: 15% auto;
    padding: 2.5rem;
    border-radius: var(--radius);
    text-align: center;
    overflow: hidden;
    width: calc(100% - 2rem);
    border: 1px solid var(--border);
}

.modal-content h3 { color: var(--text-primary); margin-bottom: 1rem; }

/* Code blocks */
.code-block {
    background: var(--bg-base);
    color: var(--text-primary);
    padding: 1.5rem;
    border-radius: var(--radius);
    font-family: var(--font-mono);
    text-align: left;
    margin-top: 1rem;
    border: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.85rem;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    max-width: 100%;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 1.5rem;
    justify-content: center;
    border: none;
}

.tab-btn, .tab-link {
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 0.6rem 1.4rem;
    cursor: pointer;
    border-radius: var(--radius-xs);
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
    font-family: var(--font-body);
}

.tab-btn.active, .tab-link.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.tab-btn:hover, .tab-link:hover {
    background: var(--bg-surface-hover);
    border-color: var(--text-muted);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* Disclaimer */
.disclaimer-box {
    background: rgba(239, 68, 68, 0.08);
    border-left: 4px solid var(--red);
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-top: 1rem;
    color: var(--red-muted);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Origin note */
.origin-note {
    max-width: 700px;
    margin: 0 auto 3rem;
    padding: 1.5rem 2rem;
    background: var(--bg-raised);
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
    border: 1px solid var(--border);
}

.origin-note p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; margin: 0; }
.origin-note strong { color: var(--text-primary); }
.origin-note a { color: var(--accent-bright); text-decoration: none; font-weight: 500; }
.origin-note a:hover { text-decoration: underline; }

/* Price styling for non-homepage */
.price {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 0.25rem;
    font-family: var(--font-mono);
}

.price-period { color: var(--text-muted); font-size: 1rem; margin-bottom: 1rem; }

.pricing-features {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.pricing-features li {
    padding: 0.6rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-surface);
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1001;
}

.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { border-color: var(--accent); background: var(--accent-glow); }

.btn-copy {
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.78rem;
    transition: all var(--transition);
    font-family: var(--font-mono);
}

.btn-copy:hover { background: var(--bg-surface-hover); color: var(--text-primary); }

/* Button loading state */
.cta-button.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.cta-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ============================================================
   DOCS-SPECIFIC STYLES
   ============================================================ */

.toc { margin: 2rem 0; }
.toc h2 { margin-bottom: 1rem; color: var(--text-primary); }

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
}

.toc-grid a {
    display: block;
    padding: 0.6rem 1rem;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    color: var(--accent-bright);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.toc-grid a:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.endpoint-card {
    background: var(--bg-raised);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    overflow: hidden;
}

.endpoint-card h2 { margin-top: 0; }
.endpoint-card h3 { margin-top: 1.5rem; }

.method {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.78rem;
    margin-right: 0.5rem;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}

.method.get { background: rgba(34, 197, 94, 0.12); color: var(--green); border: 1px solid rgba(34, 197, 94, 0.2); }
.method.post { background: rgba(59, 130, 246, 0.12); color: var(--accent-bright); border: 1px solid rgba(59, 130, 246, 0.2); }
.method.delete { background: rgba(239, 68, 68, 0.12); color: var(--red); border: 1px solid rgba(239, 68, 68, 0.2); }

.tier-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
    margin-left: 0.5rem;
    font-family: var(--font-mono);
}

.tier-badge.free { background: rgba(34, 197, 94, 0.1); color: var(--tier-free); border: 1px solid rgba(34, 197, 94, 0.2); }
.tier-badge.starter { background: rgba(59, 130, 246, 0.1); color: var(--tier-starter); border: 1px solid rgba(59, 130, 246, 0.2); }
.tier-badge.pro { background: rgba(168, 85, 247, 0.1); color: var(--tier-pro); border: 1px solid rgba(168, 85, 247, 0.2); }

.param-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.88rem;
}

.table-scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1rem 0;
}

.table-scroll-wrap .param-table { margin: 0; }

.param-table th {
    background: var(--bg-surface);
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border);
    font-size: 0.82rem;
}

.param-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.param-table code {
    background: var(--bg-surface);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.82em;
    color: var(--accent-bright);
    font-family: var(--font-mono);
}

.badge {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.badge.required { background: rgba(239, 68, 68, 0.12); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.2); }

.docs-container {
    max-width: 1000px;
    margin: 2rem auto 4rem;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* ============================================================
   CHANGELOG STYLES
   ============================================================ */

.version-block {
    border-left: 3px solid var(--border);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.version-block.latest { border-left-color: var(--accent); }
.version-block h3 { color: var(--text-primary); margin-top: 0; }
.version-block p { color: var(--text-muted); font-size: 0.88rem; margin-top: 0.5rem; }
.version-block ul { margin-top: 1rem; padding-left: 1rem; }
.version-block li { color: var(--text-secondary); margin-bottom: 0.4rem; line-height: 1.5; }

.latest-badge {
    background: linear-gradient(135deg, var(--accent), #818cf8);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    vertical-align: middle;
    margin-left: 0.5rem;
    font-family: var(--font-mono);
}

.changelog-toc {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.changelog-toc-label { font-weight: 600; font-size: 0.88rem; color: var(--text-secondary); }

.changelog-toc a {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: var(--bg-surface);
    border-radius: var(--radius-xs);
    color: var(--accent-bright);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82rem;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.changelog-toc a:hover { background: var(--accent); color: white; border-color: var(--accent); }

.changelog-year {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.changelog-year:first-of-type { margin-top: 0; }

.changelog-stability { font-size: 0.82rem; color: var(--text-muted); font-style: italic; margin-top: 0.25rem; margin-bottom: 0.5rem; }

.changelog-links { margin-top: 0.75rem; font-size: 0.82rem; }
.changelog-links a { color: var(--accent-bright); text-decoration: none; font-weight: 600; }
.changelog-links a:hover { text-decoration: underline; }

/* Page Hero (non-home pages) */
.hp-page-hero {
    padding: 4.5rem 1.5rem 3rem;
    text-align: center;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.03) 100%);
}

.hp-page-hero-inner { max-width: 960px; margin: 0 auto; }

.hp-page-hero .hp-section-tag { margin-bottom: 1.25rem; }

.hp-page-hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.hp-page-hero p { font-size: 1.05rem; line-height: 1.6; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* Code example on other pages */
.code-example {
    max-width: 900px;
    margin: 4rem auto;
    padding: 3rem 2rem;
    text-align: center;
    background: var(--bg-raised);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.endpoint-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.endpoint-tabs .tab {
    padding: 0.6rem 1.4rem;
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.endpoint-tabs .tab:hover,
.endpoint-tabs .tab.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.icon { font-size: 2.5rem; margin-bottom: 0.75rem; }

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), #818cf8);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}

.pricing { max-width: 1200px; margin: 4rem auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; padding: 0 1.5rem; }

.pricing-button {
    display: block;
    width: 100%;
    padding: 0.9rem;
    background: var(--accent);
    color: white;
    text-align: center;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.2s;
}

.pricing-button:hover { opacity: 0.9; }

.pricing-card.popular { border: 2px solid var(--accent); transform: scale(1.03); }

.pricing-header { text-align: center; margin-bottom: 2rem; width: 100%; }
.pricing-header h2 { font-size: 2.2rem; color: var(--text-primary); }

.use-cases-bar { max-width: 900px; margin: 2.5rem auto 0; padding: 1.25rem 2rem; background: var(--bg-raised); border-radius: var(--radius); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.use-cases-label { font-weight: 700; color: var(--text-primary); font-size: 0.95rem; }
.use-cases-list { color: var(--text-secondary); font-size: 0.95rem; }

.tagline { font-family: var(--font-mono); font-size: 0.88rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1.5rem; opacity: 0.8; font-weight: 600; color: var(--text-secondary); }

.best-for { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.5rem; font-style: italic; }

/* ============================================================
   RESPONSIVE OVERRIDES
   ============================================================ */

@media (max-width: 900px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .features { grid-template-columns: 1fr; }
    .main-container { padding: 0 1rem; }
    .container { padding: 2rem 1.5rem; }
    .docs-container { padding: 0 1rem; }
    .endpoint-card { padding: 1.5rem; }
}

@media (max-width: 768px) {
    .hero h1, .header-banner h1 { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .use-cases-bar { flex-direction: column; text-align: center; padding: 1rem 1.5rem; }
    .origin-note { margin: 0 1rem 2rem; padding: 1.25rem 1.5rem; }
    .pricing-card { flex: 1 1 100%; }
    .code-example { padding: 2rem 1rem; }

    .key-box { flex-direction: column; gap: 0.75rem; text-align: center; word-break: break-all; }
    .key-box button { width: 100%; }
    .code-block { padding: 1rem; font-size: 0.78rem; }
    .card { padding: 1.5rem; }
    .stat-val { font-size: 2rem; }
    select { width: 100%; margin-top: 0.5rem; }

    .hp-page-hero { padding: 3rem 1.25rem 2rem; }
    .hp-page-hero h1 { font-size: 2rem; }
    .hp-page-hero p { font-size: 0.95rem; }

    .toc-grid { grid-template-columns: repeat(2, 1fr); }
    .param-table { font-size: 0.8rem; }
    .param-table th, .param-table td { padding: 0.5rem 0.4rem; }
    .endpoint-card { padding: 1.25rem; }
    .docs-container { padding: 0 0.75rem; }
    .pricing-card.popular { transform: scale(1); }
    .endpoint-tabs { flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .hp-page-hero h1 { font-size: 1.7rem; }

    .param-table th, .param-table td { padding: 0.4rem 0.3rem; font-size: 0.75rem; }
    .param-table code { font-size: 0.7em; word-break: break-all; }
    .endpoint-card { padding: 1rem; }
    .container { padding: 1.5rem 1rem; }
    .code-block { padding: 0.75rem; font-size: 0.72rem; }
}
