/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ---------- tokens ---------- */
:root {
  --bg-0: #0b0812;
  --bg-1: #190f2a;
  --ink: #f4eefe;
  --ink-dim: #b9a8d6;
  --ink-faint: #7d6da0;
  --accent: #a668ff;
  --accent-2: #ff5cdc;
  --accent-3: #6a3bff;
  --card: rgba(255, 255, 255, 0.04);
  --card-stroke: rgba(166, 104, 255, 0.18);
  --card-stroke-hi: rgba(166, 104, 255, 0.45);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

/* ---------- base ---------- */
body {
  font-family: 'Roboto Condensed', 'Roboto', system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg-0);
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

/* ---------- animated background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 20% 0%, rgba(106,59,255,0.30), transparent 60%),
    radial-gradient(ellipse 80% 60% at 90% 100%, rgba(255,92,220,0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 60%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  mix-blend-mode: screen;
  opacity: 0.55;
  will-change: transform;
}
.orb--1 {
  width: 620px; height: 620px; left: -120px; top: -160px;
  background: radial-gradient(circle at 30% 30%, #6a3bff, #2a0f6f 60%, transparent 70%);
  animation: drift1 22s ease-in-out infinite alternate;
}
.orb--2 {
  width: 540px; height: 540px; right: -120px; top: 18%;
  background: radial-gradient(circle at 60% 40%, #a668ff, #4a1f9c 55%, transparent 70%);
  animation: drift2 28s ease-in-out infinite alternate;
}
.orb--3 {
  width: 720px; height: 720px; left: 25%; bottom: -240px;
  background: radial-gradient(circle at 50% 50%, #4321a8, #190a40 55%, transparent 70%);
  animation: drift3 34s ease-in-out infinite alternate;
  opacity: 0.7;
}
.orb--4 {
  width: 420px; height: 420px; right: 15%; bottom: 10%;
  background: radial-gradient(circle at 50% 50%, #ff5cdc, #5a1668 55%, transparent 70%);
  animation: drift4 26s ease-in-out infinite alternate;
  opacity: 0.35;
}
.grain {
  position: absolute;
  inset: -50%;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.12;
  animation: grain 8s steps(8) infinite;
  pointer-events: none;
}
@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(160px,120px) scale(1.15); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(-160px,180px) scale(1.1); } }
@keyframes drift3 { from { transform: translate(0,0) scale(1); } to { transform: translate(140px,-160px) scale(1.08); } }
@keyframes drift4 { from { transform: translate(0,0) scale(1); } to { transform: translate(-200px,-140px) scale(1.2); } }
@keyframes grain {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-5%,5%); }
  50%  { transform: translate(5%,-5%); }
  75%  { transform: translate(-5%,-5%); }
  100% { transform: translate(0,0); }
}
@media (prefers-reduced-motion: reduce) {
  .orb, .grain { animation: none; }
}

/* ---------- layout ---------- */
.page {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0 56px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

/* ---------- hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 800px;
}
.hero__id {
  display: flex;
  align-items: center;
  gap: 22px;
}
.hero__avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  flex: 0 0 auto;
  box-shadow:
    0 0 0 2px rgba(166, 104, 255, 0.55),
    0 16px 50px rgba(106, 59, 255, 0.45);
  object-fit: cover;
}
.hero__title h1 {
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1;
}
.hero__role {
  margin: 8px 0 0;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--ink-dim);
  font-weight: 400;
}
.hero__intro {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink);
  text-wrap: pretty;
  max-width: 65ch;
}

/* ---------- features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--card-stroke);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.feature:hover {
  border-color: var(--card-stroke-hi);
  transform: translateY(-2px);
}
.feature__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
}
.feature h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  font-family: 'Roboto', sans-serif;
}
.feature p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 16px;
}
.feature strong { color: var(--accent); font-weight: 600; }

/* ---------- validators ---------- */
.validators { display: flex; flex-direction: column; gap: 28px; }
.validators__heading {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.validators__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.chain {
  background: var(--card);
  border: 1px solid var(--card-stroke);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: inherit;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.chain:hover {
  border-color: var(--card-stroke-hi);
  background: rgba(166, 104, 255, 0.06);
  transform: translateY(-2px);
}
.chain__link {
  margin-top: auto;
  padding-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.01em;
}
.chain__link svg { transition: transform 0.25s ease; }
.chain:hover .chain__link svg { transform: translate(2px, -2px); }
.chain__logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: contain;
}
.chain h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  font-family: 'Roboto', sans-serif;
}
.chain p { margin: 0; color: var(--ink-dim); font-size: 16px; }

/* ---------- contact ---------- */
.contact {
  background: linear-gradient(135deg, rgba(106,59,255,0.18), rgba(255,92,220,0.08));
  border: 1px solid var(--card-stroke);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact h2 {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
}
.contact p {
  margin: 0;
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--ink);
}
.contact strong { color: var(--accent); font-weight: 600; }
.contact__handles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.contact__handle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--card-stroke);
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.contact__handle:hover {
  background: rgba(166,104,255,0.18);
  border-color: var(--card-stroke-hi);
  transform: translateY(-1px);
}
.contact__icon { width: 20px; height: 20px; color: var(--accent); }
.contact__icon--img { border-radius: 50%; }

/* ---------- footer ---------- */
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--ink-faint);
  font-size: 14px;
}
.foot a { color: var(--ink-dim); }
.foot a:hover { color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .features, .validators__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .page { padding: 56px 0 40px; gap: 56px; }
  .features, .validators__grid { grid-template-columns: 1fr; }
  .hero__id { gap: 18px; }
  .hero__avatar { width: 72px; height: 72px; }
  .hero__title h1 { font-size: 44px; }
  .contact { padding: 28px 24px; }
}
@media (max-width: 380px) {
  .hero__avatar { width: 64px; height: 64px; }
  .hero__title h1 { font-size: 38px; }
}
