:root {
  --ink: #101013;
  --paper: #f4ebd2;
  --paper-soft: #fff8dc;
  --green: #75ff39;
  --green-dark: #218f3a;
  --purple: #6425bb;
  --violet: #2a173b;
  --yellow: #ffd84a;
  --red: #ff4f43;
  --cyan: #53d7ff;
  --muted: #796f62;
  --line: rgba(16, 16, 19, 0.18);
  --shadow: 0 20px 60px rgba(16, 16, 19, 0.24);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(16, 16, 19, 0.05) 1px, transparent 1px) 0 0 /
      42px 42px,
    linear-gradient(rgba(16, 16, 19, 0.04) 1px, transparent 1px) 0 0 / 42px 42px,
    var(--paper);
}

button,
input,
a {
  font: inherit;
}

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

.scanline {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.05) 0,
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px,
    transparent 5px
  );
  mix-blend-mode: soft-light;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 48px);
  border-bottom: 3px solid var(--ink);
  background: rgba(244, 235, 210, 0.92);
  backdrop-filter: blur(12px);
  max-width: 100%;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 160px;
}

.brand-mark {
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 950;
  letter-spacing: 0;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 2px solid var(--ink);
  background: var(--paper-soft);
}

.nav a {
  padding: 8px 10px;
  border: 2px solid transparent;
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.nav a:hover,
.nav a:focus-visible {
  border-color: var(--ink);
  background: var(--yellow);
  outline: none;
}

.connect-btn,
.action,
.primary-button,
.secondary-button,
.ghost-button {
  cursor: pointer;
  border: 3px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 950;
  box-shadow: 5px 5px 0 var(--ink);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.connect-btn:hover,
.action:hover,
.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.connect-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--green);
}

.dot {
  width: 9px;
  height: 9px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--red);
}

.hero {
  position: relative;
  min-height: calc(100svh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: end;
  gap: clamp(20px, 3vw, 38px);
  padding: clamp(28px, 5vw, 72px);
  overflow: hidden;
  border-bottom: 4px solid var(--ink);
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(244, 235, 210, 0.96), rgba(244, 235, 210, 0.58)),
    linear-gradient(180deg, rgba(16, 16, 19, 0.08), rgba(16, 16, 19, 0.28));
}

.hero-content {
  max-width: 780px;
  padding-top: 56px;
}

.kicker,
.section-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 3px solid var(--ink);
  background: var(--green);
  padding: 7px 10px;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--ink);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 860px;
  margin-top: 18px;
  color: var(--ink);
  font-size: clamp(4rem, 8vw, 8rem);
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 5px 5px 0 var(--green), 8px 8px 0 rgba(16, 16, 19, 0.2);
}

h1 span {
  display: block;
}

.hero-copy {
  max-width: 650px;
  margin-top: 24px;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.32;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 16px;
  background: var(--paper-soft);
}

.action.primary {
  background: var(--green);
}

.action.dark {
  color: var(--paper-soft);
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--green);
}

.action.light {
  background: var(--paper-soft);
}

.action-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.ticker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  max-width: 820px;
}

.ticker span {
  border: 2px solid var(--ink);
  background: rgba(255, 248, 220, 0.84);
  padding: 7px 9px;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-panel,
.staking-panel,
.flow-panel,
.trade-panel {
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-soft);
  box-shadow: var(--shadow);
}

.portal-panel {
  align-self: center;
  padding: 16px;
  transform: rotate(1deg);
}

.panel-head,
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.panel-head span,
.panel-title span {
  color: var(--muted);
  font-size: 0.78rem;
}

.panel-head strong,
.panel-title strong {
  border: 2px solid var(--ink);
  background: var(--yellow);
  padding: 5px 8px;
  font-size: 0.8rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.stat,
.fund-card,
.tier-card {
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #fff6c4;
  padding: 12px;
}

.stat span,
.fund-card span,
.tier-card span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.stat strong,
.fund-card strong,
.tier-card strong {
  display: block;
  margin-top: 7px;
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  line-height: 1;
}

.terminal {
  margin-top: 14px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #151519;
  color: var(--green);
  padding: 12px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.5;
}

.workbench,
.fund-band,
.tiers,
.buy-section,
.proof,
.paper-section,
.lore {
  padding: clamp(34px, 6vw, 84px) clamp(16px, 5vw, 72px);
}

.workbench {
  background: #f1e0b9;
  border-bottom: 4px solid var(--ink);
}

.console-layout {
  display: grid;
  grid-template-columns: minmax(280px, 440px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 44px);
  margin-top: 22px;
  align-items: stretch;
}

.staking-panel {
  padding: 18px;
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  font-weight: 900;
}

.field > span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: white;
  overflow: hidden;
}

.input-row input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 13px;
  color: var(--ink);
  background: transparent;
  font-size: 1.25rem;
  font-weight: 950;
  outline: none;
}

