/* Home page — tight layout, AI aesthetic */

.home-main {
  overflow-x: hidden;
}

/* Hero */
.home-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--header-h) + 40px) 24px 32px;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.home-hero-copy .hero-badge {
  margin-bottom: 20px;
}

.home-hero-copy .hero-title {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 1.05;
}

.home-hero-copy .hero-lead {
  margin-top: 18px;
  max-width: 480px;
  font-size: 1.05rem;
}

.home-hero-copy .hero-actions {
  margin-top: 28px;
}

/* Compact stat pills — no giant gap before next section */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border: none;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--mono);
}

.stat-pill-val {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}

.stat-pill-lbl {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.stat-pill--infinity {
  padding-left: 14px;
  padding-right: 18px;
}

.stat-pill-val--infinity {
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  margin-top: -2px;
  font-family: "Inter", var(--sans);
  letter-spacing: 0;
}

/* AI panel */
.home-hero-panel {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
}

.ai-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 380px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 32px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.ai-panel-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface);
}

.ai-dot:nth-child(1) { background: #ff5f57; }
.ai-dot:nth-child(2) { background: #febc2e; }

.ai-dot--live {
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 2s ease-in-out infinite;
}

.ai-panel-head code {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
}

.ai-panel-body {
  padding: 18px 16px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 2;
}

.ai-line {
  color: var(--text-dim);
}

.ai-line--ok {
  color: var(--text-muted);
}

.ai-line--active {
  color: var(--text);
}

.ai-prompt {
  color: #4ade80;
  margin-right: 6px;
}

.ai-blink {
  animation: blink 1s step-end infinite;
}

.ai-panel-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.ai-panel-foot strong {
  color: var(--text-muted);
  font-weight: 500;
}

.ai-status {
  color: #4ade80 !important;
}

.ai-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.ai-ring--1 {
  width: 280px;
  height: 280px;
  animation: ringSpin 20s linear infinite;
}

.ai-ring--2 {
  width: 340px;
  height: 340px;
  animation: ringSpin 28s linear infinite reverse;
  border-style: dashed;
}

@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

/* Seamless marquee — never ends */
.marquee {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 14px 0;
  overflow: hidden;
}

.marquee-viewport {
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
  will-change: transform;
}

.marquee-set {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0;
  padding-right: 0;
}

.marquee-set span:not(.marquee-dot) {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  white-space: nowrap;
  padding: 0 28px;
}

.marquee-dot {
  font-size: 6px;
  color: rgba(74, 222, 128, 0.5);
  flex-shrink: 0;
}

.marquee-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.marquee-fade--left {
  left: 0;
  background: linear-gradient(90deg, var(--bg-elevated), transparent);
}

.marquee-fade--right {
  right: 0;
  background: linear-gradient(270deg, var(--bg-elevated), transparent);
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Home sections — tight rhythm */
.home-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px;
}

.home-explore {
  padding-top: 48px;
}

.home-section-head {
  margin-bottom: 28px;
}

.home-section-head .section-tag {
  margin-bottom: 10px;
}

.home-section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* Explore cards — equal 4-col */
.home-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.home-card {
  padding: 22px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-height: 160px;
  transition: border-color 0.25s, transform 0.3s var(--ease), background 0.25s;
}

.home-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  background: var(--bg-card);
}

.home-card--accent {
  border-color: rgba(74, 222, 128, 0.2);
  background: linear-gradient(160deg, rgba(74, 222, 128, 0.04), var(--bg-elevated));
}

.home-card-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.home-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.home-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.home-card-link {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  transition: color 0.2s;
}

.home-card:hover .home-card-link {
  color: var(--text);
}

/* Local / Windsor SEO block */
.home-local {
  padding-top: 32px;
  padding-bottom: 32px;
}

.home-local-inner {
  padding: 36px 40px;
  border: 1px solid rgba(74, 222, 128, 0.15);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.03), var(--bg-elevated));
}

.home-local-inner h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 600;
  margin: 8px 0 12px;
  letter-spacing: -0.02em;
}

.home-local-inner p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 20px;
}

.home-local-inner em {
  color: var(--text-dim);
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.9em;
}

/* Research teaser */
.home-research-teaser {
  padding-top: 40px;
  padding-bottom: 40px;
}

.home-research-teaser-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.04), var(--bg-elevated));
}

.home-research-teaser-inner h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  margin: 8px 0 10px;
  letter-spacing: -0.02em;
}

.home-research-teaser-inner p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 480px;
  line-height: 1.6;
}

.home-research-teaser-inner .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .home-research-teaser-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
  }
}

/* Pipeline */
.home-pipeline {
  padding-top: 40px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.01), transparent);
}

.pipeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.pipeline-step {
  flex: 1;
  text-align: center;
  padding: 20px 12px;
}

.pipeline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  color: #4ade80;
  margin-bottom: 12px;
  background: var(--bg-elevated);
}

.pipeline-step h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.pipeline-step p {
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--mono);
}

.pipeline-connector {
  flex: 0 0 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin-top: 38px;
}

/* Flagship — compact */
.home-flagship {
  padding: 48px 24px 40px;
}

.home-flagship .flagship-inner {
  padding: 48px;
}

.home-flagship-btn {
  margin-top: 20px !important;
}

/* CTA */
.home-cta {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 80px;
  text-align: center;
}

.home-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.home-cta p {
  margin: 12px auto 28px;
  max-width: 440px;
  color: var(--text-muted);
  font-size: 15px;
}

.home-cta .hero-actions {
  justify-content: center;
  margin-top: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .home-hero-panel {
    min-height: 260px;
  }

  .home-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .pipeline {
    flex-wrap: wrap;
    justify-content: center;
  }

  .pipeline-connector {
    display: none;
  }

  .pipeline-step {
    flex: 0 0 calc(50% - 8px);
  }
}

@media (max-width: 640px) {
  .home-hero {
    padding-top: calc(var(--header-h) + 24px);
  }

  .home-cards {
    grid-template-columns: 1fr;
  }

  .home-section {
    padding: 40px 20px;
  }

  .home-flagship .flagship-inner {
    padding: 28px 22px;
  }

  .marquee-fade {
    width: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }

  .ai-ring {
    animation: none;
  }
}
