/* ==========================================================================
   Dr.Elon â€” $DrElon | Production stylesheet
   White Â· Medical Â· Space-tech Â· Premium meme
   ========================================================================== */

@font-face {
  font-family: "Syne";
  src: url("../assets/fonts/Syne.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../assets/fonts/DMSans.ttf") format("truetype");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("../assets/fonts/SpaceMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("../assets/fonts/SpaceMono-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  --bg: #f7f8fb;
  --bg-soft: #eef1f7;
  --surface: #ffffff;
  --ink: #0d0f14;
  --ink-soft: #3a3f4b;
  --muted: #6b7280;
  --line: #0d0f14;
  --blue: #00b4ff;
  --blue-deep: #0077cc;
  --cyan: #00e5ff;
  --sol-green: #14f195;
  --sol-purple: #9945ff;
  --mars: #e85d3a;
  --danger: #e63946;
  --navy: #1a1a2e;
  --shadow: 0 8px 30px rgba(13, 15, 20, 0.08);
  --shadow-lg: 0 20px 50px rgba(13, 15, 20, 0.12);
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 72px;
  --announce-h: 40px;
  --font-display: "Syne", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(0, 180, 255, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(153, 69, 255, 0.05), transparent 45%),
    var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.has-custom-cursor {
  cursor: none;
}

body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor .tilt-card,
body.has-custom-cursor .comm-card {
  cursor: none;
}

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

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

ul, ol {
  list-style: none;
}

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

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 10000;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2rem, 720px);
}

/* --------------------------------------------------------------------------
   Scroll progress & cursor
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9999;
  pointer-events: none;
  background: transparent;
}

.scroll-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--sol-purple), var(--sol-green));
  transform-origin: left;
  transition: width 0.05s linear;
}

.custom-cursor {
  display: none;
  pointer-events: none;
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
}

.custom-cursor.is-active {
  display: block;
}

.custom-cursor__dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.custom-cursor__ring {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(0, 180, 255, 0.55);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--ease), height 0.2s var(--ease), border-color 0.2s;
}

.custom-cursor.is-hover .custom-cursor__ring {
  width: 52px;
  height: 52px;
  border-color: var(--sol-purple);
}

/* --------------------------------------------------------------------------
   Announcement
   -------------------------------------------------------------------------- */
.announcement {
  position: sticky;
  top: 0;
  z-index: 1001;
  background: var(--navy);
  color: #fff;
  height: var(--announce-h);
  overflow: hidden;
}

.announcement__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  padding: 0 0.75rem;
}

.announcement__track {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.announcement__text {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: marquee 28s linear infinite;
}

.pulse-icon {
  color: var(--blue);
  display: grid;
  place-items: center;
  animation: pulse-glow 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

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

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.12); }
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: var(--announce-h);
  z-index: 1000;
  background: rgba(247, 248, 251, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1.5px solid rgba(13, 15, 20, 0.08);
  transition: box-shadow 0.3s var(--ease);
}

.header.is-scrolled {
  box-shadow: var(--shadow);
}

.nav {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  z-index: 1002;
}

.nav__logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  object-fit: cover;
  background: #fff;
}

.nav__brand {
  letter-spacing: -0.02em;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

.nav__links a {
  padding: 0.5rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  background: rgba(0, 180, 255, 0.12);
  color: var(--blue-deep);
  outline: none;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 1002;
}

.nav__toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  gap: 5px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  position: relative;
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s;
  position: absolute;
}

.nav__toggle span:nth-child(1) { transform: translateY(-6px); }
.nav__toggle span:nth-child(2) { transform: translateY(0); }
.nav__toggle span:nth-child(3) { transform: translateY(6px); }

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

@media (max-width: 899px) {
  .nav__links {
    position: fixed;
    inset: calc(var(--announce-h) + var(--header-h)) 0 auto 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1.5rem 1.25rem 2rem;
    gap: 0.35rem;
    border-bottom: 1.5px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s var(--ease), opacity 0.35s, visibility 0.35s;
    display: flex;
  }

  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__links a {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 1.1rem;
    border: 1.5px solid transparent;
  }

  .nav__links a:hover {
    border-color: var(--line);
  }

  body.menu-open {
    overflow: hidden;
  }
}

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

  .nav__toggle {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, color 0.25s;
  white-space: nowrap;
  text-align: center;
}

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

.btn--primary {
  background: var(--blue);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--navy), 0 8px 20px rgba(0, 180, 255, 0.3);
}

