:root {
  color-scheme: dark;
  --bg: #050009;
  --ink: #f6efff;
  --muted: #b9a4e7;
  --soft: #8b6dd7;
  --violet: #9d37ff;
  --violet-hot: #d654ff;
  --violet-deep: #47128e;
  --cyan: #23d6c0;
  --green: #70ff5e;
  --red: #ff3f66;
  --panel: rgba(5, 8, 22, 0.74);
  --panel-solid: #090d1b;
  --line: rgba(169, 85, 255, 0.5);
  --line-soft: rgba(182, 124, 255, 0.24);
  --shadow: 0 0 18px rgba(151, 51, 255, 0.7), 0 0 52px rgba(97, 18, 212, 0.44);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: url("assets/actargus-hero.png") center top / 100% auto no-repeat;
  content: "";
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 0, 12, 0.18), rgba(3, 0, 12, 0.2) 48%, rgba(3, 0, 12, 0.9) 100%),
    radial-gradient(circle at 50% 18%, rgba(161, 54, 255, 0.24), transparent 31rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.1), transparent 26%, transparent 74%, rgba(0, 0, 0, 0.28));
  content: "";
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 60px;
  padding: 8px clamp(18px, 3vw, 58px);
  border-bottom: 1px solid rgba(178, 89, 255, 0.58);
  background: linear-gradient(180deg, rgba(6, 4, 18, 0.88), rgba(7, 5, 20, 0.48));
  box-shadow: 0 4px 32px rgba(105, 24, 214, 0.28);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark,
.hero-sigil,
.token-avatar {
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(221, 198, 255, 0.58);
  border-radius: 999px;
  background: rgba(13, 4, 38, 0.55);
  box-shadow: var(--shadow);
}

.brand-mark {
  width: 56px;
  height: 36px;
}

.brand-mark img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  filter: saturate(1.25) contrast(1.12);
}

.brand-name,
.footer-brand {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 7px #fff, 0 0 21px var(--violet), 0 0 48px var(--violet-hot);
}

.primary-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 40px);
}

.primary-nav a {
  position: relative;
  padding: 16px 0 13px;
  color: #eee6ff;
  font-size: 0.94rem;
  font-weight: 700;
}

.primary-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #fff, var(--violet), transparent);
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 160ms ease, transform 160ms ease;
  content: "";
}

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

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.buy-pill,
.primary-action,
.link-row a,
.contract-box {
  border: 1px solid rgba(204, 146, 255, 0.76);
  background: linear-gradient(180deg, rgba(135, 38, 255, 0.95), rgba(92, 12, 199, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 0 24px rgba(156, 57, 255, 0.5);
}

.buy-pill,
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 38px;
  border-radius: 18px;
  color: #fff;
  font-weight: 900;
  white-space: nowrap;
}

.buy-pill {
  padding: 0 20px 0 14px;
  font-size: 0.86rem;
}

.link-row svg,
.contract-box svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.service-logo {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.service-logo-pump {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 8px rgba(95, 203, 136, 0.5));
}

.service-logo-x {
  width: 20px;
  height: 20px;
  filter: invert(1) drop-shadow(0 0 7px rgba(227, 203, 255, 0.5));
}

.service-logo-telegram {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 8px rgba(42, 171, 238, 0.55));
}

.service-logo-discord {
  width: 22px;
  height: 18px;
  filter: drop-shadow(0 0 8px rgba(88, 101, 242, 0.55));
}

.service-logo-dex {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  filter: drop-shadow(0 0 8px rgba(222, 199, 255, 0.5));
}

.icon-link {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #e8dcff;
  font-size: 1.35rem;
  font-weight: 500;
  text-shadow: 0 0 16px rgba(197, 140, 255, 0.8);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 5, 32, 0.72);
  color: #fff;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: currentColor;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1420px);
  margin: 0 auto;
  padding: 0 clamp(18px, 2vw, 32px);
}

.hero {
  position: relative;
  display: grid;
  place-items: start center;
  min-height: clamp(382px, 34vw, 445px);
  padding-top: clamp(24px, 3.5vw, 50px);
}

