:root {
  --bg: #03040b;
  --blue: #070787;
  --blue2: #1827bd;
  --gray: #bdbdbd;
  --light: #f4f4f4;
  --shadow: #454545;
  --green: #8bff4a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  overflow-x: hidden;
  color: #eeeeea;
  background:
    radial-gradient(circle at 80% 8%, rgba(32,45,135,.23), transparent 28%),
    radial-gradient(circle at 10% 38%, rgba(69,32,81,.16), transparent 25%),
    var(--bg);
  font-family: "Courier New", ui-monospace, monospace;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.noise {
  position: fixed;
  z-index: 50;
  inset: 0;
  pointer-events: none;
  opacity: .11;
  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='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.scanlines {
  position: fixed;
  z-index: 49;
  inset: 0;
  pointer-events: none;
  opacity: .045;
  background: repeating-linear-gradient(0deg, transparent 0 3px, #fff 4px);
}

.boot-screen {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 25px;
  color: #ddd;
  background: #010102;
  transition: opacity .35s steps(5), visibility .35s;
}
.boot-screen.done { opacity: 0; visibility: hidden; }
.boot-box { width: min(600px, 100%); font-size: 13px; line-height: 1.6; }
.boot-box strong { color: var(--green); }
.boot-box p { margin: 7px 0; }
.boot-progress { height: 16px; margin-top: 22px; padding: 2px; border: 1px solid #888; }
.boot-progress i { display: block; height: 100%; background: var(--blue2); animation: load 1s steps(10) forwards; }
@keyframes load { from { width: 3%; } to { width: 99%; } }

.site-header {
  position: relative;
  z-index: 5;
  max-width: 1480px;
  margin: 0 auto;
  padding: 26px 34px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-bottom: 1px solid rgba(255,255,255,.2);
  font-weight: 700;
  letter-spacing: .06em;
  text-shadow: 2px 2px #000;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-orb {
  display: grid;
  place-items: center;
  width: 32px;
  aspect-ratio: 1;
  color: #080a06;
  background: var(--green);
  border: 2px solid #111;
  border-radius: 50%;
  box-shadow: 0 0 17px rgba(139,255,74,.32);
  font-size: 11px;
}
nav { display: flex; align-items: center; gap: 26px; font-size: 12px; }
nav a:hover { color: var(--green); }
.offline { color: #ff5e5e; }

main { display: block; }
.hero {
  position: relative;
  z-index: 2;
  min-height: calc(100svh - 76px);
  max-width: 1420px;
  margin: 0 auto;
  padding: 44px 34px 60px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr);
  align-items: center;
  gap: clamp(30px, 5vw, 78px);
}

.win {
  padding: 3px;
  color: #0d0d0d;
  background: var(--gray);
  border: 2px solid;
  border-color: var(--light) var(--shadow) var(--shadow) var(--light);
  box-shadow: 15px 19px 0 rgba(0,0,0,.48), 0 0 36px rgba(53,61,183,.18);
}
.launch-window { min-width: 0; transform: rotate(-.45deg); }
.titlebar {
  min-height: 28px;
  padding: 3px 4px 3px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  background: linear-gradient(90deg, var(--blue), var(--blue2));
  font-size: 13px;
  font-weight: 700;
}
.window-actions { display: flex; gap: 3px; }
.window-actions i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #111;
  background: var(--gray);
  border: 1px solid;
  border-color: white #333 #333 white;
  font-style: normal;
}
.menu { height: 27px; padding: 5px 8px; font-size: 13px; }
.art-frame { overflow: hidden; background: #000; border: 2px solid; border-color: #3f3f3f white white #3f3f3f; }
.art-frame img { display: block; width: 100%; height: min(67svh, 760px); object-fit: cover; object-position: center; filter: contrast(1.03) saturate(.9); }
.statusbar { display: flex; justify-content: space-between; margin-top: 3px; padding: 5px 7px; border: 1px solid; border-color: #686868 #eee #eee #686868; font-size: 10px; }

.hero-copy { min-width: 0; padding: 20px 0; }
.eyebrow, .section-label { color: #aaa8c6; font-size: 11px; letter-spacing: .14em; }
h1 {
  margin: 11px 0 -9px;
  color: #d8d8d3;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(82px, 12vw, 188px);
  line-height: .8;
  letter-spacing: -.055em;
  text-shadow: 4px 4px #323232, 7px 7px #060b7a, 0 0 22px rgba(73,85,255,.35);
}
.ticker { margin: 20px 0 0; color: var(--green); font-size: clamp(22px, 3vw, 40px); font-weight: 700; letter-spacing: .12em; }
.tagline { margin: 10px 0 30px; color: #c9c7c0; font-size: clamp(18px, 2vw, 28px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions.center { justify-content: center; margin-top: 35px; }
.button {
  display: inline-flex;
  min-width: 155px;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  color: #111;
  background: var(--gray);
  border: 2px solid;
  border-color: white #333 #333 white;
  box-shadow: 2px 2px #000;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.button:active { transform: translate(1px,1px); border-color: #333 white white #333; }
.button.primary { outline: 1px dotted #111; outline-offset: -6px; }
.button.disabled { color: #696969; cursor: not-allowed; }
.connection { margin-top: 24px; color: #aaa; font-size: 10px; letter-spacing: .08em; }
.led { display: inline-block; width: 8px; height: 8px; margin-right: 6px; vertical-align: 1px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }

.dialog {
  width: min(100%, 340px);
  margin: 38px 0 0 auto;
  padding: 3px;
  color: #111;
  background: var(--gray);
  border: 2px solid;
  border-color: white #444 #444 white;
  box-shadow: 9px 11px rgba(0,0,0,.58);
  transform: rotate(1deg);
}
.dialog-title { display: flex; justify-content: space-between; padding: 4px 7px; color: white; background: var(--blue); font-size: 12px; font-weight: 700; }
.dialog-title span { padding: 0 4px; color: #111; background: var(--gray); border: 1px solid; border-color: white #333 #333 white; }
.dialog-body { display: flex; align-items: center; gap: 17px; padding: 18px 17px 12px; line-height: 1.5; }
.pixel-face { display: grid; place-items: center; flex: 0 0 66px; height: 66px; background: #77748c; border: 2px inset #eee; }
.dialog > a { display: block; width: 105px; margin: 0 auto 13px; padding: 4px; text-align: center; border: 2px solid; border-color: white #333 #333 white; outline: 1px dotted #111; outline-offset: -5px; }

.marquee { position: relative; z-index: 3; overflow: hidden; color: #090909; background: #c2b873; border-block: 2px solid #34342f; box-shadow: 0 8px 30px rgba(0,0,0,.45); }
.marquee div { display: flex; width: max-content; animation: scroll 24s linear infinite; }
.marquee span { padding: 10px 28px; white-space: nowrap; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
@keyframes scroll { to { transform: translateX(-50%); } }

.section { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: clamp(90px, 11vw, 160px) 34px; }
.section-label { margin: 0 0 28px; color: #858398; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, .65fr); gap: clamp(28px, 5vw, 74px); align-items: start; }
.notepad { transform: rotate(.3deg); }
.notepad-body { min-height: 470px; padding: clamp(28px, 5vw, 62px); background: #f0ede5; background-image: linear-gradient(rgba(0,0,0,.035) 1px, transparent 1px); background-size: 100% 28px; }
.blue-label { margin: 0 0 28px; color: #202a91; font-size: 12px; font-weight: 700; letter-spacing: .11em; }
.notepad h2, .token-head h2, .final h2 { margin: 0; font-family: Impact, "Arial Black", sans-serif; letter-spacing: -.035em; line-height: .9; }
.notepad h2 { font-size: clamp(42px, 6vw, 79px); }
.notepad-body > p:not(.blue-label,.cursor-line) { max-width: 69ch; font-size: 15px; line-height: 1.8; }
.cursor-line { margin-top: 35px; color: var(--blue); font-weight: 700; }
.cursor { animation: blink .8s steps(2) infinite; }

.properties { margin-top: 48px; color: #111; background: #c1c1c1; border: 2px solid; border-color: white #474747 #474747 white; box-shadow: 13px 15px rgba(0,0,0,.42); transform: rotate(-1deg); }
.properties-title { padding: 7px 9px; color: white; background: var(--blue); font-weight: 700; }
.properties dl { margin: 0; padding: 12px; }
.properties dl div { display: grid; grid-template-columns: .85fr 1fr; gap: 10px; padding: 13px 8px; border-bottom: 1px dotted #686868; }
.properties dt { color: #555; font-size: 10px; }
.properties dd { margin: 0; font-size: 13px; font-weight: 700; }
.properties small { display: block; padding: 3px 18px 16px; color: #666; }

.token-section, .how { border-top: 1px solid rgba(255,255,255,.13); }
.token-head { display: grid; grid-template-columns: 1.4fr .6fr; gap: 50px; align-items: end; }
.token-head h2 { color: #d2d1ca; font-size: clamp(55px, 8vw, 110px); text-shadow: 4px 4px #11184e; }
.token-head > p { max-width: 36ch; color: #aaa8b4; line-height: 1.7; }
.token-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 60px; }
.token-card { min-height: 215px; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; color: #111; background: #bababa; border: 2px solid; border-color: white #414141 #414141 white; box-shadow: 6px 7px #000; }
.token-card:nth-child(even) { transform: translateY(15px); }
.token-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: auto; color: white; background: var(--blue); border: 2px solid #111; border-radius: 50%; box-shadow: inset -5px -5px rgba(0,0,0,.25); font: 29px Impact, sans-serif; }
.token-card small { margin-bottom: 7px; color: #555; font-size: 10px; letter-spacing: .1em; }
.token-card strong { font-size: clamp(18px, 2vw, 28px); }
.token-card.pending { background: #8d8d8d; filter: grayscale(.5); }
.warning { max-width: 790px; margin: 80px auto 0; padding: 17px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; color: #111; background: var(--gray); border: 2px solid; border-color: white #444 #444 white; box-shadow: 10px 12px rgba(0,0,0,.46); }
.warning-icon { display: grid; place-items: center; width: 48px; height: 48px; padding-top: 14px; background: #e7c541; clip-path: polygon(50% 0,100% 100%,0 100%); font-size: 21px; font-weight: 900; }
.warning p { margin: 5px 0 0; font-size: 12px; line-height: 1.5; }

.wizard { max-width: 980px; margin: 0 auto; }
.wizard-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 630px; background: #d1d1d1; }
.wizard-side { padding: 48px 25px; color: #e5e5e5; background: linear-gradient(155deg,#060a62,#050518 70%); border-right: 2px inset #eee; }
.wizard-side > div { display: grid; place-items: center; width: 118px; aspect-ratio: 1; margin: 0 auto 30px; border: 3px solid #9498ff; border-radius: 50%; box-shadow: 0 0 30px rgba(89,99,255,.6), inset 0 0 24px rgba(89,99,255,.35); font: 72px Impact, sans-serif; }
.wizard-side p { color: #8387d5; text-align: center; font-size: 11px; line-height: 1.6; }
.wizard-content { padding: clamp(28px, 5vw, 62px); color: #111; }
.wizard-content h3 { margin: 0; font-size: clamp(22px, 3vw, 35px); }
.wizard-content > p { max-width: 55ch; line-height: 1.6; }
.wizard ol { list-style: none; margin: 38px 0 28px; padding: 0; }
.wizard li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 17px 0; border-top: 1px dotted #777; }
.wizard li > span { color: var(--blue); font-size: 24px; font-weight: 700; }
.wizard li strong { font-size: 13px; }
.wizard li p { margin: 5px 0 0; color: #555; font-size: 12px; line-height: 1.5; }
.wizard-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 20px; border-top: 1px solid #999; }

.final { padding-bottom: 120px; text-align: center; }
.terminal { max-width: 760px; margin: 0 auto 80px; padding: 28px 32px; color: #bcbcbc; background: #050505; border: 5px ridge #737373; box-shadow: 0 0 0 10px #272727, 0 24px 40px rgba(0,0,0,.6); text-align: left; font-size: 13px; line-height: 1.9; }
.terminal p { margin: 0; }
.green { color: var(--green); }
.final h2 { color: #d0cec5; font-size: clamp(70px, 12vw, 170px); text-shadow: 5px 5px #080c68; }
.final > p { color: #aaa8b2; }

footer { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto 48px; padding: 25px 34px; display: flex; justify-content: space-between; gap: 20px; color: #7d7b87; border-top: 1px solid rgba(255,255,255,.2); font-size: 10px; letter-spacing: .08em; }
.taskbar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; height: 38px; padding: 3px; display: flex; gap: 4px; color: #111; background: var(--gray); border-top: 2px solid #f2f2f2; font-size: 12px; }
.start,.task,.clock { display: flex; align-items: center; padding: 0 9px; border: 2px solid; border-color: white #4b4b4b #4b4b4b white; }
.start { font-size: 14px; font-weight: 700; }
.start b { margin-right: 6px; color: var(--blue); }
.task { min-width: 190px; background: #d4d4d4; }
.task-space { flex: 1; }
.clock { border-color: #555 #eee #eee #555; }

@media (max-width: 880px) {
  .site-header { padding-inline: 18px; }
  nav a { display: none; }
  .hero { grid-template-columns: 1fr; padding-inline: 18px; }
  .hero-copy { grid-row: 1; text-align: center; }
  .actions { justify-content: center; }
  .launch-window { grid-row: 2; }
  .art-frame img { height: auto; aspect-ratio: 1; }
  .dialog { margin-inline: auto; }
  .section { padding-inline: 18px; }
  .story-grid,.token-head { grid-template-columns: 1fr; }
  .properties { width: min(100%,440px); margin-inline: auto; }
  .token-grid { grid-template-columns: repeat(2,1fr); }
  .warning { grid-template-columns: auto 1fr; }
  .warning > .button { display: none; }
  .wizard-layout { grid-template-columns: 1fr; }
  .wizard-side { display: none; }
  footer { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  nav { display: none; }
  h1 { font-size: clamp(75px,26vw,120px); }
  .token-grid { grid-template-columns: 1fr; }
  .token-card:nth-child(even) { transform: none; }
  .warning { grid-template-columns: 1fr; text-align: center; }
  .warning-icon { margin: auto; }
  .wizard-content { padding: 24px 18px; }
  .wizard li { grid-template-columns: 42px 1fr; gap: 8px; }
  .wizard-actions { justify-content: center; }
  .task { min-width: 0; flex: 1; }
  .clock { display: none; }
}

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