:root {
  color-scheme: dark;
  --bg: #0a0f14;
  --bg-2: #0f1622;
  --surface: rgba(12, 20, 28, 0.78);
  --surface-strong: rgba(15, 26, 36, 0.9);
  --header-panel-bg: radial-gradient(820px 320px at 12% 0%, rgba(126, 246, 215, 0.35), transparent 70%),
    radial-gradient(640px 320px at 88% 20%, rgba(179, 137, 255, 0.34), transparent 75%),
    linear-gradient(180deg, rgba(8, 14, 20, 0.7) 0%, rgba(9, 14, 20, 0.45) 100%);
  --stroke: rgba(111, 227, 255, 0.2);
  --accent: #4ce5d2;
  --accent-2: #8c5bff;
  --accent-3: #5ad1ff;
  --text: #eef4f6;
  --muted: #a7b9c4;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --maxw: 1200px;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: calc(16px + env(safe-area-inset-top));
}

a {
  color: inherit;
}

a:hover {
  color: var(--text);
}

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

.wrap {
  width: min(100% - 32px, var(--maxw));
  margin: 0 auto;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(1200px 600px at 10% 0%, rgba(76, 229, 210, 0.18), transparent 65%),
    radial-gradient(900px 600px at 90% 10%, rgba(140, 91, 255, 0.22), transparent 70%),
    linear-gradient(180deg, #0a0f14 0%, #0c141c 35%, #0a1016 100%);
}

.bg__glow {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: 0.8;
  animation: float 18s ease-in-out infinite alternate;
}

.bg__glow--one {
  width: 620px;
  height: 620px;
  background: radial-gradient(circle at 30% 30%, rgba(76, 229, 210, 0.32), transparent 65%);
  top: -220px;
  left: -120px;
}

.bg__glow--two {
  width: 540px;
  height: 540px;
  background: radial-gradient(circle at 70% 30%, rgba(140, 91, 255, 0.25), transparent 60%);
  bottom: -220px;
  right: -120px;
  animation-delay: -6s;
}

.bg__glow--three {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at 50% 50%, rgba(90, 209, 255, 0.2), transparent 60%);
  top: 40%;
  right: 10%;
  animation-delay: -12s;
}

.bg__stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.25) 45%, transparent 46%),
    radial-gradient(1px 1px at 80% 20%, rgba(255, 255, 255, 0.2) 45%, transparent 46%),
    radial-gradient(1px 1px at 40% 70%, rgba(255, 255, 255, 0.22) 45%, transparent 46%),
    radial-gradient(1px 1px at 70% 60%, rgba(255, 255, 255, 0.18) 45%, transparent 46%),
    radial-gradient(1px 1px at 10% 80%, rgba(255, 255, 255, 0.14) 45%, transparent 46%);
  opacity: 0.35;
}

.bg__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

.bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(90, 209, 255, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(90, 209, 255, 0.06) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.35;
  mask-image: radial-gradient(circle at 50% 20%, black 30%, transparent 70%);
}

.bg__network {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2.6px 2.6px at 10% 20%, rgba(90, 209, 255, 0.7) 40%, transparent 41%),
    radial-gradient(2.6px 2.6px at 30% 40%, rgba(76, 229, 210, 0.6) 40%, transparent 41%),
    radial-gradient(2.6px 2.6px at 60% 25%, rgba(140, 91, 255, 0.65) 40%, transparent 41%),
    radial-gradient(2.6px 2.6px at 80% 55%, rgba(90, 209, 255, 0.65) 40%, transparent 41%),
    radial-gradient(2.6px 2.6px at 20% 70%, rgba(76, 229, 210, 0.55) 40%, transparent 41%),
    linear-gradient(120deg, rgba(90, 209, 255, 0.24), transparent 40%),
    linear-gradient(220deg, rgba(140, 91, 255, 0.24), transparent 45%),
    linear-gradient(30deg, rgba(76, 229, 210, 0.24), transparent 55%),
    repeating-linear-gradient(90deg, rgba(90, 209, 255, 0.08) 0 1px, transparent 1px 180px),
    repeating-linear-gradient(180deg, rgba(140, 91, 255, 0.08) 0 1px, transparent 1px 180px);
  opacity: 0.95;
  mix-blend-mode: screen;
}

