:root {
  --bg: #02081a;
  --text: #e9f4ff;
  --muted: #9eb5d3;
  --blue-1: #14326d;
  --blue-2: #1e5da6;
  --blue-3: #39b6ff;
  --cyan: #75efff;
  --panel: rgba(9, 21, 49, 0.72);
  --stroke: rgba(135, 204, 255, 0.3);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  background:
    radial-gradient(circle at 9% 10%, #183c84 0%, transparent 35%),
    radial-gradient(circle at 88% 15%, #103063 0%, transparent 28%),
    linear-gradient(180deg, #030d24 0%, #01050f 100%);
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(circle, #9fdfff 1px, transparent 1px);
  background-size: 3px 3px;
}

.orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
}

.orb-one {
  width: 360px;
  height: 360px;
  top: -120px;
  right: -90px;
  background: rgba(57, 182, 255, 0.33);
}

.orb-two {
  width: 300px;
  height: 300px;
  bottom: -120px;
  left: -100px;
  background: rgba(117, 239, 255, 0.18);
}

main,
.site-footer {
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.site-header {
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  transform: none;
  z-index: 50;
  background: transparent;
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-family: "Orbitron", sans-serif;
  letter-spacing: 2px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(173, 222, 255, 0.35);
  background: rgba(6, 28, 62, 0.3);
  position: relative;
  overflow: hidden;
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease, background 250ms ease;
}

.nav-links a:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--cyan);
  box-shadow: 0 14px 24px rgba(34, 152, 237, 0.28), 0 0 18px rgba(118, 242, 255, 0.32);
  color: #eaf7ff;
}

.hero {
  margin-top: -3.9rem;
  min-height: 100vh;
  width: 100%;
  padding: 7.5rem 1.2rem 3rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #02081a;
}

.hero-video-frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.08);
  min-width: 102%;
  min-height: 102%;
  object-fit: cover;
  object-position: 50% 40%;
  filter: saturate(1.06) contrast(1.05);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 34%, rgba(32, 127, 224, 0.22), transparent 48%),
    linear-gradient(180deg, rgba(1, 8, 22, 0.64) 8%, rgba(2, 12, 32, 0.5) 44%, rgba(1, 8, 22, 0.62) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 140px;
  background: linear-gradient(to bottom, rgba(2, 11, 29, 0) 0%, #030d24 100%);
  z-index: 2;
  pointer-events: none;
}

.ticker-wrap {
  width: 100%;
  margin: -0.2rem 0 0.8rem;
  overflow: hidden;
  border-top: 1px solid rgba(125, 193, 247, 0.3);
  border-bottom: 1px solid rgba(125, 193, 247, 0.3);
  background: linear-gradient(90deg, rgba(3, 15, 37, 0.76), rgba(13, 50, 97, 0.58), rgba(3, 15, 37, 0.76));
  position: relative;
  z-index: 4;
  box-sizing: border-box;
}

.ticker-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  animation: tickerMove 28s linear infinite;
  will-change: transform;
}

.ticker-set {
  display: flex;
  flex-wrap: nowrap;
  flex-shrink: 0;
  align-items: center;
}

.ticker-set span {
  display: inline-flex;
  align-items: center;
  font-family: "Bebas Neue", "Orbitron", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 1.6px;
  color: #a6e8ff;
  padding: 0.45rem 1.1rem;
  white-space: nowrap;
}

.ticker-set span::after {
  content: "•";
  margin-left: 1.1rem;
  color: rgba(149, 221, 255, 0.45);
}

@keyframes tickerMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.hero-content {
  position: relative;
  z-index: 3;
  /* Full hero width so the title can size to the viewport, not a narrow box */
  width: min(1200px, calc(100vw - 2rem));
  margin: 0 auto;
  padding-inline: clamp(0.75rem, 4vw, 1.5rem);
  text-align: center;
  display: grid;
  justify-items: center;
}

.hero-title {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  /* Fit "GRATITUDE" on one line: cap size from available viewport width */
  font-size: clamp(2.35rem, calc((100vw - 2.5rem) / 7.6), 7.25rem);
  letter-spacing: 0.02em;
  line-height: 1;
  color: #e6f7ff;
  text-shadow: 0 0 22px rgba(117, 239, 255, 0.55), 0 0 66px rgba(57, 182, 255, 0.4);
  animation: titleGlow 3.5s ease-in-out infinite;
  text-align: center;
  max-width: 100%;
  margin-inline: auto;
  white-space: nowrap;
  transform: none;
}

