:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #475569;
  --bg: #f6f3ee;
  --bg-alt: #f0ebe3;
  --accent: #0ea5e9;
  --accent-2: #f97316;
  --accent-3: #22c55e;
  --border: rgba(15, 23, 42, 0.12);
  --shadow: 0 22px 40px rgba(15, 23, 42, 0.12);
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'Space Grotesk', sans-serif;
  --serif: 'Fraunces', serif;
}

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

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 90%);
  margin: 0 auto;
}

.nav-container {
  padding: 0 6px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(246, 243, 238, 0.9);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
}

.logo-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 500;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  border: none;
  background: none;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease;
}

.hero {
  position: relative;
  padding: 120px 0 90px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -20% 0 0 0;
  background: radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.18), transparent 50%),
    radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.2), transparent 50%),
    radial-gradient(circle at 60% 80%, rgba(34, 197, 94, 0.15), transparent 55%);
  z-index: -1;
}

.hero-grid {
  width: min(1120px, 90%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.hero-content h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4vw, 3.8rem);
  margin: 16px 0;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.button {
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button.primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.button.primary:hover {
  transform: translateY(-2px);
}

.button.ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.hero-metrics {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
}

.auth-callout {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.08);
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 0.95rem;
}

.auth-callout span {
  font-family: var(--mono);
  font-weight: 600;
}

.auth-callout a {
  color: var(--accent);
  font-weight: 600;
}

.metric {
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
}

.metric-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

.metric-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-card {
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-title {
  font-size: 1.6rem;
  margin: 12px 0;
}

.card-list {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.card-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted);
}

.card-code {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--bg-alt);
  font-family: var(--mono);
  font-size: 0.85rem;
}

.auth-banner {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.4);
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-weight: 600;
}

.auth-steps {
  margin-top: 16px;
}

.prompt-card {
  margin-top: 18px;
  border-radius: 16px;
  border: 1px dashed rgba(14, 165, 233, 0.5);
  background: rgba(14, 165, 233, 0.08);
  padding: 16px;
}

.prompt-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.prompt-body {
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
}

.text-link {
  display: inline-flex;
  gap: 6px;
  margin-top: 12px;
  font-weight: 600;
  color: var(--accent);
}

code {
  font-family: var(--mono);
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.section {
  padding: 80px 0;
}

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

.section-header {
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.section-header p {
  color: var(--muted);
  max-width: 520px;
}

.section#hero-search {
  padding: 18px 0;
}

.hero-search {
  background: #ffffff;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 6px 10px;
  box-shadow: var(--shadow);
}

.hero-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.hero-search-row input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-family: var(--body);
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .hero-search-row {
    grid-template-columns: 1fr;
  }
}

.search-panel {
  background: var(--bg-alt);
  border-radius: 18px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--muted);
}

.form-row input,
.form-row select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 0.95rem;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

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

.browse-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  color: var(--muted);
}

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

.browse-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 28px;
  align-items: start;
}

.browse-filters .search-panel {
  position: sticky;
  top: 90px;
}

.browse-results {
  display: grid;
  gap: 16px;
}

.browse-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.browse-sort label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.skill-filter {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.skill-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.skill-option input {
  accent-color: #818cf8;
}

.skill-loading {
  color: var(--muted);
  font-size: 0.85rem;
}

.skill-select {
  width: 100%;
  min-height: 160px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.65);
  color: #e2e8f0;
  padding: 10px;
  font-size: 0.9rem;
}

.range-group {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.range-values {
  display: flex;
  justify-content: space-between;
  color: #111827;
  font-size: 0.85rem;
}

.range-group input[type="range"] {
  width: 100%;
  accent-color: #818cf8;
}

.range-markers {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #111827;
}

@media (max-width: 900px) {
  .browse-layout {
    grid-template-columns: 1fr;
  }

  .browse-filters .search-panel {
    position: static;
  }
}

.agent-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.8));
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 22px;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.35);
  display: grid;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.agent-card h3 {
  font-size: 1.2rem;
  margin: 0;
  color: #f8fafc;
}

.agent-card p {
  color: #f8fafc;
  line-height: 1.5;
}

.agent-meta {
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.78);
}

.availability-text {
  color: rgba(148, 163, 184, 0.9);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.22);
  border: 1px solid rgba(129, 140, 248, 0.5);
  font-size: 0.8rem;
  color: #e0e7ff;
}

.agent-card:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 140, 248, 0.85);
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.45);
}

.agent-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.agent-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 600;
  color: #f8fafc;
  background: rgba(99, 102, 241, 0.35);
  border: 1px solid rgba(99, 102, 241, 0.6);
}

.agent-name-pill {
  width: auto;
  height: auto;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.agent-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #e2e8f0;
  background: rgba(148, 163, 184, 0.25);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.agent-status {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.agent-status.ready {
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.6);
}

.agent-status.working {
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.6);
}

.agent-status.offline {
  color: #fee2e2;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.6);
}

.agent-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #f8fafc;
}

.agent-rating span {
  color: #facc15;
  letter-spacing: 1px;
}

.agent-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.agent-price {
  font-size: 0.95rem;
  color: #f8fafc;
}

.agent-action {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: #f8fafc;
  font-size: 0.85rem;
  cursor: pointer;
  pointer-events: auto;
}

.agent-brand {
  font-size: 0.75rem;
  color: rgba(226, 232, 240, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.agent-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.agent-links .text-link {
  color: #e0e7ff;
  text-decoration: none;
  font-weight: 600;
}

.agent-links .text-link:hover {
  color: #fff;
}

.profile-hero {
  padding: 100px 0 40px;
  position: relative;
  overflow: hidden;
}

.profile-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.25), transparent 55%);
  pointer-events: none;
}

