:root {
  --bg: #07080a;
  --ink: #f4f1ea;
  --ink-dim: rgba(244, 241, 234, 0.62);
  --ink-faint: rgba(244, 241, 234, 0.34);
  --accent: #d8a24a;
  --accent-hot: #e6b15e;
  --warm-shadow: #1a1206;
  --shadow: rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
  height: 100%;
}

body {
  font-family: "Space Grotesk", sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* --- Atmosphere --- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}

.bg__glow {
  position: absolute;
  top: -18%;
  left: 50%;
  width: 90vmin;
  height: 90vmin;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 40%, rgba(216, 162, 74, 0.22) 0%, transparent 55%),
    radial-gradient(circle at 30% 70%, rgba(26, 18, 6, 0.9) 0%, transparent 50%);
  filter: blur(40px);
  animation: glow-breathe 8s var(--ease) infinite alternate;
}

.bg__grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

.bg__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 8, 10, 0.35) 0%, transparent 28%, transparent 62%, rgba(7, 8, 10, 0.85) 100%),
    radial-gradient(ellipse 70% 50% at 50% 35%, transparent 20%, rgba(7, 8, 10, 0.75) 100%);
}

@keyframes glow-breathe {
  from { opacity: 0.75; transform: translateX(-50%) scale(1); }
  to { opacity: 1; transform: translateX(-50%) scale(1.06); }
}

/* --- Shell --- */
.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px 48px;
}

/* --- Topbar --- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 8px;
  flex-wrap: wrap;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Instrument Serif", serif;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  transition: color 0.25s var(--ease);
}

.mark:hover {
  color: var(--accent);
}

.mark__logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(216, 162, 74, 0.45);
}

.live {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.live__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(244, 241, 234, 0.12);
  background: rgba(244, 241, 234, 0.04);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
}

.live__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(216, 162, 74, 0.55);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(216, 162, 74, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(216, 162, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(216, 162, 74, 0); }
}

.live__buy,
.live__x {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
}

.live__buy {
  background: var(--accent);
  color: #120e08;
}

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

.live__x {
  border: 1px solid rgba(244, 241, 234, 0.14);
  color: var(--ink);
  background: rgba(244, 241, 234, 0.03);
}

.live__x:hover {
  border-color: rgba(216, 162, 74, 0.5);
  color: var(--accent);
}

.arr {
  transition: transform 0.2s var(--ease);
}

.live__buy:hover .arr,
.live__x:hover .arr {
  transform: translateX(3px);
}

/* --- Hero --- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 0 72px;
  gap: 0;
}

.hero__visual {
  position: relative;
  width: 132px;
  height: 132px;
  margin-bottom: 28px;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(216, 162, 74, 0.55);
  box-shadow:
    0 0 0 10px rgba(216, 162, 74, 0.06),
    0 28px 60px -20px rgba(216, 162, 74, 0.45),
    0 0 80px -20px rgba(216, 162, 74, 0.35);
  animation: float 5.5s var(--ease) infinite;
}

.avatar-ring {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px dashed rgba(216, 162, 74, 0.35);
  animation: spin 22s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 18px;
}

.hero__title {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(3.2rem, 9vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.hero__title .line {
  display: block;
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__sub {
  max-width: 420px;
  color: var(--ink-dim);
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  line-height: 1.55;
  margin-bottom: 32px;
}

/* --- Claim --- */
.claim-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: min(100%, 320px);
  padding: 16px 28px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #120e08;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 18px 40px -18px rgba(216, 162, 74, 0.65);
  overflow: hidden;
}

.claim-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.claim-btn:hover {
  background: var(--accent-hot);
  transform: translateY(-2px);
  box-shadow: 0 22px 48px -16px rgba(216, 162, 74, 0.75);
}

.claim-btn:hover::before {
  transform: translateX(120%);
}

.claim-btn:hover .claim-arrow {
  transform: translateX(4px);
}

.claim-arrow {
  transition: transform 0.2s var(--ease);
}

.claim-btn:active {
  transform: translateY(0);
}

.claim-btn.loading {
  opacity: 0.7;
  cursor: wait;
}

.claim-btn.success {
  background: #c45a4a;
  color: var(--ink);
  box-shadow: 0 18px 40px -18px rgba(196, 90, 74, 0.55);
}

/* --- Meta --- */
.meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(244, 241, 234, 0.1);
  width: min(100%, 420px);
}

.meta__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 72px;
}

.meta__label {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.meta__value {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}

.meta__value--live {
  color: var(--accent);
}

/* --- Side CTAs (Motion-style) --- */
.side-cta {
  position: fixed;
  z-index: 3;
  right: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(244, 241, 234, 0.12);
  background: rgba(7, 8, 10, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.2s var(--ease);
}

.side-cta--x {
  bottom: 92px;
}

.side-cta--chart {
  bottom: 42px;
}

.side-cta__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.side-cta__arrow {
  transition: transform 0.2s var(--ease);
  color: var(--accent);
}

.side-cta:hover {
  color: var(--ink);
  border-color: rgba(216, 162, 74, 0.45);
  background: rgba(26, 18, 6, 0.85);
  transform: translateX(-2px);
}

.side-cta:hover .side-cta__arrow {
  transform: translateX(3px);
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 1;
  padding: 0 28px 28px;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer__dot {
  opacity: 0.5;
}

/* --- Mobile --- */
@media (max-width: 720px) {
  .shell {
    padding: 0 18px 36px;
  }

  .topbar {
    padding-top: 16px;
  }

  .live {
    width: 100%;
  }

  .live__label,
  .live__buy,
  .live__x {
    flex: 1 1 auto;
    justify-content: center;
  }

  .hero {
    padding: 36px 0 100px;
  }

  .hero__visual {
    width: 104px;
    height: 104px;
  }

  .meta {
    gap: 16px;
  }

  .side-cta {
    right: 14px;
    padding: 9px 12px;
    font-size: 0.68rem;
  }

  .side-cta--x {
    bottom: 78px;
  }

  .side-cta--chart {
    bottom: 32px;
  }
}
