/* ============================================
   TheOldAPI — ShuttleAI-style UI
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@500;600&family=JetBrains+Mono:wght@400;500;600&display=swap');

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

:root {
    --bg: #0a0a0a;
    --bg-card: #0a0a0a;
    --bg-card-hover: #111111;
    --border: #1a1a1a;
    --border-hover: #262626;
    --text: #fafafa;
    --text-secondary: #a1a1a1;
    --text-muted: #525252;
    --accent: #fafafa;
    --accent-secondary: #a1a1a1;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --font: 'Inter', -apple-system, sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --nav-height: 56px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    line-height: 1.5;
}

/* ---------- Subtle Background ---------- */
.bg-orbs {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 100% 80% at 50% -20%, #1a2c5a 0%, transparent 70%);
}

.bg-rays {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.ray {
    position: absolute;
    top: -5%;
    left: var(--ray-left, 50%);
    width: var(--ray-w, 2px);
    height: 40vh;
    background: linear-gradient(to bottom, rgba(200, 220, 255, var(--ray-opacity, 0.35)), rgba(200, 220, 255, 0));
    mix-blend-mode: screen;
    filter: blur(var(--ray-blur, 6px));
    transform-origin: top center;
    transform: translateX(-50%) rotate(var(--ray-rot, 0deg));
    animation: ray-sway var(--ray-dur, 8s) ease-in-out var(--ray-delay, 0s) infinite;
}

@keyframes ray-sway {

    0%,
    100% {
        opacity: 0.3;
        transform: translateX(-50%) rotate(var(--ray-rot, 0deg));
    }

    50% {
        opacity: 0.7;
        transform: translateX(-50%) rotate(calc(var(--ray-rot, 0deg) + 1deg));
    }
}

/* ---------- Navbar (ShuttleAI exact) ---------- */
.navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 16px 0;
    pointer-events: none;
}

.navbar {
    max-width: 768px;
    margin: 0 auto;
    height: 56px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(212, 212, 212, 0.05);
    background: rgba(64, 64, 64, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 0;
    pointer-events: all;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
    font-family: 'Poppins', var(--font);
    font-weight: 500;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.nav-logo:hover {
    opacity: 0.8;
}

.logo-img {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    object-fit: contain;
    display: block;
}

.footer-logo-img {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    object-fit: contain;
    vertical-align: -3px;
    margin-right: 5px;
}

/* Nav links — Dock-style container */
.nav-links {
    display: flex;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
    height: 58px;
    padding: 8px;
    gap: 8px;
    margin: 0 24px;
}

/* Each nav link — Dock item style */
.nav-link {
    text-decoration: none;
    color: #fff;
    padding: 8px 10px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: transform 0.25s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.15s;
    white-space: nowrap;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    will-change: transform;
}

/* Dock magnification: hovered item scales up, neighbors scale a bit */
.nav-link:hover {
    transform: scale(1.15);
    opacity: 1;
    background: transparent;
}

.nav-link.active {
    opacity: 1;
}

/* Sibling magnification via CSS — when one link is hovered, adjacent links scale slightly */
.nav-links:hover .nav-link {
    opacity: 0.7;
}

.nav-links:hover .nav-link:hover {
    opacity: 1;
    transform: scale(1.15);
}

.nav-links:hover .nav-link:hover+.nav-link,
.nav-links:has(.nav-link:hover) .nav-link:has(+ .nav-link:hover) {
    transform: scale(1.08);
    opacity: 0.85;
}

.nav-link::after {
    display: none;
}

.nav-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

/* Nav button styles — matching ShuttleAI exactly */
.btn-nav-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    height: 32px;
    border-radius: 6px;
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transition: background 0.15s;
}

.btn-nav-login:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-nav-signup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    height: 32px;
    border-radius: 6px;
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid rgba(196, 181, 253, 0.3);
    background: rgba(196, 181, 253, 0.1);
    color: #c4b5fd;
    transition: background 0.15s;
}

