/* =========================================================
   GROKLET — Cosmic memecoin site
   Vanilla CSS only
   ========================================================= */

:root {
  --bg-deep: #030712;
  --bg-navy: #061028;
  --bg-panel: rgba(10, 22, 48, 0.72);
  --cyan: #22e8ff;
  --cyan-soft: #7af0ff;
  --teal: #1ec9b8;
  --violet: #8b5cf6;
  --magenta: #e879f9;
  --blue: #3b82f6;
  --text: #e8f4ff;
  --text-muted: #8aa3c0;
  --glass: rgba(255, 255, 255, 0.04);
  --border: rgba(34, 232, 255, 0.22);
  --glow: 0 0 24px rgba(34, 232, 255, 0.35);
  --radius: 18px;
  --header-h: 72px;
  --font-display: "Segoe UI", "Helvetica Neue", Arial Black, Impact, sans-serif;
  --font-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 10px 16px;
  background: var(--cyan);
  color: #031018;
  border-radius: 8px;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

/* Atmosphere */
.starfield,
.nebula {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.starfield {
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 28% 62%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 44% 28%, rgba(122, 240, 255, 0.9), transparent),
    radial-gradient(1px 1px at 62% 78%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1px 1px at 78% 22%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 88% 54%, rgba(232, 121, 249, 0.7), transparent),
    radial-gradient(1px 1px at 8% 88%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 52% 8%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1px 1px at 70% 40%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 35% 90%, rgba(34, 232, 255, 0.6), transparent);
  animation: twinkle 6s ease-in-out infinite alternate;
  opacity: 0.7;
}

.nebula-a {
  background:
    radial-gradient(ellipse 60% 40% at 15% 20%, rgba(34, 232, 255, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 35% at 85% 70%, rgba(139, 92, 246, 0.14), transparent 65%);
}

.nebula-b {
  background:
    radial-gradient(ellipse 45% 30% at 70% 15%, rgba(232, 121, 249, 0.1), transparent 60%),
    radial-gradient(ellipse 40% 40% at 30% 80%, rgba(30, 201, 184, 0.08), transparent 60%);
}

@keyframes twinkle {
  from { opacity: 0.45; }
  to { opacity: 0.85; }
}

.section,
.site-header,
.site-footer,
.signal-strip,
.hero {
  position: relative;
  z-index: 1;
}

.section {
  padding: clamp(4rem, 10vw, 7.5rem) clamp(1.25rem, 4vw, 2.5rem);
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.section-head {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-head.center,
.center {
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.section-lead {
  margin-top: 0.85rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 36ch;
}

.section-head.center .section-lead {
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-buy {
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: #031018;
  box-shadow: 0 0 0 1px rgba(34, 232, 255, 0.35), var(--glow);
}

.btn-buy:hover {
  box-shadow: 0 0 0 1px rgba(34, 232, 255, 0.55), 0 0 36px rgba(34, 232, 255, 0.5);
}

.btn-ghost {
  background: var(--glass);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow);
  color: var(--cyan-soft);
}

.btn-lg {
  padding: 1rem 1.85rem;
  font-size: 0.9rem;
}

.btn-sm {
  padding: 0.65rem 1.1rem;
  font-size: 0.75rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(34, 232, 255, 0.15);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 100%;
  padding: 0 clamp(1rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: 0 0 16px rgba(34, 232, 255, 0.25);
}

.nav-desktop {
  display: none;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.nav-desktop a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.2s;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-desktop a:hover,
.nav-desktop a:focus-visible {
  color: var(--cyan-soft);
}

.nav-desktop a:hover::after,
.nav-desktop a:focus-visible::after {
  transform: scaleX(1);
}

.header-buy {
  display: none;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--glass);
  justify-self: end;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.25rem 1.5rem;
  background: rgba(3, 7, 18, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile a {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.nav-mobile a:hover,
.nav-mobile a:focus-visible {
  background: rgba(34, 232, 255, 0.08);
  color: var(--cyan);
}

.nav-mobile .btn-buy {
  margin-top: 0.5rem;
  text-align: center;
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }

  .header-buy {
    display: inline-flex;
  }

  .nav-toggle,
  .nav-mobile {
    display: none !important;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
  }
}

/* Hero */
.hero {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2.5rem) 3rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 10% 5% auto auto;
  width: min(55vw, 620px);
  height: min(55vw, 620px);
  background: radial-gradient(circle, rgba(34, 232, 255, 0.2), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-grid {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.chain-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(34, 232, 255, 0.08);
  color: var(--cyan-soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  margin-bottom: 1rem;
}

.hero-line {
  display: block;
  color: var(--text);
}

.hero-glow {
  display: block;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-soft), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 18px rgba(34, 232, 255, 0.35));
  font-size: 1.08em;
}

.hero-sub {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  margin-bottom: 1.75rem;
  max-width: 28ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  max-width: 520px;
  width: 100%;
}

.hero-glow-ring {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(34, 232, 255, 0.25);
  box-shadow:
    0 0 40px rgba(34, 232, 255, 0.15),
    inset 0 0 40px rgba(34, 232, 255, 0.08);
  animation: pulse-ring 5s ease-in-out infinite;
}

.hero-character {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  animation: float-y 5.5s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.55));
  will-change: transform;
}

.hero-orbit {
  position: absolute;
  top: 50%;
  right: 8%;
  width: min(48vw, 460px);
  aspect-ratio: 1;
  border: 1px solid rgba(34, 232, 255, 0.12);
  border-radius: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  animation: spin-slow 40s linear infinite;
}

.hero-orbit-2 {
  width: min(36vw, 340px);
  right: 14%;
  border-color: rgba(232, 121, 249, 0.15);
  animation-duration: 28s;
  animation-direction: reverse;
}

.hero-x-motif {
  position: absolute;
  top: 18%;
  left: 42%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(34, 232, 255, 0.45);
  color: var(--cyan);
  font-size: 1.1rem;
  background: rgba(3, 7, 18, 0.55);
  box-shadow: var(--glow);
  animation: float-y 4s ease-in-out infinite reverse;
  pointer-events: none;
}

.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 34px;
  border: 1px solid rgba(34, 232, 255, 0.35);
  border-radius: 999px;
}

.hero-scroll span {
  display: block;
  width: 4px;
  height: 8px;
  margin: 6px auto 0;
  border-radius: 999px;
  background: var(--cyan);
  animation: scroll-dot 1.6s ease-in-out infinite;
}

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

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes spin-slow {
  to { transform: translateY(-50%) rotate(360deg); }
}

@keyframes scroll-dot {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(14px); }
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1rem;
  }

  .hero-visual {
    justify-self: end;
    max-width: 560px;
  }

  .hero-character {
    width: min(100%, 540px);
  }
}

/* Signal strip */
.signal-strip {
  border-block: 1px solid rgba(34, 232, 255, 0.18);
  background: linear-gradient(90deg, rgba(34, 232, 255, 0.05), rgba(139, 92, 246, 0.06), rgba(34, 232, 255, 0.05));
  overflow: hidden;
  padding: 0.9rem 0;
}

.signal-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.signal-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-right: 1.5rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}

.signal-group i {
  font-style: normal;
  color: var(--magenta);
  opacity: 0.8;
}

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

/* Origin */
.origin-layout {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.origin-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 0 40px rgba(34, 232, 255, 0.12);
  background: var(--bg-navy);
}

.origin-frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.tagline-secondary {
  margin-top: 1rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--cyan);
}

.origin-lines {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.origin-lines p {
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  padding-left: 1rem;
  border-left: 2px solid rgba(34, 232, 255, 0.25);
}

.origin-punch {
  color: var(--cyan-soft) !important;
  border-left-color: var(--cyan) !important;
  font-family: var(--font-display);
  font-weight: 800 !important;
  font-size: clamp(1.35rem, 3vw, 1.85rem) !important;
}

.disclaimer {
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

@media (min-width: 900px) {
  .origin-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
  }
}

/* Signal board / X embed */
.signal-board {
  border-radius: 22px;
  border: 1px solid var(--border);
  background:
    linear-gradient(160deg, rgba(10, 24, 52, 0.95), rgba(4, 10, 24, 0.92)),
    radial-gradient(ellipse at top right, rgba(34, 232, 255, 0.08), transparent 55%);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(34, 232, 255, 0.05);
}

.signal-board-chrome {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid rgba(34, 232, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
}

.signal-board-dots {
  display: flex;
  gap: 6px;
}

.signal-board-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.signal-board-dots span:nth-child(1) { background: #ff5f57; }
.signal-board-dots span:nth-child(2) { background: #febc2e; }
.signal-board-dots span:nth-child(3) { background: #28c840; }

.signal-board-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  flex: 1;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.signal-board-meta {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--magenta);
  font-weight: 700;
}

.signal-board-body {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.signal-board-copy h3 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin-bottom: 0.75rem;
}

.signal-board-copy p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 42ch;
}

.signal-board-copy em {
  color: var(--cyan-soft);
  font-style: normal;
  font-weight: 600;
}

.tweet-embed-wrap {
  display: flex;
  justify-content: center;
  min-height: 320px;
  padding: 0.5rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(34, 232, 255, 0.1);
  overflow: auto;
}

.tweet-embed-wrap .twitter-tweet {
  margin: 0 auto !important;
}

@media (min-width: 960px) {
  .signal-board-body {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2rem;
  }
}

/* Meet */
.meet {
  background:
    linear-gradient(180deg, transparent, rgba(34, 232, 255, 0.03), transparent);
}

.meet-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.meet-visual {
  position: relative;
  justify-self: center;
  max-width: 420px;
}

.meet-visual::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 232, 255, 0.2), transparent 70%);
  filter: blur(10px);
}

.meet-visual img {
  position: relative;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.5));
  animation: float-y 6s ease-in-out infinite;
}

