@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Newsreader:opsz,wght@6..72,200..800&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: rgba(255, 255, 255, 0.02);
  --panel-strong: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.05);
  --text: #ebebeb;
  --muted: #9ca3af;
  --green: #10b981;
  --green-soft: rgba(16, 185, 129, 0.16);
  --gold: #d9b45f;
  --red: #ff4d6d;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  --curve: cubic-bezier(0.16, 1, 0.3, 1);
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(16, 185, 129, 0.18), transparent 24rem),
    radial-gradient(circle at 82% 2%, rgba(235, 235, 235, 0.08), transparent 22rem),
    radial-gradient(circle at 54% 58%, rgba(16, 185, 129, 0.07), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 384px;
  height: 384px;
  border-radius: 40% 60% 60% 40% / 70% 30% 70% 30%;
  background: rgba(16, 185, 129, 0.1);
  filter: blur(100px);
  pointer-events: none;
  animation: morphGlow 8s var(--curve) infinite alternate;
}

body::before {
  left: -9rem;
  top: 12rem;
}

body::after {
  right: -11rem;
  bottom: 8rem;
  animation-delay: -3s;
}

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

button,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(12px);
  transition: background 360ms var(--curve), border-color 360ms var(--curve);
}

.topbar.is-scrolled {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(5, 5, 5, 0.86);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  font-weight: 760;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.brand-logo {
  width: 3.1rem;
  height: 3.1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.18);
}

.wallet {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  min-width: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.wallet-address {
  max-width: min(48vw, 35rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: border-color 260ms var(--curve), color 260ms var(--curve), background 260ms var(--curve);
}

.wallet-address:hover {
  border-color: rgba(16, 185, 129, 0.62);
  background: rgba(16, 185, 129, 0.08);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(360px, 2fr);
  gap: 1rem;
  padding: 1rem;
}

.main-column,
.feed-column,
.side-rail {
  min-width: 0;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.14), transparent 48%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.55;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: repeating-linear-gradient(90deg, rgba(16, 185, 129, 0.11) 0 1px, transparent 1px 68px);
  mask-image: linear-gradient(to top, black, transparent);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  max-width: none;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 720;
  letter-spacing: -0.06em;
}

h1 {
  max-width: 15ch;
  font-size: clamp(2.8rem, 5.15vw, 5.8rem);
  line-height: 0.9;
}

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

.hero-text {
  max-width: 72rem;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.12vw, 1.12rem);
  line-height: 1.6;
}

.panel,
.gallery-section,
.feed-column {
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.28);
}

.panel,
.gallery-section {
  padding: 1rem;
}

.panel > *,
.gallery-section > *,
.feed-column > *,
.image-card > * {
  position: relative;
  z-index: 1;
}

.section-heading,
.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.section-heading a,
.feed-header a,
.image-card a,
.secondary-link {
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading a::after,
.feed-header a::after,
.image-card a::after,
.secondary-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.18rem;
  width: 0;
  height: 1px;
  background: var(--green);
  transition: width 360ms var(--curve);
}

.section-heading a:hover::after,
.feed-header a:hover::after,
.image-card a:hover::after,
.secondary-link:hover::after {
  width: 100%;
}

.cap-readout {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0 0.8rem;
}

#marketCap {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4.8rem);
  font-weight: 780;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

#capPercent {
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.progress-shell {
  position: relative;
  height: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(12px);
}

.progress-fill {
  position: relative;
  width: 0%;
  height: 100%;
  min-width: 42px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(6, 78, 59, 0.9), rgba(16, 185, 129, 0.82), rgba(209, 250, 229, 0.76));
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.32);
  transition: width 800ms var(--curve);
}

.running-bull {
  position: absolute;
  right: -0.35rem;
  top: 50%;
  transform: translateY(-50%);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
  animation: run 520ms steps(2) infinite;
}

.target {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text);
  font-weight: 950;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}

@keyframes run {
  50% {
    transform: translateY(-46%) rotate(-5deg);
  }
}