.hero-copy {
  width: min(100%, 500px);
  margin-left: clamp(100px, 22vw, 300px);
  text-align: center;
}

.hero-sigil {
  width: clamp(82px, 9vw, 112px);
  height: clamp(82px, 9vw, 112px);
  margin: 0 auto -8px;
}

.hero-sigil img {
  width: 138%;
  height: 138%;
  object-fit: cover;
  filter: saturate(1.25) contrast(1.08);
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.5rem, 8.2vw, 7.7rem);
  font-weight: 600;
  line-height: 0.9;
  color: #fff;
  text-shadow:
    0 0 5px #fff,
    0 0 13px #fff,
    0 0 32px var(--violet),
    0 0 72px var(--violet-hot);
}

.hero-kicker,
.micro-line,
.feature-card h3,
.feature-card span,
.edge-copy,
.site-footer p {
  letter-spacing: 0.36em;
  text-transform: uppercase;
}

.hero-kicker {
  margin: 14px 0 12px;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(0.76rem, 1.3vw, 1.05rem);
  text-shadow: 0 0 15px rgba(230, 205, 255, 0.86);
}

.hero-text {
  width: 260px;
  margin: 0 auto 22px;
  color: #d9c4ff;
  font-family: var(--serif);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.33em;
  line-height: 1.45;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.primary-action {
  min-width: min(330px, 100%);
  min-height: 44px;
  border-radius: 14px;
  font-size: 1.04rem;
}

.link-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 auto 10px;
}

.link-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 38px;
  border-radius: 12px;
  background: rgba(7, 4, 20, 0.62);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
}

.x-glyph {
  font-size: 1.28rem;
  line-height: 1;
}

.contract-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(330px, 100%);
  min-height: 36px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(8, 4, 26, 0.8);
  color: #d8c4ff;
}

.contract-box span {
  padding: 0 12px;
  color: #b89df4;
  font-size: 0.81rem;
}

.contract-box code {
  overflow: hidden;
  color: #fff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.83rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contract-box button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 34px;
  border: 0;
  border-left: 1px solid rgba(170, 101, 255, 0.34);
  background: transparent;
  color: #e7d8ff;
  cursor: pointer;
}

.micro-line {
  margin: 14px 0 0;
  color: #b477ff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.7;
}

.edge-copy {
  position: absolute;
  top: clamp(24px, 5vw, 72px);
  display: grid;
  gap: 6px;
  color: #bc87ff;
  font-family: var(--serif);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 0 17px rgba(151, 67, 255, 0.9);
}

.edge-copy-left {
  left: clamp(0px, 1vw, 18px);
}

.edge-copy-right {
  right: clamp(0px, 1vw, 18px);
  text-align: center;
}

.edge-copy-left-lower {
  top: auto;
  bottom: 26px;
  left: clamp(0px, 1vw, 18px);
}

.edge-copy-right-lower {
  top: auto;
  right: clamp(0px, 1vw, 18px);
  bottom: 48px;
  text-align: center;
}

.market-panel,
.feature-card {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(7, 12, 25, 0.92), rgba(5, 8, 19, 0.82)),
    rgba(3, 6, 15, 0.82);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05) inset, 0 0 34px rgba(127, 35, 224, 0.28);
  backdrop-filter: blur(14px);
}

.market-panel {
  overflow: hidden;
  border-radius: 9px;
}

.market-panel::before,
.feature-card::before,
.site-footer::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 8px, rgba(183, 100, 255, 0.7) 8px 9px, transparent 9px calc(100% - 9px), rgba(183, 100, 255, 0.7) calc(100% - 9px) calc(100% - 8px), transparent calc(100% - 8px)),
    linear-gradient(180deg, transparent 0 8px, rgba(183, 100, 255, 0.7) 8px 9px, transparent 9px calc(100% - 9px), rgba(183, 100, 255, 0.7) calc(100% - 9px) calc(100% - 8px), transparent calc(100% - 8px));
  opacity: 0.7;
  content: "";
}

.panel-top {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(4, minmax(120px, 0.62fr));
  align-items: center;
  min-height: 68px;
  border-bottom: 1px solid rgba(137, 117, 179, 0.19);
}

