:root {
    --bg-primary: #08080d;
    --bg-secondary: #0e0e16;
    --bg-card: #13131f;
    --bg-card-hover: #191930;
    --accent: #a78bfa;
    --accent-secondary: #7c3aed;
    --accent-dim: rgba(167, 139, 250, 0.12);
    --accent-glow: 0 0 25px rgba(167, 139, 250, 0.3);
    --accent-glow-strong: 0 0 40px rgba(167, 139, 250, 0.4), 0 0 80px rgba(124, 58, 237, 0.15);
    --text-primary: #e8e8f0;
    --text-secondary: #9494b8;
    --text-muted: #5a5a78;
    --border: #1e1e30;
    --border-hover: #2e2e48;
    --danger: #f87171;
    --success: #34d399;
    --warning: #fbbf24;
    --gradient: linear-gradient(135deg, #a78bfa, #7c3aed, #6d28d9);
    --gradient-subtle: linear-gradient(135deg, rgba(167, 139, 250, 0.15), rgba(124, 58, 237, 0.08));
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 14px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ── Background Effect ──────────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 40%, rgba(124, 58, 237, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(167, 139, 250, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(109, 40, 217, 0.03) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* ── Navigation ─────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0.8rem 2rem;
    background: rgba(8, 8, 13, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.nav-brand {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.nav-brand:hover {
    text-shadow: 0 0 16px rgba(167, 139, 250, 0.5);
}

.nav-brand span {
    color: var(--text-muted);
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    position: relative;
}

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

.nav-links .btn-nav {
    background: var(--accent);
    color: var(--bg-primary);
    font-weight: 600;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-sm);
}

.nav-links .btn-nav:hover {
    background: #b69dfc;
    color: var(--bg-primary);
    box-shadow: var(--accent-glow);
    transform: translateY(-1px);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    z-index: 1;
}

.hero-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -55%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -55%) scale(1.15); }
}

.hero-badge {
    background: var(--accent-dim);
    color: var(--accent);
    padding: 0.45rem 1.2rem;
    border-radius: 24px;
    font-size: 0.78rem;
    font-family: var(--font-mono);
    font-weight: 500;
    margin-bottom: 1.8rem;
    border: 1px solid rgba(167, 139, 250, 0.15);
    animation: fadeInUp 0.6s ease-out;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.6s ease-out 0.2s both;
    line-height: 1.7;
}

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

/* ── Search Box ─────────────────────────────────────────── */
.search-container {
    width: 100%;
    max-width: 540px;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: var(--accent-glow);
}

.search-icon {
    padding-left: 1.1rem;
    font-size: 1rem;
    opacity: 0.5;
    transition: var(--transition);
}

.search-box:focus-within .search-icon {
    opacity: 1;
}

.search-box input {
    flex: 1;
    padding: 1rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 1rem;
    outline: none;
    letter-spacing: 0.5px;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box button {
    padding: 1rem 1.5rem;
    background: var(--accent);
    border: none;
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
    position: relative;
    letter-spacing: 0.5px;
}

.search-box button:hover {
    background: #b69dfc;
}

.search-box button:active {
    transform: scale(0.97);
}

.search-box button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-loader {
    display: none;
}

.search-hint {
    margin-top: 0.6rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    opacity: 0.7;
}

/* ── Stats Bar ──────────────────────────────────────────── */
.stats-bar {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.stat-item {
    text-align: center;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-top: 0.25rem;
}

/* ── Results ────────────────────────────────────────────── */
.results-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    position: relative;
    z-index: 1;
}

.results-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: none;
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.results-card.active {
    display: block;
}

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

.results-header {
    padding: 1.2rem 1.5rem;
    background: var(--gradient-subtle);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-header h3 {
    font-size: 0.9rem;
    color: var(--accent);
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}

.results-time {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.results-body {
    padding: 1.5rem;
}

.result-group {
    margin-bottom: 1.3rem;
    animation: fadeInUp 0.3s ease-out both;
}

.result-group:last-child {
    margin-bottom: 0;
}

.result-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
    font-weight: 600;
}

.result-value {
    font-family: var(--font-mono);
    font-size: 0.93rem;
    color: var(--text-primary);
    line-height: 1.8;
}

.result-value .phone-tag {
    display: inline-block;
    background: var(--accent-dim);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    margin: 0.15rem 0.2rem;
    font-size: 0.85rem;
    border: 1px solid rgba(167, 139, 250, 0.15);
    transition: var(--transition-fast);
}

.result-value .phone-tag:hover {
    background: rgba(167, 139, 250, 0.2);
    border-color: rgba(167, 139, 250, 0.3);
}

.result-value .addr-block {
    display: block;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.result-value .addr-block:last-child {
    border-bottom: none;
}

.results-footer {
    padding: 0.8rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Not found */
.not-found {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.not-found .icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

/* Error */
.error-msg {
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.2);
    color: var(--danger);
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-align: center;
    display: none;
    animation: slideUp 0.3s ease;
}

.error-msg.active {
    display: block;
}

/* Loading */
.loading {
    text-align: center;
    padding: 2.5rem;
    display: none;
}

.loading.active {
    display: block;
}

.spinner {
    width: 38px;
    height: 38px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 1rem;
}

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

.loading p {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ── Features Section ───────────────────────────────────── */
.features {
    max-width: 920px;
    margin: 0 auto;
    padding: 4rem 2rem 5rem;
    position: relative;
    z-index: 1;
}

.features h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2.8rem;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 1.6rem;
    margin-bottom: 0.9rem;
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── CTA Section ────────────────────────────────────────── */
.cta-section {
    text-align: center;
    padding: 4rem 2rem 5rem;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.93rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
}

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

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
    position: relative;
    z-index: 1;
}

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

.footer a:hover {
    text-decoration: underline;
}

/* ── Docs Page ──────────────────────────────────────────── */
.docs-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    position: relative;
    z-index: 1;
}

.docs-page h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.docs-page .subtitle {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.docs-section {
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.4s ease-out both;
}

.docs-section h2 {
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.docs-section h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 1.2rem 0 0.5rem;
}

.endpoint-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.3rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.endpoint-card:hover {
    border-color: var(--border-hover);
}

.endpoint-method {
    display: inline-block;
    background: var(--accent-dim);
    color: var(--accent);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 0.5rem;
}

.endpoint-path {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-primary);
}

.endpoint-desc {
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

code {
    font-family: var(--font-mono);
}

pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.1rem;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    line-height: 1.65;
    color: var(--text-primary);
    margin: 0.8rem 0;
    transition: var(--transition);
}

pre:hover {
    border-color: var(--border-hover);
}

.param-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.8rem 0;
}

.param-table th,
.param-table td {
    text-align: left;
    padding: 0.65rem 0.8rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.param-table th {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.param-table code {
    background: var(--accent-dim);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--accent);
}

.param-table tr {
    transition: var(--transition-fast);
}

.param-table tbody tr:hover {
    background: rgba(167, 139, 250, 0.04);
}

/* ── Toast Notifications ────────────────────────────────── */
.toast-container {
    position: fixed;
    top: 5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1.2rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: auto;
    animation: toastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    max-width: 380px;
    overflow: hidden;
    position: relative;
}

.toast::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--accent);
    animation: toastTimer 4s linear forwards;
}

.toast.toast-exit {
    animation: toastOut 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.toast-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.2rem;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

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

.toast-success {
    border-color: rgba(52, 211, 153, 0.25);
}

.toast-success::after {
    background: var(--success);
}

.toast-error {
    border-color: rgba(248, 113, 113, 0.25);
}

.toast-error::after {
    background: var(--danger);
}

.toast-warning {
    border-color: rgba(251, 191, 36, 0.25);
}

.toast-warning::after {
    background: var(--warning);
}

.toast-info {
    border-color: rgba(167, 139, 250, 0.25);
}

.toast-info::after {
    background: var(--accent);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(80px) scale(0.95); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0) scale(1); }
    to { opacity: 0; transform: translateX(80px) scale(0.95); }
}

@keyframes toastTimer {
    from { width: 100%; }
    to { width: 0%; }
}

/* ── Floating Particles ────────────────────────────────── */
.particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ── Scroll Reveal ─────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Ripple Effect ─────────────────────────────────────── */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(167, 139, 250, 0.3);
    transform: scale(0);
    animation: rippleAnim 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleAnim {
    to { transform: scale(4); opacity: 0; }
}

/* ── Typewriter Cursor ─────────────────────────────────── */
.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--accent);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: cursorBlink 0.8s step-end infinite;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ── Shimmer on Hover ──────────────────────────────────── */
.feature-card .feature-icon {
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    animation: iconFloat 0.6s ease-in-out;
}

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

/* ── Mobile Menu ────────────────────────────────────────── */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--accent);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1.2rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(8, 8, 13, 0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        gap: 0.25rem;
    }

    .nav-links.open {
        display: flex;
    }

    .hero { padding: 5rem 1.2rem 3rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 0.95rem; margin-bottom: 2rem; }
    .hero-glow { width: 300px; height: 300px; }
    .hero-badge { font-size: 0.7rem; padding: 0.4rem 1rem; }

    .search-container { max-width: 100%; }
    .search-box input { font-size: 0.88rem; padding: 0.85rem 0.7rem; }
    .search-box button { padding: 0.85rem 1.1rem; font-size: 0.8rem; }

    .stats-bar { gap: 1.5rem; }
    .stat-value { font-size: 1.2rem; }
    .stat-label { font-size: 0.65rem; }

    .results-section { padding: 0 1.2rem 3rem; }
    .results-header { flex-direction: column; gap: 0.4rem; align-items: flex-start; }
    .results-body { padding: 1rem; }
    .result-value { font-size: 0.85rem; }

    .features { padding: 2rem 1.2rem; }
    .features h2 { font-size: 1.4rem; margin-bottom: 1.8rem; }
    .features-grid { grid-template-columns: 1fr; gap: 0.8rem; }
    .feature-card { padding: 1.2rem; }

    .cta-section { padding: 3rem 1.2rem; }
    .cta-section h2 { font-size: 1.4rem; }
    .cta-buttons { flex-direction: column; align-items: center; gap: 0.7rem; }
    .cta-buttons .btn { width: 100%; max-width: 300px; justify-content: center; }

    .docs-page { padding: 5rem 1.2rem 3rem; }
    .docs-page h1 { font-size: 1.6rem; }
    .endpoint-card { padding: 1rem; }
    pre { font-size: 0.76rem; padding: 0.8rem; }
    .param-table th, .param-table td { padding: 0.5rem 0.4rem; font-size: 0.75rem; }

    .footer { padding: 1.5rem 1rem; font-size: 0.72rem; }

    .toast-container { right: 0.8rem; left: 0.8rem; top: 4.5rem; }
    .toast { max-width: 100%; font-size: 0.78rem; padding: 0.75rem 1rem; }
}

@media (max-width: 380px) {
    .hero { padding: 4.5rem 0.8rem 2.5rem; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 0.88rem; }
    .hero-badge { font-size: 0.65rem; }

    .search-box { flex-direction: column; border-radius: var(--radius-sm); }
    .search-box input { padding: 0.85rem; text-align: center; }
    .search-box button { width: 100%; padding: 0.8rem; border-radius: 0; }
    .search-icon { display: none; }

    .stats-bar { gap: 1rem; }
    .stat-value { font-size: 1rem; }

    .features-grid { gap: 0.6rem; }
    .feature-card { padding: 1rem; }
    .feature-card h3 { font-size: 0.9rem; }
    .feature-card p { font-size: 0.78rem; }

    .results-section { padding: 0 0.8rem 2rem; }
    .docs-page { padding: 4.5rem 0.8rem 2rem; }
}
