/* ===================================
   GigSoul OS — Theme CSS
   Typography: Fraunces (display) + DM Sans (body)
   Palette: Obsidian / Amber (#f5a623) / Teal (#2dd4bf)
   =================================== */

:root {
  --obsidian: #0e0e13;
  --surface: #191920;
  --surface-raised: #20202a;
  --border: #2a2a35;
  --border-subtle: #22222b;
  --amber: #f5a623;
  --amber-dim: #c4801a;
  --amber-glow: rgba(245, 166, 35, 0.15);
  --teal: #2dd4bf;
  --teal-dim: #1fa396;
  --teal-glow: rgba(45, 212, 191, 0.1);
  --text: #e8e7e1;
  --text-muted: #8b8a93;
  --text-faint: #6a6974;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 6px;
  --radius-lg: 12px;
}
[data-theme="light"] {
  --obsidian: #faf9f5;
  --surface: #ffffff;
  --surface-raised: #f4f3ee;
  --border: #d9d7d0;
  --border-subtle: #e6e5de;
  --amber: #b45309;
  --amber-dim: #8a4a08;
  --amber-glow: rgba(180, 83, 9, 0.12);
  --teal: #0f766e;
  --teal-dim: #115e59;
  --teal-glow: rgba(15, 118, 110, 0.1);
  --text: #1b1b1f;
  --text-muted: #5d5c66;
  --text-faint: #77767f;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--obsidian);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--obsidian); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

/* ===================================
   NAVIGATION
   =================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 14, 17, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-logo svg { flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

.search-trigger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.search-trigger:hover { color: var(--text); }

/* Mobile menu overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(14, 14, 17, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.mobile-menu-overlay.open { display: block; }

.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 8px;
  margin-bottom: 32px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-links a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  letter-spacing: -0.02em;
  transition: color 0.15s;
}

.mobile-nav-links a:hover { color: var(--amber); }
.mobile-nav-links a:last-child { border-bottom: none; }

/* ===================================
   HERO
   =================================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,166,35,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,166,35,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 60% 40%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 60% 40%, black 40%, transparent 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, rgba(245,166,35,0.2) 0%, transparent 70%);
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  top: 30%;
  right: 20%;
  background: radial-gradient(circle, rgba(45,212,191,0.12) 0%, transparent 70%);
  animation-delay: -3s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  bottom: 10%;
  left: 40%;
  background: radial-gradient(circle, rgba(245,166,35,0.1) 0%, transparent 70%);
  animation-delay: -5s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  33% { transform: translateY(-20px) scale(1.03); }
  66% { transform: translateY(10px) scale(0.97); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

.hero-content { max-width: 540px; }

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat { display: flex; flex-direction: column; gap: 2px; }

.stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero sidebar */
.hero-sidebar { position: relative; }

.news-stack {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 20px;
}

.news-item {
  padding: 16px 0;
  border-top: 1px solid var(--border-subtle);
}

.news-item:first-of-type { border-top: none; padding-top: 0; }

.news-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.news-tag--ai { background: var(--amber-glow); color: var(--amber); }
.news-tag--research { background: var(--teal-glow); color: var(--teal); }
.news-tag--funding { background: rgba(130,100,255,0.1); color: #a78bfa; }

.news-headline {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.news-meta {
  font-size: 0.7rem;
  color: var(--text-faint);
}

.news-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--amber);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.15s;
}

.news-more:hover { opacity: 0.75; }

/* ===================================
   SECTION SHARED
   =================================== */
.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

/* ===================================
   AGENT DEPOT
   =================================== */
.depot {
  padding: 120px 0;
  background: var(--obsidian);
  position: relative;
}

.depot::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.depot-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.depot-header {
  margin-bottom: 64px;
}

.depot-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 20px;
}

.depot-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 560px;
}

/* Pricing block */
.depot-pricing {
  display: flex;
  align-items: center;
  gap: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.pricing-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
}

.pricing-value {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: var(--amber);
  letter-spacing: -0.04em;
  line-height: 1;
}