.btn-nav-signup:hover {
    background: rgba(196, 181, 253, 0.2);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---------- Mobile Hamburger + Menu (ShuttleAI style) ---------- */
.nav-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}

.nav-hamburger:hover {
    background: rgba(255, 255, 255, 0.12);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    padding: 12px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid var(--border);
    border-radius: 12px;
    pointer-events: all;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    display: block;
    padding: 12px 14px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.mobile-menu a:hover,
.mobile-menu a:active {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.mobile-menu-actions {
    display: flex;
    gap: 8px;
    padding: 8px 0 0;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}

.mobile-menu-login {
    flex: 1;
    text-align: center !important;
    padding: 10px 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.mobile-menu-signup {
    flex: 1;
    text-align: center !important;
    padding: 10px 14px !important;
    background: rgba(167, 139, 250, 0.15) !important;
    border: 1px solid rgba(167, 139, 250, 0.3) !important;
    color: #c4b5fd !important;
}

/* ---------- Bottom Tab Bar (glass, ShuttleAI style) ---------- */
.bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(12, 12, 12, 0.65);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
    justify-content: space-around;
    align-items: center;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.6rem;
    font-weight: 500;
    padding: 6px 0;
    flex: 1;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.tab-item svg {
    width: 20px;
    height: 20px;
    transition: color 0.2s;
}

.tab-item.tab-active {
    color: #c4b5fd;
}

.tab-item:active {
    color: rgba(255, 255, 255, 0.7);
}

/* ---------- Buttons (ShuttleAI-style) ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    text-decoration: none;
    background: rgba(38, 38, 38, 0.5);
    color: var(--text);
}

.btn:hover {
    background: rgba(38, 38, 38, 0.8);
    border-color: var(--border-hover);
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
    font-weight: 600;
}

.btn-primary:hover {
    background: #e5e5e5;
    border-color: #e5e5e5;
}

.btn-secondary {
    background: rgba(38, 38, 38, 0.5);
    color: var(--text);
    border: 1px solid var(--border-hover);
}

.btn-secondary:hover {
    background: rgba(38, 38, 38, 0.8);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: none;
}

.btn-ghost:hover {
    color: var(--text);
}

.btn-sm {
    padding: 5px 12px;
    font-size: 0.8rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    font-family: var(--font);
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.btn-link:hover {
    opacity: 0.7;
}

.btn-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    display: inline-flex;
    padding: 4px;
    border-radius: 4px;
}

.btn-icon:hover {
    color: var(--text);
}

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

/* ---------- Pages ---------- */
.page {
    display: none;
    position: relative;
    z-index: 1;
    padding-top: var(--nav-height);
    min-height: 100vh;
    overflow-x: hidden;
    opacity: 0;
}

.page-active {
    display: block;
    animation: pageIn 0.35s ease-out forwards;
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Hero (ShuttleAI-style: centered, big text, minimal) ---------- */
.hero {
    max-width: 700px;
    margin: 0 auto;
    padding: 120px 24px 60px;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 3.8rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -0.04em;
    color: var(--text);
}

.gradient-text {
    background: linear-gradient(to right, #fafafa, #737373);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* ---------- Model Showcase (ShuttleAI-style cards) ---------- */
.model-showcase {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 2rem;
}

.showcase-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    transition: all 0.2s;
    cursor: pointer;
}

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

.showcase-card-wide {
    grid-column: 1 / -1;
}

.showcase-card-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.showcase-text {
    flex: 1;
}

.showcase-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.showcase-tag {
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.tag-openai,
.tag-anthropic,
.tag-new {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.showcase-arrow {
    color: var(--text-muted);
    transition: all 0.2s;
    flex-shrink: 0;
}

.showcase-card:hover .showcase-arrow {
    color: var(--text);
    transform: translateX(3px);
}



.showcase-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.showcase-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
}

.showcase-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}



.feature-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.feature-metric {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.feature-metric-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.feature-learn {
    font-size: 0.78rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.feature-learn:hover {
    color: var(--text);
}

/* ---------- Section Headers ---------- */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---------- Features ---------- */
.features-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.2s;
    min-width: 0;
}

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

.feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.check-icon {
    flex-shrink: 0;
}

.feature-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
}

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

/* ---------- Models Page ---------- */
.models-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}

.models-header {
    margin-bottom: 1.5rem;
}

.models-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    flex-wrap: wrap;
}

.search-wrapper {
    position: relative;
    flex: 1;
    min-width: 180px;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.85rem;
    transition: border-color 0.15s;
    outline: none;
}

.search-input:focus {
    border-color: var(--text-muted);
}

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

.filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.filter-select {
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    min-width: 140px;
}

.filter-select:focus {
    border-color: var(--text-muted);
}

.filter-select option {
    background: var(--bg);
    color: var(--text);
}

.model-count-display {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--mono);
    white-space: nowrap;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 8px;
}

.model-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.15s;
    min-width: 0;
}

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

.model-name {
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--mono);
    word-break: break-all;
    line-height: 1.4;
    color: var(--text);
}

