* {
  box-sizing: border-box;
}

:root {
  --bg: #050805;
  --surface: rgba(255,255,255,.035);
  --surface-strong: rgba(255,255,255,.06);
  --line: rgba(255,255,255,.11);
  --text: #f5f7f3;
  --muted: #8b948b;
  --green: #44ff69;
  --green-soft: rgba(68,255,105,.18);
  --green-line: rgba(68,255,105,.42);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 70% 20%, rgba(41, 255, 92, .06), transparent 24rem),
    radial-gradient(circle at 18% 75%, rgba(41, 255, 92, .035), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

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

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .055;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.glow {
  position: fixed;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  filter: blur(120px);
  background: rgba(62, 255, 99, .07);
  pointer-events: none;
  z-index: -2;
}

.glow-a { top: -15rem; right: -8rem; }
.glow-b { bottom: -18rem; left: -10rem; }

.nav {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand-mark {
  width: 10px;
  height: 10px;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
  transform: rotate(45deg);
}

.ticker {
  font-family: "Space Mono", monospace;
  color: var(--green);
  font-size: 12px;
  border: 1px solid var(--green-line);
  padding: 5px 8px;
  border-radius: 999px;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.nav-links a {
  transition: color .2s ease;
}

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

.hero {
  padding: 76px 0 28px;
}

.eyebrow,
.section-kicker {
  font-family: "Space Mono", monospace;
  color: var(--green);
  font-size: 11px;
  letter-spacing: .22em;
  font-weight: 700;
}

.hero-frame {
  position: relative;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--green-line);
  background: #070b07;
  box-shadow:
    0 0 0 1px rgba(68,255,105,.04) inset,
    0 0 70px rgba(30,255,70,.055);
}

.hero-frame::before,
.hero-frame::after {
  content: "";
  position: absolute;
  z-index: 4;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.hero-frame::before {
  left: 12px;
  top: 12px;
  border-left: 1px solid var(--green);
  border-top: 1px solid var(--green);
}

.hero-frame::after {
  right: 12px;
  bottom: 12px;
  border-right: 1px solid var(--green);
  border-bottom: 1px solid var(--green);
}

.hero-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  filter: saturate(.92) contrast(1.04) brightness(.9);
  transform: scale(1.001);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,8,5,.14), transparent 22%, transparent 72%, rgba(5,8,5,.08)),
    linear-gradient(180deg, rgba(5,8,5,.05), rgba(5,8,5,.24));
  pointer-events: none;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: -20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(111,255,137,.65), transparent);
  box-shadow: 0 0 18px rgba(68,255,105,.6);
  opacity: .45;
  animation: scan 6s linear infinite;
}

@keyframes scan {
  0% { transform: translateY(0); }
  100% { transform: translateY(620px); }
}

.hero-copy {
  display: grid;
  grid-template-columns: 1.55fr .7fr;
  gap: 60px;
  align-items: end;
  margin-top: 34px;
}

h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 108px);
  line-height: .86;
  letter-spacing: -.065em;
  font-weight: 900;
}

h1 span {
  display: block;
  margin-top: 8px;
  color: rgba(245,247,243,.16);
  -webkit-text-stroke: 1px rgba(245,247,243,.18);
  text-stroke: 1px rgba(245,247,243,.18);
  line-height: .94;
  letter-spacing: -.05em;
  text-shadow: 0 0 24px rgba(68,255,105,.05);
}

.hero-text {
  margin: 0 0 5px;
  max-width: 380px;
  color: #c6cdc5;
  font-size: 15px;
  line-height: 1.6;
}

.hero-text span {
  display: block;
  color: var(--muted);
  margin-top: 8px;
}

.contract {
  padding: 112px 0 92px;
}

.ca-card {
  margin-top: 16px;
  min-height: 112px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: stretch;
}