.btn--primary:hover {
  background: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--navy), 0 12px 24px rgba(0, 180, 255, 0.35);
}

.btn--primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--navy);
}

.btn--outline {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--navy);
}

.btn--outline:hover {
  background: var(--bg-soft);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(0, 180, 255, 0.1);
}

.btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 1rem 1.75rem;
  font-size: 1.05rem;
}

.magnetic {
  will-change: transform;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--announce-h) - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.04);
  will-change: transform;
  opacity: 0.45;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(247, 248, 251, 0.72) 0%, rgba(247, 248, 251, 0.88) 45%, rgba(247, 248, 251, 0.98) 100%),
    radial-gradient(ellipse 70% 60% at 75% 45%, rgba(0, 180, 255, 0.08), transparent 55%);
}

.hero__particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.45;
  animation: float-particle linear infinite;
}

.particle--cross {
  width: 10px;
  height: 10px;
  background: transparent;
  border-radius: 0;
  opacity: 0.5;
}

.particle--cross::before,
.particle--cross::after {
  content: "";
  position: absolute;
  background: var(--sol-purple);
  border-radius: 1px;
}

.particle--cross::before {
  width: 2px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.particle--cross::after {
  height: 2px;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
}

@keyframes float-particle {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-100vh) rotate(180deg); opacity: 0; }
}

.hero__orbits {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: min(420px, 42vw);
  height: min(420px, 42vw);
  pointer-events: none;
  z-index: 0;
  opacity: 0.28;
}

.orbit {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(0, 180, 255, 0.45);
  border-radius: 50%;
  border-style: dashed;
  animation: spin-orbit linear infinite;
}

.orbit--1 { animation-duration: 24s; }
.orbit--2 { inset: 12%; border-color: rgba(153, 69, 255, 0.4); animation-duration: 18s; animation-direction: reverse; }
.orbit--3 { inset: 28%; border-color: rgba(20, 241, 149, 0.35); animation-duration: 12s; }

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

.hero__rocket {
  --mx: 0px;
  --my: 0px;
  --mr: 0deg;
  position: absolute;
  right: 6%;
  top: 18%;
  z-index: 2;
  animation: rocket-bob 3.5s ease-in-out infinite;
  filter: drop-shadow(0 8px 16px rgba(0, 180, 255, 0.35));
  opacity: 0.9;
  pointer-events: none;
}

@keyframes rocket-bob {
  0%, 100% {
    transform: translate3d(var(--mx), var(--my), 0) translateY(0) rotate(calc(-8deg + var(--mr)));
  }
  50% {
    transform: translate3d(var(--mx), var(--my), 0) translateY(-18px) rotate(calc(-4deg + var(--mr)));
  }
}

.hero__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content {
  position: relative;
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  order: -1;
}

.hero__logo-wrap {
  position: relative;
  width: min(72vw, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #f3f5f9;
  box-shadow: 0 6px 0 var(--navy), var(--shadow-lg);
  overflow: hidden;
  z-index: 1;
  animation: logo-float 5s ease-in-out infinite;
}

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

.hero__logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sol-green);
  box-shadow: 0 0 0 0 rgba(20, 241, 149, 0.5);
  animation: ping 1.6s ease infinite;
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(20, 241, 149, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(20, 241, 149, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 241, 149, 0); }
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.75rem;
  align-items: center;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 9vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--navy);
}

.hero__ticker {
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 3vw, 1.4rem);
  color: var(--blue-deep);
  font-weight: 700;
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.hero__sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 0.85rem;
  max-width: 30ch;
  margin-inline: auto;
}

.hero__desc {
  color: var(--ink-soft);
  max-width: 42ch;
  margin-inline: auto;
  margin-bottom: 1.1rem;
  font-size: 0.98rem;
}

.heartbeat {
  width: 100%;
  max-width: 320px;
  height: 36px;
  margin: 0 auto 1.35rem;
  overflow: hidden;
}

.heartbeat svg {
  width: 200%;
  height: 100%;
  animation: heartbeat-scroll 2.8s linear infinite;
}

.heartbeat__line {
  fill: none;
  stroke: var(--danger);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.prescription-float {
  position: absolute;
  left: -4%;
  bottom: 8%;
  z-index: 2;
  display: none;
}

.rx-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-lg);
  width: 170px;
  animation: rx-float 4s ease-in-out infinite;
  transform: rotate(-6deg);
}

.rx-card__mark {
  font-size: 1.5rem;
  color: var(--blue);
  font-weight: 700;
}

