:root {
  --accent: #a78bfa;
  --accent-strong: #5b35ad;
  --panel: rgba(15, 15, 18, 0.86);
  --panel-strong: rgba(14, 14, 16, 0.9);
  --line: rgba(255, 255, 255, 0.18);
  --text-soft: rgba(255, 255, 255, 0.72);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  background: #0b0b0b;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  scroll-behavior: smooth;
}

body {
  overflow: auto;
}

html.is-embedded,
html.is-embedded body {
  background: transparent;
}

html,
body,
.profile-main {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.profile-main::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

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

button {
  color: inherit;
  font: inherit;
}

p,
li {
  text-wrap: pretty;
}

.profile-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 77, 90, 0.08), transparent 28%),
    radial-gradient(circle at 88% 4%, rgba(167, 139, 250, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(10, 10, 12, 0.94), rgba(5, 5, 7, 0.84));
}

.profile-main {
  width: min(1120px, 100%);
  min-width: 0;
  overflow: auto;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 42px);
}

.page-section + .page-section {
  margin-top: clamp(20px, 3vw, 30px);
}

.hero-card,
.surface-card,
.clarification-card,
.cta-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 22px 52px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 320px);
  gap: clamp(20px, 4vw, 44px);
  align-items: start;
  padding: clamp(22px, 4vw, 38px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.05em;
}

h1 {
  max-width: 720px;
  font-size: clamp(3rem, 6vw, 6.4rem);
  line-height: 0.9;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 2.2vw, 2.4rem);
  line-height: 0.98;
}

p {
  max-width: 72ch;
  margin: 0 0 14px;
  color: var(--text-soft);
  font-size: clamp(0.96rem, 1.35vw, 1.08rem);
  line-height: 1.65;
}

.hero-subhead {
  max-width: 700px;
  margin: 16px 0 18px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.02rem, 1.6vw, 1.24rem);
  font-weight: 700;
  line-height: 1.45;
}

.hero-body:last-of-type,
.surface-card p:last-of-type,
.clarification-card p:last-of-type,
.cta-card p:last-of-type,
.project-card p:last-of-type {
  margin-bottom: 0;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 0;
}

.fact-card {
  margin: 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.fact-card dt {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fact-card dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.4;
}

.button-link,
.project-card a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: #fff;
  background: rgba(15, 15, 18, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
  cursor: pointer;
}

.button-link:hover,
.button-link:focus-visible,
.project-card a:hover,
.project-card a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(167, 139, 250, 0.42);
  background:
    linear-gradient(135deg, rgba(167, 139, 250, 0.16), rgba(255, 77, 90, 0.04)),
    rgba(16, 14, 20, 0.92);
  outline: 0;
}

.button-link.primary,
.cta-card .primary {
  background: linear-gradient(135deg, rgba(109, 70, 190, 0.95), rgba(48, 28, 92, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 16px 34px rgba(167, 139, 250, 0.16);
}

.identity-card {
  display: grid;
  gap: 10px;
  align-content: start;
  justify-items: start;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(8, 8, 10, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
}

.identity-card img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  padding: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
}

.identity-card p,
.identity-card small {
  margin: 0;
}

.identity-card p {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.identity-card strong {
  font-size: 1.4rem;
  line-height: 1;
}

.identity-card span {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 700;
}

.identity-card small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.surface-card,
.clarification-card,
.cta-card {
  padding: clamp(20px, 3vw, 30px);
}

.official-links a {
  display: block;
  padding: 14px 16px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  font-size: 0.86rem;
  font-weight: 800;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.official-links a:hover,
.official-links a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(167, 139, 250, 0.32);
  background:
    linear-gradient(135deg, rgba(167, 139, 250, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(14, 14, 16, 0.92);
  outline: 0;
}

.point-grid,
.ecosystem-grid,
.project-grid {
  display: grid;
  gap: 14px;
}

.point-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.point-card {
  min-height: 148px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.point-card strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.point-card p {
  margin: 0;
  font-size: 0.84rem;
}

.ecosystem-grid,
.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ecosystem-card,
.project-card {
  min-height: 100%;
}

.ecosystem-card a {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ecosystem-card a:hover,
.ecosystem-card a:focus-visible {
  color: #fff;
  outline: 0;
}

.clarification-card {
  margin-top: 16px;
  background:
    linear-gradient(135deg, rgba(167, 139, 250, 0.14), rgba(255, 77, 90, 0.05)),
    rgba(16, 14, 20, 0.92);
  border-color: rgba(167, 139, 250, 0.24);
}

.skill-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 18px;
}

.skill-list li {
  break-inside: avoid;
  margin-bottom: 10px;
  padding-left: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  line-height: 1.45;
  position: relative;
}

.skill-list li::before {
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.1);
}

.project-card {
  display: grid;
  align-content: start;
  gap: 16px;
}

.project-card a {
  justify-self: start;
}

.official-links {
  display: grid;
  gap: 10px;
}

.link-context {
  margin-top: 16px;
  font-size: 0.88rem;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-card .primary {
  min-width: 170px;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.summary-card a {
  color: var(--accent);
}

.summary-card a:hover,
.summary-card a:focus-visible {
  color: #fff;
  outline: 0;
}

.summary-note {
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 1180px) {
  .hero-card,
  .content-grid,
  .point-grid,
  .ecosystem-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .profile-page {
    min-height: 100svh;
  }

  .profile-main {
    padding: 22px 16px 26px;
  }

  .hero-card,
  .content-grid,
  .point-grid,
  .ecosystem-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .fact-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.5rem, 13vw, 4rem);
    letter-spacing: -0.045em;
  }

  h2 {
    font-size: clamp(1.35rem, 7vw, 2rem);
  }

  .skill-list {
    columns: 1;
  }

  .cta-card {
    align-items: stretch;
  }

  .button-link,
  .cta-card .primary {
    width: 100%;
  }

  .identity-card {
    justify-items: start;
  }
}
