/*
Theme Name: OpenRouter
Theme URI: https://github.com/openrouter/openrouter-theme
Author: OpenRouter
Author URI: https://openrouter.ai
Description: OpenRouter - The Unified Interface For LLMs, a modern WordPress theme inspired by OpenRouter's sleek design.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: openrouter
Tags: blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================
   CSS Variables
   ============================================ */
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;
  
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;
  
  --indigo-50: #eef2ff;
  --indigo-100: #e0e7ff;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;
  --indigo-800: #3730a3;
  
  --white: #ffffff;
  --background: #fafbfd;
  
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-600: #f97316;
  --orange-700: #ea580c;
  
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-700: #d97706;
  
  --violet-500: #8b5cf6;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--slate-800);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   Typography
   ============================================ */
.font-display {
  font-family: var(--font-display);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--slate-900);
}

/* ============================================
   Layout
   ============================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.main-content {
  flex: 1;
}

/* ============================================
   Selection
   ============================================ */
::selection {
  background-color: var(--indigo-100);
  color: var(--indigo-800);
}

/* ============================================
   Header / Navbar
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-100);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 640px) {
  .header-inner {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .header-inner {
    padding: 0 2rem;
  }
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease;
}

.site-logo:hover {
  transform: scale(1.02);
}

.logo-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--slate-900);
  border-radius: 8px;
}

.logo-icon svg {
  width: 16px;
  height: 16px;
  color: var(--white);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.025em;
  color: var(--slate-900);
}

.header-search {
  display: none;
  position: relative;
}

@media (min-width: 640px) {
  .header-search {
    display: block;
  }
}

.search-input {
  padding: 0.375rem 0.75rem 0.375rem 2.25rem;
  width: 208px;
  background-color: var(--slate-50);
  border: 1px solid rgba(203, 213, 225, 0.6);
  border-radius: 9999px;
  font-size: 0.75rem;
  color: var(--slate-600);
  transition: all 0.2s ease;
}

.search-input:hover {
  background-color: rgba(241, 245, 249, 0.75);
}

.search-input:focus {
  outline: none;
  background-color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--slate-400);
  pointer-events: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .header-right {
    gap: 0.75rem;
  }
}

.main-nav {
  display: none;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 0.375rem;
  }
}

.nav-link {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-600);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--slate-900);
  background-color: var(--slate-50);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background-color: var(--indigo-600);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  box-shadow: 0 1px 2px rgba(79, 70, 229, 0.1);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--indigo-700);
  color: var(--white);
  box-shadow: 0 4px 6px rgba(79, 70, 229, 0.25);
}

.btn-secondary {
  display: none;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background-color: var(--white);
  color: var(--slate-700);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--slate-200);
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: var(--slate-50);
}

@media (min-width: 640px) {
  .btn-secondary {
    display: inline-flex;
  }
}

.btn-secondary svg {
  width: 16px;
  height: 16px;
  color: var(--slate-400);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 1rem 4rem;
  text-align: center;
}

@media (min-width: 640px) {
  .hero-section {
    padding: 5rem 1.5rem 4rem;
  }
}

@media (min-width: 1024px) {
  .hero-section {
    padding: 5rem 2rem 4rem;
  }
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--slate-900);
  line-height: 1;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-subtitle {
  font-size: 0.875rem;
  color: var(--slate-500);
  font-weight: 500;
  margin-bottom: 2.5rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.01em;
}

@media (min-width: 640px) {
  .hero-subtitle {
    font-size: 1rem;
  }
}

.underline-dotted {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 6px;
  text-decoration-color: var(--primary);
  text-decoration-thickness: 1.5px;
  color: var(--indigo-600);
  font-weight: 600;
  cursor: pointer;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.hero-btn-primary {
  padding: 0.75rem 1.5rem;
  background-color: var(--indigo-600);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  box-shadow: 0 4px 6px rgba(79, 70, 229, 0.25);
  transition: all 0.2s ease;
}

.hero-btn-primary:hover {
  background-color: var(--indigo-700);
  color: var(--white);
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--white);
  color: var(--slate-700);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--slate-200);
  border-radius: 9999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.hero-btn-secondary:hover {
  background-color: var(--slate-50);
  color: var(--slate-700);
}

.hero-btn-secondary svg {
  width: 16px;
  height: 16px;
  color: var(--slate-400);
}

/* ============================================
   Metrics Section
   ============================================ */