.site-header {
  padding: 0;
  position: relative;
  z-index: 1;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: -40px 0 0;
  background:
    radial-gradient(900px 420px at 6% 0%, rgba(126, 246, 215, 0.38), transparent 70%),
    radial-gradient(820px 480px at 96% 8%, rgba(179, 137, 255, 0.4), transparent 78%),
    linear-gradient(180deg, rgba(8, 18, 24, 0.45) 0%, rgba(10, 18, 26, 0.32) 55%, rgba(12, 18, 26, 0.2) 100%);
  z-index: 0;
  pointer-events: none;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -36px;
  height: 140px;
  background: transparent;
  z-index: 0;
  pointer-events: none;
}

.site-header .wrap {
  position: relative;
  z-index: 1;
}

.header__inner {
  display: grid;
  gap: 0;
  background: var(--header-panel-bg);
  border-radius: 20px;
  padding: 14px 18px 8px;
}

.header__top {
  display: grid;
  gap: 0;
  align-items: center;
}

.header__top--bar {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.card:not(.qa-card) {
  animation: borderBlink 4.5s ease-in-out infinite;
}

.card:not(.qa-card)::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1px solid rgba(76, 229, 210, 0.4);
  opacity: 0;
  animation: pulseGlow 4.5s ease-in-out infinite;
  pointer-events: none;
}

.info-card,
.qa-card {
  overflow: visible;
}

.brand {
  display: grid;
  gap: 2px;
  align-items: center;
  grid-template-columns: auto 1fr;
  padding: 14px 18px;
  position: relative;
  z-index: 2;
}

.brand__logo {
  width: 132px;
  height: 132px;
  object-fit: contain;
}

.brand__portrait {
  display: none;
}