.trait-list {
  display: grid;
  gap: 1rem;
}

.trait-card {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: var(--bg-panel);
  border: 1px solid rgba(34, 232, 255, 0.14);
  backdrop-filter: blur(12px);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.trait-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 232, 255, 0.45);
  box-shadow: 0 12px 32px rgba(34, 232, 255, 0.12), var(--glow);
}

.trait-card h3 {
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.4rem;
}

.trait-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

@media (min-width: 900px) {
  .meet-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
  }
}

/* Universe */
.universe {
  background:
    radial-gradient(ellipse at center, rgba(34, 232, 255, 0.06), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent);
}

.orbit-system {
  position: relative;
  display: none;
  width: min(100%, 640px);
  aspect-ratio: 1;
  margin: 0 auto 1rem;
}

.orbit-ring {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid rgba(34, 232, 255, 0.18);
  animation: orbit-spin 30s linear infinite;
}

.orbit-ring-2 {
  inset: 22%;
  border-color: rgba(232, 121, 249, 0.18);
  animation-duration: 22s;
  animation-direction: reverse;
}

.orbit-ring-3 {
  inset: 32%;
  border-color: rgba(59, 130, 246, 0.2);
  animation-duration: 16s;
}

.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: var(--cyan);
  border: 1px solid rgba(34, 232, 255, 0.5);
  background: rgba(3, 7, 18, 0.85);
  box-shadow: var(--glow), inset 0 0 20px rgba(34, 232, 255, 0.15);
  z-index: 2;
}