.metrics-section {
  max-width: 1024px;
  margin: 0 auto 5rem;
  padding: 2.5rem 1rem;
  border-top: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
  background: rgba(255, 255, 255, 0.4);
  border-radius: 1.5rem;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

@media (min-width: 640px) {
  .metrics-section {
    padding: 2.5rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .metrics-section {
    padding: 2.5rem 2rem;
  }
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric-item {
  padding: 0 0.5rem;
}

.metric-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  .metric-value {
    font-size: 2.25rem;
  }
}

.metric-value.highlight {
  color: var(--indigo-600);
}

.metric-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.1em;
  color: var(--slate-400);
  font-weight: 700;
  margin-top: 0.5rem;
}

@media (min-width: 640px) {
  .metric-label {
    font-size: 0.625rem;
  }
}

/* ============================================
   Features Bento Grid
   ============================================ */
.features-section {
  max-width: 1280px;
  margin: 0 auto 6rem;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .features-section {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .features-section {
    padding: 0 2rem;
  }
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background-color: var(--white);
  border: 1px solid rgba(241, 245, 249, 0.8);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

@media (min-width: 1024px) {
  .feature-card {
    padding: 1.5rem 2rem;
  }
}

.feature-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: rgba(203, 213, 225, 0.5);
}

.feature-graphic {
  width: 100%;
  aspect-ratio: 2 / 1;
  background-color: rgba(248, 250, 252, 0.8);
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--slate-100);
}

@media (min-width: 1024px) {
  .feature-graphic {
    padding: 1rem;
  }
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.625rem;
}

@media (min-width: 1024px) {
  .feature-title {
    font-size: 1.25rem;
  }
}

.feature-desc {
  font-size: 0.75rem;
  color: var(--slate-500);
  line-height: 1.625;
  margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
  .feature-desc {
    font-size: 0.875rem;
  }
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--indigo-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  transition: color 0.2s ease;
}

.feature-link:hover {
  color: var(--indigo-800);
}

/* ============================================
   Model Logos Grid (in Feature Card)
   ============================================ */
.model-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  max-width: 256px;
  width: 100%;
  margin: 0 auto;
  justify-items: center;
}

@media (min-width: 640px) {
  .model-logos {
    gap: 0.25rem;
  }
}

@media (min-width: 1024px) {
  .model-logos {
    gap: 0.625rem;
  }
}

.model-logo-item {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

@media (min-width: 640px) {
  .model-logo-item {
    width: 40px;
    height: 40px;
  }
}

@media (min-width: 1024px) {
  .model-logo-item {
    width: 32px;
    height: 32px;
  }
}

@media (min-width: 1280px) {
  .model-logo-item {
    width: 40px;
    height: 40px;
  }
}

.model-logo-item:hover {
  transform: scale(1.1);
}

.model-logo-item svg {
  width: 18px;
  height: 18px;
}

@media (min-width: 640px) {
  .model-logo-item svg {
    width: 20px;
    height: 20px;
  }
}

@media (min-width: 1024px) {
  .model-logo-item svg {
    width: 18px;
    height: 18px;
  }
}

/* ============================================
   Availability Diagram
   ============================================ */
.availability-diagram {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.availability-pill {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background-color: var(--white);
  border: 1px solid rgba(203, 213, 225, 0.8);
  padding: 0.375rem 0.625rem;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  margin-bottom: 0.875rem;
  position: relative;
  z-index: 10;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: var(--emerald-500);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.availability-text {
  font-size: 0.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--slate-700);
  font-weight: 700;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .availability-text {
    font-size: 0.5625rem;
    max-width: none;
  }
}

.diagram-endpoints {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 256px;
  z-index: 10;
  padding: 0 0.5rem;
}

.endpoint {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--white);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(203, 213, 225, 0.8);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.endpoint-letter {
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.5rem;
}

.endpoint.orange {
  background-color: var(--orange-50);
  border-color: var(--orange-100);
  color: var(--orange-600);
}

.endpoint.dark {
  background-color: var(--slate-950);
  border-color: var(--slate-800);
  color: var(--emerald-400);
}

.endpoint.center {
  background-color: var(--indigo-50);
  border-color: var(--indigo-100);
  font-size: 0.5625rem;
}

.diagram-lines {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.diagram-lines svg {
  width: 75%;
  height: 66.67%;
  color: var(--slate-200);
}

/* ============================================
   Performance Chart
   ============================================ */
.performance-chart {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.5rem;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.5625rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--slate-400);
  font-weight: 700;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
}

.legend-dot.throughput {
  background-color: var(--emerald-500);
}

.legend-dot.latency {
  background-color: var(--violet-500);
}

.chart-svg {
  width: 100%;
  height: 80px;
  margin: 0.25rem 0;
}

.chart-time-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--slate-400);
}

