/* ─── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0c0c14;
  --surface: #13131e;
  --surface2: #1a1a28;
  --border: #22223a;
  --yellow: #e8ff47;
  --yellow-dim: rgba(232,255,71,0.15);
  --indigo: #6366f1;
  --blue: #38bdf8;
  --purple: #a78bfa;
  --text: #f0f0f8;
  --text-dim: #7a7a96;
  --text-muted: #4a4a66;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Typography ─────────────────────────────────────────────── */
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--yellow);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero-lede {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.meta-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--yellow);
  background: var(--yellow-dim);
  border: 1px solid rgba(232,255,71,0.2);
  padding: 0.35rem 0.8rem;
  border-radius: 2rem;
}

/* ─── Stack Cards ────────────────────────────────────────────── */
.hero-visual {
  display: flex;
  justify-content: center;
}

.stack-cards {
  position: relative;
  width: 340px;
  padding-top: 60px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  position: relative;
  transition: transform 0.2s ease;
}

.project-card:hover { transform: translateX(-4px); }

.card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
}

.card-dot--blue { background: var(--blue); }
.card-dot--purple { background: var(--purple); }

.card-name {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--text);
  font-weight: 500;
  flex: 1;
}

.card-status {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-tasks { margin-bottom: 0.75rem; }

.task-bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 0.4rem;
  position: relative;
  overflow: hidden;
}

.task-bar::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: var(--w, 60%);
  background: linear-gradient(90deg, var(--yellow) 0%, transparent 100%);
  border-radius: 2px;
}

.task-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.card-ai-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  color: var(--yellow);
  opacity: 0.7;
}

/* Agent ring */
.stack-agent {
  position: absolute;
  top: -10px;
  right: -20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.agent-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  opacity: 0.2;
  animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(1.1); opacity: 0.4; }
}

.agent-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--yellow);
  font-weight: 500;
  margin-top: 4px;
}

.agent-sublabel {
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  color: var(--text-muted);
}

/* ─── Manifesto ─────────────────────────────────────────────── */
.manifesto {
  padding: 8rem 2rem;
  border-top: 1px solid var(--border);
  position: relative;
}

.manifesto::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--yellow), transparent);
}

.manifesto-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 3rem;
}

.manifesto-number {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  padding-top: 0.5rem;
}

.manifesto-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  color: var(--text);
}

.manifesto-body {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  max-width: 640px;
}

.manifesto-highlight {
  color: var(--text);
  font-weight: 600;
}

/* ─── Features ──────────────────────────────────────────────── */
.features {
  padding: 6rem 2rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.features-header {
  max-width: 1200px;
  margin: 0 auto 4rem;
}

.features-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  margin-top: 0.75rem;
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  transition: border-color 0.2s ease;
}

.feature-card:hover { border-color: rgba(232,255,71,0.3); }

.feature-icon {
  margin-bottom: 1.5rem;
}

.feature-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.feature-example {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.6;
  background: var(--surface2);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border-left: 2px solid var(--yellow-dim);
}

.example-tag {
  color: var(--yellow);
  font-weight: 500;
}

/* ─── Comparison ─────────────────────────────────────────────── */
.comparison {
  padding: 6rem 2rem;
  border-top: 1px solid var(--border);
}

.comparison-header {
  max-width: 900px;
  margin: 0 auto 3rem;
}

.comparison-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 0.75rem;
}

.comparison-table-wrap {
  max-width: 900px;
  margin: 0 auto;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.comparison-table th {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 1.5rem 1.5rem;
  text-align: left;
}

.th-other { color: var(--text-muted); }
.th-shipstack { color: var(--yellow); }

.comparison-table td {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}

.td-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.td-other { color: var(--text-dim); }

.td-shipstack {
  color: var(--text);
  font-weight: 500;
  border-left: 1px solid var(--border);
}

/* ─── Closing ───────────────────────────────────────────────── */
.closing {
  padding: 8rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.closing-inner {
  max-width: 600px;
  margin: 0 auto;
}

.closing-glyph {
  margin-bottom: 2rem;
  display: inline-block;
}

.closing-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.closing-body {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ─── Footer ────────────────────────────────────────────────── */
.footer {
  padding: 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.footer-tagline {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.footer-note {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-visual { justify-content: flex-start; }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .manifesto-inner {
    grid-template-columns: 1fr;
  }
  .manifesto-number { display: none; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 600px) {
  .hero { padding: 3rem 1.5rem; }
  .manifesto, .features, .comparison, .closing { padding: 4rem 1.5rem; }
  .stack-agent { display: none; }
  .stack-cards { padding-top: 20px; }
}