.orbit-node {
  position: absolute;
  width: min(42%, 200px);
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(8, 18, 40, 0.88);
  border: 1px solid rgba(34, 232, 255, 0.22);
  backdrop-filter: blur(10px);
  text-align: center;
  z-index: 3;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.orbit-node:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow);
  transform: scale(1.03);
}

.orbit-node h3 {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  margin-bottom: 0.35rem;
}

.orbit-node p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.orbit-node-1 { top: 4%; left: 50%; transform: translateX(-50%); }
.orbit-node-2 { bottom: 14%; left: 0; }
.orbit-node-3 { bottom: 14%; right: 0; }

.orbit-node-1:hover { transform: translateX(-50%) scale(1.03); }

.orbit-cards {
  display: grid;
  gap: 1rem;
}

.orbit-card {
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
  background: var(--bg-panel);
  border: 1px solid rgba(34, 232, 255, 0.16);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}

.orbit-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 232, 255, 0.45);
  box-shadow: var(--glow);
}

.orbit-card h3 {
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.orbit-card p {
  color: var(--text-muted);
}

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

@media (min-width: 860px) {
  .orbit-system {
    display: block;
  }

  .orbit-cards {
    display: none;
  }
}

/* Meme galaxy */
.meme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.meme-tile {
  aspect-ratio: 1;
  border-radius: 14px;
  border: 1px solid rgba(34, 232, 255, 0.14);
  background-color: #061028;
  background-image: url("assets/gallary.png");
  background-size: 400% 400%;
  background-position:
    calc(var(--col) * 100% / 3)
    calc(var(--row) * 100% / 3);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
  cursor: zoom-in;
}

.meme-tile:hover,
.meme-tile:focus-visible {
  transform: scale(1.04);
  border-color: rgba(34, 232, 255, 0.55);
  box-shadow: 0 0 28px rgba(34, 232, 255, 0.28);
  z-index: 2;
}

@media (min-width: 720px) {
  .meme-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

/* Modal */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 4, 12, 0.82);
  backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  width: min(92vw, 560px);
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(3, 7, 18, 0.9);
  color: var(--cyan);
  font-size: 1.5rem;
  line-height: 1;
}

.modal-tile {
  aspect-ratio: 1;
  border-radius: 18px;
  border: 1px solid rgba(34, 232, 255, 0.35);
  box-shadow: var(--glow);
  background-image: url("assets/gallary.png");
  background-size: 400% 400%;
  background-color: #061028;
}