.pricing-per {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.pricing-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
  flex: 1;
}

.pf-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Agents grid */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.agent-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  gap: 16px;
  transition: border-color 0.2s, transform 0.2s;
}

.agent-card:hover {
  border-color: var(--amber-dim);
  transform: translateY(-2px);
}

.agent-icon { flex-shrink: 0; padding-top: 2px; }

.agent-info { display: flex; flex-direction: column; gap: 4px; }

.agent-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.agent-role {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 4px;
}

.agent-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  flex: 1;
}

.agent-price {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--amber);
  margin-top: 8px;
}

.depot-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-depot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);
  color: #0e0e11;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.btn-depot:hover { background: var(--amber-dim); transform: translateY(-1px); }

.btn-api {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: color 0.15s, border-color 0.15s;
}

.btn-api:hover { color: var(--text); border-color: var(--text-faint); }

/* ===================================
   PULSE (NEWSLETTER)
   =================================== */
.pulse {
  padding: 100px 0;
  background: var(--surface);
  position: relative;
}

.pulse::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.pulse-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.pulse-header { margin-bottom: 56px; }

.pulse-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

.pulse-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.pulse-description p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pulse-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pulse-readers, .pulse-frequency, .pulse-free {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pulse-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border);
}

.recent-issues { display: flex; flex-direction: column; gap: 0; }

.issues-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.issue-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: background 0.15s;
  border-radius: 4px;
}

.issue-card:first-child { border-top: none; }

.issue-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--amber);
  width: 28px;
  flex-shrink: 0;
  padding-top: 2px;
}

.issue-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 3px;
}

.issue-card:hover .issue-title { color: var(--amber); }

.issue-meta { font-size: 0.7rem; color: var(--text-faint); }

/* ===================================
   EVENTS
   =================================== */
.events {
  padding: 100px 0;
  background: var(--obsidian);
  position: relative;
}

.events::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.events-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.events-header { margin-bottom: 56px; }

.events-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

.events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 20px;
  transition: border-color 0.2s, transform 0.2s;
  align-items: flex-start;
}

.event-card:hover { border-color: var(--amber-dim); transform: translateY(-2px); }

.event-card--featured { border-color: var(--amber-dim); }

.event-card--weekly { background: var(--surface-raised); }

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
  padding-top: 2px;
}

.event-month {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--amber);
}

.event-day {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.event-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
  min-width: 48px;
  padding-top: 4px;
}

.event-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.event-location {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.event-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.events-footer { display: flex; }

.events-link {
  font-size: 0.875rem;
  color: var(--amber);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.15s;
}

.events-link:hover { opacity: 0.75; }

/* ===================================
   CLOSING
   =================================== */
.closing {
  padding: 120px 0;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.closing-bg { position: absolute; inset: 0; pointer-events: none; }

.closing-orb {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(60px);
}

.closing-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

.closing-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 24px;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 28px;
}

.closing-body {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
}

.closing-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.closing-cta {
  display: inline-flex;
  align-items: center;
  background: var(--amber);
  color: #0e0e11;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.closing-cta:hover { background: var(--amber-dim); transform: translateY(-1px); }

.closing-secondary {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.15s;
}

.closing-secondary:hover { color: var(--text); }

/* ===================================
   FOOTER
   =================================== */
.site-footer {
  background: var(--obsidian);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.footer-brand {
  margin-bottom: 32px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-left: 28px;
}

.footer-nav {
  display: flex;
  gap: 48px;
  margin-bottom: 40px;
}

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

.footer-col-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
}

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

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

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-faint);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero-content { max-width: 100%; }

  .hero-sidebar { max-width: 560px; margin: 0 auto; width: 100%; }

  .agents-grid { grid-template-columns: 1fr 1fr; }

  .pulse-content { grid-template-columns: 1fr; gap: 40px; }

  .events-grid { grid-template-columns: 1fr; }

  .depot-pricing { flex-direction: column; align-items: flex-start; }

  .pricing-features { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-inner { padding: 48px 20px; }

  .depot-inner,
  .pulse-inner,
  .events-inner,
  .closing-inner,
  .footer-inner { padding: 0 20px; }

  .nav-inner { padding: 0 20px; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 0.8rem; }

  .hero-headline { font-size: 2.25rem; }
  .depot-title { font-size: 2rem; }
  .pulse-title { font-size: 2rem; }
  .events-title { font-size: 2rem; }
  .closing-headline { font-size: 2.5rem; }

  .agents-grid { grid-template-columns: 1fr; }

  .hero-stats { gap: 20px; }
  .stat-value { font-size: 1.4rem; }

  .depot, .pulse, .events, .closing { padding: 80px 0; }

  .footer-nav { flex-direction: column; gap: 28px; }
}

/* ===================================
   SEARCH
   =================================== */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(14, 14, 17, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  flex-direction: column;
  align-items: center;
  padding: 80px 24px 40px;
}

.search-overlay.open { display: flex; }

.search-box {
  width: 100%;
  max-width: 640px;
  position: relative;
}

.search-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 56px 16px 20px;
  font-size: 1.1rem;
  font-family: var(--font-body);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}

