/* centurion — a still storm on true black.
   geist for words, geist mono for the art. one amber accent, used sparingly.
   no animations, no glow, no gimmicks. */

:root {
  --bg: #000000;
  --bg2: #0c0c0c;         /* cards / raised surfaces */
  --bg3: #060606;         /* terminal body */
  --ink: #ececec;
  --muted: #9a9a9a;
  --faint: #4d4d4d;
  --line: #1f1f1f;
  --amber: #e8b04b;       /* the centurion — the only accent */
  --amber-dim: #8f6d2f;
  --rose: #d06a6a;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

pre { font-family: var(--mono); }

/* ---------------- rain (static, frozen mid-fall) ---------------- */

#rain { position: fixed; inset: 0; z-index: 0; pointer-events: none; font-family: var(--mono); }
.drop {
  position: absolute;
  color: #2e2e2e;
  user-select: none;
}
.drop.glint { color: #454545; }

/* everything above the rain */
.topbar, main, footer { position: relative; z-index: 1; }

/* dry zones — rain fades out behind sheltered sections */
.shelter {
  background: radial-gradient(ellipse 70% 60% at 50% 45%,
    var(--bg) 30%, rgba(0,0,0,.92) 55%, transparent 78%);
}

/* ---------------- topbar ---------------- */

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  max-width: 1020px; margin: 0 auto; padding: 26px 24px 0;
  font-size: 14px;
}
.brand { color: var(--ink); font-weight: 600; letter-spacing: .01em; }
.topbar nav { display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap; }
.topbar a { color: var(--muted); text-decoration: none; }
.topbar a:hover { color: var(--ink); }
.topbar .navcta { color: var(--amber); font-family: var(--mono); font-size: 13px; }

/* ---------------- hero ---------------- */

main { max-width: 1020px; margin: 0 auto; padding: 0 24px; }

.hero { text-align: center; padding: 6vh 0; }

.clouds {
  display: inline-block;
  margin: 0 auto 2.5vh;
  font-size: clamp(8px, 1.6vw, 13px);
  line-height: 1.35;
  color: var(--muted);
  overflow-x: auto; max-width: 100%;
}
.rainrow { color: var(--faint); }
.bolt { color: var(--amber); font-weight: 700; }

.wordmark {
  display: inline-block;
  margin: 0 auto 3vh;
  font-size: clamp(6px, 1.55vw, 13px);
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
  overflow-x: auto; max-width: 100%;
}

.plane {
  display: inline-block;
  margin: 0 auto;
  font-size: clamp(11px, 2vw, 15px);
  line-height: 1.3;
  color: var(--amber);
}
.puddle { color: #303030; }

.tagline {
  font-size: clamp(1.7rem, 4.5vw, 2.7rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.015em;
  margin: 4vh 0 1rem;
}
.tagline em { font-style: normal; color: var(--amber); }

.sub {
  color: var(--muted);
  max-width: 56ch;
  margin: 0 auto 1.5rem;
  font-size: 16.5px;
}
.sub em { font-style: normal; color: var(--ink); }
.sub.center { text-align: center; }
.chain { color: var(--ink); border-bottom: 1px solid var(--faint); }

.ctarow { display: flex; gap: 1.5rem; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 2.4rem; }
a.cta {
  display: inline-block;
  font-family: var(--mono);
  color: #000;
  background: var(--amber);
  padding: .68rem 1.3rem;
  border-radius: 5px;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
}
a.cta:hover { background: #f0c065; }
.ghost { color: var(--muted); text-decoration: none; font-size: 14px; }
.ghost:hover { color: var(--ink); }

.forecast {
  display: inline-block;
  margin: 5vh auto 0;
  font-size: clamp(10px, 1.7vw, 13px);
  line-height: 1.5;
  color: var(--muted);
  text-align: left;
  overflow-x: auto; max-width: 100%;
}

/* ---------------- shared section bits ---------------- */

section { padding: 7vh 0; }
h2 {
  text-align: center;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0 0 5vh;
}
.h2deco { color: var(--faint); font-weight: 400; font-family: var(--mono); font-size: .85em; }

.divider {
  text-align: center;
  color: #2e2e2e;
  letter-spacing: .18em;
  font-size: 12px;
  font-family: var(--mono);
  user-select: none;
  padding: 1vh 0;
  white-space: nowrap;
  overflow: hidden;
}

em { font-style: normal; color: var(--amber); }
code {
  font-family: var(--mono);
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .05em .45ch;
  font-size: .88em;
  color: var(--ink);
}

/* ---------------- cards ---------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.card {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 24px 24px;
  position: relative;
}
.card:hover { border-color: #333; }
.card::before {
  content: "┌"; position: absolute; top: -1px; left: -1px;
  font-family: var(--mono);
  color: var(--amber-dim); background: var(--bg); line-height: 1;
  padding: 0 2px 2px 0;
}
.card::after {
  content: "┘"; position: absolute; bottom: -1px; right: -1px;
  font-family: var(--mono);
  color: var(--amber-dim); background: var(--bg); line-height: 1;
  padding: 2px 0 0 2px;
}
.cardart {
  margin: 0 0 1rem;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
  overflow-x: auto;
}
.card h3 { margin: 0 0 .5rem; font-size: 1.02rem; font-weight: 600; color: var(--ink); }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; }

/* ---------------- how: the big flow diagram ---------------- */

.flow {
  display: block;
  width: fit-content;
  margin: 0 auto;
  font-size: clamp(10px, 1.8vw, 13.5px);
  line-height: 1.55;
  color: var(--ink);
  overflow-x: auto; max-width: 100%;
}
.flow .note { color: var(--muted); }
.flow .chain { border-bottom: 0; color: var(--amber); }

/* ---------------- rails: spec sheet ---------------- */

.specs {
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg2);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .6rem 1.8rem;
  font-size: 14.5px;
  position: relative;
}
.specs::before {
  content: "┌"; position: absolute; top: -1px; left: -1px;
  font-family: var(--mono);
  color: var(--amber-dim); background: var(--bg); line-height: 1; padding: 0 2px 2px 0;
}
.specs::after {
  content: "┘"; position: absolute; bottom: -1px; right: -1px;
  font-family: var(--mono);
  color: var(--amber-dim); background: var(--bg); line-height: 1; padding: 2px 0 0 2px;
}
.specs dt { color: var(--ink); font-weight: 600; }
.specs dd { margin: 0; color: var(--muted); }
.specs .chain { border-bottom: 0; color: var(--ink); }

/* ---------------- terminal ---------------- */

.term {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg3);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.termbar {
  display: flex; align-items: center; gap: 7px;
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
}
.termbar span { width: 10px; height: 10px; border-radius: 50%; background: #262626; }
.termbar b { color: var(--muted); font-size: 12px; font-weight: 500; margin-left: 8px; font-family: var(--mono); }
.termbody {
  margin: 0;
  padding: 18px 20px 20px;
  font-size: 13px;
  line-height: 2;
  overflow-x: auto;
}
.termbody .ok { color: #7fb98a; }
.termbody .dim { color: var(--faint); }
.termbody .amber { color: var(--amber); }
.termbody .addr { color: var(--muted); }
.termbody .chain { border-bottom: 0; color: var(--ink); }
.termbody code { background: transparent; border: 0; padding: 0; color: var(--ink); }
.cursor { color: var(--amber); }

.stats {
  display: flex; gap: 1.2rem 2.4rem; justify-content: center; flex-wrap: wrap;
  margin: 5vh 0 0;
  color: var(--faint);
  font-size: 13px;
  font-family: var(--mono);
}

/* ---------------- waitlist ---------------- */

#waitlist { text-align: center; padding: 9vh 0 12vh; }
.stormline {
  margin-bottom: .4rem;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -.015em;
}
.awning {
  display: inline-block;
  margin: 3vh auto 0;
  font-size: clamp(11px, 2vw, 14px);
  line-height: 1.35;
  color: var(--amber-dim);
}
.wl {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-top: .8rem;
}
.wl input {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .64rem .9rem;
  width: min(320px, 80vw);
  outline: none;
}
.wl input:focus { border-color: var(--amber-dim); }
.wl button {
  font-family: var(--mono);
  cursor: pointer;
  border: 0;
}
.wl-done {
  margin-top: 2.2rem;
  color: var(--amber);
  font-size: 15px;
}

/* ---------------- footer ---------------- */

footer {
  text-align: center;
  color: var(--faint);
  font-size: 13px;
  padding: 5vh 24px 6vh;
  border-top: 1px dashed var(--line);
}
.miniplane {
  display: inline-block;
  color: var(--amber-dim);
  font-size: 11px;
  line-height: 1.35;
  margin-bottom: .6rem;
}
footer p { margin: .25rem 0; }
.fine { color: #3a3a3a; font-size: 11.5px; margin-top: .9rem; max-width: 64ch; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* ---------------- small screens ---------------- */

@media (max-width: 560px) {
  .topbar nav { gap: 1rem; font-size: 13px; }
  section { padding: 5vh 0; }
  .specs { grid-template-columns: 1fr; gap: .1rem; padding: 18px 20px; }
  .specs dt { margin-top: .8rem; }
}

/* ============================ dapp (app.html) ============================ */
.app .appmain { max-width: 640px; margin: 0 auto; padding: 4vh 24px 12vh; }
.netpill { font-family: var(--mono); font-size: 12px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 100px; padding: 3px 10px; }
.appintro { text-align: center; padding: 4vh 0 2vh; }
.appintro h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 700; letter-spacing: -.02em; margin: 1rem 0 .5rem; }
.plane.small { font-size: 12px; color: var(--amber); display: inline-block; }
.warn { color: var(--amber); font-family: var(--mono); font-size: 12.5px; margin-top: 1.5rem; }

.flow { list-style: none; padding: 0; margin: 3vh 0; display: flex; flex-direction: column; gap: 14px; }
.step { display: flex; gap: 1.2rem; background: var(--bg2); border: 1px solid var(--line);
  border-radius: 10px; padding: 20px 22px; position: relative; }
.step .n { font-family: var(--mono); font-weight: 700; color: var(--amber); font-size: 1.1rem; min-width: 2rem; }
.step .body { flex: 1; min-width: 0; }
.step h3 { margin: 0 0 .5rem; font-size: 1.05rem; font-weight: 600; }
.step p { margin: .3rem 0; font-size: 14px; }
.mut { color: var(--muted); }
.step .row { display: flex; gap: 8px; flex-wrap: wrap; margin: .6rem 0; }
.step .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: .4rem 0; }
.step label { display: block; font-size: 12.5px; color: var(--muted); margin: .6rem 0 0; }
.step input { width: 100%; margin-top: .3rem; font-family: var(--mono); font-size: 14px;
  color: var(--ink); background: var(--bg3); border: 1px solid var(--line); border-radius: 6px; padding: .5rem .7rem; outline: none; }
.step input:focus { border-color: var(--amber-dim); }
.cta.sm { font-size: 12.5px; padding: .5rem 1rem; margin-top: .8rem; }
button.cta { font-family: var(--mono); cursor: pointer; border: 0; }
button:disabled { opacity: .45; cursor: not-allowed; }

.dash { margin: 5vh 0 0; }
.dashhead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.dashhead h2 { font-size: 1.2rem; font-weight: 600; margin: 0; }
.danger { font-family: var(--mono); font-size: 12.5px; cursor: pointer; color: #000;
  background: var(--rose); border: 0; border-radius: 6px; padding: .55rem 1rem; font-weight: 700; }
.danger:hover { filter: brightness(1.08); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 1.4rem; }
.tile { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.tile .k { font-family: var(--mono); font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.tile .v { font-size: 1.3rem; font-weight: 700; margin-top: 3px; font-variant-numeric: tabular-nums; }
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .panels, .step .grid2 { grid-template-columns: 1fr; } }
.panel { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.panel h4 { margin: 0 0 .7rem; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.feed { height: 180px; overflow: auto; white-space: pre-wrap; margin: 0; color: var(--muted); line-height: 1.7; }

/* connect-wallet: secondary demo button */
.ghostbtn { font-family: var(--mono); font-size: 12.5px; cursor: pointer; color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: 5px; padding: .55rem .9rem; }
.ghostbtn:hover { color: var(--ink); border-color: var(--faint); }