.rx-card p {
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

.rx-card p:first-of-type {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink);
  margin: 0.25rem 0;
}

@keyframes rx-float {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-10px); }
}

@media (max-width: 899px) {
  .hero__orbits,
  .hero__rocket {
    opacity: 0.18;
  }

  .hero {
    min-height: auto;
    padding-top: clamp(1.5rem, 4vw, 2.5rem);
    padding-bottom: clamp(2.5rem, 6vw, 4rem);
  }
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.5rem;
  }

  .hero__visual {
    order: 0;
  }

  .hero__content {
    margin-inline: 0;
    text-align: left;
    max-width: none;
  }

  .hero__title {
    align-items: flex-start;
  }

  .hero__sub,
  .hero__desc {
    margin-inline: 0;
  }

  .heartbeat {
    margin-left: 0;
    margin-right: auto;
  }

  .hero__ctas {
    justify-content: flex-start;
  }

  .hero__logo-wrap {
    width: min(100%, 440px);
  }

  .prescription-float {
    display: block;
  }
}

@media (min-width: 1100px) {
  .hero__logo-wrap {
    width: 460px;
  }
}

/* --------------------------------------------------------------------------
   Sections shared
   -------------------------------------------------------------------------- */
.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  position: relative;
}

.section__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  max-width: 560px;
  margin-inline: auto;
}

.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.section__lead {
  color: var(--ink-soft);
  font-size: 1.1rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Diagnosis
   -------------------------------------------------------------------------- */
.diagnosis {
  background: var(--surface);
  border-block: 1.5px solid rgba(13, 15, 20, 0.06);
}

.diagnosis__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .diagnosis__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .diagnosis__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .diag-card--critical {
    grid-column: span 1;
  }
}

.diag-card {
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 0 var(--navy);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
  transform-style: preserve-3d;
}

.diag-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 0 var(--navy), var(--shadow);
}

.diag-card__icon {
  margin-bottom: 1rem;
  color: var(--navy);
  width: 48px;
  height: 48px;
}

.diag-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.diag-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1.15rem;
}

.diag-card--critical {
  background: linear-gradient(160deg, #fff 60%, rgba(230, 57, 70, 0.06));
  border-color: var(--danger);
}

.severity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.severity__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.severity__bars {
  display: flex;
  gap: 4px;
}

.severity__bars i {
  display: block;
  width: 14px;
  height: 8px;
  border-radius: 2px;
  background: rgba(13, 15, 20, 0.12);
  border: 1px solid rgba(13, 15, 20, 0.15);
}

.severity__bars[data-level="3"] i:nth-child(-n+3),
.severity__bars[data-level="4"] i:nth-child(-n+4),
.severity__bars[data-level="5"] i:nth-child(-n+5) {
  background: var(--danger);
  border-color: var(--navy);
  animation: severity-pulse 1.8s ease-in-out infinite;
}

.severity__bars[data-level="3"] i:nth-child(-n+3) {
  background: var(--mars);
}

.severity__bars i:nth-child(2) { animation-delay: 0.1s; }
.severity__bars i:nth-child(3) { animation-delay: 0.2s; }
.severity__bars i:nth-child(4) { animation-delay: 0.3s; }
.severity__bars i:nth-child(5) { animation-delay: 0.4s; }

@keyframes severity-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* --------------------------------------------------------------------------
   Treatment Protocol
   -------------------------------------------------------------------------- */
.protocol {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  counter-reset: none;
}

.protocol__step {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "num num"
    "icon body";
  gap: 0.75rem 1.25rem;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: 0 4px 0 var(--navy);
  transition: transform 0.35s var(--ease);
}

.protocol__step:hover {
  transform: translateX(6px);
}

.protocol__num {
  grid-area: num;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-deep);
  letter-spacing: 0.1em;
}

.protocol__icon {
  grid-area: icon;
}

.protocol__body {
  grid-area: body;
}

.protocol__body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.protocol__body p {
  color: var(--ink-soft);
}