.search-input:focus { border-color: var(--amber); }
.search-input::placeholder { color: var(--text-faint); }

.search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-close {
  position: absolute;
  top: 0;
  right: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 16px;
  font-size: 0.8rem;
}

.search-results {
  width: 100%;
  max-width: 640px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-result-item {
  display: block;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.search-result-item:hover {
  border-color: var(--amber-dim);
  background: var(--surface-raised);
}

.search-result-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.search-result-meta {
  font-size: 0.75rem;
  color: var(--text-faint);
}

.search-no-results {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 24px 0;
  text-align: center;
}

/* ===================================
   BREADCRUMB
   =================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumb a:hover { color: var(--amber); }

.breadcrumb-sep {
  color: var(--text-faint);
  font-size: 0.7rem;
}

/* ===================================
   BACK TO TOP
   =================================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.15s, background 0.15s;
  z-index: 50;
  pointer-events: none;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  border-color: var(--amber-dim);
  background: var(--surface);
  color: var(--amber);
}

/* ===================================
   LAZY LOADING
   =================================== */
.lazy-img {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lazy-img.loaded { opacity: 1; }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-raised) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===================================
   EMPTY STATES
   =================================== */
.empty-state {
  padding: 48px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===================================
   LOADING STATES (agent calls)
   =================================== */
.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.loading-dots::after {
  content: '';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

/* ===================================
   ARTICLE OG IMAGE
   =================================== */
.article-og-image {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero-content { max-width: 100%; }

  .hero-sidebar { max-width: 560px; margin: 0 auto; width: 100%; }

  .agents-grid { grid-template-columns: 1fr 1fr; }

  .pulse-content { grid-template-columns: 1fr; gap: 40px; }

  .events-grid { grid-template-columns: 1fr; }

  .depot-pricing { flex-direction: column; align-items: flex-start; }

  .pricing-features { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-inner { padding: 48px 20px; }

  .depot-inner,
  .pulse-inner,
  .events-inner,
  .closing-inner,
  .footer-inner { padding: 0 20px; }

  .nav-inner { padding: 0 20px; }

  /* Show hamburger on small screens */
  .mobile-menu-btn { display: flex !important; align-items: center; }

  .back-to-top { bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
  /* Desktop nav hidden — mobile menu overlay takes over */
  .nav-links { display: none; }
  .nav-actions { display: flex !important; }
}

/* migration: search disabled until backend returns */
.search-trigger{display:none!important}

/* Light-theme overrides for hardcoded colors */
[data-theme="light"] .depot-page, [data-theme="light"] .depot-container { color: var(--text); }
[data-theme="light"] .agent-sample-output-pre,[data-theme="light"] .agent-embed-pre,[data-theme="light"] pre{color:#33323b}
[data-theme="light"] .sample-key{color:#b45309}
[data-theme="light"] .sample-val{color:#0f766e}