.ca-copy {
  flex: 1;
  min-width: 0;
  padding: 25px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.ca-label {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .16em;
}

#contractAddress {
  font-family: "Space Mono", monospace;
  font-size: clamp(13px, 1.7vw, 18px);
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-button {
  width: 190px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition:
    background .2s ease,
    color .2s ease;
}

.copy-button:hover {
  background: var(--green);
  color: #041006;
}

.copy-icon {
  font-size: 17px;
}

.actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 14px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.action-button {
  min-height: 96px;
  padding: 0 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  background: rgba(255,255,255,.012);
  transition:
    background .22s ease,
    color .22s ease,
    transform .22s ease;
}

.action-button:hover {
  background: var(--green);
  color: #041006;
}

.action-button[aria-disabled="true"] {
  opacity: .35;
  pointer-events: none;
}

.arrow {
  font-size: 20px;
  font-weight: 400;
  transition: transform .2s ease;
}

.action-button:hover .arrow {
  transform: translate(3px, -3px);
}

.statement {
  display: grid;
  grid-template-columns: 1fr auto auto 1fr;
  gap: 26px;
  align-items: center;
  padding: 60px 0 140px;
}

.statement-rule {
  height: 1px;
  background: var(--line);
}

.statement p {
  margin: 0;
  font-size: clamp(19px, 2.6vw, 34px);
  font-weight: 800;
  letter-spacing: -.04em;
}

.statement-muted {
  color: #4e574f;
}

.statement-muted span {
  color: var(--green);
}

.footer {
  min-height: 86px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #69716a;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: .14em;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--green);
  color: #031006;
  padding: 12px 16px;
  border-radius: 999px;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 20;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal .75s cubic-bezier(.2,.7,.2,1) forwards;
}

.hero-frame.reveal { animation-delay: .08s; }
.hero-copy .reveal:nth-child(1) { animation-delay: .12s; }
.hero-copy .reveal:nth-child(2) { animation-delay: .2s; }

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .nav {
    height: 74px;
  }

  .nav-links {
    gap: 16px;
  }

  .hero {
    padding-top: 46px;
  }

  .hero-copy {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  h1 {
    font-size: clamp(52px, 16vw, 82px);
  }

  .contract {
    padding-top: 84px;
  }

  .ca-card {
    flex-direction: column;
  }

  .copy-button {
    width: 100%;
    min-height: 62px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

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

  .statement {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 92px;
  }

  .statement-rule {
    width: 100%;
  }

  .statement p {
    font-size: 27px;
  }
}

@media (max-width: 520px) {
  .brand .ticker {
    display: none;
  }

  .nav-links a:first-child {
    display: none;
  }

  .hero-frame img {
    aspect-ratio: 1.7 / 1;
  }

  .hero-frame {
    border-color: rgba(68,255,105,.28);
  }

  .hero-copy {
    margin-top: 26px;
  }

  .hero-text {
    font-size: 14px;
  }

  .ca-copy {
    padding: 22px 18px;
  }

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

  .action-button {
    min-height: 76px;
  }

  .footer {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}


/* === V2 personality pass === */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  opacity: .08;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 74px,
      rgba(68,255,105,.08) 75px,
      transparent 76px
    ),
    linear-gradient(180deg, rgba(68,255,105,.03), transparent 22%, transparent 78%, rgba(68,255,105,.04));
}

.nav {
  position: relative;
}

.nav::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 140px;
  height: 1px;
  background: linear-gradient(90deg, var(--green), transparent);
  box-shadow: 0 0 16px rgba(68,255,105,.45);
}

.hero-frame,
.ca-card,
.action-button,
.copy-button {
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.hero-frame {
  position: relative;
  border-width: 1px;
  box-shadow:
    0 0 0 1px rgba(68,255,105,.04) inset,
    0 0 80px rgba(30,255,70,.06),
    0 0 22px rgba(30,255,70,.05);
}

.hero-frame::before {
  left: 14px;
  top: 14px;
}

.hero-frame::after {
  right: 14px;
  bottom: 14px;
}

.hero-frame .hero-shade::before,
.hero-frame .hero-shade::after {
  content: "";
  position: absolute;
  width: 86px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(68,255,105,.85), transparent);
  box-shadow: 0 0 12px rgba(68,255,105,.35);
}

.hero-frame .hero-shade::before {
  top: 20px;
  right: 26px;
}

.hero-frame .hero-shade::after {
  bottom: 20px;
  left: 26px;
}

.ca-card {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(68,255,105,.04) inset;
}

.ca-card::before {
  content: "RUNNER";
  position: absolute;
  right: 20px;
  top: 14px;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: .28em;
  color: rgba(68,255,105,.18);
}

.copy-button {
  position: relative;
  overflow: hidden;
}

.copy-button::before,
.action-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 15%, rgba(68,255,105,.07) 50%, transparent 85%);
  transform: translateX(-100%);
  transition: transform .5s ease;
}

.copy-button:hover::before,
.action-button:hover::before {
  transform: translateX(100%);
}

.action-button {
  position: relative;
  overflow: hidden;
}

.action-button span {
  position: relative;
  z-index: 2;
}

.action-button::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  height: 1px;
  background: linear-gradient(90deg, rgba(68,255,105,0), rgba(68,255,105,.35), rgba(68,255,105,0));
  opacity: .65;
  transition: opacity .2s ease, transform .22s ease;
}

.action-button:hover::after {
  opacity: 1;
  transform: scaleX(1.02);
}