.brand__title {
  margin: 6px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(32.4px, 3.82vw, 53.5px);
  line-height: 1.05;
  letter-spacing: 0.04em;
  background: linear-gradient(100deg, #7ef6d7 0%, #86d9ff 45%, #b389ff 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand__lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.brand__social {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.brand--hero {
  background: transparent;
  border: 0;
  box-shadow: none;
  position: relative;
  padding-right: 72px;
  overflow: visible;
}

.brand--hero::after {
  border-color: transparent;
  animation: none;
}

.brand--hero.card::before {
  display: none;
}

.brand--hero.card::after {
  display: none;
}

.brand--hero.card {
  animation: heroPulse 4.5s ease-in-out infinite;
}
.brand__chips {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.header__aside {
  display: grid;
  gap: 14px;
  justify-items: end;
  align-self: center;
}

.isc__logo {
  width: 128px;
  height: 128px;
  object-fit: contain;
}

.isc__logo--inline {
  width: 92px;
  height: 92px;
  margin-top: 10px;
  opacity: 0.9;
  display: block;
}

.header__image {
  width: min(100%, 460px);
  height: auto;
  margin-top: 5px;
  border-radius: 26px;
  opacity: 0.82;
  filter: saturate(0.95) contrast(0.98);
  box-shadow: 0 20px 36px rgba(5, 10, 26, 0.18);
  object-fit: cover;
  justify-self: end;
  display: block;
  animation: headerImagePulse 4.5s ease-in-out infinite;
}

.header__image-wrap {
  position: relative;
  display: inline-block;
  justify-self: end;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.82rem;
  color: var(--accent-3);
  margin: 0;
  font-weight: 700;
}

.header__collections {
  width: 100%;
  display: grid;
  gap: 32px;
  margin-top: -18px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.header-collection-card {
  padding: 0;
  gap: 10px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.header-collection-title {
  padding: 0 18px 0;
}

.header-collection-title h3 {
  font-size: clamp(0.28rem, 0.45vw, 0.45rem);
  margin: 0;
  color: var(--text);
  letter-spacing: 0.02em;
}

.header-collection-title--left {
  text-align: left;
}

.header-collection-title--right {
  text-align: right;
}

.header-collection-card .collection-marquee {
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  width: 100%;
}

.header-collection-card .collection-marquee__track,
.header-collection-card .collection-marquee__group {
  gap: 0;
}

.header-collection-card .collection-marquee__group {
  padding: 0;
  gap: 8px;
}

.header-collection-card .collection-marquee::before,
.header-collection-card .collection-marquee::after {
  width: 70px;
}

.header-collection-card .collection-marquee::before {
  background: linear-gradient(90deg, rgba(6, 9, 13, 0.98), rgba(6, 9, 13, 0));
}

.header-collection-card .collection-marquee::after {
  background: linear-gradient(270deg, rgba(6, 9, 13, 0.98), rgba(6, 9, 13, 0));
}

.header-collection-card .collection-marquee img {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.header__mini .header__links {
  flex-wrap: wrap;
}

.header__nav,
.header__links,
.header__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(76, 229, 210, 0.55), rgba(90, 209, 255, 0.2), rgba(140, 91, 255, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
}

.card {
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(76, 229, 210, 0.22),
    inset 0 -12px 24px rgba(0, 0, 0, 0.35);
}

.manifesto-list {
  margin: 0;
  padding: 0 0 0 20px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 72ch;
}

.section {
  padding: clamp(42px, 8vw, 72px) 0;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.section__head h2 {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.section__copy {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.section__desc {
  margin-bottom: 18px;
  max-width: 70ch;
  color: var(--muted);
}

.section__desc h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--text);
}

.collection-layout {
  display: grid;
  gap: 16px 24px;
}

.collection-block h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--text);
}

.collection-actions {
  display: flex;
  align-items: flex-start;
}

@media (min-width: 900px) {
  .collection-actions .collection-cta {
    margin-top: 50px;
  }

  .hub-card {
    margin-top: 23px;
  }
}

.collection-cta {
  width: min(100%, 360px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(90, 209, 255, 0.26);
  background: rgba(12, 18, 24, 0.72);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.collection-cta img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.collection-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(76, 229, 210, 0.6);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.35);
}

.treasury-grid {
  display: grid;
  gap: 20px;
}

.treasury-copy {
  color: var(--muted);
}

.treasury-card {
  padding: 18px;
  animation: treasuryGlow 4.5s ease-in-out infinite;
  border: 1px solid rgba(240, 197, 86, 0.35);
}

.treasury-card.card {
  animation: treasuryGlow 4.5s ease-in-out infinite;
}

.treasury-card.card::after {
  animation: none;
}

.treasury-card.card::before,
.treasury-card.card::after {
  display: none;
}

.treasury-card__label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--accent-3);
}

.treasury-card__value {
  margin: 10px 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  color: var(--text);
}

.treasury-card__meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.treasury-card__note {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.hub-grid {
  display: grid;
  gap: 20px;
}

.hub-copy {
  color: var(--muted);
}

.hub-card {
  width: min(100%, 360px);
  justify-content: center;
  font-size: 0.9rem;
}

.two-column-list {
  display: block;
  columns: 2;
  column-gap: 32px;
}

.two-column-list li {
  break-inside: avoid;
}

.split-panel .manifesto-list {
  font-size: 0.72rem;
  line-height: 1.55;
}

.split-sections {
  display: grid;
  gap: 24px;
}

.split-panel {
  padding: 28px 30px;
  border-radius: 18px;
  border: 1px solid rgba(90, 209, 255, 0.12);
  background: rgba(10, 16, 22, 0.26);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.2);
}

.split-panel.card,
.split-panel.card::after {
  animation: none;
}

.split-panel.card::before,
.split-panel.card::after {
  display: none;
}

.split-panel h3 {
  margin: 6px 0 12px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text);
}

.split-divider {
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(90, 209, 255, 0.4), transparent);
  justify-self: center;
}

.menu-section {
  padding-top: 18px;
}

.menu-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}

.menu-card {
  display: grid;
  place-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(90, 209, 255, 0.24);
  background: rgba(10, 18, 23, 0.78);
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.72rem;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.menu-card:hover {
  transform: translateY(-3px);
  border-color: rgba(76, 229, 210, 0.6);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.35);
}

.timeline-flow {
  position: relative;
  padding: 18px 18px 14px;
  border-radius: 18px;
  border: 1px solid rgba(90, 209, 255, 0.12);
  background: rgba(10, 16, 22, 0.26);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.28);
}

