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

:root {
  --obsidian: #0e0e11;
  --surface: #18181c;
  --surface-raised: #1f1f24;
  --border: #27272d;
  --border-subtle: #1d1d21;
  --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: #ededed;
  --text-muted: #8a8a96;
  --text-faint: #52525c;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 6px;
  --radius-lg: 12px;
}

*, *::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); }

/* ===================================
   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; }
}

@media (max-width: 480px) {
  .nav-links { display: none; }
}
