:root {
  --bg: #0c0d10;
  --bg-2: #131418;
  --bg-3: #1a1c21;
  --line: #25272d;
  --text: #e8e6e1;
  --text-dim: #9a9690;
  --text-faint: #5e5b56;
  --copper: #c87533;
  --copper-bright: #e89456;
  --copper-glow: rgba(232, 148, 86, 0.18);
  --copper-soft: rgba(200, 117, 51, 0.08);
  --green: #6dba87;
  --red: #d96868;
  --yellow: #d9c168;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 0 rgba(255,255,255,0.03), 0 8px 24px rgba(0,0,0,0.5);
  --shadow-copper: 0 8px 32px rgba(200, 117, 51, 0.15);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

#bgCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.6;
  pointer-events: none;
}

a { color: var(--copper-bright); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--text); }

code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--bg-3);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  color: var(--copper-bright);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(12, 13, 16, 0.78);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); }
.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 16px var(--copper-glow), 0 0 0 1px rgba(200,117,51,0.3) inset;
  position: relative;
}
.brand-dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--copper);
  opacity: 0.25;
  animation: pulse-ring 2.4s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.4; }
  100% { transform: scale(1.6); opacity: 0; }
}
.brand-text { font-size: 1.05rem; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a:not(.btn) {
  color: var(--text-dim);
  font-size: 0.94rem;
  font-weight: 500;
}
.nav-links a:not(.btn):hover { color: var(--text); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--copper);
  color: #1a0e05;
  box-shadow: var(--shadow-copper);
}
.btn-primary:hover {
  background: var(--copper-bright);
  color: #1a0e05;
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(232, 148, 86, 0.28);
}
.btn-secondary {
  background: var(--bg-3);
  color: var(--text);
  border-color: var(--line);
}
.btn-secondary:hover {
  border-color: var(--copper);
  color: var(--text);
}
.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--line);
  padding: 8px 14px;
  font-size: 0.88rem;
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--copper);
}

/* ── Hero ── */
.hero {
  padding: 110px 0 80px;
  position: relative;
}
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: lowercase;
  letter-spacing: 0.02em;
  background: var(--copper-soft);
  border: 1px solid rgba(200, 117, 51, 0.2);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.eyebrow a { color: var(--copper-bright); font-weight: 600; }

.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  max-width: 920px;
}
.copper {
  color: var(--copper-bright);
  background: linear-gradient(120deg, var(--copper) 0%, var(--copper-bright) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lede {
  font-size: 1.18rem;
  color: var(--text-dim);
  max-width: 720px;
  margin-bottom: 40px;
  line-height: 1.6;
}
.lede em {
  color: var(--text);
  font-style: normal;
  font-weight: 600;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 0.9rem;
  color: var(--text-dim);
  font-family: var(--mono);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dot-tiny {
  width: 6px;
  height: 6px;
  background: var(--copper);
  border-radius: 50%;
  display: inline-block;
}

/* ── Sections ── */
.section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  line-height: 1.15;
}
.section-sub {
  color: var(--text-dim);
  font-size: 1.08rem;
  margin-bottom: 56px;
  max-width: 680px;
}

/* ── Three-up ── */
.three-up {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--copper-soft) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.card:hover {
  border-color: rgba(200, 117, 51, 0.4);
  transform: translateY(-3px);
}
.card:hover::before { opacity: 1; }
.card-icon {
  width: 56px;
  height: 56px;
  color: var(--copper-bright);
  margin-bottom: 24px;
}
.card-icon svg { width: 100%; height: 100%; }
.card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}
.card p {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.6;
}

/* ── How ── */
.how {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: start;
}
.step {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--copper);
  font-weight: 600;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
}
.step h4 {
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.step p {
  color: var(--text-dim);
  font-size: 0.98rem;
}
.step-examples {
  list-style: none;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step-examples li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 14px;
  align-items: baseline;
  font-size: 0.95rem;
  color: var(--text-dim);
}
.step-examples .ex-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  background: var(--copper-soft);
  border: 1px solid rgba(200, 117, 51, 0.25);
  border-radius: 999px;
  text-align: center;
  justify-self: start;
}
.step-examples em {
  font-style: italic;
  color: var(--text-dim);
}
.how-diagram {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: sticky;
  top: 90px;
}
.arch-svg {
  display: block;
  width: 100%;
  height: auto;
}
.arch-svg .t-stage       { font: 600 11px 'JetBrains Mono', ui-monospace, monospace; fill: var(--copper); letter-spacing: 0.16em; }
.arch-svg .t-stage-title { font: 600 17px 'Inter', system-ui, sans-serif; fill: var(--text); letter-spacing: -0.015em; }
.arch-svg .t-stage-body  { font: 400 13.5px 'Inter', system-ui, sans-serif; fill: var(--text-dim); }

