/* JackPad — cheerful green launchpad */

:root {
  --bg: #e8f5ef;
  --bg-2: #d4ebe0;
  --ink: #141416;
  --ink-soft: #2b2b30;
  --mute: #5f736a;
  --line: #b9d4c6;
  --ghost: #9bb8aa;
  --teal-1: #004a44;
  --teal-2: #03615b;
  --teal-3: #059c8e;
  --lime: #b8ff3c;
  --lime-soft: #d4ff8a;
  --sand: #fee6d3;
  --white: #fafaf7;
  --card-shadow: 0 24px 40px -16px rgba(3, 97, 91, 0.35),
    0 10px 22px -6px rgba(0, 74, 68, 0.2),
    inset 0 2px 0 rgba(255, 255, 220, 0.35);
  --sans: "DM Sans", system-ui, sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --nav-h: 4.5rem;
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(120% 70% at 50% 0%, #f2faf6 0%, #e8f5ef 55%, #cfe8dc 100%);
  overflow-x: hidden;
}

a {
  color: var(--teal-2);
}

img {
  max-width: 100%;
  height: auto;
}

@property --cp {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

/* ---- beach waves (cheerful teal) ---- */
.beach {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(
    to right,
    #004a44 0%,
    #03615b 8%,
    #028a7f 18%,
    #39a997 30%,
    #84b7a2 42%,
    #b5d4c0 52%,
    #d8ead8 62%,
    #e8f5ef 78%,
    #f2faf6 100%
  );
  opacity: 0.88;
}

.beach .wave {
  --_wave-shape-duration: 10s;
  --_wave-shape-delay: 0s;
  --_wave-move-duration: calc(var(--_wave-shape-duration) * 0.75);
  --_wave-move-delay: 0s;
  --_cp-factor: 1;
  --_cp: calc(var(--cp) * var(--_cp-factor));
  --_center: 50%;
  --_width: 50%;
  --_shape-line-p-x: 96%;
  --_shape-line-p-y: 0%;
  --_shape-curve-p-x: 87%;
  --_shape-curve-p-y: 40%;
  --_shape-curve-c-x: var(--_cp);
  --_shape-curve-c-y: 22%;
  --_shape-smooth-p-x: 84%;
  --_shape-smooth-p-y: 100%;
  --_shape-clip: shape(
    from 0% 0%,
    line to var(--_shape-line-p-x) var(--_shape-line-p-y),
    curve to var(--_shape-curve-p-x) var(--_shape-curve-p-y) with var(--_shape-curve-c-x) var(--_shape-curve-c-y)
      from origin,
    smooth to var(--_shape-smooth-p-x) var(--_shape-smooth-p-y),
    line to 0% 100%,
    close
  );
  --_opacity-min: 0.35;
  --_opacity-max: 0.85;
  position: absolute;
  left: calc(var(--_center) - var(--_width));
  width: var(--_width);
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0) 70%, rgba(255, 255, 255, 0.35) 90%),
    linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(184, 255, 60, 0.12) 100%);
  clip-path: var(--_shape-clip);
  animation: beach-wave-move-animation var(--_wave-move-duration) infinite ease-in-out,
    beach-wave-shape-animation var(--_wave-shape-duration) infinite ease-in-out;
  animation-delay: var(--_wave-move-delay), var(--_wave-shape-delay);
  will-change: transform, opacity;
}

.beach .wave.wave--1 {
  --_width: 50%;
}
.beach .wave.wave--2 {
  --_wave-shape-duration: 11s;
  --_wave-shape-delay: -2s;
  --_wave-move-delay: -2s;
  --_cp-factor: 0.9;
  --_width: 40%;
  --_shape-line-p-x: 100%;
  --_shape-curve-p-x: 77%;
  --_shape-curve-p-y: 50%;
  --_shape-smooth-p-x: 70%;
}
.beach .wave.wave--3 {
  --_wave-shape-duration: 14s;
  --_wave-shape-delay: -4s;
  --_wave-move-delay: -4s;
  --_cp-factor: 0.95;
  --_width: 30%;
  --_shape-line-p-x: 80%;
  --_shape-curve-p-x: 92%;
  --_shape-curve-p-y: 55%;
  --_shape-smooth-p-x: 44%;
}
.beach .wave.wave--4 {
  --_wave-shape-duration: 13s;
  --_wave-shape-delay: -6s;
  --_wave-move-delay: -6s;
  --_cp-factor: 0.85;
  --_width: 45%;
}

@keyframes beach-wave-shape-animation {
  50% {
    --cp: 70%;
  }
}