.timeline-flow__list {
  position: relative;
  display: grid;
  gap: 24px 22px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-flow__list::before {
  content: none;
  display: none;
}

.timeline-flow__item {
  position: relative;
  display: grid;
  gap: 10px;
  text-align: center;
  color: var(--muted);
}

.timeline-flow__node {
  width: 34px;
  height: 34px;
  margin: 0 auto;
  border-radius: 50%;
  border: 2px solid rgba(90, 209, 255, 0.55);
  color: var(--accent-3);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  background: rgba(8, 14, 20, 0.55);
  box-shadow: 0 0 18px rgba(90, 209, 255, 0.25);
}

.timeline-flow__content h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text);
}

.timeline-flow__content p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.timeline-flow__item:nth-child(odd) {
  transform: translateY(-6px);
}

.timeline-flow__item:nth-child(even) {
  transform: translateY(8px);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  color: var(--accent-3);
  transition: color 0.2s ease, transform 0.2s ease;
}

.back-to-top--card {
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(90, 209, 255, 0.2);
  background: rgba(10, 18, 23, 0.72);
}

.back-to-top:hover {
  color: var(--text);
  transform: translateY(-2px);
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(90, 209, 255, 0.28);
  background: rgba(10, 18, 23, 0.8);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.chip:hover {
  transform: translateY(-2px);
  border-color: rgba(76, 229, 210, 0.6);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.35);
}

.chip--primary {
  background: linear-gradient(120deg, rgba(76, 229, 210, 0.95), rgba(140, 91, 255, 0.9));
  color: #071013;
  border: none;
}

.chip--ghost {
  border-color: rgba(140, 91, 255, 0.35);
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 25, 30, 0.7);
  border: 1px solid rgba(90, 209, 255, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.icon-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(76, 229, 210, 0.5);
}

.info-grid,
.collection-grid {
  display: grid;
  gap: 20px;
  position: relative;
}

.info-grid::before,
.collection-grid::before {
  content: "";
  position: absolute;
  inset: 24px 10% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(90, 209, 255, 0.35), transparent);
  opacity: 0.5;
}

.info-card summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  display: grid;
  gap: 6px;
}

.info-card summary::-webkit-details-marker {
  display: none;
}

.info-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.info-card__hint {
  color: var(--muted);
  font-size: 0.85rem;
}

.hint-mobile {
  display: none;
}

.info-card__panel {
  position: relative;
}

.info-card__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(90, 209, 255, 0.25);
  background: rgba(10, 18, 23, 0.85);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  display: none;
}

.info-card__close:hover {
  border-color: rgba(76, 229, 210, 0.6);
}

.brand--hero .brand__social {
  position: absolute;
  top: 12px;
  right: 12px;
  margin-top: 0;
}

.info-card__panel {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.info-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.collection-tile {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.collection-tile__head h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.collection-tile__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.collection-marquee {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 14, 20, 0.75);
}

.header__collections {
  gap: 32px;
  margin-top: -18px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.header-collection-card {
  padding: 0;
  gap: 2px;
}

.header-collection-title {
  padding: 0 18px 0;
}

.header-collection-title h3 {
  font-size: clamp(0.56rem, 1vw, 1rem);
  margin: 0;
}

.header-collection-card .collection-marquee {
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  max-width: 260px;
}

.header-collection-card .collection-marquee::before,
.header-collection-card .collection-marquee::after {
  content: none;
  display: none;
}

.header-collection-card .collection-marquee__track,
.header-collection-card .collection-marquee__group {
  gap: 8px;
}

.header-collection-card .collection-marquee__group {
  padding: 0;
}

.header-collection-card .collection-marquee img {
  width: 45px;
  height: 45px;
  border-radius: 14px;
}

.header-collection-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.header-collection-card--right .header-collection-row {
  justify-content: space-between;
}

.header-collection-card--right .collection-marquee {
  margin-left: 0;
}

.header-collection-card--right {
  width: 100%;
}

.header-collection-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  flex: 1;
  margin-left: -210px;
  margin-top: -4px;
}

.header-collection-stack .header-collection-title {
  transform: translateY(4px);
}

.header-collection-stack .collection-marquee {
  width: clamp(180px, 22vw, 300px);
}

.gov-card {
  position: relative;
  border-radius: 999px;
  border: 1px solid rgba(90, 209, 255, 0.26);
  background: rgba(12, 18, 24, 0.72);
  padding: 7px 12px;
  min-width: 150px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gov-card summary {
  list-style: none;
  font-family: var(--font-display);
  font-size: calc(0.6rem + 4px);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gov-card summary::-webkit-details-marker {
  display: none;
}

.gov-card__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(260px, 72vw);
  background: rgba(10, 16, 22, 0.9);
  border: 1px solid rgba(90, 209, 255, 0.2);
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
  display: none;
  z-index: 5;
}

.gov-card__panel h4 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--text);
}