/* ============================================
   Security Icons
   ============================================ */
.security-icons {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.9);
}

@media (min-width: 640px) {
  .security-icons {
    transform: scale(1);
  }
}

.security-icon-float {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background-color: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  animation: bounce 4s infinite;
}

.security-icon-float:nth-child(1) {
  top: -4px;
  left: -12px;
  animation-duration: 4s;
}

.security-icon-float:nth-child(2) {
  top: -4px;
  right: -12px;
  animation-duration: 5s;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.security-icon-main {
  width: 64px;
  height: 64px;
  color: rgba(79, 70, 229, 0.8);
}

.security-icon-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.security-icon-inner svg {
  width: 24px;
  height: 24px;
  color: var(--slate-500);
  opacity: 0.8;
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--slate-100);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
}

.section-title h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s ease;
}

.section-title h2:hover {
  color: var(--indigo-600);
}

.section-title svg {
  width: 20px;
  height: 20px;
  color: var(--slate-400);
  transition: color 0.2s ease;
}

.section-title h2:hover + svg,
.section-title:hover svg {
  color: var(--indigo-600);
}

.section-subtitle {
  font-size: 0.75rem;
  color: var(--slate-400);
  margin-top: 0.25rem;
  font-weight: 500;
}

.section-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--slate-500);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  transition: color 0.2s ease;
}

.section-link:hover {
  color: var(--indigo-600);
}

/* ============================================
   Featured Models Section
   ============================================ */
.models-section {
  max-width: 1280px;
  margin: 0 auto 6rem;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .models-section {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .models-section {
    padding: 0 2rem;
  }
}

.models-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .models-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.model-card {
  display: block;
  height: 100%;
}

.model-card-inner {
  height: 100%;
  color: var(--slate-800);
  border-radius: 0.75rem;
  background-color: var(--white);
  border: 1px solid var(--slate-100);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.model-card-inner:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.model-card-content {
  padding: 1.5rem;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
}

.model-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.model-info {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.model-logo {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--slate-100);
  background-color: var(--slate-50);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.model-card-inner:hover .model-logo {
  transform: scale(1.1) rotate(12deg);
}

.model-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.model-name-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.model-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.model-name h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.model-badge {
  background-color: rgba(15, 23, 42, 0.1);
  color: var(--slate-800);
  padding: 0.125rem 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 4px;
}

.model-provider {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin-top: 0.125rem;
}

.model-stats {
  padding-top: 1.25rem;
  border-top: 1px solid var(--slate-100);
}

.model-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.model-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.model-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--slate-500);
  margin-bottom: 0.125rem;
  font-family: var(--font-sans);
}

.model-stat-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--slate-800);
}

.model-stat-value.right {
  text-align: right;
}

.trend-badge {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  background-color: var(--slate-50);
  border: 1px solid var(--slate-100);
  color: var(--slate-500);
}

.trend-badge.up {
  color: var(--emerald-500);
  background-color: var(--emerald-50);
  border-color: var(--emerald-100);
}

.trend-badge.down {
  color: var(--rose-500);
  background-color: var(--rose-50);
  border-color: var(--rose-100);
}

/* ============================================
   Featured Agents Section
   ============================================ */