@keyframes beach-wave-move-animation {
  0%,
  100% {
    transform: translateX(0%);
    opacity: var(--_opacity-min);
  }
  50% {
    transform: translateX(var(--_center));
    opacity: var(--_opacity-max);
  }
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.1  0 0 0 0 0.1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---- stage fallback (inner pages) ---- */
.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(100% 60% at 50% 0%, #d8f0e6, transparent 70%);
}

.stage__photo,
.stage__video {
  display: none;
}

/* ---- nav ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.1rem var(--gutter);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav__logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 14px -4px rgba(3, 97, 91, 0.45);
}

.nav__word {
  font-size: 15px;
}

.nav__burger {
  display: none;
  background: transparent;
  border: 0;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--ink);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__link {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  position: relative;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--ink);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1.5px;
  background: currentColor;
  transition: width 0.35s cubic-bezier(0.7, 0, 0.2, 1);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  width: 100%;
}

.nav__connect,
.nav-cta,
.btn-create,
.button,
.arrow-pill {
  background: var(--ink);
  color: var(--white);
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.35s cubic-bezier(0.6, 0, 0.2, 1);
}

.nav__connect:hover,
.btn-create:hover,
.button:hover,
.arrow-pill:hover {
  transform: translateY(-2px);
}

.button {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  box-shadow: none;
}

@media (max-width: 750px) {
  .nav__burger {
    display: inline-flex;
  }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    background: rgba(242, 250, 246, 0.96);
    backdrop-filter: blur(12px);
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    box-shadow: 0 16px 32px -12px rgba(0, 40, 30, 0.25);
  }
  .nav__links.is-open {
    display: flex;
  }
}

/* ---- home hero ---- */
.page-home .ticker {
  display: none;
}

.hero {
  position: relative;
  z-index: 5;
  min-height: auto;
  padding: calc(var(--nav-h) + 2.25rem) var(--gutter) 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.hero__brand {
  font-weight: 700;
  font-size: clamp(40px, 6.4vw, 92px);
  letter-spacing: -0.035em;
  line-height: 1;
  text-align: center;
  color: var(--ink);
  margin: 0;
  z-index: 4;
  position: relative;
}

.hero__brand em {
  font-style: italic;
  font-weight: 800;
  background: linear-gradient(135deg, var(--teal-2), var(--lime));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__tag {
  margin: 0.55rem 0 0;
  font-size: clamp(12px, 1.6vw, 15px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 600;
  z-index: 4;
  position: relative;
}

.hero__ghost-wrap {
  position: relative;
  width: 100%;
  margin-top: -8px;
  display: flex;
  justify-content: center;
  z-index: 1;
}

.hero__ghost {
  font-style: italic;
  font-weight: 800;
  font-size: clamp(48px, 12vw, 140px);
  letter-spacing: -0.045em;
  line-height: 0.85;
  color: var(--ghost);
  text-align: center;
  white-space: nowrap;
  user-select: none;
  opacity: 0.28;
  text-shadow: 0 4px 12px rgba(3, 97, 91, 0.06);
}

.cards-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 0.7rem;
  width: min(1100px, 100%);
  margin: 1.25rem auto 0;
  z-index: 3;
}

.cards-row > * {
  min-width: 0;
}

.float-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(100px, 12vw, 148px);
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--teal-2) 0%, var(--teal-3) 45%, var(--lime-soft) 100%);
  box-shadow: 0 30px 50px -16px rgba(3, 97, 91, 0.45),
    0 14px 26px -8px rgba(0, 74, 68, 0.28),
    inset 0 2px 0 rgba(255, 255, 220, 0.4),
    inset 0 -4px 8px rgba(0, 40, 30, 0.35);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  will-change: transform;
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition: box-shadow 0.5s cubic-bezier(0.6, 0, 0.2, 1);
}

.float-card.is-in {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0deg);
  transition: transform 0.7s cubic-bezier(0.6, 0, 0.2, 1), opacity 0.7s ease,
    box-shadow 0.5s cubic-bezier(0.6, 0, 0.2, 1);
}

.float-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.28) 0%,
    transparent 35%,
    transparent 70%,
    rgba(0, 40, 30, 0.22) 100%
  );
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
}

.float-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.float-card:hover {
  box-shadow: 0 44px 70px -20px rgba(3, 97, 91, 0.55),
    0 22px 38px -10px rgba(0, 74, 68, 0.35),
    inset 0 2px 0 rgba(255, 255, 220, 0.5),
    inset 0 -4px 8px rgba(0, 40, 30, 0.35);
  transform: translateY(-8px) scale(1.03);
}

