/* ─── chrysalis.html — Chrysalis registry page ───────────────────────────── */
:root { --code-bg: #0c0b14; }
@media (prefers-color-scheme: light) { :root { --code-bg: #eceaf4; } }
[data-theme="light"] { --code-bg: #eceaf4; }
[data-theme="dark"]  { --code-bg: #0c0b14; }

/* ─── Badges ──────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 999px;
  font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(46,196,160,.12); color: var(--teal); border: 1px solid rgba(46,196,160,.2);
}
.badge-purple { background: rgba(108,92,231,.12); color: var(--indigo); border-color: rgba(108,92,231,.2); }

/* ─── Extra button variants ───────────────────────────────────────────────── */
.btn-primary {
  background: var(--teal); color: #0c0b14;
}
.btn-primary:hover {
  background: #3ed9b4; transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(46,196,160,.3);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

/* ─── Hero ────────────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: 64px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-bg::before {
  content: '';
  position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(ellipse at center,
    rgba(46,196,160,.1) 0%, rgba(108,92,231,.05) 45%, transparent 70%);
  animation: pulse-slow 8s ease-in-out infinite;
}
@keyframes pulse-slow {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50%       { opacity: .7; transform: translateX(-50%) scale(1.05); }
}
.hero-grid {
  display: flex; flex-direction: column; gap: 48px; align-items: center;
  padding: 80px 0; max-width: 860px; margin: 0 auto; text-align: center;
}
.hero-icon { margin-bottom: 8px; filter: drop-shadow(0 0 24px rgba(46,196,160,.4)); }
.hero-icon img { width: 96px; height: 96px; object-fit: contain; }
.hero-eyebrow {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 900; line-height: 1.1; letter-spacing: -.03em; margin-bottom: 24px;
}
.hero-subtitle {
  font-size: 1.15rem; color: var(--muted); line-height: 1.7;
  max-width: 640px; margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ─── Features grid ───────────────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  position: relative; overflow: hidden; transition: all .2s ease;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
}
.feature-card:hover { border-color: rgba(46,196,160,.25); transform: translateY(-2px); }
.feature-icon  { font-size: 1.4rem; margin-bottom: 12px; }
.feature-title { font-family: var(--font-display); font-size: .95rem; font-weight: 700; margin-bottom: 8px; }
.feature-desc  { font-size: .82rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr; } }

/* ─── Deploy section ──────────────────────────────────────────────────────── */
.deploy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.code-block {
  background: var(--code-bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.code-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: rgba(128,128,128,.05);
  border-bottom: 1px solid var(--border);
}
.code-dots { display: flex; gap: 6px; }
.code-dot { width: 10px; height: 10px; border-radius: 50%; }
.code-dot:nth-child(1) { background: #ff5f57; }
.code-dot:nth-child(2) { background: #febc2e; }
.code-dot:nth-child(3) { background: #28c840; }
.code-title { font-size: .75rem; color: var(--faint); font-family: var(--font-mono); }
.code-body { padding: 20px; overflow-x: auto; }
.code-body pre { font-family: var(--font-mono); font-size: .82rem; line-height: 1.8; color: var(--text); white-space: pre; }
.c  { color: var(--faint); }
.kw { color: var(--teal); }
.st { color: var(--violet); }

.deploy-steps { display: flex; flex-direction: column; gap: 20px; }
.deploy-step  { display: flex; gap: 16px; align-items: flex-start; }
.deploy-step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(46,196,160,.12); border: 1px solid rgba(46,196,160,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 800; color: var(--teal); flex-shrink: 0;
}
.deploy-step-title { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.deploy-step-body  { font-size: .85rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 768px) { .deploy-grid { grid-template-columns: 1fr; } }

/* ─── Section labels ──────────────────────────────────────────────────────── */
.section-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700; line-height: 1.2; margin-bottom: 20px; letter-spacing: -.02em;
}
.section-sub { font-size: 1.05rem; color: var(--muted); line-height: 1.7; max-width: 560px; margin-bottom: 48px; }

/* ─── Papillon link callout ───────────────────────────────────────────────── */
.papillon-link {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; transition: border-color .2s ease;
}
.papillon-link:hover { border-color: rgba(108,92,231,.3); }
.papillon-link-left { display: flex; align-items: center; gap: 12px; }
.papillon-link-left img { width: 36px; height: 36px; }
.papillon-link-name { font-family: var(--font-display); font-size: .95rem; font-weight: 700; }
.papillon-link-desc { font-size: .82rem; color: var(--muted); margin-top: 2px; }

/* ─── Why Registry ────────────────────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.why-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  display: flex; gap: 20px; align-items: flex-start; transition: all .2s ease;
}
.why-card:hover { border-color: rgba(108,92,231,.25); transform: translateY(-2px); }
.why-num {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: rgba(108,92,231,.12); border: 1px solid rgba(108,92,231,.25);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: .85rem; font-weight: 900; color: var(--violet);
}
.why-content-title { font-family: var(--font-display); font-size: .95rem; font-weight: 700; margin-bottom: 8px; }
.why-content-body  { font-size: .82rem; color: var(--muted); line-height: 1.7; }
.why-content-body code { font-family: var(--font-mono); font-size: .8em; color: var(--teal); }
.mesh-callout {
  margin-top: 40px; background: rgba(108,92,231,.07);
  border: 1px solid rgba(108,92,231,.2); border-radius: var(--radius-lg); padding: 28px 32px;
  display: flex; gap: 24px; align-items: flex-start;
}
.mesh-callout-icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 2px; }
.mesh-callout-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.mesh-callout-body  { font-size: .875rem; color: var(--muted); line-height: 1.7; }
.mesh-callout-body code { font-family: var(--font-mono); font-size: .8em; color: var(--violet); }
@media (max-width: 768px) { .why-grid { grid-template-columns: 1fr; } }

/* ─── Footer override ─────────────────────────────────────────────────────── */
footer { padding: 40px 0; }
.footer-logo {
  font-family: var(--font-display); font-size: 1rem; font-weight: 900; letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--teal), var(--indigo));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-copy { font-family: var(--font-mono); font-size: .8rem; color: var(--faint); }