.gov-card__panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.55rem;
  line-height: 1.4;
}

.gov-card__panel li {
  display: grid;
  gap: 4px;
}

.gov-card__panel a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.gov-card__panel span {
  color: var(--muted);
}

.gov-card__panel a:hover,
.gov-card__panel a:focus-visible {
  color: var(--accent-2);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

@media (hover: hover) {
  .gov-card:hover {
    transform: translateY(-2px);
    border-color: rgba(76, 229, 210, 0.6);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.35);
  }

  .gov-card:hover .gov-card__panel {
    display: block;
  }
}

.gov-card[open] .gov-card__panel {
  display: block;
}

.collection-marquee::before,
.collection-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 70px;
  pointer-events: none;
  z-index: 1;
}

.collection-marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(9, 14, 20, 0.95), rgba(9, 14, 20, 0));
}

.collection-marquee::after {
  right: 0;
  background: linear-gradient(270deg, rgba(9, 14, 20, 0.95), rgba(9, 14, 20, 0));
}

.header__collections .collection-marquee {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none;
}

.header__collections .collection-marquee::before,
.header__collections .collection-marquee::after {
  content: none !important;
  display: none !important;
  background: transparent !important;
}

.collection-marquee__track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee var(--marquee-duration, 26s) linear infinite;
  will-change: transform;
}

.collection-marquee__group {
  display: flex;
  gap: 16px;
  padding: 0 12px;
}

.collection-marquee img {
  width: 86px;
  height: 86px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

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

.collection-card summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.collection-card summary::-webkit-details-marker {
  display: none;
}

.collection-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
}

.collection-card p {
  margin: 0;
  color: var(--muted);
}

.collection-hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.collection-preview {
  display: none;
  gap: 10px;
  padding: 0 20px 16px;
}

.collection-preview img {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.collection-grid__items {
  display: grid;
  gap: 12px;
  padding: 0 20px 18px;
  max-height: 320px;
  overflow: auto;
}

.nft-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 16, 22, 0.7);
}

.nft-card img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.nft-card h4 {
  margin: 0;
  font-family: var(--font-display);
}

.nft-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline__item {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--muted);
}

.faq-grid {
  display: grid;
  gap: 14px;
}

.qa-card summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-family: var(--font-display);
}

.qa-card summary::-webkit-details-marker {
  display: none;
}

.qa-card__panel {
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
  display: none;
}

.qa-card[open] .qa-card__panel {
  display: block;
}

.site-footer {
  padding: 30px 0 50px;
  color: var(--muted);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer__inner a {
  color: var(--accent-3);
}

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

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

@keyframes float {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(0, -12px, 0) scale(1.02);
  }
}

@keyframes borderBlink {
  0%,
  100% {
    border-color: rgba(90, 209, 255, 0.18);
    box-shadow: 0 0 0 rgba(76, 229, 210, 0);
  }
  50% {
    border-color: rgba(76, 229, 210, 0.5);
    box-shadow: 0 0 22px rgba(76, 229, 210, 0.25);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0;
    box-shadow: 0 0 0 rgba(76, 229, 210, 0);
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 0 28px rgba(90, 209, 255, 0.25);
  }
}

@keyframes heroPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(76, 229, 210, 0);
  }
  50% {
    box-shadow:
      0 0 18px rgba(76, 229, 210, 0.25),
      0 0 42px rgba(76, 229, 210, 0.35),
      0 0 90px rgba(76, 229, 210, 0.4);
  }
}