.profile-hero-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  position: relative;
  z-index: 1;
}

.profile-hero-content h1 {
  font-size: clamp(2.2rem, 3vw, 3.2rem);
}

.profile-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.profile-meta {
  display: grid;
  gap: 8px;
  margin: 16px 0 22px;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.profile-hero-card .profile-card {
  margin: 0;
}

.profile-card.hero-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.profile-stats {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
}

.profile-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.profile-card {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 20px;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.3);
}

.profile-card h3 {
  margin: 0 0 12px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.7);
  z-index: 50;
  padding: 24px;
}

.modal.active {
  display: flex;
}

.modal-card {
  width: min(720px, 100%);
  background: rgba(15, 23, 42, 0.95);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 20px;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.6);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.modal-close {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.modal-code {
  background: rgba(2, 6, 23, 0.7);
  border-radius: 12px;
  padding: 16px;
  color: #e2e8f0;
  font-size: 0.85rem;
  overflow-x: auto;
  white-space: pre-wrap;
}

.agent-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.empty-state {
  display: none;
  text-align: center;
  margin-top: 30px;
  color: var(--muted);
}

.empty-state.active {
  display: block;
}

.metric-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.metric-card {
  background: var(--bg);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 18px;
  box-shadow: var(--shadow);
  text-align: left;
}

.metric-card .metric-value {
  font-size: 1.6rem;
  font-weight: 700;
}

.metric-card .metric-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.dashboard-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.dashboard-card {
  background: var(--bg);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.agent-status {
  font-weight: 600;
  color: var(--muted);
}

.dashboard-table {
  display: grid;
  gap: 10px;
  background: var(--bg);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 12px;
  box-shadow: var(--shadow);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--muted);
}

.auth-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 0.95rem;
}

.auth-helper {
  font-size: 0.9rem;
  color: var(--muted);
}

.table-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
}

.table-row.header {
  font-weight: 700;
  color: var(--muted);
  background: var(--bg-alt);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  width: fit-content;
}

.status-pill.live {
  background: rgba(34, 197, 94, 0.16);
  color: #16a34a;
}

.status-pill.pending {
  background: rgba(234, 179, 8, 0.2);
  color: #ca8a04;
}

.status-pill.review {
  background: rgba(59, 130, 246, 0.16);
  color: #2563eb;
}

@media (max-width: 720px) {
  .table-row {
    grid-template-columns: 1fr;
  }
}

.trust {
  padding: 50px 0 20px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: center;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.badge {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
}

.steps {
  padding-left: 20px;
  display: grid;
  gap: 12px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  border: 1px solid var(--border);
}

.a2a-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.a2a-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  border: 1px solid var(--border);
}

.a2a-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.a2a-code {
  margin: 12px 0;
  font-family: var(--mono);
  background: var(--bg-alt);
  padding: 10px 12px;
  border-radius: 12px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.pricing-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  border: 1px solid var(--border);
  display: grid;
  gap: 16px;
}

.pricing-card.accent {
  border-color: var(--accent);
  box-shadow: 0 18px 32px rgba(14, 165, 233, 0.15);
}

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

.price span {
  font-size: 1rem;
  color: var(--muted);
}

.pricing-card ul {
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.pricing-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.cta {
  padding: 80px 0;
  background: var(--ink);
  color: #fff;
}

.cta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer {
  padding: 60px 0 30px;
  background: #0b1220;
  color: #fff;
}

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

.footer a {
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-top: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.page-hero {
  padding: 120px 0 60px;
  background: linear-gradient(120deg, rgba(14, 165, 233, 0.15), rgba(249, 115, 22, 0.12));
}

.list {
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

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

.form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.form input,
.form textarea {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-family: var(--sans);
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.badge-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.faq-list {
  display: grid;
  gap: 20px;
}

.faq-item {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  border: 1px solid var(--border);
}

.docs-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.docs-tab {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: var(--sans);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.docs-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.docs-panels {
  margin-top: 18px;
}

.docs-panel {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 24px;
}

.docs-loading {
  color: var(--muted);
}

.docs-source-link {
  margin-bottom: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

.docs-source-link a {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.85rem;
}

.docs-markdown {
  display: grid;
  gap: 12px;
}

.docs-markdown h1,
.docs-markdown h2,
.docs-markdown h3,
.docs-markdown h4,
.docs-markdown h5,
.docs-markdown h6 {
  font-family: var(--serif);
  margin-top: 8px;
}

.docs-markdown p,
.docs-markdown li {
  color: var(--ink);
}

.docs-markdown ul,
.docs-markdown ol {
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.docs-markdown code {
  font-family: var(--mono);
  background: var(--bg-alt);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.9em;
}

.docs-markdown pre {
  background: var(--ink);
  color: #f8fafc;
  border-radius: 14px;
  padding: 16px;
  overflow-x: auto;
}

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

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

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

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 72px;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    height: calc(100vh - 72px);
    width: min(320px, 90vw);
    transform: translateX(100%);
    transition: transform 0.2s ease;
    box-shadow: -12px 0 30px rgba(15, 23, 42, 0.1);
  }

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

  .nav-toggle {
    display: flex;
  }

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

@media (max-width: 700px) {
  .hero {
    padding-top: 100px;
  }

  .cta .container {
    flex-direction: column;
    align-items: flex-start;
  }
}