@media (min-width: 768px) {
  .protocol__step {
    grid-template-columns: 64px 72px 1fr;
    grid-template-areas: "num icon body";
    align-items: center;
  }

  .protocol__num {
    font-size: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   Planet Scanner
   -------------------------------------------------------------------------- */
.scanner-section {
  background: var(--bg-soft);
}

.scanner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.scanner__viewport {
  width: 100%;
  max-width: 720px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 0 var(--navy), var(--shadow);
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .scanner__viewport {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 2rem;
  }
}

.scanner__earth {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 1;
  margin-inline: auto;
}

.earth-sphere {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #5eb3ff, #1a6fb5 55%, #0d3d6b);
  border: 2px solid var(--navy);
  overflow: hidden;
  box-shadow: inset -12px -8px 24px rgba(0, 0, 0, 0.35), 0 0 40px rgba(0, 180, 255, 0.2);
}

.earth-sphere__land {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 25% at 30% 40%, #2d8a4e 0%, transparent 70%),
    radial-gradient(ellipse 30% 35% at 70% 55%, #3a9e5c 0%, transparent 65%),
    radial-gradient(ellipse 25% 20% at 45% 75%, #277a45 0%, transparent 60%);
  animation: earth-spin 20s linear infinite;
}

.earth-sphere__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.35), transparent 45%);
}

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

.scan-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(0, 180, 255, 0.5);
  animation: spin-orbit 10s linear infinite;
}

.scan-ring--2 {
  inset: 6%;
  border-color: rgba(153, 69, 255, 0.45);
  animation-duration: 14s;
  animation-direction: reverse;
}

.scan-ring--3 {
  inset: 12%;
  border-color: rgba(20, 241, 149, 0.4);
  animation-duration: 8s;
}

.hotspot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid #fff;
  box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.5);
  animation: hotspot-pulse 2s ease infinite;
  z-index: 2;
  padding: 0;
}

.hotspot::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  white-space: nowrap;
  background: var(--navy);
  color: #fff;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.hotspot:hover::after,
.scanner.is-scanning .hotspot::after {
  opacity: 1;
}

.hotspot--1 { top: 28%; left: 22%; animation-delay: 0s; }
.hotspot--2 { top: 42%; right: 20%; animation-delay: 0.4s; }
.hotspot--3 { bottom: 28%; left: 35%; animation-delay: 0.8s; }
.hotspot--4 { top: 55%; left: 48%; animation-delay: 1.2s; }

@keyframes hotspot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(230, 57, 70, 0); }
}

.scan-beam {
  position: absolute;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  top: 20%;
  opacity: 0;
  box-shadow: 0 0 12px var(--cyan);
  pointer-events: none;
  z-index: 3;
}

.scanner.is-scanning .scan-beam {
  opacity: 1;
  animation: scan-sweep 1.2s ease-in-out infinite;
}

@keyframes scan-sweep {
  0% { top: 15%; }
  100% { top: 80%; }
}

.scanner__readout {
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.scanner__status {
  color: var(--blue-deep);
  margin-bottom: 0.75rem;
  min-height: 1.4em;
}

.scanner__logs {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  color: var(--muted);
  min-height: 5.5em;
}

.scanner__logs li {
  opacity: 0;
  animation: log-in 0.4s forwards;
}

@keyframes log-in {
  to { opacity: 1; }
}

.scanner__result {
  padding: 1rem;
  background: rgba(0, 180, 255, 0.08);
  border: 1.5px solid var(--blue);
  border-radius: var(--radius-sm);
}

.scanner__result[hidden] {
  display: none;
}

.scanner__diagnosis,
.scanner__rx {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink);
}

.scanner__rx {
  margin-top: 0.35rem;
  color: var(--blue-deep);
}

#scan-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.scan-btn__icon {
  display: grid;
  place-items: center;
}

.scanner.is-scanning .scan-btn__icon {
  animation: spin-orbit 1s linear infinite;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .about__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

.about__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.about__frame {
  width: min(100%, 400px);
  border: 1.5px solid var(--line);
  border-radius: 50%;
  overflow: hidden;
  background: #f0f2f6;
  box-shadow: 0 6px 0 var(--navy), var(--shadow-lg);
  aspect-ratio: 1;
}

.about__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-tags {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ftag {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  animation: tag-float 4s ease-in-out infinite;
}

.ftag--1 { top: 8%; left: 0; animation-delay: 0s; color: var(--mars); }
.ftag--2 { top: 18%; right: 0; animation-delay: 0.5s; color: var(--sol-purple); }
.ftag--3 { bottom: 28%; left: -4%; animation-delay: 1s; color: var(--sol-green); }
.ftag--4 { top: 48%; right: -2%; animation-delay: 1.5s; color: var(--blue-deep); }
.ftag--5 { bottom: 12%; right: 8%; animation-delay: 0.8s; color: var(--sol-purple); }
.ftag--6 { bottom: 8%; left: 12%; animation-delay: 1.2s; color: var(--blue); }

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

.about__lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

.about__punch {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.about__note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.about__copy .section__title {
  text-align: left;
}

.about__copy .section__eyebrow {
  text-align: left;
}

/* --------------------------------------------------------------------------
   Prescription document
   -------------------------------------------------------------------------- */
.rx-section {
  background: var(--surface);
  border-block: 1.5px solid rgba(13, 15, 20, 0.06);
}

.rx-doc {
  max-width: 640px;
  margin-inline: auto;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 6px 0 var(--navy), var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.rx-doc::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--blue), var(--sol-purple), var(--sol-green));
}

.rx-doc__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.75rem;
  gap: 1rem;
}