.float-card.is-official {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
  z-index: 6;
  width: clamp(124px, 15vw, 180px);
}

.float-card__meta {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(10, 30, 24, 0.72);
  color: #fafaf7;
  font-size: 10px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s, transform 0.35s;
}

.float-card:hover .float-card__meta,
.float-card.is-official .float-card__meta,
.float-card.is-in .float-card__meta {
  opacity: 1;
  transform: translateY(0);
}

.hero__sub {
  margin-top: 1.5rem;
  text-align: center;
  z-index: 4;
  position: relative;
}

.hero__lede {
  margin: 0.9rem auto 0;
  max-width: 420px;
  font-size: 15px;
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.arrow-pill .ar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--teal-2), var(--lime));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.4s;
}

.arrow-pill:hover .ar {
  transform: rotate(45deg);
}

.home-section {
  position: relative;
  z-index: 5;
  padding: 4rem var(--gutter) 5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-2);
  box-shadow: 0 0 0 3px rgba(3, 97, 91, 0.2);
}

.home-section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.home-section h2 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--teal-2), var(--lime));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-section p {
  color: var(--ink-soft);
  max-width: 520px;
}

.stats-band {
  margin-top: 3rem;
  background: var(--ink);
  color: #f4edde;
  border-radius: 28px;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  box-shadow: 0 30px 60px -24px rgba(0, 40, 30, 0.4);
  position: relative;
  overflow: hidden;
}

.stats-band::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5, 156, 142, 0.4), transparent 65%);
  top: -120px;
  right: -80px;
  filter: blur(30px);
}

.stats-band h3 {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.stat-block {
  position: relative;
  z-index: 1;
}

.stat-block .num {
  font-weight: 700;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.04em;
}

.stat-block .lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mute);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* ---- shared page shells ---- */
.explore,
.launch,
.token,
.profile {
  position: relative;
  z-index: 5;
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 1.5rem) var(--gutter) 4rem;
}

.explore__head,
.launch__head,
.profile__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.explore__title,
.profile__title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.03em;
}

.explore__lede,
.launch .explore__lede {
  color: var(--ink-soft);
  max-width: 520px;
}

.count-pill {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(3, 97, 91, 0.12);
  color: var(--teal-2);
  vertical-align: middle;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.search {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1rem;
}

.search input {
  border: 0;
  background: transparent;
  width: 100%;
  font: inherit;
  outline: none;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.pill.is-active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.token-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.token-grid > * {
  min-width: 0;
}

@media (max-width: 900px) {
  .token-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats-band {
    grid-template-columns: 1fr 1fr;
  }
  .cards-row {
    gap: 0.55rem;
  }
}

@media (max-width: 700px) {
  .cards-row {
    gap: 0.45rem;
  }
  .float-card {
    width: clamp(88px, 28vw, 120px);
  }
  .float-card.is-official {
    width: clamp(104px, 32vw, 140px);
  }
  .hero__ghost {
    font-size: clamp(40px, 16vw, 88px);
  }
  .grain,
  .wave.wave--3,
  .wave.wave--4 {
    display: none;
  }
  .beach .wave {
    animation: none;
    will-change: auto;
  }
  .launch__form,
  .launch__side,
  .mcp__panel,
  .token__panel,
  .profile__panel,
  .idea-panel {
    backdrop-filter: none;
  }
  .float-card__meta {
    opacity: 1;
    transform: none;
    font-size: 9px;
    padding: 4px 6px;
  }
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .search {
    flex: 1 1 auto;
    width: 100%;
  }
  .explore__head,
  .profile__head,
  .launch__head {
    align-items: flex-start;
  }
  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }
  .token__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .token__head-actions,
  .token__actions {
    width: 100%;
    flex-direction: column;
  }
  .token__head-actions > *,
  .token__actions > * {
    width: 100%;
    justify-content: center;
  }
  .chart-frame,
  .token__chart.chart-frame {
    height: 260px;
  }
}

@media (max-width: 560px) {
  .token-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats-band {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .logo-field {
    flex-direction: column;
  }
  .token__head-actions,
  .token__actions {
    width: 100%;
  }
  .token__head-actions .button,
  .token__head-actions .btn-create,
  .token__actions .button,
  .token__actions .btn-create {
    flex: 1 1 auto;
    justify-content: center;
  }
}

.idea-panel {
  max-width: 640px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.35rem;
  backdrop-filter: blur(10px);
  position: relative;
}

.create-gate {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 6;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.45rem;
  padding: 1.5rem 1.25rem;
  background: rgba(248, 255, 250, 0.88);
  backdrop-filter: blur(12px);
  border-radius: 22px;
}

.idea-panel.is-locked .create-gate {
  display: flex;
}

.idea-panel.is-locked textarea,
.idea-panel.is-locked .idea-panel__actions {
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
}

.create-gate__kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

.create-gate__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.create-gate__copy {
  margin: 0 0 0.55rem;
  max-width: 28rem;
  color: var(--mute);
  font-size: 14px;
}

.idea-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font: inherit;
  font-size: 1.05rem;
  line-height: 1.45;
  background: #fff;
  color: var(--ink);
  resize: vertical;
  min-height: 120px;
}

.idea-panel__actions {
  margin-top: 1rem;
  justify-content: flex-end;
}

.idea-panel.is-generating textarea,
.idea-panel.is-generating .idea-panel__actions {
  pointer-events: none;
  opacity: 0.55;
}

.agent-load {
  margin-top: 1.05rem;
}

.agent-load__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--teal-1);
}