.token-title {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
}

.token-avatar {
  flex: 0 0 auto;
  width: 76px;
  height: 48px;
  border-radius: 4px 22px 22px 4px;
}

.token-avatar img {
  width: 76px;
  height: 76px;
  object-fit: cover;
}

.token-title h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 1.06rem;
}

.token-title p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #a895de;
  font-size: 0.88rem;
}

.chain-logo {
  width: 16px;
  height: 14px;
  object-fit: contain;
  flex: 0 0 auto;
}

.divider {
  width: 1px;
  height: 18px;
  background: rgba(179, 150, 255, 0.3);
}

.market-stat {
  min-height: 52px;
  padding: 0 clamp(14px, 2vw, 30px);
  border-left: 1px solid rgba(137, 117, 179, 0.16);
}

.market-stat span {
  display: block;
  margin-bottom: 4px;
  color: #baaaf0;
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
}

.market-stat strong {
  color: #fff;
  font-size: 0.95rem;
}

.market-price span {
  margin: 0;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 950;
  text-transform: none;
}

.market-price sub {
  font-size: 0.64rem;
}

.market-price strong {
  color: var(--green);
  font-size: 0.84rem;
}

.live-chart-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 42px;
  padding: 7px 14px;
  border-bottom: 1px solid rgba(137, 117, 179, 0.19);
  background: rgba(3, 6, 18, 0.8);
}

.live-chart-bar p,
.live-chart-bar a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-chart-bar p {
  margin: 0;
  color: #d8cdf1;
  font-size: 0.78rem;
  font-weight: 750;
}

.live-chart-bar a {
  flex: 0 0 auto;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 850;
  transition: color 160ms ease;
}

.live-chart-bar a:hover,
.live-chart-bar a:focus-visible {
  color: #d69aff;
  outline: 0;
}

.live-chart-bar svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 12px rgba(112, 255, 94, 0.86);
}

.live-chart-wrap {
  position: relative;
  min-height: 390px;
  background: #070b14;
}

.chart-loader {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #070b14;
  color: #d8cdf1;
  font-size: 0.8rem;
  font-weight: 800;
  transition: opacity 240ms ease, visibility 240ms ease;
}

.chart-loader span {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(216, 205, 241, 0.24);
  border-top-color: #c26aff;
  border-radius: 999px;
  animation: chart-spin 800ms linear infinite;
}

.live-chart-wrap.loaded .chart-loader {
  visibility: hidden;
  opacity: 0;
}

#dexscreener-chart {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 390px;
  border: 0;
  background: transparent;
}

@keyframes chart-spin {
  to {
    transform: rotate(1turn);
  }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0 18px;
}

.feature-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  min-height: 118px;
  padding: 14px;
  overflow: hidden;
  border-radius: 8px;
}

.feature-visual {
  align-self: center;
  width: 82px;
  height: 82px;
  object-fit: cover;
  background: #03030a;
  box-shadow: var(--shadow);
}

.feature-visual-round {
  border-radius: 999px;
}

.feature-visual-contain {
  border-radius: 8px;
  object-fit: contain;
}

.feature-visual-square {
  border-radius: 8px;
  object-position: center 43%;
}

.feature-card h3 {
  margin: 0 0 6px;
  color: #e5c5ff;
  font-family: var(--serif);
  font-size: 0.96rem;
  line-height: 1.1;
}

.feature-card p {
  margin: 0 0 8px;
  color: #ede6ff;
  font-size: 0.82rem;
  line-height: 1.35;
}

.feature-card span {
  color: #bd7aff;
  font-family: var(--serif);
  font-size: 0.66rem;
  font-weight: 900;
}

.site-footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto auto 1fr auto auto auto;
  align-items: center;
  gap: 24px;
  min-height: 42px;
  padding: 0 clamp(20px, 3vw, 38px);
  border-top: 1px solid rgba(178, 89, 255, 0.5);
  background: rgba(5, 4, 18, 0.74);
  backdrop-filter: blur(16px);
}

.site-footer p {
  margin: 0;
  color: #a892de;
  font-size: 0.61rem;
  font-weight: 800;
  white-space: nowrap;
}