.hero-buttons {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.btn {
  border-radius: 14px;
  border: 1px solid rgba(175, 225, 255, 0.45);
  min-width: 126px;
  padding: 0.78rem 1rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  color: #f2faff;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease, background 250ms ease;
}

.btn::before {
  content: "";
  position: absolute;
  top: -140%;
  left: -40%;
  width: 40%;
  height: 380%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  transform: rotate(24deg);
  transition: transform 420ms ease;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--cyan);
  box-shadow: 0 14px 24px rgba(34, 152, 237, 0.28), 0 0 18px rgba(118, 242, 255, 0.32);
}

.btn:hover::before {
  transform: translateX(320%) rotate(24deg);
}

.nav-links a::before,
.token-pill::before,
.dex-link::before {
  content: "";
  position: absolute;
  top: -140%;
  left: -40%;
  width: 40%;
  height: 380%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  transform: rotate(24deg);
  transition: transform 420ms ease;
}

.nav-links a:hover::before,
.token-pill:hover::before,
.dex-link:hover::before {
  transform: translateX(320%) rotate(24deg);
}

.btn-primary {
  background: linear-gradient(180deg, rgba(58, 167, 255, 0.62), rgba(31, 89, 157, 0.9));
}

.btn-secondary {
  background: linear-gradient(180deg, rgba(47, 112, 192, 0.8), rgba(17, 58, 107, 0.95));
}

.btn-ghost {
  background: rgba(13, 40, 78, 0.55);
}

.copy-status {
  color: var(--cyan);
  font-size: 0.86rem;
  min-width: 70px;
  text-align: center;
}

.hero-scanline {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom, transparent 0%, rgba(117, 239, 255, 0.22) 50%, transparent 100%);
  mix-blend-mode: screen;
  animation: scan 4s linear infinite;
  pointer-events: none;
}

@keyframes scan {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(100%);
  }
}

@keyframes titleGlow {
  0%,
  100% {
    text-shadow: 0 0 20px rgba(117, 239, 255, 0.5), 0 0 58px rgba(57, 182, 255, 0.35);
  }
  50% {
    text-shadow: 0 0 30px rgba(117, 239, 255, 0.75), 0 0 88px rgba(57, 182, 255, 0.45);
  }
}

.section {
  margin: 1rem 1.2rem 0;
}

h2 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.display-heading {
  font-family: "Bebas Neue", "Orbitron", sans-serif;
  letter-spacing: 1.3px;
  font-size: clamp(2rem, 5.4vw, 3.2rem);
}

.section p {
  color: #bdd2ec;
  line-height: 1.6;
}

.section-clean {
  padding: 1.1rem 0.2rem 0.4rem;
  border-bottom: 1px solid rgba(130, 186, 237, 0.22);
}

.section-intro {
  margin-top: -0.2rem;
}

.lore-box {
  background: rgba(8, 27, 58, 0.78);
  border: 1px solid rgba(154, 212, 255, 0.34);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  max-width: 880px;
}

.prompt-toolbar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.prompt-pill {
  margin: 0;
  color: #e8faff;
  background: rgba(28, 91, 162, 0.46);
  border: 1px solid rgba(157, 217, 255, 0.4);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
}

.prompts-compact {
  max-width: 760px;
}

.prompts-compact .journal-grid {
  gap: 0.6rem;
}

.prompts-compact textarea {
  min-height: 68px;
  padding: 0.6rem 0.7rem;
}

.dex-link-wrap {
  margin: 0 0 0.8rem;
}

.dex-link {
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  color: #e9f8ff;
  border: 1px solid rgba(141, 213, 255, 0.45);
  background: rgba(20, 75, 138, 0.5);
  position: relative;
  overflow: hidden;
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

.dex-link:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--cyan);
  box-shadow: 0 14px 24px rgba(34, 152, 237, 0.28), 0 0 18px rgba(118, 242, 255, 0.32);
}

