:root {
  --night: #0b1033;
  --night-2: #1a2166;
  --dusk: #3a2f7a;
  --glow: #3dff6e;
  --emerald: #13a83e;
  --emerald-deep: #0a5e24;
  --fur: #d9803a;
  --ink: #eef2ff;
  --muted: #a8b0d8;
  --line: rgba(160, 175, 255, 0.18);
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Archivo", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 55% at 85% 90%, rgba(80, 60, 160, 0.45), transparent 70%),
    radial-gradient(ellipse 80% 60% at 30% 10%, var(--night-2), transparent 75%),
    var(--night);
  overflow-x: hidden;
}

/* starfield */
.sky {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(1px 1px at 28% 72%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 44% 8%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 63% 34%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(2px 2px at 78% 14%, rgba(255,255,255,.75), transparent 60%),
    radial-gradient(1px 1px at 90% 52%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 8% 88%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 54% 92%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 36% 46%, rgba(255,255,255,.4), transparent 60%);
  animation: twinkle 6s ease-in-out infinite alternate;
}

@keyframes twinkle { from { opacity: .55; } to { opacity: 1; } }

.top, .hero, .foot { position: relative; z-index: 1; }

/* header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(16px, 4vw, 48px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-stretch: 110%;
  letter-spacing: .01em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--glow);
  box-shadow: 0 0 14px rgba(61, 255, 110, .45);
}

.top-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 4px;
  transition: color .2s;
}
.top-link:hover { color: var(--glow); }

/* hero */
.hero {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 64px) clamp(16px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

.portrait {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 500px;
  justify-self: center;
}

.portrait img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(61, 255, 110, .85);
}

.ring {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px solid rgba(61, 255, 110, .35);
  box-shadow:
    0 0 40px rgba(61, 255, 110, .35),
    0 0 120px rgba(19, 168, 62, .35),
    inset 0 0 40px rgba(61, 255, 110, .2);
  animation: pulse 3.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .8; }
  50% { transform: scale(1.025); opacity: 1; }
}

.copy { min-width: 0; }

.ticker {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(61, 255, 110, .5);
  color: var(--glow);
  background: rgba(19, 168, 62, .12);
  font-weight: 700;
  letter-spacing: .08em;
  font-size: 14px;
}

h1 {
  margin: 20px 0 16px;
  font-size: clamp(44px, 7vw, 92px);
  line-height: .92;
  font-weight: 900;
  font-stretch: 118%;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

h1 em {
  font-style: normal;
  color: var(--glow);
  text-shadow: 0 0 24px rgba(61, 255, 110, .55);
}

.lede {
  margin: 0 0 32px;
  max-width: 34ch;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--muted);
}

/* buttons */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
}

.btn:hover {
  border-color: rgba(61, 255, 110, .6);
  background: rgba(19, 168, 62, .12);
  transform: translateY(-2px);
}

.btn-main {
  background: var(--glow);
  border-color: var(--glow);
  color: #06210f;
  box-shadow: 0 0 28px rgba(61, 255, 110, .4);
}

.btn-main:hover {
  background: #7dff9e;
  box-shadow: 0 0 40px rgba(61, 255, 110, .6);
}

/* contract */
.ca {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 520px;
  padding: 8px 8px 8px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 40, .6);
}

.ca-label {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--glow);
}

.ca code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  color: var(--ink);
  text-align: left;
}

.copy-btn {
  flex-shrink: 0;
  min-height: 44px;
  min-width: 84px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--emerald);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.copy-btn:hover { background: #18c24a; }
.copy-btn.is-copied { background: var(--glow); color: #06210f; }

.btn:focus-visible, .copy-btn:focus-visible, .brand:focus-visible, .top-link:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
}

/* footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 24px clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

/* mobile */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .portrait { max-width: 340px; }
  .lede { margin-left: auto; margin-right: auto; }
  .links { justify-content: center; }
  .ca { margin: 0 auto; }
  .foot { justify-content: center; text-align: center; }
}

@media (max-width: 420px) {
  .btn { flex: 1 1 auto; }
  .top-link { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .ring, .sky { animation: none; }
  .btn { transition: none; }
}