.model-provider {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.provider-P3 {
    background: rgba(168, 85, 247, 0.1);
    color: #c084fc;
}

.provider-P15 {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
}

.provider-P21 {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
}

.provider-P27 {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
}

.provider-P29 {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

.provider-P38 {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
}

.provider-P39 {
    background: rgba(236, 72, 153, 0.1);
    color: #f472b6;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.no-results p {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.loading-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.spinner {
    width: 24px;
    height: 24px;
    margin: 0 auto 10px;
    border: 2px solid var(--border);
    border-top-color: var(--text-secondary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* ---------- Pricing (ShuttleAI-style) ---------- */
.pricing-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
    min-width: 0;
    position: relative;
    overflow: visible;
}

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

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

.pricing-popular {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text);
    color: var(--bg);
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    z-index: 1;
}

.pricing-tag {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.pricing-amount {
    margin: 10px 0 14px;
}

.price-currency {
    font-size: 1.1rem;
    font-weight: 700;
}

.price-value {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.price-period {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.pricing-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.pricing-features {
    list-style: none;
    flex: 1;
    margin-bottom: 20px;
}

.pricing-features li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 7px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.check {
    color: #22c55e;
    font-weight: 700;
}

.cross {
    color: var(--text-muted);
}

.pricing-features li.muted {
    color: var(--text-muted);
}

.pricing-faq {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-top: 2rem;
}

.pricing-faq h3 {
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.faq-item h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.faq-item p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- Auth ---------- */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--nav-height));
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.auth-header h2 {
    font-size: 1.15rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.auth-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.form-input {
    width: 100%;
    padding: 9px 12px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.85rem;
    transition: border-color 0.15s;
    outline: none;
}

.form-input:focus {
    border-color: var(--text-muted);
}

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

.auth-error {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    margin-bottom: 14px;
}

.auth-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* ---------- Dashboard ---------- */
.dashboard-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 24px 80px;
    box-sizing: border-box;
    overflow-x: hidden;
    width: 100%;
}

.dashboard-header {
    margin-bottom: 1.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.dash-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    overflow: hidden;
    min-width: 0;
}

.dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.dash-card-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
}

.api-key-display {
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.api-key-display code {
    flex: 1;
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
    min-width: 0;
}

.plan-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.plan-badge {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.plan-badge-active {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.plan-price {
    font-size: 1.1rem;
    font-weight: 700;
}

.plan-detail {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.key-locked {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px;
    text-align: center;
    border: 1px dashed var(--border-hover);
    border-radius: 6px;
}

.key-locked p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.quickstart-code pre {
    background: rgba(255, 255, 255, 0.02);
    padding: 16px;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--text-secondary);
    overflow-x: auto;
    word-break: break-all;
    white-space: pre-wrap;
}

.endpoints-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.endpoint-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
}

.method {
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}

.method.get {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.method.post {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
}

.endpoint-item code {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Dashboard Membership Card ---------- */
.dash-card-plan {
    grid-column: 1 / -1;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.04) 0%, var(--bg-card) 40%, rgba(34, 197, 94, 0.03) 100%);
    min-width: 0;
    overflow: hidden;
}

.plan-state {
    margin-top: 4px;
}

.plan-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.plan-col {
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.2s, transform 0.2s;
}

.plan-col:hover {
    transform: translateY(-2px);
}

.plan-col-current {
    border-color: rgba(255, 255, 255, 0.06);
    opacity: 0.7;
}

.plan-col-upgrade {
    border-color: rgba(34, 197, 94, 0.25);
    background: rgba(34, 197, 94, 0.04);
    position: relative;
    overflow: hidden;
}

.plan-col-upgrade::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: 10px;
    right: -30px;
    background: #22c55e;
    color: #000;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 2px 36px;
    transform: rotate(45deg);
    letter-spacing: 0.05em;
}

.plan-col-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.plan-col-tier {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.plan-col-price {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.plan-col-price span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
}

.feature-locked {
    color: var(--text-muted);
}

.feature-included {
    color: var(--text-primary);
}

.plan-hint {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.plan-hint strong {
    color: var(--accent);
}

/* Pro status grid */
.pro-status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.pro-status-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pro-status-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
}

.pro-status-value {
    font-size: 0.92rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pro-status-active {
    color: #22c55e;
}

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

.pro-feature-tag {
    background: rgba(34, 197, 94, 0.08);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
}

/* ---------- Dashboard Usage Card ---------- */
.usage-section {
    padding: 4px 0;
}

.usage-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.usage-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.usage-numbers {
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
}

.usage-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.usage-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #22c55e, #22c55e);
    transition: width 0.6s ease, background 0.4s ease;
    min-width: 0;
}

.usage-bar-fill.usage-warn {
    background: linear-gradient(90deg, #22c55e, #f59e0b);
}

.usage-bar-fill.usage-danger {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.usage-bar-req {
    background: linear-gradient(90deg, #6366f1, #818cf8);
}

.usage-bar-req.usage-warn {
    background: linear-gradient(90deg, #6366f1, #f59e0b);
}

.usage-bar-req.usage-danger {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

/* Key regenerate button */
.btn-danger {
    color: #f59e0b !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
}

.btn-danger:hover {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #fbbf24 !important;
}



/* ---------- Code syntax ---------- */
.code-cmd {
    color: #22c55e;
}

.code-url {
    color: #60a5fa;
}

.code-str {
    color: #fbbf24;
}

.code-kw {
    color: #c084fc;
}

/* ---------- Discord CTA (ShuttleAI-style) ---------- */
.discord-cta-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.discord-cta {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.discord-cta-content {
    flex: 1;
}

.discord-cta-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.discord-cta-content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 400px;
}

.discord-cta-btn {
    display: inline-flex !important;
    width: auto !important;
}

.discord-cta-icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.discord-cta-icon svg {
    filter: drop-shadow(0 0 20px rgba(88, 101, 242, 0.4));
}

/* ---------- Brand Glow ---------- */
.brand-glow-section {
    position: relative;
    text-align: center;
    overflow: visible;
    z-index: 1;
    padding: 40px 0 0;
}

.brand-glow-blur {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -30%);
    width: min(100vw, 800px);
    height: 400px;
    background:
        radial-gradient(ellipse at 25% 40%, rgba(236, 72, 153, 0.6), transparent 55%),
        radial-gradient(ellipse at 50% 50%, rgba(234, 88, 12, 0.4), transparent 50%),
        radial-gradient(ellipse at 75% 40%, rgba(167, 139, 250, 0.5), transparent 55%);
    filter: blur(50px);
    pointer-events: none;
}

.brand-glow-text {
    position: relative;
    font-family: 'Poppins', var(--font);
    font-size: clamp(3.5rem, 16vw, 10rem);
    font-weight: 700;
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
    user-select: none;
    line-height: 1;
    letter-spacing: -0.02em;
}

/* ---------- Footer (ShuttleAI columned) ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 48px 24px;
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.footer-left {
    flex-shrink: 0;
}

.footer-brand-logo {
    margin-bottom: 16px;
}

.footer-copy {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-socials {
    display: flex;
    gap: 4px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.15s;
}

.footer-socials a:hover {
    color: var(--text);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.03);
}

.footer-columns {
    display: flex;
    gap: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col h4 {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

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

/* ---------- Documentation ---------- */
.docs-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}

.docs-header {
    margin-bottom: 1.5rem;
}

.docs-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: start;
}

.docs-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 20px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.docs-sidebar h4 {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 14px 0 6px;
    font-weight: 600;
}

.docs-sidebar h4:first-child {
    margin-top: 0;
}

.docs-nav-link {
    display: block;
    padding: 5px 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.1s;
}

.docs-nav-link:hover,
.docs-nav-link.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.docs-content {
    min-width: 0;
}

.docs-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.docs-section:last-child {
    border-bottom: none;
}

.docs-section h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.docs-section h3 {
    font-size: 0.92rem;
    font-weight: 600;
    margin: 16px 0 8px;
    color: var(--text-secondary);
}

.docs-section p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 10px;
}

.docs-section code {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    padding: 2px 5px;
    border-radius: 3px;
    font-family: var(--mono);
    font-size: 0.82em;
}

.docs-code {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow-x: auto;
    margin: 10px 0 14px;
}

.docs-code pre {
    padding: 14px 16px;
    margin: 0;
    font-family: var(--mono);
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.docs-code code {
    background: none;
    padding: 0;
    color: inherit;
}

.docs-endpoint {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 14px 18px;
    margin: 10px 0;
}

.docs-endpoint-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.docs-endpoint-header code {
    font-size: 0.85rem;
    background: none;
    padding: 0;
    color: var(--text);
    font-family: var(--mono);
}

.docs-endpoint p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 14px;
    font-size: 0.85rem;
}

.docs-table th,
.docs-table td {
    padding: 8px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.docs-table th {
    font-weight: 600;
    color: var(--text);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.docs-table td {
    color: var(--text-secondary);
}

/* ---------- Legal ---------- */
.legal-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}

.legal-updated {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.legal-content h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 1.5rem 0 0.6rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 10px;
}

.legal-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
}

.legal-content li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 5px 0 5px 18px;
    position: relative;
    line-height: 1.55;
}

.legal-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text-muted);
}

/* ============================================
   21st.dev-inspired UI Components
   ============================================ */

/* ---------- 1. Animated Gradient Border (feature cards) ---------- */
@property --gradient-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--gradient-angle),
            transparent 25%,
            rgba(167, 139, 250, 0.3) 30%,
            rgba(139, 92, 246, 0.5) 35%,
            rgba(236, 72, 153, 0.3) 40%,
            transparent 45%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: gradient-rotate 3s linear infinite;
}

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

@keyframes gradient-rotate {
    to {
        --gradient-angle: 360deg;
    }
}

/* ---------- 2. Shimmer Text (hero gradient) ---------- */
.gradient-text {
    background: linear-gradient(90deg,
            #c4b5fd 0%,
            #f0abfc 25%,
            #67e8f9 50%,
            #f0abfc 75%,
            #c4b5fd 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer-text 4s ease-in-out infinite;
}

@keyframes shimmer-text {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

/* ---------- 3. Glow Button (primary CTA) ---------- */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(236, 72, 153, 0.4), rgba(59, 130, 246, 0.4));
    filter: blur(12px);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
    opacity: 1;
}

/* ---------- 4. Spotlight Card Hover ---------- */
.feature-card,
.pricing-card,
.showcase-card {
    --spotlight-x: 50%;
    --spotlight-y: 50%;
    position: relative;
}

.feature-card::after,
.pricing-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(350px circle at var(--spotlight-x) var(--spotlight-y),
            rgba(167, 139, 250, 0.06),
            transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-card:hover::after,
.pricing-card:hover::after {
    opacity: 1;
}

/* ---------- 5. Marquee Ticker (model providers) ---------- */
.marquee-section {
    padding: 30px 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 40px;
    animation: marquee-scroll 30s linear infinite;
    width: max-content;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: color 0.3s;
}

.marquee-item:hover {
    color: rgba(255, 255, 255, 0.7);
}

.marquee-item svg {
    width: 20px;
    height: 20px;
    opacity: 0.5;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ---------- 6. Stats Counter Section ---------- */
.stats-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px 48px;
    padding: 40px 24px;
    max-width: 700px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, #fff 40%, rgba(167, 139, 250, 0.8));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    min-width: 4ch;
    display: inline-block;
    text-align: center;
    will-change: contents;
    contain: layout style;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

/* ---------- 7. Pill Badges ---------- */
.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 100px;
    border: 1px solid rgba(167, 139, 250, 0.2);
    background: rgba(167, 139, 250, 0.06);
    color: #c4b5fd;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-bottom: 20px;
    animation: pill-glow 3s ease-in-out infinite;
}

.pill-badge svg {
    width: 14px;
    height: 14px;
}

@keyframes pill-glow {

    0%,
    100% {
        border-color: rgba(167, 139, 250, 0.2);
        box-shadow: 0 0 8px rgba(167, 139, 250, 0);
    }

    50% {
        border-color: rgba(167, 139, 250, 0.4);
        box-shadow: 0 0 16px rgba(167, 139, 250, 0.1);
    }
}

/* ---------- 8. Animated Underline Links ---------- */
.animated-link {
    position: relative;
    text-decoration: none;
    color: #c4b5fd;
}

.animated-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #c4b5fd, #f0abfc);
    transition: width 0.3s ease;
}

.animated-link:hover::after {
    width: 100%;
}

/* ---------- 9. Trust Badges ---------- */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 24px 0 0;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid rgba(34, 197, 94, 0.15);
    background: rgba(34, 197, 94, 0.04);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
    font-weight: 500;
}