.input-row span {
  height: 100%;
  display: grid;
  place-items: center;
  border-left: 3px solid var(--ink);
  background: var(--green);
  padding: 0 12px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--green-dark);
}

.slider-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.paycheck {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--violet);
  color: var(--paper-soft);
  padding: 14px;
}

.paycheck span {
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.paycheck strong {
  color: var(--green);
  font-size: 1.35rem;
}

.button-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 44px;
  padding: 10px;
}

.primary-button {
  background: var(--green);
}

.secondary-button {
  background: var(--yellow);
}

.ghost-button {
  background: white;
}

.wide {
  width: 100%;
  margin-top: 16px;
}

.flow-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.flow-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: white;
  padding: 14px;
}

.flow-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--green);
  font-weight: 950;
}

.flow-item strong {
  display: block;
  font-size: 1.08rem;
}

.flow-item p {
  margin-top: 5px;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.35;
}

.fund-band {
  background: var(--ink);
  color: var(--paper-soft);
  border-bottom: 4px solid var(--ink);
}

.fund-band .section-label {
  color: var(--ink);
}

.fund-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.fund-card {
  background: #f6eed0;
  color: var(--ink);
}

.fund-card.warning {
  background: var(--red);
  color: white;
}

.fund-card small,
.tier-card small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 850;
  line-height: 1.35;
}

.fund-card.warning small,
.fund-card.warning span {
  color: #fff1e9;
}

.tiers {
  background: #fff8dc;
  border-bottom: 4px solid var(--ink);
}

.tier-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.tier-card {
  min-height: 132px;
  background: white;
}

.tier-card.active {
  background: var(--green);
}

.buy-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: clamp(22px, 5vw, 64px);
  background: #d9f6d1;
  border-bottom: 4px solid var(--ink);
}

.buy-copy h2 {
  margin-top: 16px;
  max-width: 620px;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.buy-copy p {
  max-width: 650px;
  margin-top: 18px;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 800;
  line-height: 1.38;
}

.trade-panel {
  padding: 16px;
  background: var(--paper-soft);
}

.trade-row,
.proof-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px solid var(--line);
  padding: 13px 0;
}

.trade-row span,
.proof-line span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.trade-row strong {
  text-align: right;
}

.proof {
  background: var(--paper);
  border-bottom: 4px solid var(--ink);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
  margin-top: 22px;
}

.proof-line {
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: white;
  padding: 13px;
}

code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--purple);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.88rem;
  font-weight: 850;
}

.paper-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  align-items: center;
  gap: clamp(22px, 5vw, 64px);
  background: #fff8dc;
  border-bottom: 4px solid var(--ink);
}

.paper-copy h2 {
  margin-top: 16px;
  max-width: 680px;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.paper-copy p {
  max-width: 680px;
  margin-top: 18px;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 800;
  line-height: 1.38;
}

.paper-panel {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-soft);
  box-shadow: 8px 8px 0 rgba(16, 16, 19, 0.1);
  padding: 16px;
}

.paper-cover {
  display: grid;
  min-height: 240px;
  align-content: space-between;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(117, 255, 57, 0.82), rgba(255, 216, 74, 0.9)),
    var(--green);
  padding: 16px;
}

.paper-cover span {
  width: fit-content;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-soft);
  padding: 5px 9px;
  font-size: 0.75rem;
  font-weight: 950;
}

.paper-cover strong {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.85;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 var(--paper-soft);
}

.paper-meta {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.paper-meta span {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: white;
  padding: 8px 10px;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.paper-link {
  display: grid;
  place-items: center;
  text-align: center;
}

.lore {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 24px;
  align-items: end;
  background: #151519;
  color: var(--paper-soft);
}

.manual {
  max-width: 850px;
}

.manual span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.manual p {
  margin-top: 12px;
  font-size: clamp(1.5rem, 3.7vw, 4rem);
  font-weight: 950;
  line-height: 1.02;
}

.disclaimer {
  border: 3px solid var(--green);
  border-radius: 8px;
  padding: 14px;
  color: #d4ccb5;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .hero,
  .console-layout,
  .buy-section,
  .paper-section,
  .lore {
    grid-template-columns: 1fr;
  }

  .portal-panel {
    align-self: stretch;
    transform: none;
  }

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

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

  .tier-card:last-child {
    grid-column: 1 / -1;
  }
}

/* Clean 404k.fun redesign */
body {
  background:
    radial-gradient(circle at 12% 14%, rgba(117, 255, 57, 0.16), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(100, 37, 187, 0.12), transparent 28%),
    #f7efd7;
}

.topbar {
  border-bottom-width: 2px;
  background: rgba(247, 239, 215, 0.94);
}

.brand-mark {
  text-transform: lowercase;
}

.nav {
  border-width: 2px;
  border-radius: 8px;
  background: rgba(255, 248, 220, 0.78);
}

.clean-hero {
  min-height: 760px;
  align-items: center;
  background: #f7efd7;
}

.clean-hero .hero-media {
  z-index: 0;
}

.clean-hero .hero-media img {
  opacity: 0.68;
  filter: saturate(0.95);
  object-position: left center;
}

.clean-hero .hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(247, 239, 215, 0.86), rgba(247, 239, 215, 0.42)),
    linear-gradient(180deg, rgba(247, 239, 215, 0.1), rgba(247, 239, 215, 0.62));
}