.status-text {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.post-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.chip,
.primary-button,
.secondary-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 0.9rem;
  color: var(--text);
  cursor: pointer;
  transition: transform 260ms var(--curve), border-color 260ms var(--curve), background 260ms var(--curve), color 260ms var(--curve);
}

.chip:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
  border-color: rgba(16, 185, 129, 0.62);
}

.chip {
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.chip.active {
  border-color: rgba(16, 185, 129, 0.72);
  background: rgba(16, 185, 129, 0.14);
}

.composer {
  margin-top: 1rem;
}

textarea {
  width: 100%;
  min-height: 126px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  line-height: 1.5;
  backdrop-filter: blur(12px);
}

.composer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.primary-button {
  border-color: rgba(235, 235, 235, 0.82);
  background: #ebebeb;
  color: #050505;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0);
  animation: emeraldPulse 2.8s var(--curve) infinite;
}

.secondary-button {
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 0.9rem;
  background: rgba(255, 255, 255, 0.02);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.image-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel-strong);
  backdrop-filter: blur(12px);
}

.image-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.image-card a {
  display: block;
  padding: 0.75rem;
}

.feed-column {
  overflow: hidden;
}

.side-rail {
  position: sticky;
  top: 88px;
  align-self: start;
  display: grid;
  gap: 0.75rem;
  max-height: calc(100vh - 104px);
}

.side-rail > .feed-column {
  margin-top: 0;
}

.feed-header {
  min-height: 54px;
  padding: 0 0.85rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.feed-loading {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feed-loading::before {
  content: "";
  display: block;
  height: 120px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(16, 185, 129, 0.09), rgba(255, 255, 255, 0.02));
  background-size: 220% 100%;
  animation: shimmer 1.8s var(--curve) infinite;
}

.feed-loading a {
  color: var(--green);
}

.ansem-card {
  display: grid;
  gap: 0.7rem;
  padding: 0.95rem;
}

.ansem-card h2 {
  color: var(--text);
  font-size: clamp(1.65rem, 2.7vw, 2.55rem);
}

.ansem-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  max-width: 46rem;
  font-size: 0.84rem;
  line-height: 1.45;
}

.ansem-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.2rem;
}

.ansem-links a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.42rem;
  min-height: 38px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 0.68rem;
  color: var(--green);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 260ms var(--curve), background 260ms var(--curve), color 260ms var(--curve), transform 260ms var(--curve);
}

.ansem-links a:hover {
  border-color: rgba(16, 185, 129, 0.58);
  background: rgba(255, 255, 255, 0.035);
  transform: translateY(-1px);
}

.ansem-links a span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.x-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  border: 1px solid rgba(16, 185, 129, 0.34);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.56rem;
  line-height: 1;
}

.side-gallery {
  min-height: calc(100vh - 430px);
}

.vault-note {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.side-gallery .image-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.side-gallery .image-card img {
  aspect-ratio: 1;
}

@keyframes shimmer {
  from {
    background-position: 120% 0;
  }

  to {
    background-position: -120% 0;
  }
}

@keyframes morphGlow {
  from {
    border-radius: 40% 60% 60% 40% / 70% 30% 70% 30%;
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    border-radius: 60% 40% 40% 60% / 30% 70% 30% 70%;
    transform: translate3d(2rem, -1rem, 0) scale(1.12);
  }
}

@keyframes emeraldPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(16, 185, 129, 0);
  }

  50% {
    box-shadow: 0 0 32px rgba(16, 185, 129, 0.28);
  }
}

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .side-rail {
    position: static;
    max-height: none;
  }

}

@media (max-width: 1320px) {
  .ansem-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.9rem 1rem;
  }

  .wallet {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.4rem;
  }

  .wallet-address {
    max-width: 100%;
    width: 100%;
  }

  .layout {
    padding: 0.75rem;
  }

  .side-gallery .image-grid {
    grid-template-columns: 1fr;
  }

  .ansem-links {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 300px;
  }

  .hero-copy {
    padding: 1.3rem;
    max-width: 100%;
  }

  .cap-readout {
    align-items: flex-start;
    flex-direction: column;
  }

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