.footer-brand {
  font-size: 1.12rem;
}

.footer-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(152, 68, 245, 0.74), transparent);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #cbb0ff;
  font-size: 0.79rem;
  font-weight: 900;
}

.footer-socials a {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  transition: opacity 160ms ease, transform 160ms ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  opacity: 0.82;
  outline: 0;
  transform: translateY(-1px);
}

.copy-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  padding: 10px 14px;
  border: 1px solid rgba(219, 177, 255, 0.75);
  border-radius: 8px;
  background: rgba(22, 6, 44, 0.92);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.copy-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    justify-self: end;
    display: block;
  }

  .primary-nav,
  .header-actions {
    grid-column: 1 / -1;
    justify-self: stretch;
    display: none;
  }

  .site-header.open .primary-nav,
  .site-header.open .header-actions {
    display: flex;
  }

  .site-header.open .primary-nav {
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 8px;
  }

  .site-header.open .header-actions {
    justify-content: center;
    padding: 8px 0;
  }

  .hero-copy {
    margin-left: clamp(40px, 14vw, 180px);
  }

  .panel-top {
    grid-template-columns: minmax(250px, 1.2fr) repeat(2, minmax(130px, 1fr));
  }

  .market-stat:nth-last-child(-n + 2) {
    border-top: 1px solid rgba(137, 117, 179, 0.16);
  }

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

  .site-footer {
    grid-template-columns: auto 1fr auto;
  }

  .site-footer p:nth-of-type(1),
  .site-footer p:nth-of-type(3) {
    display: none;
  }
}

@media (max-width: 760px) {
  body::before {
    background-size: auto 100vh;
    background-position: 24% top;
  }

  .site-header {
    padding-inline: 14px;
  }

  .brand-mark {
    width: 46px;
    height: 34px;
  }

  .brand-name {
    font-size: 1.4rem;
  }

  .primary-nav {
    gap: 15px;
  }

  .header-actions {
    flex-wrap: wrap;
  }

  .page-shell {
    padding-inline: 12px;
  }

  .hero {
    min-height: 560px;
    padding-top: 28px;
    place-items: start center;
  }

  .hero-copy {
    margin-left: 0;
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(3.6rem, 18vw, 5.1rem);
  }

  .hero-kicker,
  .hero-text,
  .micro-line {
    letter-spacing: 0.22em;
  }

  .edge-copy {
    top: 20px;
    font-size: 0.62rem;
    letter-spacing: 0.28em;
  }

  .edge-copy-left {
    left: 6px;
  }

  .edge-copy-right {
    right: 6px;
  }

  .edge-copy-left-lower,
  .edge-copy-right-lower {
    display: none;
  }

  .link-row {
    grid-template-columns: 1fr;
  }

  .panel-top {
    grid-template-columns: 1fr 1fr;
  }

  .token-title {
    grid-column: 1 / -1;
    border-bottom: 1px solid rgba(137, 117, 179, 0.16);
  }

  .market-stat {
    padding: 10px 14px;
    border-top: 1px solid rgba(137, 117, 179, 0.16);
  }

  .live-chart-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding-block: 9px;
  }

  .live-chart-wrap,
  #dexscreener-chart {
    min-height: 520px;
    height: 520px;
  }

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

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    padding-block: 14px;
  }

  .footer-line {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .hero-text {
    width: min(100%, 280px);
    font-size: 0.74rem;
  }

  .primary-action,
  .contract-box {
    width: 100%;
  }

  .feature-card {
    grid-template-columns: 70px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .feature-visual {
    width: 64px;
    height: 64px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-sigil img,
  .brand-mark img {
    animation: slow-spin 24s linear infinite;
  }

  .hero-copy {
    animation: apparition 700ms ease both;
  }

  .market-panel,
  .feature-card {
    animation: rise-in 620ms ease both;
  }

  .feature-card:nth-child(2) {
    animation-delay: 90ms;
  }

  .feature-card:nth-child(3) {
    animation-delay: 160ms;
  }

  .feature-card:nth-child(4) {
    animation-delay: 230ms;
  }
}

@keyframes slow-spin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes apparition {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