.agents-section {
  max-width: 1280px;
  margin: 0 auto 6rem;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .agents-section {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .agents-section {
    padding: 0 2rem;
  }
}

.agents-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .agents-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.agent-card {
  background-color: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.agent-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: rgba(203, 213, 225, 0.6);
}

.agent-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.agent-preview.replit {
  background-color: #0f111a;
}

.agent-preview.hermes {
  background-color: #030712;
}

.agent-preview.kilo {
  background-color: #090b0e;
}

.agent-preview-content {
  width: 100%;
  height: 100%;
  background-color: rgba(30, 34, 53, 0.4);
  border: 1px solid rgba(30, 34, 53, 0.8);
  border-radius: 8px;
  padding: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.5625rem;
  color: var(--slate-300);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  user-select: none;
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  border-bottom: 1px solid rgba(30, 34, 53, 0.8);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

.window-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
}

.window-dot.red { background-color: #ef4444; }
.window-dot.yellow { background-color: #eab308; }
.window-dot.green { background-color: #22c55e; }

.window-title {
  font-size: 0.5rem;
  color: var(--slate-500);
  padding-left: 0.25rem;
  font-family: var(--font-sans);
}

.window-badge {
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--indigo-400);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.agent-preview-text {
  line-height: 1.4;
}

.agent-preview-text .highlight {
  color: var(--emerald-400);
  font-weight: 700;
}

.agent-preview-text .dark {
  background-color: var(--slate-900);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  color: var(--white);
  border: 1px solid var(--slate-800);
}

.agent-preview-text .indigo {
  color: var(--indigo-300);
}

.agent-preview-text .amber {
  color: #fbbf24;
  font-weight: 600;
}

.agent-preview-text .cyan {
  color: #22d3ee;
}

.agent-footer {
  font-size: 0.4375rem;
  color: var(--slate-500);
  text-align: right;
  margin-top: 0.25rem;
  font-style: italic;
  font-family: var(--font-sans);
}

/* Hermes Agent */
.hermes-content {
  text-align: center;
  position: relative;
}

.hermes-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  color: #f59e0b;
  text-transform: uppercase;
  user-select: none;
}

.hermes-subtitle {
  font-size: 0.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.1em;
  color: var(--slate-500);
  text-transform: uppercase;
  margin-top: 0.625rem;
}

/* Kilo Code */
.kilo-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 0.5rem 1rem;
  background-color: rgba(245, 158, 11, 0.05);
  border-radius: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-align: center;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.kilo-label {
  color: #f59e0b;
  background-color: rgba(245, 158, 11, 0.1);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 800;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.kilo-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--slate-350);
  letter-spacing: 0.05em;
}

.agent-footer-section {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  border-top: 1px solid var(--slate-100);
  background-color: var(--white);
}

.agent-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.agent-logo.replit {
  background-color: var(--orange-100);
  color: var(--orange-600);
  font-family: var(--font-display);
}

.agent-logo.hermes {
  background-color: var(--slate-950);
  color: var(--white);
}

.agent-logo.kilo {
  background-color: #090b0e;
  color: #fbbf24;
  border: 1px solid var(--slate-800);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 900;
  font-size: 0.875rem;
}

.agent-info {
  text-align: left;
}

.agent-info h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--slate-900);
}

.agent-info p {
  font-size: 0.6875rem;
  color: var(--slate-400);
  margin-top: 0.125rem;
  line-height: 1.4;
}

/* ============================================
   Developer Onboarding Section
   ============================================ */
.onboarding-section {
  max-width: 1280px;
  margin: 0 auto 6rem;
  padding: 3rem 1rem;
  border-top: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
  background-color: rgba(241, 245, 249, 0.25);
  border-radius: 1.5rem;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

@media (min-width: 640px) {
  .onboarding-section {
    padding: 3rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .onboarding-section {
    padding: 3rem 2rem;
  }
}

.onboarding-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1024px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .onboarding-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.onboarding-step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .step-header {
    gap: 0.75rem;
  }
}

.step-number {
  width: 28px;
  height: 28px;
  background-color: rgba(79, 70, 229, 0.1);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
}

@media (min-width: 768px) {
  .step-number {
    width: 32px;
    height: 32px;
  }
}

.step-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-800);
}

@media (min-width: 768px) {
  .step-title {
    font-size: 1.125rem;
  }
}

.step-description {
  min-height: 40px;
}

.step-description p {
  font-size: 0.875rem;
  color: var(--slate-500);
}

.step-description a {
  color: var(--primary);
  font-weight: 500;
}

.step-description a:hover {
  text-decoration: underline;
}