.rx-doc__brand {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.rx-doc__brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  object-fit: cover;
}

.rx-doc__clinic {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.rx-doc__chain {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.rx-doc__mark {
  font-size: 2.5rem;
  color: var(--blue);
  font-weight: 700;
  line-height: 1;
}

.rx-doc__fields {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.rx-doc__fields > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed rgba(13, 15, 20, 0.15);
}

.rx-doc__fields dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding-top: 0.15rem;
}

.rx-doc__fields dd {
  font-weight: 600;
  font-size: 1rem;
}

.rx-doc__sig {
  margin-bottom: 1.25rem;
}

.rx-doc__sig > p:first-child {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.signature {
  width: min(100%, 280px);
  height: 60px;
  display: block;
}

.signature__stroke {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
}

.rx-doc.is-visible .signature__stroke,
.signature.is-drawn .signature__stroke {
  animation: sign-draw 2.2s var(--ease) forwards;
}

@keyframes sign-draw {
  to { stroke-dashoffset: 0; }
}

.signature__name {
  font-family: var(--font-display);
  font-weight: 700;
  margin-top: 0.25rem;
}

.rx-doc__disclaimer {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Token
   -------------------------------------------------------------------------- */
.token__panel {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 6px 0 var(--navy), var(--shadow);
  position: relative;
  overflow: hidden;
  max-width: 720px;
  margin-inline: auto;
}

.solana-accent {
  display: flex;
  gap: 6px;
  margin-bottom: 1.5rem;
}

.solana-accent span {
  height: 4px;
  flex: 1;
  border-radius: 4px;
}

.solana-accent span:nth-child(1) { background: var(--sol-purple); }
.solana-accent span:nth-child(2) { background: var(--cyan); }
.solana-accent span:nth-child(3) { background: var(--sol-green); }

.token__specs {
  display: grid;
  gap: 1.15rem;
  margin-bottom: 1.75rem;
}

.token__specs > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.75rem;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(13, 15, 20, 0.08);
}

.token__specs dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.token__specs dd {
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--font-display);
}

.accent-blue {
  color: var(--blue-deep);
}

.chain-badge {
  display: inline-flex;
  padding: 0.3rem 0.75rem;
  background: rgba(153, 69, 255, 0.1);
  border: 1.5px solid var(--sol-purple);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--sol-purple);
}

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

.contract-row code {
  background: var(--bg-soft);
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(13, 15, 20, 0.1);
  font-size: 0.95rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(20, 241, 149, 0.12);
  border: 1.5px solid var(--sol-green);
  border-radius: 999px;
  font-size: 0.85rem;
  color: #0a7a4a;
  font-family: var(--font-body);
  font-weight: 600;
}

.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sol-green);
  animation: ping 1.6s ease infinite;
}

.token__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.copy-btn.is-copied {
  color: #0a7a4a;
}

/* --------------------------------------------------------------------------
   Mission Journey
   -------------------------------------------------------------------------- */
.mission {
  background: var(--bg-soft);
  overflow: hidden;
}

.journey {
  position: relative;
  padding-top: 1rem;
}

.journey__track {
  position: relative;
  height: 4px;
  background: rgba(13, 15, 20, 0.1);
  border-radius: 4px;
  margin: 0 8% 2.5rem;
}

.journey__progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--sol-purple), var(--mars));
  border-radius: 4px;
  transition: width 0.15s linear;
}

.journey__ship {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  transition: left 0.15s linear;
  filter: drop-shadow(0 2px 6px rgba(0, 180, 255, 0.5));
  z-index: 2;
}

.journey__stops {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .journey__stops {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
  }

  .journey__stop {
    text-align: center;
  }
}