#twitterLink {
  position: relative;
  background:
    linear-gradient(180deg, rgba(68,255,105,.045), rgba(255,255,255,.01));
  box-shadow:
    inset 0 0 0 1px rgba(68,255,105,.32),
    0 0 0 1px rgba(68,255,105,.12),
    0 0 24px rgba(68,255,105,.08);
}

#twitterLink::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(68,255,105,.55);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  pointer-events: none;
  opacity: .95;
}

#twitterLink:hover {
  background: linear-gradient(180deg, rgba(68,255,105,.12), rgba(68,255,105,.08));
  color: #041006;
  box-shadow:
    inset 0 0 0 1px rgba(68,255,105,.78),
    0 0 0 1px rgba(68,255,105,.26),
    0 0 26px rgba(68,255,105,.18);
}

.statement {
  position: relative;
}

.statement::before {
  content: "RNR";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(80px, 15vw, 220px);
  font-weight: 900;
  letter-spacing: -.08em;
  color: rgba(255,255,255,.02);
  pointer-events: none;
}

.statement p,
.statement .statement-rule {
  position: relative;
  z-index: 1;
}

.footer {
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  right: 0;
  top: -1px;
  width: 160px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(68,255,105,.55));
  box-shadow: 0 0 12px rgba(68,255,105,.35);
}

@media (max-width: 820px) {
  }

@media (max-width: 520px) {
  .hero-frame,
  .ca-card,
  .action-button,
  .copy-button {
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  }

  #twitterLink::after {
    inset: 6px;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  }
}


/* Headline layout fix */
.hero-copy h1 {
  max-width: 9.6ch;
}


@media (max-width: 820px) {
  .hero-copy h1 {
    max-width: 100%;
  }

  h1 span {
    font-size: .88em;
    line-height: .98;
    letter-spacing: -.045em;
  }
}


/* === FINAL HERO HEADLINE FIX: no overlapping letters === */
.hero-copy h1 {
  max-width: none !important;
  line-height: .9;
}

.hero-copy h1 span {
  display: block !important;
  margin-top: 14px !important;
  font-size: 0.62em !important;
  line-height: 1.02 !important;
  letter-spacing: -0.03em !important;
  white-space: nowrap !important;
  color: rgba(245,247,243,.22) !important;
  -webkit-text-stroke: 1px rgba(245,247,243,.16) !important;
  text-stroke: 1px rgba(245,247,243,.16) !important;
  text-shadow: none !important;
}

/* If the screen gets narrower, allow wrapping but keep clear separation */
@media (max-width: 1100px) {
  .hero-copy h1 span {
    white-space: normal !important;
    font-size: 0.58em !important;
    line-height: 1.08 !important;
    letter-spacing: -0.025em !important;
    max-width: 9.5ch !important;
  }
}

@media (max-width: 820px) {
  .hero-copy h1 {
    max-width: 100% !important;
  }

  .hero-copy h1 span {
    margin-top: 10px !important;
    font-size: 0.56em !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
    max-width: 8.8ch !important;
  }
}

@media (max-width: 520px) {
  .hero-copy h1 span {
    font-size: 0.54em !important;
    line-height: 1.12 !important;
    max-width: 8.4ch !important;
  }
}



/* === HERO HEADLINE BEAUTY PASS === */
.hero-title {
  margin: 0;
  max-width: none !important;
  line-height: 1;
}

.hero-title-main {
  display: block;
  font-size: clamp(48px, 7vw, 108px);
  line-height: .86;
  letter-spacing: -.065em;
  font-weight: 900;
  color: var(--text);
}

.hero-title-sub {
  display: block;
  margin-top: 18px;
}

.hero-title-sub > span {
  display: block;
  font-size: clamp(34px, 4.9vw, 76px);
  line-height: .88;
  letter-spacing: -.055em;
  font-weight: 900;
  color: rgba(245,247,243,.14);
  text-shadow: 0 0 18px rgba(68,255,105,.04);
  white-space: nowrap;
}

.hero-title-sub > span + span {
  margin-top: 6px;
}

/* kill the old stroked span treatment in the hero */
.hero-copy h1 span {
  -webkit-text-stroke: 0 !important;
  text-stroke: 0 !important;
  text-shadow: none !important;
}

/* responsive */
@media (max-width: 1100px) {
  .hero-title-sub > span {
    font-size: clamp(30px, 4.2vw, 58px);
    white-space: normal;
  }
}

@media (max-width: 820px) {
  .hero-title-main {
    font-size: clamp(52px, 16vw, 82px);
  }

  .hero-title-sub {
    margin-top: 12px;
  }

  .hero-title-sub > span {
    font-size: clamp(26px, 10vw, 46px);
    line-height: .92;
    white-space: normal;
  }
}


/* Hide old Twitter label */
#twitterLink::before { display: none !important; content: none !important; }
