/* NEURON ($NRN) site styles */

:root {
  --bg: #05060a;
  --bg-2: #070910;
  --panel: #0b0e18;
  --line: #141a2c;
  --line-2: #182034;
  --line-3: #1f2740;
  --line-4: #2b3450;
  --cyan: #38e8ff;
  --cyan-ink: #04121a;
  --lime: #c6ff3c;
  --text: #eaf0ff;
  --muted: #9aa4c2;
  --muted-2: #8e98b6;
  --dim: #74809e;
  --radius: 16px;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--cyan); color: var(--cyan-ink); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1b2238; border: 2px solid var(--bg); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #273152; }

.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 56rem; }
.container--faq { max-width: 48rem; }
.glow { text-shadow: 0 0 24px rgba(56, 232, 255, .45), 0 0 64px rgba(56, 232, 255, .18); }
.skip { position: fixed; top: -64px; left: 12px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--cyan); color: var(--cyan-ink); font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }

/* Launch state. .is-live is set from config.js before the page paints. */
.when-live { display: none; }
.is-live .when-live { display: inline; }
.is-live .when-pre { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px;
  font-size: 14px; font-weight: 600; line-height: 1.2; letter-spacing: .02em; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s ease, border-color .2s ease, color .2s ease;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform .2s var(--ease); }