@keyframes headerImagePulse {
  0%,
  100% {
    box-shadow:
      0 20px 36px rgba(5, 10, 26, 0.18),
      0 0 0 rgba(76, 229, 210, 0);
  }
  50% {
    box-shadow:
      0 20px 36px rgba(5, 10, 26, 0.18),
      0 0 16px rgba(76, 229, 210, 0.16),
      0 0 32px rgba(76, 229, 210, 0.2);
  }
}

@keyframes treasuryGlow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(240, 197, 86, 0);
  }
  50% {
    box-shadow:
      0 0 24px rgba(240, 197, 86, 0.4),
      0 0 60px rgba(240, 197, 86, 0.6),
      0 0 120px rgba(240, 197, 86, 0.45);
  }
}

@media (min-width: 900px) {
  .header__top {
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
  }

  .brand {
    grid-column: 1 / 2;
  }

  .header__collections {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    margin-top: -48px;
  }

  .header__aside {
    grid-column: 2 / 3;
    grid-row: 1 / span 1;
    align-self: center;
  }

  .header__image {
    margin-top: 23px;
    transform: translateY(0);
  }

  .brand--hero,
  .header__collections {
    transform: translateY(-30px);
  }

  .info-grid,
  .collection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-marquee img {
    width: 110px;
    height: 110px;
  }

  .header-collection-card:not(.header-collection-card--right) .collection-marquee {
    margin-left: 12px;
  }

  .treasury-grid {
    grid-template-columns: 1.6fr 0.9fr;
    align-items: start;
  }

  .treasury-card {
    margin-top: 18px;
  }

  .hub-grid,
  .collection-layout {
    grid-template-columns: 1.6fr 0.9fr;
    align-items: start;
  }

  .split-sections {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start;
  }

  .info-card__panel {
    position: absolute;
    inset: auto 18px 18px 18px;
    background: var(--surface-strong);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    display: none;
    z-index: 3;
  }

  .info-card:hover .info-card__panel,
  .info-card:focus-within .info-card__panel,
  .info-card[open] .info-card__panel {
    display: block;
  }

  .collection-preview {
    display: flex;
  }

  .qa-card__panel {
    position: static;
    inset: auto;
    background: transparent;
    border-radius: 0;
    border: 0;
    padding: 0 18px 16px;
    display: none;
    z-index: auto;
  }

  .qa-card {
    min-height: 0;
  }
}

@media (max-width: 899px) {
  .header__inner {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "brand brand"
      "isc collections"
      "gov collections";
    gap: 16px 14px;
  }

  .header__top {
    display: contents;
  }

  .brand {
    grid-area: brand;
  }

  .header__aside {
    grid-area: isc;
    display: none;
  }

  .header__mini {
    grid-area: nav;
    align-self: center;
    justify-content: flex-start;
  }

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

  .brand--hero {
    padding-right: 140px;
  }

  .brand__portrait {
    display: block;
    position: absolute;
    right: 16px;
    top: calc(50% + 65px);
    width: 146px;
    height: 97px;
    border-radius: 999px;
    transform: translateY(-50%);
    background-image: url("assets/header.png");
    background-size: 140%;
    background-position: 70% 40%;
    box-shadow: 0 16px 28px rgba(5, 10, 26, 0.28);
    border: 1px solid rgba(126, 246, 215, 0.35);
    z-index: 1;
    pointer-events: none;
    animation: headerImagePulse 4.5s ease-in-out infinite;
  }

  .brand__logo {
    width: 110px;
    height: 110px;
  }

  .header__aside {
    justify-items: start;
  }

  .header__image {
    width: min(100%, 320px);
    border-radius: 16px;
    opacity: 0.88;
    transform: translateY(-9px);
  }

  .isc__logo--inline {
    width: 78px;
    height: 78px;
  }

  .header__links {
    row-gap: 6px;
    column-gap: 6px;
  }

  .header__links .chip {
    padding: 8px 12px;
    font-size: 0.75rem;
  }

  .collection-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .header__collections {
    display: grid;
    grid-area: collections;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 10px;
    margin-left: -20px;
    margin-top: 0;
  }

  .header-collection-card {
    width: auto;
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
  }

  .header-collection-card:not(.header-collection-card--right) {
    margin-top: -22px;
  }

  .header-collection-card--right {
    display: block;
    margin-top: 20px;
    margin-left: 7px;
  }

  .header-collection-row {
    display: block;
  }

  .header-collection-stack {
    width: auto;
    margin-left: 0;
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
  }

  .gov-card {
    align-self: flex-start;
    grid-column: 1;
    grid-row: 3;
    padding: 6px 10px;
    min-width: 120px;
    width: 180px;
    justify-self: start;
    margin-top: 6px;
  }

  .header__collections .collection-marquee {
    width: 108px;
    max-width: none;
  }

  .header-collection-title {
    padding-left: 0;
    width: auto;
  }

  .header-collection-title h3 {
    font-size: 0.62rem;
  }

  .gov-card summary {
    font-size: calc(0.6rem + 2px);
  }

  .header__collections {
    align-self: flex-start;
  }

  .header-collection-stack,
  .header__collections .collection-marquee {
    align-self: flex-start;
  }

  .info-card__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .collection-grid__items {
    gap: 16px;
  }

  .nft-card {
    grid-template-columns: auto 1fr;
    row-gap: 10px;
  }

  .nft-card a {
    justify-self: start;
  }
}

