:root {
  --bg-color: #0a0a0a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent: #AAFF00;
  --card-bg: #141414;
  --border-color: #1f1f1f;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 120px 120px, 120px 120px;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  margin: 0;
  line-height: 1.1;
}

h1 {
  font-weight: 700;
}

h2,
h3,
h4 {
  font-weight: 600;
}

h5,
h6 {
  font-weight: 500;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tag-accent {
  color: var(--accent);
}

.tag-muted {
  color: var(--text-secondary);
}

.tag-against {
  color: #ff4a4a;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 8px rgba(170, 255, 0, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(170, 255, 0, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(170, 255, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(170, 255, 0, 0);
  }
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  background-color: var(--accent);
  color: var(--bg-color);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  box-shadow: 0 0 20px rgba(170, 255, 0, 0.15),
    inset 0 2px 5px rgba(255, 255, 255, 0.3),
    inset 0 -3px 5px rgba(0, 0, 0, 0.15);
}

.btn:hover {
  box-shadow: 0 0 30px rgba(170, 255, 0, 0.4);
  transform: translateY(-2px);
}

.btn-disabled {
  background-color: var(--card-bg);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-disabled:hover {
  box-shadow: none;
  transform: none;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, var(--border-color) 50%, rgba(0, 0, 0, 0.5) 100%) border-box;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  background: linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
    linear-gradient(135deg, rgba(170, 255, 0, 0.4) 0%, var(--border-color) 50%, rgba(0, 0, 0, 0.5) 100%) border-box;
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ── Header ──────────────────────────────────────────────── */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.9), transparent);
}


header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── Logo ────────────────────────────────────────────────── */
.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
}

.logo-bracket {
  color: var(--accent);
}

.logo-text {
  color: #ffffff;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 300px;
  background: linear-gradient(to top, var(--bg-color), transparent);
  pointer-events: none;
}

.hero .container {
  max-width: 900px;
  position: relative;
  z-index: 10;
}

.hero-eyebrow {
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  letter-spacing: -1px;
  margin-bottom: 32px;
  text-shadow: 2px 2px 0px #1a2a00;
  position: relative;
}

.hero h1::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  filter: blur(40px);
  opacity: 0.08;
  color: var(--accent);
  z-index: -1;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 48px auto;
}

/* ── Features ────────────────────────────────────────────── */
.features {
  padding: 140px 0 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-icon {
  width: 24px;
  height: 24px;
  background-color: rgba(170, 255, 0, 0.1);
  border: 1px solid var(--accent);
  border-radius: 6px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.feature-label {
  margin-bottom: 12px;
  display: block;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ── Products ────────────────────────────────────────────── */
.products {
  padding: 80px 0 160px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.2rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.product-card {
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--border-color);
  transition: background 0.3s ease;
}

.product-card.live::before {
  background: var(--accent);
}

.product-status {
  margin-bottom: 24px;
  display: inline-block;
}

.product-title {
  font-size: 2rem;
  margin-bottom: 12px;
}

.product-tagline {
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.product-desc {
  color: var(--text-secondary);
  margin-bottom: 32px;
  flex-grow: 1;
}

.example-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.example-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ── Demo Section ────────────────────────────────────────── */
.demo-section {
  padding: 80px 0;
}

.demo-card {
  background-color: #141414;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
}

.demo-topic {
  color: var(--text-primary);
}

.demo-status {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.demo-body {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 1px;
  background: var(--border-color);
}

.demo-col {
  background: #141414;
  padding: 32px 24px;
}

/* Canvas network */
.agent-network {
  position: relative;
  height: 200px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px dashed var(--border-color);
  margin-bottom: 24px;
  overflow: hidden;
}

#agentCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.network-stats {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
}

/* Debate cards */
.debate-card {
  background: rgba(255, 255, 255, 0.02);
  padding: 16px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.border-for {
  border-left: 3px solid var(--accent);
}

.border-against {
  border-left: 3px solid #ff4a4a;
}

.debate-author {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.debate-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Stats col */
.stats-col>div {
  margin-bottom: 24px;
}

.stats-label {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.confidence-val {
  font-size: 3rem;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.confidence-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.stats-divider {
  height: 1px;
  background: var(--border-color);
  margin: 24px 0 !important;
}

.verdict-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.verdict-val {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
}

/* ── How It Works ────────────────────────────────────────── */
.how-it-works {
  padding: 100px 0 140px 0;
}

.steps-flow {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.steps-flow::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--border-color);
  z-index: 0;
}

.step {
  flex: 1;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.step:hover .step-number {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 15px rgba(170, 255, 0, 0.2);
}

.step-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.step-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ── Final CTA ───────────────────────────────────────────── */
.final-cta {
  padding: 160px 0;
  text-align: center;
}

.final-cta h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 24px 0;
}

.final-cta p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
  padding: 64px 0;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a,
.footer-copy {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

/* ── Modal ───────────────────────────────────────────────── */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.95);
}

.modal-content {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 40px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 40px rgba(170, 255, 0, 0.1);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal.open .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
  text-align: center;
}

.modal-body p {
  margin-bottom: 24px;
  color: var(--text-primary);
}

.modal-muted {
  color: var(--text-secondary) !important;
  font-size: 0.9rem;
}

/* ── Animations ──────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
}

.slide-up {
  transform: translateY(40px);
}

.slide-left {
  transform: translateX(-40px);
}

.slide-right {
  transform: translateX(40px);
}

.slide-up.visible,
.slide-left.visible,
.slide-right.visible {
  transform: translate(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .demo-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-flow {
    flex-direction: column;
    gap: 40px;
  }

  .steps-flow::before {
    top: 0;
    left: 24px;
    width: 1px;
    height: 100%;
  }

  .footer-content {
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
  }
}