/* Join */
.steps {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.step {
  padding: 1.5rem 1.4rem;
  border-radius: var(--radius);
  background: var(--bg-panel);
  border: 1px solid rgba(34, 232, 255, 0.14);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.step:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 232, 255, 0.4);
  box-shadow: var(--glow);
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 0.12em;
  margin-bottom: 0.55rem;
  font-size: 0.85rem;
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.join-cta {
  text-align: center;
}

.join-note {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

/* Contract terminal */
.terminal {
  max-width: 720px;
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid rgba(34, 232, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(6, 16, 36, 0.95), rgba(3, 8, 20, 0.98));
  box-shadow: 0 0 40px rgba(34, 232, 255, 0.1);
  overflow: hidden;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
}

.terminal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid rgba(34, 232, 255, 0.15);
  background: rgba(34, 232, 255, 0.04);
}

.terminal-title {
  color: var(--cyan-soft);
  font-size: 0.82rem;
}

.terminal-status {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--magenta);
  font-weight: 700;
  border: 1px solid rgba(232, 121, 249, 0.35);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.terminal-rows {
  padding: 1.15rem 1.25rem;
  display: grid;
  gap: 0.85rem;
}

.terminal-rows > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.75rem;
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed rgba(34, 232, 255, 0.12);
}

.terminal-rows > div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.terminal-rows dt {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.terminal-rows dd {
  color: var(--text);
  font-size: 0.95rem;
  word-break: break-all;
}

.ca-row dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

#contract-address {
  font-size: 1rem;
  color: var(--cyan-soft);
  background: none;
}

.btn-copy {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(34, 232, 255, 0.08);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.btn-copy:hover,
.btn-copy:focus-visible {
  border-color: var(--cyan);
  box-shadow: var(--glow);
}

.btn-copy.is-copied {
  background: rgba(34, 232, 255, 0.2);
  color: #031018;
  background: var(--cyan);
}

.terminal-note {
  padding: 0 1.25rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-body);
}

/* Chart */
.chart-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 360px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(34, 232, 255, 0.28);
  box-shadow: 0 0 36px rgba(34, 232, 255, 0.12);
  background: #0b1220;
}

.chart-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.chart-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

/* Community */
.community {
  overflow: hidden;
}

.community-layout {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.community-copy h2 {
  max-width: 14ch;
}

.community-cta-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
  margin-top: 1.75rem;
  padding: 2.5rem;
}

.cta-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-rings span {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px solid rgba(34, 232, 255, 0.25);
  animation: pulse-ring 4s ease-in-out infinite;
}

.cta-rings span:nth-child(2) {
  inset: 0;
  border-color: rgba(34, 232, 255, 0.15);
  animation-delay: 0.6s;
}

.cta-rings span:nth-child(3) {
  inset: 20%;
  border-color: rgba(232, 121, 249, 0.2);
  animation-delay: 1.2s;
}

.community-visual {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 0 40px rgba(34, 232, 255, 0.12);
}

.community-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (min-width: 900px) {
  .community-layout {
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
  }
}

/* Final CTA */
.final-cta {
  padding-block: clamp(5rem, 12vw, 8rem);
  background:
    radial-gradient(ellipse at center, rgba(34, 232, 255, 0.12), transparent 55%),
    linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.08), transparent);
  border-block: 1px solid rgba(34, 232, 255, 0.12);
}

.final-cta h2 {
  font-size: clamp(2.6rem, 8vw, 5rem);
  margin-bottom: 2rem;
}

.final-line {
  display: block;
}

.final-glow {
  display: block;
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(34, 232, 255, 0.4);
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

/* Footer */
.site-footer {
  padding: 3rem clamp(1.25rem, 4vw, 2.5rem) 2.5rem;
  border-top: 1px solid rgba(34, 232, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.footer-brand span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--cyan);
}

.footer-disclaimer {
  color: var(--text-muted);
  font-size: 0.82rem;
  max-width: 70ch;
  line-height: 1.55;
}

.footer-copy {
  color: rgba(138, 163, 192, 0.7);
  font-size: 0.78rem;
}

/* Reveals */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .starfield,
  .hero-character,
  .meet-visual img,
  .hero-orbit,
  .hero-orbit-2,
  .hero-x-motif,
  .hero-glow-ring,
  .signal-track,
  .orbit-ring,
  .cta-rings span,
  .pulse-dot,
  .hero-scroll span {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .trait-card:hover,
  .orbit-card:hover,
  .step:hover,
  .meme-tile:hover,
  .btn:hover {
    transform: none;
  }
}