/* ---------- 10. Cost Comparison ---------- */
.cost-comparison {
    max-width: 700px;
    margin: 48px auto 0;
    padding: 0 24px;
}

.cost-comparison h3 {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.comparison-item {
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.comparison-them {
    background: rgba(239, 68, 68, 0.04);
    border-color: rgba(239, 68, 68, 0.15);
}

.comparison-us {
    background: rgba(34, 197, 94, 0.04);
    border-color: rgba(34, 197, 94, 0.2);
    position: relative;
}

.comparison-us::before {
    content: 'Recommended';
    position: absolute;
    top: -10px;
    right: 16px;
    padding: 2px 10px;
    border-radius: 100px;
    background: #22c55e;
    color: #000;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    margin-bottom: 8px;
}

.comparison-price {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.comparison-them .comparison-price {
    color: rgba(239, 68, 68, 0.8);
    text-decoration: line-through;
    text-decoration-color: rgba(239, 68, 68, 0.3);
}

.comparison-us .comparison-price {
    color: #22c55e;
}

.comparison-price span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}

.comparison-item ul {
    list-style: none;
    padding: 0;
}

.comparison-item ul li {
    padding: 4px 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.comparison-them ul li::before {
    content: '✗ ';
    color: rgba(239, 68, 68, 0.5);
}

.comparison-us ul li::before {
    content: '✓ ';
    color: #22c55e;
}

/* ---------- 11. Dashboard Status Bar ---------- */
.dash-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
    margin-bottom: 24px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.status-online {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        box-shadow: 0 0 4px rgba(34, 197, 94, 0.3);
    }

    50% {
        box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
    }
}

.dash-mini-stats {
    display: flex;
    gap: 20px;
}

.mini-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.mini-stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.mini-stat-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

/* ==============================================
   RESPONSIVE — MUST BE LAST
   ============================================== */

/* Small desktop / tablet: hamburger in top navbar */
@media (max-width: 900px) and (min-width: 601px) {

    .nav-links,
    .nav-actions {
        display: none !important;
    }

    .nav-hamburger {
        display: flex !important;
    }

    .page {
        padding-top: 80px !important;
    }
}

/* Phone: bottom tab bar only */
@media (max-width: 600px) {
    .navbar-wrapper {
        display: none !important;
    }

    .bottom-bar {
        display: flex !important;
    }

    .page {
        padding-top: 0 !important;
        padding-bottom: 75px;
    }

    .site-footer {
        padding-bottom: 85px;
    }

    .hero {
        padding: 32px 20px 40px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-subtitle {
        font-size: 0.92rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .showcase-grid {
        grid-template-columns: 1fr !important;
    }

    .showcase-card-wide {
        grid-column: auto;
    }

    .model-showcase,
    .features-section,
    .pricing-container,
    .models-container,
    .dashboard-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .features-grid,
    .pricing-cards,
    .dashboard-grid,
    .faq-grid,
    .comparison-grid {
        grid-template-columns: 1fr !important;
    }

    .models-grid {
        grid-template-columns: 1fr !important;
    }

    .section-title {
        font-size: clamp(1.3rem, 5vw, 1.7rem);
    }

    .feature-card {
        padding: 20px;
    }

    .pricing-card {
        padding: 24px 20px;
        overflow: visible;
    }

    .pricing-popular {
        top: -10px;
    }

    .price-value {
        font-size: 2.2rem;
    }

    .auth-card {
        margin: 0 8px;
        padding: 28px 20px;
    }

    .dash-card {
        padding: 20px;
    }

    .plan-comparison {
        grid-template-columns: 1fr;
    }

    .plan-col-upgrade::before {
        font-size: 0.5rem;
        top: 8px;
        right: -32px;
    }

    .pro-status-grid {
        grid-template-columns: 1fr 1fr;
    }

    .docs-grid {
        grid-template-columns: 1fr !important;
    }

    .docs-sidebar {
        display: none !important;
    }

    .docs-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .legal-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .discord-cta {
        padding: 20px 16px;
        gap: 16px;
    }

    .discord-cta-icon svg {
        width: 50px;
        height: 50px;
    }

    .discord-cta-content p {
        max-width: none;
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
    }

    .footer-columns {
        gap: 32px;
        flex-wrap: wrap;
    }

    .models-toolbar {
        flex-direction: column;
    }

    .filter-select {
        width: 100%;
    }

    .search-wrapper {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    .endpoint-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    .api-key-display {
        flex-direction: column;
    }

    .api-key-display code {
        font-size: 0.7rem;
        word-break: break-all;
    }

    .quickstart-code pre {
        font-size: 0.68rem;
    }

    .docs-code pre {
        font-size: 0.72rem;
        padding: 10px;
    }

    .docs-table th,
    .docs-table td {
        padding: 6px 8px;
        font-size: 0.78rem;
    }

    .pro-status-grid {
        grid-template-columns: 1fr;
    }

    .plan-col-price {
        font-size: 1.4rem;
    }

    .plan-col-tier {
        font-size: 1.1rem;
    }
}

/* ========== Get Your Key Section ========== */
.get-key-section {
    max-width: 520px;
    margin: 2.5rem auto 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(12px);
}

.key-auth-box {
    margin-top: 0.5rem;
}

.key-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.key-input:focus {
    border-color: var(--primary, #6366f1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.key-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.key-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 10px;
    overflow: hidden;
}

.key-display code {
    flex: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #22c55e;
    word-break: break-all;
    user-select: all;
}

.key-copy-btn {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: all 0.2s;
}

.key-copy-btn:hover {
    background: rgba(34, 197, 94, 0.25);
}