@media (hover: none) {
  .hint-desktop {
    display: none;
  }

  .hint-mobile {
    display: inline;
  }
}

@media (max-width: 600px) {
  .wrap {
    width: min(100% - 28px, var(--maxw));
  }

  .info-card summary,
  .collection-card summary {
    padding: 18px 18px;
  }

  .info-card__hint {
    font-size: 0.8rem;
  }

  .qa-card summary {
    padding: 20px 18px;
  }

  .info-card__panel,
  .qa-card__panel {
    font-size: 0.9rem;
  }

  .collection-tile {
    padding: 18px;
  }

  .collection-marquee::before,
  .collection-marquee::after {
    width: 50px;
  }

  .collection-marquee img {
    width: 74px;
    height: 74px;
  }

  .header-collection-stack {
    transform: translate(17px, -43px);
  }

  .gov-card__panel {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: min(220px, 88vw);
    padding: 8px 10px;
  }

  .gov-card__panel h4 {
    margin-bottom: 6px;
  }

  .gov-card__panel ul {
    gap: 4px;
    font-size: 0.52rem;
    line-height: 1.35;
  }

  .collection-actions {
    justify-content: flex-end;
  }

  .collection-actions .collection-cta {
    margin-left: auto;
  }

  .hub-card {
    justify-self: start;
    margin-right: auto;
  }

  .header__image {
    width: min(100%, 260px);
    margin-left: 0;
    justify-self: start;
    opacity: 0.88;
    transform: translateY(-5px);
  }

  .isc__logo--inline {
    width: 70px;
    height: 70px;
  }

  .collection-grid__items {
    max-height: 260px;
  }

  .chip {
    padding: 11px 16px;
  }

  .timeline-flow__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-flow__list::before {
    display: none;
  }

  .timeline-flow__item {
    text-align: left;
  }

  .timeline-flow__node {
    margin: 0;
  }

  .timeline-flow__item:nth-child(odd),
  .timeline-flow__item:nth-child(even) {
    transform: none;
  }

  .two-column-list {
    columns: 1;
  }

  .split-divider {
    display: none;
  }

  .collection-layout {
    grid-template-columns: 1fr;
  }

  .collection-actions {
    justify-content: flex-start;
  }

  .card:not(.qa-card),
  .card:not(.qa-card)::after {
    animation: none;
  }

  .treasury-card.card {
    animation: treasuryGlow 4.5s ease-in-out infinite;
  }

  .collection-cta.card,
  .hub-card.card {
    animation: borderBlink 4.5s ease-in-out infinite;
  }

  .collection-cta.card::after,
  .hub-card.card::after {
    animation: pulseGlow 4.5s ease-in-out infinite;
  }

  .brand--hero.card {
    animation: heroPulse 4.5s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg__glow,
  .reveal,
  .card--pulse,
  .header__image {
    animation: none;
    transition: none;
  }

  .collection-marquee {
    overflow-x: auto;
    scroll-behavior: auto;
  }

  .collection-marquee__track {
    animation: none;
    transform: translateX(0);
  }
}