.token-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.token-pill {
  border: 1px solid rgba(146, 208, 255, 0.55);
  background: linear-gradient(170deg, rgba(16, 58, 112, 0.76), rgba(7, 30, 63, 0.9));
  border-radius: 30px;
  padding: 1.45rem 1.25rem;
  color: #e6f4ff;
  min-height: 136px;
  width: 100%;
  font-size: clamp(1.15rem, 2.3vw, 1.45rem);
  font-weight: 700;
  line-height: 1.35;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
  flex-direction: column;
  gap: 0.55rem;
  align-items: stretch;
}

.token-label,
.token-value {
  margin: 0;
}

.token-pill .token-label {
  font-family: "Orbitron", sans-serif;
  letter-spacing: 1.2px;
  font-size: 1.28rem;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: none;
  font-weight: 800;
}

.token-pill .token-value {
  font-size: 1.14rem;
  color: #6fc2ff;
  font-weight: 600;
  letter-spacing: 0.2px;
}


.token-pill:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--cyan);
  box-shadow: 0 14px 24px rgba(34, 152, 237, 0.28), 0 0 18px rgba(118, 242, 255, 0.32);
}

#tokenomics.section-clean {
  margin-top: 1.8rem;
  padding: 1.8rem 1.1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#tokenomics .display-heading {
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  margin-bottom: 1rem;
}

.chart-shell {
  position: relative;
  border: 1px solid rgba(122, 189, 244, 0.35);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(7, 25, 54, 0.72);
}

.chart-shell iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
  background: #020a1b;
}

.chart-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  background: rgba(2, 10, 28, 0.42);
  color: #beddff;
  pointer-events: none;
}

.chart-overlay p {
  margin: 0;
  font-weight: 700;
}

.chart-overlay small {
  margin-top: 0.35rem;
}

.journal-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
}

label span {
  display: block;
  margin-bottom: 0.4rem;
  color: #d4e9ff;
  font-weight: 600;
}

textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(142, 207, 255, 0.42);
  background: rgba(5, 22, 50, 0.65);
  color: #f3f9ff;
  padding: 0.8rem;
  resize: vertical;
  min-height: 92px;
  font: inherit;
}

textarea:focus {
  outline: 2px solid rgba(117, 239, 255, 0.4);
  outline-offset: 1px;
}

.journal-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

#saveStatus {
  margin: 0;
  color: var(--cyan);
  font-weight: 500;
}

.site-footer {
  padding: 1.4rem clamp(1rem, 4vw, 2.5rem) 1.8rem;
  color: #89a8ce;
}

.social-logos {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e3f4ff;
  font-size: 1.65rem;
  text-decoration: none;
  transition: color 200ms ease, transform 200ms ease;
}

.footer-logo-link:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-pump {
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.pump-logo-img {
  display: block;
  border-radius: 6px;
  flex-shrink: 0;
}

.pump-logo-text {
  color: #69ff9f;
  letter-spacing: 0.02em;
}

.footer-pump:hover .pump-logo-text {
  color: #8cffb4;
}

@media (max-width: 980px) {
  .hero {
    min-height: 88vh;
    margin-top: -3.5rem;
    padding-top: 7rem;
  }

  .hero-vignette {
    background:
      radial-gradient(circle at 50% 28%, rgba(32, 127, 224, 0.18), transparent 40%),
      linear-gradient(180deg, rgba(1, 8, 22, 0.72) 10%, rgba(2, 12, 32, 0.52) 60%, rgba(1, 8, 22, 0.68) 100%);
  }

  .token-pills {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    max-width: 760px;
  }

  .token-pill {
    min-height: 124px;
  }
}

@media (max-width: 640px) {
  .site-header {
    justify-content: space-between;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .brand {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    flex-shrink: 0;
  }

  .nav-links {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: min(72vw, 320px);
    margin-left: auto;
    justify-content: flex-end;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .hero-title {
    letter-spacing: 0.015em;
    font-size: clamp(2.1rem, calc((100vw - 1.75rem) / 7.8), 6.25rem);
  }

  .hero {
    min-height: 86vh;
    padding-top: 6.9rem;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .hero-buttons .btn {
    min-width: 112px;
    padding: 0.72rem 0.82rem;
  }

  .token-pills {
    grid-template-columns: 1fr;
    max-width: 460px;
  }
}
