:root {
  color-scheme: dark;
  --bg: #08020f;
  --panel: rgba(20, 8, 37, .84);
  --line: rgba(188, 140, 242, .24);
  --purple: #9d42ff;
  --purple-light: #cf9aff;
  --blue: #47b9ff;
  --gold: #f1c66a;
  --green: #53e7a3;
  --text: #f8f4ff;
  --muted: #b7a9c8;
  --shadow: 0 24px 80px rgba(0, 0, 0, .48);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 15%, rgba(92, 26, 158, .25), transparent 32%),
    radial-gradient(circle at 85% 8%, rgba(27, 106, 173, .18), transparent 30%),
    linear-gradient(180deg, #08020f, #0d0418 44%, #07010d);
  color: var(--text);
  font-family: Rajdhani, system-ui, sans-serif;
  font-size: 18px;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.ambient { position: fixed; width: 420px; height: 420px; border-radius: 50%; filter: blur(100px); opacity: .14; pointer-events: none; }
.ambient-one { background: var(--purple); left: -160px; top: 28%; }
.ambient-two { background: var(--blue); right: -180px; top: 55%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 24px;
  width: min(1500px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(9, 3, 17, .84);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 35px rgba(0,0,0,.32);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-emblem {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--purple-light);
  background: radial-gradient(circle at 35% 30%, #fff 0 4%, #a96cff 18%, #351059 58%, #11051e 100%);
  box-shadow: inset 0 0 16px rgba(255,255,255,.2), 0 0 22px rgba(157,66,255,.45);
  color: white;
  font: 800 1rem Orbitron, sans-serif;
}
.brand strong { display: block; font: 700 clamp(.88rem, 1.6vw, 1.14rem) Orbitron, sans-serif; letter-spacing: .08em; }
.brand small { display: block; margin-top: 3px; color: var(--purple-light); font-size: .62rem; font-weight: 700; letter-spacing: .13em; }
.main-nav { display: flex; align-items: center; gap: 20px; }
.main-nav a { color: var(--muted); text-decoration: none; font-size: .88rem; font-weight: 700; white-space: nowrap; }
.main-nav a:hover { color: white; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s, border-color .2s, background .2s;
}
.button:hover { transform: translateY(-1px); border-color: var(--purple-light); }
.button-primary { background: linear-gradient(135deg, #7724d5, #a447ff); box-shadow: 0 10px 28px rgba(126,36,213,.28); }
.button-secondary, .button-muted { background: rgba(255,255,255,.04); }
.button-muted { justify-self: end; color: var(--muted); }
.button-row { display: flex; flex-wrap: wrap; gap: 9px; }

.page-shell { width: min(1440px, calc(100% - 32px)); min-height: 65vh; margin: 28px auto 70px; }
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 8vw, 110px) clamp(24px, 6vw, 84px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: radial-gradient(circle at 80% 30%, rgba(82,171,255,.16), transparent 28%), radial-gradient(circle at 24% 40%, rgba(164,71,255,.24), transparent 35%), linear-gradient(135deg, rgba(26,9,48,.95), rgba(10,4,20,.92));
  box-shadow: var(--shadow);
}
.hero::after {
  content: 'O';
  position: absolute;
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
  color: transparent;
  font: 800 clamp(160px, 28vw, 410px)/1 Orbitron, sans-serif;
  -webkit-text-stroke: 2px rgba(197,149,255,.08);
  pointer-events: none;
}
.compact-hero { padding-block: clamp(40px, 6vw, 78px); }
.hero h1 { position: relative; z-index: 1; max-width: 970px; margin: 10px 0 16px; font: 700 clamp(2rem, 5.5vw, 4.8rem)/1.02 Orbitron, sans-serif; letter-spacing: -.035em; }
.hero p:not(.eyebrow) { position: relative; z-index: 1; max-width: 850px; margin: 0; color: var(--muted); font-size: clamp(1.06rem, 2vw, 1.35rem); line-height: 1.5; }
.hero > .button { position: relative; z-index: 2; margin-top: 28px; }
.eyebrow { margin: 0; color: var(--purple-light); font: 700 .76rem/1.2 Orbitron, sans-serif; letter-spacing: .18em; }
.hero-actions { position: relative; z-index: 2; margin-top: 28px; }
.trust-strip { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 30px; color: var(--green); font-size: .9rem; font-weight: 700; }

.filter-row { display: flex; gap: 9px; overflow-x: auto; padding: 22px 2px 12px; scrollbar-width: thin; }
.filter-chip { flex: 0 0 auto; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.035); color: var(--muted); font-weight: 700; cursor: pointer; }
.filter-chip.active { color: white; border-color: var(--purple); background: rgba(157,66,255,.17); }

.market-layout { display: grid; grid-template-columns: minmax(260px, 330px) minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 18px; }
.token-list, .chart-panel, .content-panel { border: 1px solid var(--line); border-radius: 22px; background: var(--panel); backdrop-filter: blur(15px); box-shadow: var(--shadow); }
.token-list { position: sticky; top: 96px; max-height: calc(100vh - 120px); padding: 14px; overflow-y: auto; }
.section-heading { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 14px; }
.section-heading strong { display: grid; place-items: center; min-width: 32px; height: 32px; border-radius: 50%; background: rgba(157,66,255,.18); color: var(--purple-light); }
.token-card {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) auto;
  grid-template-areas: 'logo copy status' 'logo world world';
  gap: 1px 10px;
  width: 100%;
  margin-bottom: 8px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: rgba(255,255,255,.028);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.token-card:hover, .token-card.selected { border-color: rgba(188,140,242,.48); background: rgba(157,66,255,.1); }
.token-logo { grid-area: logo; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(135deg, #5d1aa2, #204c87); font: 800 .85rem Orbitron, sans-serif; }
.token-copy { grid-area: copy; min-width: 0; }
.token-copy strong, .token-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.token-copy small { margin-top: 2px; color: var(--muted); font-size: .74rem; }
.token-world { grid-area: world; color: #8e81a1; font-size: .7rem; }
.status { grid-area: status; align-self: start; padding: 3px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .54rem; font-weight: 800; letter-spacing: .06em; }
.status-live { border-color: rgba(83,231,163,.45); color: var(--green); }
.status-launching { border-color: rgba(71,185,255,.45); color: var(--blue); }
.status-approved { border-color: rgba(241,198,106,.45); color: var(--gold); }
.empty-copy { padding: 16px; color: var(--muted); text-align: center; }

.chart-panel { overflow: hidden; }
.chart-toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px; }
.chart-toolbar h2 { margin: 6px 0 0; font: 700 clamp(1.25rem, 3vw, 2rem)/1.1 Orbitron, sans-serif; }
.chart-toolbar h2 span { color: var(--purple-light); }
.dex-frame { display: block; width: 100%; min-height: 670px; border: 0; background: #090512; }
.chart-placeholder { display: grid; place-items: center; min-height: 520px; padding: 40px; background: radial-gradient(circle, rgba(116,45,189,.18), transparent 42%), #090512; text-align: center; }
.chart-placeholder h2, .chart-placeholder h3 { margin: 13px 0 8px; font-family: Orbitron, sans-serif; }
.chart-placeholder p:not(.eyebrow) { max-width: 700px; margin: 0; color: var(--muted); }
.pulse-orbit { position: relative; width: 100px; height: 100px; margin-bottom: 25px; border: 1px solid rgba(188,140,242,.42); border-radius: 50%; box-shadow: 0 0 50px rgba(157,66,255,.22); }
.pulse-orbit::before { content: 'O'; position: absolute; inset: 18px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #8132d5, #243d8c); font: 800 1.4rem Orbitron, sans-serif; }
.pulse-orbit::after { content: ''; position: absolute; width: 14px; height: 14px; top: -7px; left: 43px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 18px var(--blue); animation: orbit 3.6s linear infinite; transform-origin: 7px 57px; }
@keyframes orbit { to { transform: rotate(360deg); } }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.detail-grid article { min-height: 108px; padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-grid article:nth-child(3n) { border-right: 0; }
.detail-grid span { display: block; margin-bottom: 7px; color: var(--muted); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.detail-grid strong { display: block; overflow-wrap: anywhere; font-size: .96rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem !important; }
.launch-flow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 28px; }
.launch-flow span { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.03); font-weight: 700; }
.launch-flow b { color: var(--purple-light); }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.process-grid article { min-height: 245px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.process-grid b { color: var(--purple-light); font: 800 1.5rem Orbitron, sans-serif; }
.process-grid h3 { margin: 28px 0 8px; font: 700 1.2rem Orbitron, sans-serif; }
.process-grid p { color: var(--muted); line-height: 1.5; }
.content-panel { margin-top: 18px; padding: clamp(25px, 5vw, 54px); }
.content-panel h1, .content-panel h2 { font-family: Orbitron, sans-serif; }
.content-panel > p:not(.eyebrow) { max-width: 900px; color: var(--muted); line-height: 1.55; }
.status-roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 30px; }
.status-roadmap span { padding: 13px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); text-align: center; font-weight: 700; }
.status-roadmap .done { color: var(--green); border-color: rgba(83,231,163,.35); }
.status-roadmap .active { color: var(--purple-light); border-color: var(--purple); background: rgba(157,66,255,.1); }

.loading-panel { display: grid; place-items: center; min-height: 60vh; color: var(--muted); }
.spinner { width: 42px; height: 42px; border: 3px solid rgba(255,255,255,.08); border-top-color: var(--purple-light); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-panel { text-align: center; }
.error-panel h1 { max-width: 800px; margin-inline: auto; }
.site-footer { width: min(1440px, calc(100% - 32px)); margin: 0 auto 35px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }
.site-footer p { margin: 4px; }
.footer-note { font-size: .78rem; }
.modal { width: min(560px, calc(100% - 28px)); border: 1px solid var(--line); border-radius: 22px; background: #130721; color: var(--text); box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(2,0,5,.78); backdrop-filter: blur(5px); }
.modal form { position: relative; padding: 26px; }
.modal h2 { font-family: Orbitron, sans-serif; }
.modal p:not(.eyebrow) { color: var(--muted); line-height: 1.5; }
.modal-close { position: absolute; top: 8px; right: 10px; border: 0; background: transparent; color: var(--muted); font-size: 1.7rem; cursor: pointer; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .market-layout { grid-template-columns: 1fr; }
  .token-list { position: static; display: flex; gap: 8px; max-height: none; overflow-x: auto; }
  .section-heading { min-width: 130px; }
  .token-card { min-width: 240px; margin-bottom: 0; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-header { width: calc(100% - 18px); margin-top: 8px; padding: 9px; border-radius: 16px; }
  .brand-emblem { width: 42px; height: 42px; }
  .brand small { display: none; }
  .button-muted { min-height: 40px; padding: 8px 10px; font-size: .72rem; }
  .page-shell { width: calc(100% - 18px); margin-top: 12px; }
  .hero { padding: 40px 21px; border-radius: 22px; }
  .hero h1 { font-size: clamp(1.7rem, 9vw, 2.8rem); }
  .trust-strip { display: grid; gap: 8px; }
  .chart-toolbar { align-items: flex-start; flex-direction: column; }
  .dex-frame { min-height: 560px; }
  .chart-placeholder { min-height: 430px; padding: 30px 18px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid article, .detail-grid article:nth-child(3n) { border-right: 0; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid article { min-height: 200px; }
  .status-roadmap { grid-template-columns: 1fr 1fr; }
  .launch-flow { flex-direction: column; }
  .launch-flow b { display: none; }
  .launch-flow span { width: 100%; }
}
