:root {
  --bg: #08090a;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --text: #f7f8f8;
  --muted: #8a8f98;
  --soft: #d0d6e0;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --accent: #7170ff;
  --accent-strong: #5e6ad2;
  --accent-hover: #8b8aff;
  --green: #10b981;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: "cv01", "ss03";
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

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

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at top, black 0%, transparent 70%);
  pointer-events: none;
}

.glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.22;
  pointer-events: none;
}
.glow-one { top: -180px; right: -140px; background: #7170ff; }
.glow-two { bottom: -220px; left: -140px; background: #10b981; opacity: 0.10; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(8,9,10,0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-soft);
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 35px rgba(113,112,255,0.35);
}

nav { display: flex; align-items: center; gap: 22px; color: var(--soft); font-size: 13px; font-weight: 510; }
nav a { transition: color .18s ease; }
nav a:hover { color: var(--text); }
.nav-cta { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.03); }

.section-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; position: relative; }
.hero { padding: 96px 0 86px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 38px; align-items: center; }
.status-pill, .eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.025);
  font-size: 11px;
  margin-bottom: 28px;
  text-transform: none;
  letter-spacing: 0;
}
.pulse { width: 8px; height: 8px; border-radius: 999px; background: var(--green); box-shadow: 0 0 0 6px rgba(16,185,129,0.12); }
.eyebrow { font-size: 12px; font-weight: 500; margin: 0 0 16px; }

h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 600;
  margin-bottom: 24px;
}
h2 {
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1;
  letter-spacing: -0.044em;
  font-weight: 560;
  margin-bottom: 18px;
}
h3 { font-size: 20px; letter-spacing: -0.024em; margin-bottom: 12px; }
.lead, .copy-stack p, .section-heading p, .final-cta p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: -0.01em;
}
.lead { max-width: 640px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 560;
  border: 1px solid var(--line);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent-strong); border-color: rgba(255,255,255,0.16); color: white; box-shadow: 0 18px 70px rgba(94,106,210,0.28); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.ghost { background: rgba(255,255,255,0.025); color: var(--soft); }

.avatar-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 32px 120px rgba(0,0,0,0.52), 0 0 90px rgba(113,112,255,0.12);
  overflow: hidden;
  transform: rotate(1.2deg);
}
.avatar-frame {
  aspect-ratio: 3 / 4;
  background: #08090a;
  overflow: hidden;
}
.avatar-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-caption {
  padding: 20px 22px 22px;
  border-top: 1px solid var(--line-soft);
  background: rgba(8,9,10,0.78);
}
.caption-kicker {
  display: block;
  margin-bottom: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.11em;
  color: var(--accent);
}
.avatar-caption strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.avatar-caption p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}
.muted { color: var(--accent); }

.evolved {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 34px 130px rgba(0,0,0,0.56), 0 0 96px rgba(227,79,79,0.16);
}

.split-section { padding: 76px 0; display: grid; grid-template-columns: 0.8fr 1fr; gap: 52px; border-top: 1px solid var(--line-soft); }
.copy-stack p { margin-bottom: 18px; }
.section-heading { max-width: 720px; margin-bottom: 28px; }
.section-heading.compact { margin-bottom: 22px; }

.evolution-section { padding: 86px 0; border-top: 1px solid var(--line-soft); }
.evolution-grid { display: grid; grid-template-columns: 0.82fr 1fr 1.08fr; gap: 16px; align-items: stretch; }
.portrait-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  overflow: hidden;
}
.portrait-card.featured { border-color: rgba(255,196,124,0.22); box-shadow: 0 24px 90px rgba(227,79,79,0.08); }
.portrait-card.legacy { opacity: 0.82; }
.portrait-label {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(8,9,10,0.54);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.evolved-label { color: #ffd6a7; border-color: rgba(255,214,167,0.25); }
.portrait-media {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--line-soft);
}
.portrait-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.legacy-media, .avatar-media { aspect-ratio: 1 / 1; }
.full-body-media { aspect-ratio: 3 / 4; }
.full-body-media img { object-fit: contain; background: radial-gradient(circle at top, rgba(255,255,255,0.08), rgba(8,9,10,0.82)); }
.portrait-card h3 { margin: 18px 2px 8px; }
.portrait-card p { margin: 0 2px 4px; color: var(--muted); line-height: 1.55; }

.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature-card {
  min-height: 244px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-4px); background: var(--panel-strong); border-color: rgba(255,255,255,0.15); }
.card-index { font-family: 'JetBrains Mono', monospace; color: var(--accent); font-size: 12px; }
.feature-card h3 { margin-top: 62px; }
.feature-card p { color: var(--muted); line-height: 1.55; margin-bottom: 0; }

.protocol { padding: 86px 0; }
.protocol-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,0.025); }
.protocol-list div { display: grid; grid-template-columns: 92px 1fr; gap: 20px; align-items: center; padding: 22px 26px; border-bottom: 1px solid var(--line-soft); }
.protocol-list div:last-child { border-bottom: 0; }
.protocol-list strong { font-family: 'JetBrains Mono', monospace; color: var(--accent); font-size: 13px; }
.protocol-list span { color: var(--soft); font-size: 18px; }

.final-cta { padding: 88px 0 110px; text-align: center; }
.final-cta p { max-width: 680px; margin: 0 auto 28px; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 920px) {
  .hero-grid, .split-section { grid-template-columns: 1fr; }
  .evolution-grid { grid-template-columns: 1fr; }
  .full-body-card { max-width: 520px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  nav a:not(.nav-cta) { display: none; }
}
@media (max-width: 600px) {
  .site-header { padding: 0 18px; }
  .section-shell { width: min(100% - 28px, 1120px); }
  .hero { padding-top: 62px; }
  .cards-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .feature-card h3 { margin-top: 36px; }
  footer { flex-direction: column; }
}