.journey__stop {
  position: relative;
  padding: 1rem;
  background: var(--surface);
  border: 1.5px solid rgba(13, 15, 20, 0.12);
  border-radius: var(--radius-sm);
  opacity: 0.45;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.journey__stop.is-active {
  opacity: 1;
  transform: none;
  border-color: var(--line);
  box-shadow: 0 3px 0 var(--navy);
}

.journey__dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(13, 15, 20, 0.2);
  border: 2px solid var(--surface);
  margin-bottom: 0.65rem;
}

@media (min-width: 768px) {
  .journey__dot {
    margin-inline: auto;
  }
}

.journey__stop.is-active .journey__dot {
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 180, 255, 0.25);
}

.journey__stop strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.journey__stop p {
  font-size: 0.82rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Side Effects
   -------------------------------------------------------------------------- */
.effects__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .effects__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .effects__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .effects__grid .effect-card:nth-child(4),
  .effects__grid .effect-card:nth-child(5) {
    grid-column: span 1;
  }
}

.effect-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 0 var(--navy);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.35s var(--ease);
}

.effect-card:hover {
  transform: translateY(-4px) rotate(-1deg);
}

.effect-card__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--blue-deep);
  font-weight: 700;
}

.effect-card p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Community
   -------------------------------------------------------------------------- */
.community {
  background: var(--navy);
  color: #fff;
}

.community .section__eyebrow {
  color: var(--cyan);
}

.community .section__lead {
  color: rgba(255, 255, 255, 0.7);
}

.community__cta-text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.6rem) !important;
  font-weight: 700;
  color: #fff !important;
}

.community__actions {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .community__actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

.comm-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  transition: background 0.3s, transform 0.3s, border-color 0.3s;
  text-align: left;
  color: #fff;
  width: 100%;
}

.comm-card:hover,
.comm-card:focus-visible {
  background: rgba(0, 180, 255, 0.12);
  border-color: var(--blue);
  transform: translateY(-3px);
  outline: none;
}

.comm-card__icon {
  margin-bottom: 0.5rem;
  color: var(--cyan);
}

.comm-card strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.comm-card span:last-child {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.accordion__item {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 2px 0 var(--navy);
}

.accordion__item h3 {
  font-size: inherit;
  font-weight: inherit;
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  transition: background 0.2s;
}

.accordion__trigger:hover {
  background: var(--bg-soft);
}

.accordion__trigger:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: -3px;
}

.accordion__icon {
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease), background 0.25s;
}

.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.accordion__icon::before {
  width: 10px;
  height: 1.5px;
}

.accordion__icon::after {
  width: 1.5px;
  height: 10px;
  transition: opacity 0.25s;
}

.accordion__trigger[aria-expanded="true"] .accordion__icon {
  background: var(--blue);
  border-color: var(--navy);
  transform: rotate(90deg);
}

.accordion__trigger[aria-expanded="true"] .accordion__icon::after {
  opacity: 0;
}

.accordion__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease);
}

.accordion__panel:not([hidden]) {
  /* JS sets max-height; hidden attr removed when open */
}

.accordion__panel[hidden] {
  display: block;
  max-height: 0 !important;
  visibility: hidden;
}

.accordion__panel p {
  padding: 0 1.25rem 1.25rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.accordion__panel a {
  color: var(--blue-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.accordion__panel code {
  background: var(--bg-soft);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--surface);
  border-top: 1.5px solid var(--line);
  padding: 3rem 0 2rem;
}

.footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 700px) {
  .footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: start;
  }
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer__brand img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  object-fit: cover;
}

.footer__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
}

.footer__ticker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer__links a {
  font-weight: 600;
  width: fit-content;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.footer__links a:hover {
  color: var(--blue-deep);
  border-color: var(--blue);
}

.footer__contract p {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.footer__contract code {
  display: inline-block;
  margin-right: 0.5rem;
  font-weight: 700;
}

.footer__disclaimer {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 1rem;
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Back to top & toast
   -------------------------------------------------------------------------- */
.back-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 4px 0 var(--navy), var(--shadow);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-top:hover {
  background: var(--blue);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 9500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: var(--shadow-lg);
  max-width: min(90vw, 360px);
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast[hidden] {
  display: block;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .announcement__text {
    animation: none;
    white-space: normal;
    text-align: center;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .signature__stroke {
    stroke-dashoffset: 0;
  }

  .custom-cursor {
    display: none !important;
  }

  body.has-custom-cursor {
    cursor: auto;
  }
}

/* --------------------------------------------------------------------------
   Print / small polish
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .hero__ctas .btn {
    width: 100%;
  }

  .token__specs > div,
  .rx-doc__fields > div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .nav__brand {
    font-size: 1rem;
  }
}