.clean-hero .hero-content,
.clean-hero .portal-panel {
  position: relative;
  z-index: 2;
}

.clean-hero h1 {
  max-width: 760px;
  font-size: clamp(4.2rem, 9vw, 8.4rem);
  line-height: 0.9;
  text-transform: none;
  text-shadow: 4px 4px 0 var(--green);
}

.clean-hero .hero-copy {
  max-width: 560px;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
}

.clean-hero .portal-panel {
  transform: none;
  background: rgba(255, 248, 220, 0.9);
}

.kicker,
.section-label {
  border-width: 2px;
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--ink);
}

.action,
.primary-button,
.secondary-button,
.ghost-button,
.connect-btn {
  border-width: 2px;
  box-shadow: 4px 4px 0 var(--ink);
}

.portal-panel,
.staking-panel,
.flow-panel,
.trade-panel,
.stat,
.fund-card,
.tier-card,
.proof-line {
  border-width: 2px;
  box-shadow: 8px 8px 0 rgba(16, 16, 19, 0.1);
}

.terminal {
  display: none;
}

.workbench,
.tiers,
.proof,
.paper-section {
  background: #f7efd7;
}

.fund-band {
  background: #151519;
}

.fund-card small {
  display: none;
}

.tier-card {
  min-height: 112px;
}

.lore {
  background: #121216;
}

@media (max-width: 720px) {
  .clean-hero {
    min-height: auto;
  }

  .clean-hero .hero-media img {
    opacity: 0.2;
    object-position: left center;
  }

  .clean-hero h1 {
    font-size: clamp(2.6rem, 13vw, 3.7rem);
    text-shadow: 3px 3px 0 var(--green);
  }
}

@media (max-width: 720px) {
  .topbar {
    display: block;
    padding: 12px;
    width: min(100%, 390px);
    max-width: 100vw;
    overflow: hidden;
  }

  .brand {
    padding-right: 54px;
    min-width: 0;
  }

  .brand-sub {
    display: none;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    margin-top: 14px;
    overflow: hidden;
  }

  .nav a {
    min-width: 0;
    padding: 8px 5px;
    font-size: 0.76rem;
    text-align: center;
  }

  .connect-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 38px;
    min-width: 0;
    padding: 0;
    justify-content: center;
    gap: 0;
    overflow: hidden;
    font-size: 0;
  }

  .hero {
    display: block;
    min-height: auto;
    width: min(100%, 390px);
    max-width: 100vw;
    padding: 24px 14px 32px;
  }

  .workbench,
  .fund-band,
  .tiers,
  .buy-section,
  .proof,
  .paper-section,
  .lore {
    width: min(100%, 390px);
    max-width: 100vw;
  }

  .hero-content,
  .portal-panel,
  .staking-panel,
  .flow-panel,
  .trade-panel,
  .paper-panel {
    width: 100%;
    max-width: calc(100vw - 28px);
    min-width: 0;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(244, 235, 210, 0.98), rgba(244, 235, 210, 0.68)),
      linear-gradient(180deg, rgba(16, 16, 19, 0.05), rgba(16, 16, 19, 0.2));
  }

  .hero-content {
    padding-top: 20px;
  }

  h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: clamp(2rem, 10.8vw, 3rem);
    line-height: 0.88;
    text-shadow: 3px 3px 0 var(--green), 5px 5px 0 rgba(16, 16, 19, 0.18);
  }

  .hero-copy {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 1rem;
  }

  .ticker {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ticker span {
    width: 100%;
  }

  .hero-actions,
  .button-row,
  .flow-panel,
  .fund-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .action {
    width: 100%;
  }

  .flow-panel {
    display: grid;
  }

  .workbench,
  .fund-band,
  .tiers,
  .buy-section,
  .proof,
  .paper-section,
  .lore {
    padding: 32px 14px;
  }

  .stat-grid,
  .tier-track {
    grid-template-columns: 1fr;
  }

  .tier-card:last-child {
    grid-column: auto;
  }

  .trade-row,
  .proof-line {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .clean-hero h1 {
    font-size: clamp(2.6rem, 13vw, 3.7rem);
    line-height: 0.9;
    text-shadow: 3px 3px 0 var(--green);
  }

  .clean-hero .hero-overlay {
    background:
      linear-gradient(180deg, rgba(247, 239, 215, 0.82), rgba(247, 239, 215, 0.74)),
      linear-gradient(180deg, rgba(247, 239, 215, 0.08), rgba(247, 239, 215, 0.86));
  }
}