.agent-load__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(184, 255, 60, 0.18), 0 0 12px rgba(184, 255, 60, 0.7);
  animation: agent-pulse 1.05s ease-in-out infinite;
  flex-shrink: 0;
}

.agent-load__track {
  margin-top: 0.55rem;
  height: 8px;
  border-radius: 999px;
  background: rgba(3, 97, 91, 0.12);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0, 50, 40, 0.12);
}

.agent-load__fill {
  display: block;
  height: 100%;
  width: 8%;
  border-radius: inherit;
  background: linear-gradient(90deg, #03615b 0%, #059c8e 42%, #b8ff3c 100%);
  background-size: 220% 100%;
  animation: agent-sheen 1.25s linear infinite;
  box-shadow: 0 0 14px rgba(184, 255, 60, 0.45);
  transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.agent-load__fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: agent-glint 1.1s ease-in-out infinite;
}

.agent-load--compact {
  margin-top: 0.45rem;
}

.agent-load--compact .agent-load__track {
  height: 6px;
}

@keyframes agent-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.72);
    opacity: 0.65;
  }
}

@keyframes agent-sheen {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 200% 50%;
  }
}

@keyframes agent-glint {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .agent-load__dot,
  .agent-load__fill,
  .agent-load__fill::after {
    animation: none;
  }
}

.field-label-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.launch__grid.is-hidden,
[hidden] {
  display: none !important;
}

.token-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.35s, box-shadow 0.35s;
}

.token-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px -14px rgba(3, 97, 91, 0.35);
}

.token-card__media {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(160deg, var(--teal-2), var(--lime-soft));
  display: grid;
  place-items: center;
}

.token-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.token-card__media.is-empty::after {
  content: "?";
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.7);
}

.token-card__body,
.token-card__info {
  padding: 0.65rem 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.token-card__name {
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.token-card__sym {
  color: var(--mute);
  font-size: 0.75rem;
}

.token-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  color: var(--mute);
}

.token-card__ver {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(3, 97, 91, 0.1);
  color: var(--teal-2);
}

.token-card__media .token-card__ver {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: rgba(10, 30, 24, 0.7);
  color: #fafaf7;
}

.token-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--mute);
  padding: 2rem;
}

.pager {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.pager button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  font: inherit;
}

/* ---- launch form ---- */
.launch__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}

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

.launch__form,
.launch__side,
.mcp__panel,
.token__panel {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.25rem;
  backdrop-filter: blur(10px);
}

.field {
  margin-bottom: 0.9rem;
}

.field label,
.field-row label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 0.35rem;
}

.field input,
.field textarea,
.logo-field__url {
  overflow: hidden;
  text-overflow: ellipsis;
}
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.field__suffix {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.field__suffix span {
  color: var(--mute);
  font-size: 13px;
}

.logo-field {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.logo-field__preview {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--teal-2), var(--lime-soft));
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.logo-field__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-field__preview.is-empty::after {
  content: "J";
  font-weight: 800;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.6rem;
}

.logo-field__controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.logo-field__status {
  margin: 0;
  font-size: 12px;
  color: var(--mute);
}

.socials-field {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.9rem;
  background: rgba(255, 255, 255, 0.5);
}

.socials-field summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}

.launch__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.preview-card {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}

.preview-card__media {
  aspect-ratio: 1;
  background: linear-gradient(160deg, var(--teal-2), var(--lime-soft));
}

.preview-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-card__body {
  padding: 1rem;
}