.btn:active { transform: scale(.98); }
.btn--buy {
  background: var(--cyan); color: var(--cyan-ink);
  box-shadow: 0 0 30px rgba(56, 232, 255, .4), 0 0 0 1px rgba(56, 232, 255, .5);
}
.btn--buy:hover { transform: scale(1.03); box-shadow: 0 0 46px rgba(56, 232, 255, .55), 0 0 0 1px rgba(56, 232, 255, .75); }
.btn--buy:hover svg { transform: translateX(2px); }
.btn--buy:active { transform: scale(.98); }
.btn--ghost { border: 1px solid var(--line-4); background: rgba(255, 255, 255, .02); color: #c3cbe4; font-weight: 500; }
.btn--ghost:hover { border-color: rgba(56, 232, 255, .6); color: #fff; }
.btn--sm { padding: 8px 18px; font-size: 13px; }

/* Copy-the-contract buttons */
[data-copy-ca] svg { width: 16px; height: 16px; flex-shrink: 0; }
[data-copy-ca] .icon-copy { color: var(--dim); transition: color .2s ease; }
[data-copy-ca]:hover .icon-copy { color: var(--cyan); }
[data-copy-ca] .icon-check { display: none; color: var(--lime); }
[data-copy-ca].is-copied .icon-copy { display: none; }
[data-copy-ca].is-copied .icon-check { display: block; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(5, 6, 10, .72);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__logo { width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(56, 232, 255, .3); }
.brand__name { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.nav__links { display: none; align-items: center; gap: 32px; }
.nav__links a { font-size: 14px; color: #97a1bf; transition: color .2s ease; }
.nav__links a:hover { color: #fff; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__toggle {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-3); color: #c3cbe4; transition: border-color .2s ease, color .2s ease;
}
.nav__toggle:hover { border-color: rgba(56, 232, 255, .6); color: #fff; }
.nav__toggle svg { width: 20px; height: 20px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }
.mobile-menu { padding: 4px var(--gutter) 12px; background: rgba(5, 6, 10, .9); border-top: 1px solid rgba(255, 255, 255, .06); }
.mobile-menu a { display: block; padding: 14px 0; font-size: 16px; color: #c3cbe4; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: 0; }

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; min-height: 100svh;
  padding: 104px 0 72px;
}
.hero__canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .7; }
.hero__grid {
  position: absolute; inset: 0; z-index: -1; opacity: .4; pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 140, 190, .14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 140, 190, .14) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 38%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 38%, #000 35%, transparent 100%);
}
.hero__glow {
  position: absolute; left: 50%; top: 36%; z-index: -1;
  width: 46rem; height: 46rem; max-width: 160vw; max-height: 160vw;
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(56, 232, 255, .14), rgba(139, 92, 255, .08) 40%, transparent 70%);
}
.hero__content { position: relative; max-width: 48rem; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-bottom: 32px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-3); background: rgba(0, 0, 0, .4);
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: #c9d4ef;
}
.badge--ticker { padding: 6px 12px; letter-spacing: .2em; color: var(--cyan); }
.dot { position: relative; display: inline-block; width: 8px; height: 8px; flex-shrink: 0; }
.dot__ring, .dot__core { position: absolute; inset: 0; border-radius: 50%; }
.dot__ring { background: rgba(56, 232, 255, .7); }
.dot__core { background: var(--cyan); }
.is-live .dot__ring { background: rgba(198, 255, 60, .7); }
.is-live .dot__core { background: var(--lime); }
.hero__logo { margin-bottom: 28px; }
.hero__logo img { width: 144px; height: 144px; border-radius: 50%; }
.ring { box-shadow: 0 0 0 1px rgba(56, 232, 255, .28), 0 0 44px rgba(56, 232, 255, .22); }
.hero__title { font-size: clamp(3.5rem, 12vw, 6.5rem); font-weight: 700; line-height: 1; letter-spacing: -.05em; }
.hero__sub { max-width: 36rem; margin-top: 24px; font-size: 1rem; line-height: 1.65; color: var(--muted); }
.hero__ctas { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 36px; }
.hero__ca {
  display: none; align-items: center; gap: 10px; max-width: 100%; margin-top: 22px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-3); background: rgba(0, 0, 0, .45);
  font-size: 13px; color: #cfe9ff; transition: border-color .2s ease;
}
.is-live .hero__ca { display: inline-flex; }
.hero__ca:hover { border-color: rgba(56, 232, 255, .6); }
.hero__ca-k { font-size: 11px; letter-spacing: .22em; color: var(--dim); }

/* Ticker */
.ticker { position: relative; overflow: hidden; padding: 12px 0; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticker__track { display: flex; width: max-content; }
.ticker__group { display: flex; flex-shrink: 0; align-items: center; }
.ticker__item {
  display: inline-flex; align-items: center; gap: 24px; margin-right: 24px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; white-space: nowrap; color: #5d6886;
}
.ticker__item::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: rgba(56, 232, 255, .7); }

/* Contract bar */
.ca { position: relative; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.ca__inner { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
.ca__label { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--dim); }
.ca__btn {
  display: none; align-items: center; gap: 12px; max-width: 100%;
  padding: 8px 16px; border-radius: 999px; border: 1px solid #222a3d; background: rgba(0, 0, 0, .4);
  font-size: 14px; color: #cfe9ff; transition: border-color .2s ease;
}
.is-live .ca__btn { display: inline-flex; }
.is-live .ca__pending { display: none; }
.ca__btn:hover { border-color: rgba(56, 232, 255, .6); }
.ca__full { display: none; }
.ca__pending { font-size: 14px; line-height: 1.6; text-align: center; color: var(--muted); }
.ca__pending a { color: var(--cyan); }
.ca__pending a:hover { text-decoration: underline; }

/* Sections */
.section { position: relative; padding: 96px 0; scroll-margin-top: 64px; }
.section--alt { background: var(--bg-2); border-top: 1px solid #0f1522; border-bottom: 1px solid #0f1522; }
.section__head { max-width: 42rem; margin-bottom: 56px; }
.section__head--center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-block; margin-bottom: 20px; font-family: var(--mono); font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: rgba(56, 232, 255, .85); }
.h2 { font-size: clamp(2.25rem, 5vw, 3rem); font-weight: 700; line-height: 1.05; letter-spacing: -.05em; }
.lead { max-width: 36rem; font-size: 15px; line-height: 1.7; color: var(--muted); }
.h2 + .lead { margin-top: 20px; }

/* About */
.about { display: grid; gap: 48px; align-items: center; }
.about .h2 + .lead { margin-top: 24px; }
.about .lead + .lead { margin-top: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-3); background: rgba(255, 255, 255, .02); font-family: var(--mono); font-size: 12px; color: #aeb8d6; }
.about__media { position: relative; }
.about__media::before {
  content: ""; position: absolute; inset: -16px; border-radius: 24px; pointer-events: none;
  background: radial-gradient(circle at 60% 40%, rgba(56, 232, 255, .22), transparent 70%);
  filter: blur(40px); opacity: .6;
}
.about__media img { position: relative; width: 100%; border-radius: var(--radius); border: 1px solid #1b2238; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .6); }

/* Cards */
.card { position: relative; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--panel); transition: border-color .25s ease; }
.card:hover { border-color: rgba(56, 232, 255, .4); }
.card h3 { font-size: 18px; font-weight: 600; color: #fff; }
.card p { margin-top: 8px; font-size: 14px; line-height: 1.65; color: var(--muted-2); }

/* How to buy */
.steps-wrap { position: relative; }
.steps__line { display: none; }
.steps { position: relative; display: grid; gap: 20px; }
.step__num { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 50%; border: 1px solid rgba(56, 232, 255, .3); background: rgba(0, 0, 0, .5); font-size: 14px; color: var(--cyan); }
.after-cta { margin-top: 40px; }

/* Tokenomics */
.stats { display: grid; gap: 20px; }
.stat { padding: 28px; overflow: hidden; }
.stat--hot::before {
  content: ""; position: absolute; top: -40px; right: -40px; width: 128px; height: 128px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(56, 232, 255, .4), transparent 70%); filter: blur(24px); opacity: .5;
}
.stat__k { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }
.stat__v { margin-top: 12px; font-size: clamp(28px, 2.6vw, 36px); font-weight: 700; letter-spacing: -.025em; color: #fff; }
.stat__sub { margin-top: 8px; font-size: 14px; color: var(--muted-2); }

/* Roadmap */
.timeline { position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 19.5px; top: 8px; bottom: 8px; width: 1px;
  background: linear-gradient(180deg, rgba(56, 232, 255, .5), rgba(56, 232, 255, .15) 60%, transparent);
}
.phase { position: relative; display: flex; gap: 24px; }
.phase + .phase { margin-top: 40px; }
.phase__num { position: relative; z-index: 1; flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(56, 232, 255, .4); background: var(--bg-2); font-size: 12px; color: var(--cyan); }
.phase h3 { padding-top: 6px; font-size: 20px; font-weight: 600; color: #fff; }
.phase p { max-width: 36rem; margin-top: 8px; font-size: 15px; line-height: 1.7; color: var(--muted-2); }

/* FAQ */
.faq { border-top: 1px solid #161d2f; }
.faq details { border-bottom: 1px solid #161d2f; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 500; color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq__icon { flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-4); color: var(--cyan); transition: transform .3s var(--ease), border-color .3s ease; }
.faq__icon svg { width: 16px; height: 16px; }
.faq summary:hover .faq__icon, .faq details[open] .faq__icon { border-color: rgba(56, 232, 255, .55); }
.faq details[open] .faq__icon { transform: rotate(45deg); }
.faq__a { max-width: 42rem; padding-bottom: 24px; font-size: 15px; line-height: 1.7; color: var(--muted); }

/* Closing band */
.band { position: relative; overflow: hidden; padding: 96px 0; text-align: center; border-top: 1px solid #0f1522; }
.band::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(56, 232, 255, .12), transparent 70%); opacity: .7; }
.band__inner { position: relative; max-width: 42rem; }
.band__title { font-size: clamp(2.25rem, 6vw, 3.75rem); font-weight: 700; line-height: 1.1; letter-spacing: -.05em; }
.band__text { max-width: 28rem; margin: 20px auto 0; line-height: 1.65; color: var(--muted); }
.band__ctas { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; margin-top: 36px; }

/* Footer */
.footer { padding: 56px 0; background: var(--bg-2); border-top: 1px solid #0f1522; }
.footer__top { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 24px; }
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__brand img { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(56, 232, 255, .3); }
.footer__name { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.footer__meta { display: block; font-size: 11px; line-height: 1.3; color: var(--dim); }
.footer__links { display: flex; align-items: center; gap: 12px; }
.social { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-3); color: #aeb8d6; transition: border-color .2s ease, color .2s ease; }
.social:hover { border-color: rgba(56, 232, 255, .6); color: #fff; }
.social svg { width: 16px; height: 16px; }
.disclaimer { max-width: 48rem; margin: 40px auto 0; text-align: center; font-size: 12px; line-height: 1.7; color: var(--dim); }
.copyright { margin-top: 20px; text-align: center; font-size: 11px; color: var(--dim); }

/* Responsive */
@media (max-width: 359px) {
  .brand__name { display: none; }
}
@media (max-width: 639px) and (max-height: 700px) {
  .hero__logo img { width: 112px; height: 112px; }
  .hero__badges { margin-bottom: 24px; }
}
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .hero__logo img { width: 176px; height: 176px; }
  .hero__sub { font-size: 1.125rem; }
  .hero__ctas, .band__ctas { flex-direction: row; }
  .ca__inner { flex-direction: row; }
  .section { padding: 128px 0; }
  .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .faq summary { font-size: 20px; }
  .footer__top { flex-direction: row; }
}
@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__toggle, .mobile-menu { display: none !important; }
  .ca__full { display: inline; }
  .ca__btn .ca__short { display: none; }
}
@media (min-width: 1024px) {
  .about { grid-template-columns: 1fr 1fr; }
  .steps, .stats { grid-template-columns: repeat(4, 1fr); }
  .steps__line {
    display: block; position: absolute; left: 0; right: 0; top: 48px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 232, 255, .3), transparent);
  }
}

/* Motion, only when the visitor allows it */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(6px); } }
@keyframes ping { 0% { transform: scale(.9); opacity: .75; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes reveal-failsafe { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s var(--ease) both; animation-delay: var(--d, 0s); }
  .float { animation: float 6s ease-in-out infinite; }
  .dot__ring { animation: ping 2.6s ease-out infinite; }
  .ticker__track { animation: marquee 34s linear infinite; }
  .js .reveal {
    opacity: 0; transform: translateY(20px);
    transition: opacity .8s ease var(--delay, 0s), transform .8s var(--ease) var(--delay, 0s), border-color .25s ease;
  }
  .js .reveal.is-in { opacity: 1; transform: none; }
  /* If the script never loads, show everything anyway. */
  .js:not(.reveal-on) .reveal { animation: reveal-failsafe .6s ease 2.5s forwards; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
