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

:root {
  --bg: #ffffff;
  --surface: #f7f7f8;
  --accent: #111111;
  --accent-hover: #333333;
  --text: #111111;
  --text-muted: #6b6b76;
  --border: #e4e4e8;
  --pfp-ring: #ffffff;
  --pfp-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Nunito", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  width: min(720px, 92vw);
  margin-inline: auto;
}

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

img {
  display: block;
  max-width: 100%;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
  width: min(960px, 92vw);
  margin-inline: auto;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.05rem;
}

.header__logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.nav__link {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.15s;
}

.nav__link:hover {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn--outline {
  background: var(--bg);
  border: 2px solid var(--border);
  color: var(--text);
}

.btn--outline:hover {
  border-color: var(--text);
  background: var(--bg);
}

.btn--sm {
  padding: 0.42rem 1rem;
  font-size: 0.82rem;
}

/* Profile / PFP layout */
.profile {
  padding-bottom: 2.5rem;
}

.profile__banner-wrap {
  width: 100%;
  max-height: 220px;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.profile__banner {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.profile__body {
  position: relative;
  padding-top: 0;
}

.profile__pfp-wrap {
  margin-top: -72px;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.profile__pfp {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--pfp-ring);
  box-shadow: var(--pfp-shadow);
  background: var(--bg);
}

.profile__info {
  text-align: center;
}

.profile__ticker {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.profile__name {
  font-size: clamp(2rem, 7vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.profile__bio {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 0.35rem;
}

.profile__meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.profile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-bottom: 1.75rem;
}

/* Contract */
.ca-box {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 0.55rem 0.55rem 1rem;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.ca-box__label {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ca-box__address {
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  word-break: break-all;
  color: var(--text);
}

.ca-box__copy {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s;
}

.ca-box__copy:hover:not(:disabled) {
  background: var(--accent-hover);
}

.ca-box__copy:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ca-box__copy.copied {
  background: #16a34a;
}

/* Chart */
.chart-section {
  padding: 2.5rem 0 3rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  text-align: center;
}

.section-desc {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
}

.chart-wrap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  min-height: 500px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.chart-iframe {
  width: 100%;
  height: 500px;
  display: block;
  border: none;
}

.chart-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  gap: 0.65rem;
  font-weight: 600;
}

.chart-placeholder__pfp {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  margin-bottom: 0.25rem;
}

.chart-placeholder__hint code {
  background: var(--surface);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  font-size: 0.82rem;
  border: 1px solid var(--border);
}

.chart-link {
  display: block;
  margin-top: 1rem;
  color: var(--text);
  font-weight: 800;
  font-size: 0.88rem;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* About */
.about {
  padding: 3rem 0 4rem;
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.about__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.35rem;
  text-align: center;
}

.about__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.75rem;
  border: 2px solid var(--border);
}

.about__card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.about__card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  background: var(--bg);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.95rem;
}

.footer__pfp {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.footer__disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.footer__links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.footer__links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Responsive */
@media (max-width: 600px) {
  .nav__link:not(:last-child) {
    display: none;
  }

  .profile__banner,
  .profile__banner-wrap {
    height: 160px;
    max-height: 160px;
  }

  .profile__pfp {
    width: 120px;
    height: 120px;
  }

  .profile__pfp-wrap {
    margin-top: -60px;
  }

  .profile__actions .btn {
    width: 100%;
  }

  .ca-box {
    flex-direction: column;
    border-radius: 16px;
    padding: 1rem;
  }
}

@media (min-width: 601px) {
  .container {
    width: min(720px, 92vw);
  }
}