.step-visual {
  width: 100%;
  max-width: 224px;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.visual-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.visual-icon {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.visual-bars {
  display: flex;
  flex-col: column;
  justify-content: center;
}

.bar-group {
  height: 16px;
  width: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.bar-group div:first-child {
  height: 4px;
  background-color: rgba(79, 70, 229, 0.2);
  border-radius: 2px;
}

.bar-group div:last-child {
  height: 2px;
  background-color: rgba(79, 70, 229, 0.1);
  border-radius: 1px;
}

.social-buttons {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  max-width: 224px;
}

.social-btn {
  width: 40px;
  height: 40px;
  background-color: var(--slate-100);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-btn svg {
  width: 20px;
  height: 20px;
}

/* Credit History */
.credit-history {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.credit-item {
  height: 24px;
  background-color: rgba(79, 70, 229, 0.05);
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

.credit-date {
  font-size: 0.75rem;
  color: var(--slate-500);
  margin-right: auto;
  min-width: 36px;
}

.credit-bars {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  margin: 0 0.5rem;
}

.credit-bar {
  height: 8px;
  flex: 1;
  background-color: rgba(79, 70, 229, 0.1);
  border-radius: 2px;
}

.credit-amount {
  font-size: 0.875rem;
  font-weight: 500;
}

/* API Key */
.api-key-visual {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.api-key-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.api-key-input {
  height: 24px;
  flex: 1;
  background-color: rgba(79, 70, 229, 0.05);
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
}

.api-key-text {
  font-size: 0.5625rem;
  color: var(--slate-500);
  letter-spacing: 0.05em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.api-key-hidden {
  height: 24px;
  background-color: rgba(79, 70, 229, 0.05);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.api-key-dots {
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  color: var(--slate-500);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ============================================
   Blog Section
   ============================================ */
.blog-section {
  max-width: 768px;
  margin: 0 auto 6rem;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .blog-section {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .blog-section {
    padding: 0 2rem;
  }
}

.blog-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-header-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--slate-100);
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--slate-900);
}

.blog-link {
  font-size: 0.875rem;
  color: var(--slate-500);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.blog-link:hover {
  color: var(--indigo-600);
}

.blog-link svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.blog-link:hover svg {
  transform: translateX(2px);
}

.blog-posts {
  display: flex;
  flex-direction: column;
}

.blog-post {
  display: block;
  padding: 1.5rem 0;
}

.blog-post:not(:last-child) {
  border-bottom: 1px solid var(--slate-100);
}

.blog-article {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.blog-thumbnail {
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 12px;
}

.blog-thumbnail-inner {
  width: 128px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  position: relative;
  transition: transform 0.3s ease;
  border: 1px solid var(--slate-100);
  user-select: none;
}

@media (min-width: 768px) {
  .blog-thumbnail-inner {
    width: 160px;
    height: 96px;
  }
}

.blog-thumbnail-inner:hover {
  transform: scale(1.02);
}

.blog-thumbnail-inner.indigo {
  background: linear-gradient(135deg, var(--indigo-50) 0%, rgba(139, 92, 246, 0.15) 100%);
}

.blog-thumbnail-inner.dark {
  background-color: #0c1017;
  border-color: rgba(30, 34, 53, 0.6);
}

.blog-thumbnail-inner.green {
  background: linear-gradient(135deg, var(--emerald-50) 0%, var(--indigo-50) 100%);
}

.blog-thumbnail-icon {
  width: 32px;
  height: 32px;
  color: var(--indigo-600);
}

.blog-thumbnail-inner.dark .blog-thumbnail-icon {
  color: var(--emerald-400);
}

.blog-thumbnail-inner.green .blog-thumbnail-icon {
  color: var(--emerald-600);
}

.blog-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
}

.blog-post-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-900);
  line-height: 1.4;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .blog-post-title {
    font-size: 1.125rem;
  }
}

.blog-post:hover .blog-post-title {
  color: var(--indigo-600);
}

.blog-post-excerpt {
  font-size: 0.75rem;
  color: var(--slate-500);
  line-height: 1.625;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .blog-post-excerpt {
    font-size: 0.875rem;
  }
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--slate-400);
  font-weight: 500;
}

.blog-new-badge {
  background-color: var(--indigo-50);
  border: 1px solid rgba(224, 231, 255, 0.5);
  color: var(--indigo-600);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 700;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  width: 100%;
  background-color: var(--white);
  border-top: 1px solid var(--slate-100);
  padding: 4rem 0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: repeat(5, 1fr);
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .footer-inner {
    padding: 0 2rem;
  }
}

.footer-col {
  text-align: left;
}

.footer-col:first-child {
  grid-column: span 2;
}

@media (min-width: 768px) {
  .footer-col:first-child {
    grid-column: span 1;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  transition: transform 0.2s ease;
}

.footer-logo:hover {
  transform: scale(1.02);
}

.footer-logo-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--slate-900);
  border-radius: 6px;
}

.footer-logo-icon svg {
  width: 14px;
  height: 14px;
  color: var(--white);
}

.footer-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.025em;
  color: var(--slate-900);
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--slate-400);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 500;
  margin-top: 1rem;
}

.footer-nav-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 1rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-nav a {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-500);
}

.footer-nav a:hover {
  color: var(--indigo-600);
}

.footer-hiring-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.footer-hiring-badge span:last-child {
  font-size: 0.5625rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
  background-color: var(--indigo-50);
  border: 1px solid var(--indigo-100);
  color: var(--indigo-700);
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ============================================
   Utilities
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Hide elements visually but keep for screen readers */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