/* ── Examples ── */
.examples {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}
.example-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.example {
  display: block;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s ease;
  color: var(--text);
}
.example:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 117, 51, 0.4);
  color: var(--text);
  box-shadow: 0 12px 36px rgba(0,0,0,0.45);
}
.example-img {
  aspect-ratio: 16 / 10;
  background-color: var(--bg-3);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}
.example-body {
  padding: 24px;
}
.example-tag {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--copper);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.example h3 {
  font-size: 1.22rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}
.example p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.examples-sub {
  margin: 64px 0 24px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: -0.005em;
}
.examples-sub::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--copper);
  vertical-align: middle;
  margin-right: 12px;
  opacity: 0.6;
}
.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.mini-card {
  display: flex;
  gap: 18px;
  padding: 22px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--text);
  align-items: flex-start;
  transition: all 0.2s ease;
}
.mini-card:hover {
  border-color: rgba(200, 117, 51, 0.4);
  transform: translateY(-2px);
  color: var(--text);
}
.mini-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--copper-soft);
  border: 1px solid rgba(200, 117, 51, 0.25);
  color: var(--copper-bright);
  display: grid;
  place-items: center;
  padding: 9px;
}
.mini-icon svg { width: 100%; height: 100%; }
.mini-body { flex: 1 1 auto; min-width: 0; }
.mini-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--copper);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.mini-card h4 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.mini-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.55;
}
.mini-card code {
  font-size: 0.84em;
  padding: 0 0.3em;
}

/* ── Ecosystem ── */
.ecosystem {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.eco-card {
  position: relative;
  display: block;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  color: var(--text);
  transition: all 0.2s ease;
  overflow: hidden;
}
.eco-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, var(--copper-soft) 0%, transparent 55%);
  opacity: 0.6;
  pointer-events: none;
}
.eco-card:hover {
  border-color: rgba(200, 117, 51, 0.5);
  transform: translateY(-3px);
  color: var(--text);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.eco-mark {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: var(--copper-bright);
}
.eco-mark svg { width: 22px; height: 22px; }
.eco-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 14px var(--copper-glow), 0 0 0 1px rgba(200,117,51,0.3) inset;
}
.eco-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.eco-tag {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--copper);
  margin-bottom: 18px;
}
.eco-card p {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 22px;
}
.eco-arrow {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--copper-bright);
  transition: transform 0.2s;
}
.eco-card:hover .eco-arrow {
  transform: translateX(4px);
}

/* ── Start / code ── */
.start {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}
.code-block {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}
.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
}
.code-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.code-dot.red { background: var(--red); opacity: 0.85; }
.code-dot.yellow { background: var(--yellow); opacity: 0.85; }
.code-dot.green { background: var(--green); opacity: 0.85; }
.code-title {
  margin-left: 14px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-faint);
}
.code-block pre {
  padding: 24px 28px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.92rem;
  line-height: 1.7;
}
.code-block pre code {
  background: transparent;
  padding: 0;
  color: var(--text);
  font-size: inherit;
}
.c-prompt { color: var(--copper); user-select: none; margin-right: 8px; }
.c-comment { color: var(--text-faint); }
.c-out { color: var(--green); display: inline-block; }

.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.path {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.path h4 {
  font-size: 1.05rem;
  margin-bottom: 16px;
  font-weight: 600;
  color: var(--copper-bright);
}
.path pre {
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.7;
  overflow-x: auto;
  color: var(--text);
}
.path pre code { background: transparent; padding: 0; color: inherit; font-size: inherit; }

/* ── Final CTA ── */
.cta-final {
  padding: 120px 0;
  border-top: 1px solid var(--line);
  text-align: center;
  background: radial-gradient(ellipse at center top, var(--copper-soft) 0%, transparent 60%);
}
.cta-final h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 36px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.cta-final .cta-row { justify-content: center; margin-bottom: 0; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 64px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-col h5 {
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-col a:not(.brand) {
  display: block;
  color: var(--text-dim);
  font-size: 0.94rem;
  padding: 4px 0;
}
.footer-col a:not(.brand):hover { color: var(--copper-bright); }
.footer-tag {
  color: var(--text-dim);
  font-size: 0.94rem;
  margin-top: 16px;
  line-height: 1.6;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--text-faint);
  font-family: var(--mono);
}

/* ── Responsive ── */
@media (max-width: 880px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.btn) { display: none; }
  .cards { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; gap: 32px; }
  .how-diagram { position: static; }
  .example-grid { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: 1fr; }
  .ecosystem-grid { grid-template-columns: 1fr; }
  .paths { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .hero { padding: 64px 0 56px; }
  .three-up, .how, .examples, .start { padding: 72px 0; }
  .cta-final { padding: 80px 0; }
}
@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero-meta { gap: 14px; }
}