.wallet-status {
  margin-top: 0.75rem;
  font-size: 13px;
  color: var(--mute);
}

.wallet-status[data-tone="ok"] {
  color: var(--teal-2);
}

.wallet-status[data-tone="bad"] {
  color: #b42318;
}

/* ---- modal T&C ---- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(10, 30, 24, 0.45);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.35);
}

.modal h2 {
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.modal p {
  color: var(--ink-soft);
  font-size: 14px;
}

.modal__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.modal[hidden],
.modal-backdrop[hidden] {
  display: none !important;
}

/* ---- token / profile ---- */
.token__back {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--mute);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.token__head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.token__head-info {
  flex: 1 1 180px;
}

.token__name {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
}

.token__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.35rem;
}

.token__sym {
  color: var(--mute);
  font-weight: 600;
}

.token__deployer {
  margin: 0.4rem 0 0;
  font-size: 13px;
  color: var(--mute);
}

.token__live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 12px;
  color: var(--mute);
  margin-bottom: 1rem;
}

.token__live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-3);
  box-shadow: 0 0 0 3px rgba(5, 156, 142, 0.25);
}

.token__stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.token__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
}

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

.token__panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.profile__panel {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.profile__full {
  color: var(--mute);
  font-size: 13px;
  text-decoration: none;
}


.token__logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  background: var(--teal-2);
}

.token__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.token__panel--chart {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.chart-frame {
  position: relative;
  background: #0b1a16;
  border: 1px solid var(--line);
  border-radius: 14px;
  height: 340px;
  min-height: 240px;
  overflow: hidden;
}

.chart-frame iframe,
.token__chart iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #0b1a16;
}

.site-footer {
  position: relative;
  z-index: 5;
  padding: 2rem var(--gutter) 2.5rem;
}

.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--mute);
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.site-footer__copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.site-footer__x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  text-decoration: none;
}

.site-footer__x:hover {
  transform: translateY(-1px);
  background: #fff;
}

.site-footer__brand {
  font-weight: 700;
  color: var(--ink);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.ticker {
  position: relative;
  z-index: 6;
  margin-top: var(--nav-h);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.ticker__track {
  display: flex;
  gap: 1.5rem;
  padding: 0.55rem 0;
  width: max-content;
  animation: ticker-move 40s linear infinite;
}

@keyframes ticker-move {
  to {
    transform: translateX(-50%);
  }
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}

.ticker__item img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.checkbox-field {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0.75rem 0 0;
}

.checkbox-field input {
  margin-top: 0.2rem;
}

.gate__result {
  margin-top: 0.75rem;
  font-size: 13px;
}

.gate__result a {
  color: var(--teal-2);
}

.token-card__time {
  font-size: 0.7rem;
  color: var(--mute);
}

.fee-value {
  display: block;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.profile__title,
.profile__full,
.token__deployer-link,
.wallet-status {
  overflow-wrap: anywhere;
}

.token__head-info {
  min-width: 0;
}

.stat-cell {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.7rem 0.8rem;
  min-width: 0;
}

.stat-cell__label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mute);
  margin-bottom: 0.25rem;
}

.stat-cell__value {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.stat-cell__value[data-tone="up"] {
  color: var(--teal-2);
}

.stat-cell__value[data-tone="down"] {
  color: #b42318;
}

.chart-frame iframe,
.token__chart iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #0b1a16;
}

.token__trades {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 420px;
  overflow: auto;
}

.trade-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr) 72px;
  gap: 0.4rem;
  align-items: center;
  font-size: 12px;
  padding: 0.45rem 0.35rem;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.trade-row__side[data-side="buy"] {
  color: var(--teal-2);
  font-weight: 700;
}

.trade-row__side[data-side="sell"] {
  color: #b42318;
  font-weight: 700;
}

.trade-row__amount,
.trade-row__price,
.trade-row__wallet,
.trade-row__time {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trade-row__wallet,
.trade-row__time {
  color: var(--mute);
  text-decoration: none;
}

.token__panel--chart .token-card__ver {
  position: static;
}

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

@media (max-width: 700px) {
  .trade-row {
    grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
  }
  .trade-row__wallet,
  .trade-row__time {
    grid-column: span 1;
  }
  .nav__links {
    max-width: calc(100vw - 2 * var(--gutter));
  }
}

@media (prefers-reduced-motion: reduce) {
  .beach .wave,
  .ticker__track,
  .float-card,
  .reveal {
    animation: none !important;
    transition: none !important;
  }
  .float-card,
  .reveal {
    opacity: 1;
    transform: none;
  }
}
