/* ETape — console/machine theme in the Elysium Machines visual language:
   pale sage page, warm off-white "case" panels, dark phosphor screens,
   Geist / Geist Mono type, mono uppercase micro-labels. */

@font-face { font-family: "Geist"; src: url("fonts/Geist-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/Geist-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/Geist-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --sky: #f3f5f1; --bg: #eef2ee; --bg-2: #e4eae6;
  --case: #f9f8f3; --case-2: #efeee7; --case-edge: #dedcd2;
  --ink: #0f1a17; --ink-2: #4b5a56; --ink-3: #86948f;
  --line: rgba(15,26,23,.08); --line-2: rgba(15,26,23,.15);
  --scr: #07100d; --scr-2: #0c1915;
  --phos: #8ff7d8; --phos-2: #54d6b2; --phos-dim: #5d877b;
  --deep: #0a8a68; --hot: #e0483b; --hot-bg: #fdecea;
  --amber: #b9801a; --amber-bg: #fbf1dc; --gold: #f2d38a;
  --r: 16px; --r-s: 10px;
  --sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --sh: 0 1px 0 #fff inset, 0 -1px 0 rgba(0,0,0,.03) inset, 0 18px 40px -26px rgba(20,44,37,.35), 0 2px 6px -3px rgba(20,44,37,.12);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  color: var(--ink);
  font: 400 15px/1.55 var(--sans);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 700px at 12% -10%, #fffaf0 0, rgba(255,250,240,0) 60%),
    radial-gradient(900px 600px at 95% 0, #e2f4ec 0, rgba(226,244,236,0) 60%),
    linear-gradient(180deg, var(--sky), var(--bg) 40%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; font-weight: 600; color: var(--ink); margin: 0 0 8px; letter-spacing: -.01em; }
h2 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.mono { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.narrow { max-width: 640px; }
.hidden { display: none !important; }
.k {
  font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); margin: 0;
}
.k-screen { color: var(--phos-dim); }
.led {
  width: 5px; height: 5px; border-radius: 50%; flex: none;
  background: var(--phos-2); box-shadow: 0 0 6px rgba(98,211,176,.75);
  display: inline-block;
}
.vent {
  width: 52px; height: 5px; border-radius: 1px; flex: none;
  background: repeating-linear-gradient(90deg, rgba(0,0,0,.4) 0 2px, transparent 2px 5px);
}

/* ---- header ---- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 12px 20px;
  background: rgba(249,248,243,.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; flex: none; box-shadow: 0 0 0 1px var(--line-2); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.brand-text small { font: 500 9.5px/1.3 var(--mono); letter-spacing: .14em; color: var(--ink-3); }
.mainnav { display: flex; gap: 4px; margin-right: auto; }
.nav-link {
  padding: 8px 13px; border-radius: 9px; color: var(--ink-2);
  font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
}
.nav-link:hover { background: var(--case-2); text-decoration: none; color: var(--ink); }
.nav-link.active { background: var(--ink); color: #f4f6f2; }
.top-actions { display: flex; gap: 8px; align-items: center; }

/* ---- language switch ---- */
.lang-switch { position: relative; }
.lang-btn { min-width: 96px; }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 40;
  min-width: 140px; padding: 5px;
  background: var(--case); border: 1px solid var(--case-edge); border-radius: 12px;
  box-shadow: var(--sh);
  display: flex; flex-direction: column; gap: 2px;
}
.lang-menu button {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 8px 11px; border: 0; border-radius: 8px; background: transparent;
  font: 500 13.5px/1.2 var(--sans); color: var(--ink); cursor: pointer; text-align: left;
}
.lang-menu button:hover { background: var(--case-2); }
.lang-menu button.current { color: var(--deep); }
.lang-menu button.current::after { content: "✓"; font-size: 12px; }

/* ---- soon badge / view ---- */
.soon-badge {
  display: inline-block; margin-left: 7px; padding: 2.5px 6px;
  border-radius: 99px; vertical-align: 1px;
  background: var(--amber-bg); border: 1px solid #e7cf9a; color: var(--amber);
  font: 500 9px/1 var(--mono); letter-spacing: .1em;
}
.nav-link.active .soon-badge { background: rgba(143,247,216,.16); border-color: rgba(143,247,216,.4); color: var(--phos); }
.soon-state { margin-top: 8px; }
.soon-state .k { margin-bottom: 10px; }
.soon-state h2 { font-size: 21px; }
.soon-state .btn { margin-top: 8px; }

.status-strip {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 8px 20px;
  font: 400 12px/1.4 var(--mono); color: var(--ink-3);
  border-bottom: 1px solid var(--line);
}
.status-strip .sep { color: var(--case-edge); }
.status-strip b { color: var(--ink); font-weight: 500; }

/* ---- banners ---- */
.banner {
  display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap;
  margin: 16px 20px 0; padding: 12px 16px; border-radius: var(--r-s);
  font-size: 14px; max-width: 1080px;
}
@media (min-width: 1120px) { .banner { margin-left: auto; margin-right: auto; } }
.banner code { font-family: var(--mono); font-size: 12.5px; background: rgba(0,0,0,.06); padding: 0 5px; border-radius: 4px; }
.banner-warn { background: var(--amber-bg); border: 1px solid #e7cf9a; color: #7a5410; }
.banner-error { background: var(--hot-bg); border: 1px solid #f3c1bb; color: #9b2a20; }

/* ---- layout ---- */
main { max-width: 1080px; margin: 0 auto; padding: 24px 20px 48px; }
.view { animation: fade .15s ease-in; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 10px; border: 0;
  font: 500 14.5px/1 var(--sans); cursor: pointer; background: none;
  color: var(--ink); transition: transform .12s, box-shadow .2s, opacity .2s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #f4f6f2; }
.btn-primary:hover { background: #1d2b27; }
.btn-mint {
  background: var(--phos); color: #04221a;
  box-shadow: 0 0 0 1px rgba(10,138,104,.25), 0 8px 24px -10px rgba(84,214,178,.9);
}
.btn-mint:hover { background: #9ff0d4; text-decoration: none; }
a.btn-mint:hover { text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: 0 0 0 1px var(--line-2); }
.btn-ghost:hover { box-shadow: 0 0 0 1px var(--ink-3); text-decoration: none; }
.btn-block { width: 100%; height: 48px; font-size: 15px; margin-top: 14px; }
.btn-block.btn-primary {
  background: var(--phos); color: #04221a;
  box-shadow: 0 0 0 1px rgba(10,138,104,.25), 0 8px 24px -10px rgba(84,214,178,.9);
}
.btn-block.btn-primary:hover { background: #9ff0d4; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
a.btn:hover { text-decoration: none; }

/* ---- hero ---- */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 0;
  background: var(--case); border: 1px solid var(--case-edge); border-radius: var(--r);
  box-shadow: var(--sh); overflow: hidden; margin-bottom: 14px;
}
.hero-copy { padding: 26px 28px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.hero-title { font-size: 30px; line-height: 1.2; margin: 0; }
.hero-copy p { margin: 0; }
.hero-cta { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.hero-media { min-height: 190px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- console (stats screen) ---- */
.console {
  position: relative; padding: 10px 10px 0; border-radius: var(--r);
  background: linear-gradient(180deg, #343c39, #282e2c);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 0 0 1px rgba(15,26,23,.22), 0 30px 50px -36px rgba(15,26,23,.65);
  margin-bottom: 28px;
}
.console-screen {
  border-radius: 9px; overflow: hidden; background: #1c2120;
  background-image: linear-gradient(180deg, var(--scr-2), var(--scr));
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.5), inset 0 2px 16px rgba(0,0,0,.35);
  padding: 14px 18px 16px;
}
.console-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.console-chin {
  height: 24px; display: flex; align-items: center; justify-content: space-between; padding: 0 6px;
}
.chin-text { font: 500 10px/1 var(--mono); letter-spacing: .12em; color: rgba(244,246,242,.45); }

/* ---- stats (inside the screen) ---- */
.stats-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 3px; }
.stat-label {
  font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
.console .stat-label { color: var(--phos-dim); }
.stat-value {
  font: 500 24px/1.15 var(--mono); font-variant-numeric: tabular-nums;
  color: var(--ink); word-break: break-all;
}
.console .stat-value { color: var(--phos); text-shadow: 0 0 14px rgba(143,247,216,.35); }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; flex-wrap: wrap; margin-bottom: 16px;
}
.section-head h1 { margin-bottom: 4px; }
.section-head p { margin: 0; max-width: 640px; }

/* ---- processor cards ---- */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.p-card {
  background: var(--case); border: 1px solid var(--case-edge);
  border-radius: var(--r); padding: 16px; cursor: pointer;
  box-shadow: var(--sh);
  transition: transform .12s, box-shadow .2s, border-color .12s;
}
.p-card:hover { transform: translateY(-2px); border-color: var(--phos-2); }
.p-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.card-id {
  display: inline-flex; align-items: center; gap: 7px;
  font: 500 12px/1 var(--mono); letter-spacing: .06em; color: var(--deep);
}
.card-price { font: 500 13px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.p-card h3 { margin: 0 0 10px; font-size: 17px; font-weight: 600; color: var(--ink); word-break: break-word; }
.progress {
  height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; margin: 8px 0;
  box-shadow: inset 0 1px 2px rgba(15,26,23,.12);
}
.progress > div {
  height: 100%; border-radius: 99px; transition: width .3s;
  background: linear-gradient(90deg, var(--deep), var(--phos-2));
}
.p-card-meta { display: flex; justify-content: space-between; font: 400 12.5px/1.4 var(--mono); color: var(--ink-2); }
.p-card-creator { margin-top: 8px; font: 400 11.5px/1.4 var(--mono); color: var(--ink-3); }

/* ---- detail stats (light, outside console) ---- */
.stats-bar-3 { margin-bottom: 6px; }
.stats-bar-3 .stat {
  background: var(--case); border: 1px solid var(--case-edge);
  border-radius: var(--r); padding: 14px 16px; box-shadow: var(--sh);
}
.stats-bar-3 .stat-value { font-size: 21px; }

/* ---- empty / status ---- */
.empty-state {
  background: var(--case-2); border: 1px dashed var(--case-edge);
  border-radius: var(--r); padding: 36px 20px; text-align: center;
}
.empty-state p { margin: 0 0 14px; }
.status-line { min-height: 20px; font-size: 14px; margin: 10px 0; }
.status-line.ok { color: var(--deep); }
.status-line.err { color: #9b2a20; }
.status-line a { font-weight: 600; }

/* ---- forms ---- */
.form-card, .mint-card {
  background: var(--case); border: 1px solid var(--case-edge);
  border-radius: var(--r); padding: 22px; max-width: 640px; margin-top: 18px;
  box-shadow: var(--sh);
}
.mint-card { max-width: 560px; }
.field-label {
  display: block; margin: 16px 0 6px;
  font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}
.field-label:first-child { margin-top: 0; }
input[type="text"], input[type="number"] {
  width: 100%; height: 46px; padding: 0 12px; font-size: 15px;
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  border: 1px solid var(--line-2); border-radius: var(--r-s); background: #fff;
  color: var(--ink);
}
input:focus { outline: 0; border-color: var(--deep); box-shadow: 0 0 0 3px rgba(10,138,104,.18); }
input.invalid { border-color: var(--hot); box-shadow: 0 0 0 3px rgba(224,72,59,.15); }
.field-hint { font-size: 12.5px; color: var(--ink-3); margin: 5px 0 0; }
.field-hint.err { color: #9b2a20; }
.fee-box {
  display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap;
  margin-top: 20px; padding: 12px 14px; border-radius: var(--r-s);
  background: var(--amber-bg); border: 1px solid #e7cf9a; font-size: 14px; color: #7a5410;
}
.fee-box b { font-family: var(--mono); color: var(--amber); font-size: 16px; }

/* ---- detail ---- */
.back-link { display: inline-block; margin-bottom: 14px; font-weight: 500; }
.detail-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.detail-head h1 { margin: 4px 0 6px; word-break: break-word; }
.detail-price { display: flex; flex-direction: column; text-align: right; gap: 3px; }
.detail-price b { font: 500 21px/1.15 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.detail-price .stat-label { color: var(--ink-3); }
.tabs {
  display: flex; gap: 4px; margin-bottom: 16px; padding: 4px;
  background: var(--case-2); border: 1px solid var(--line); border-radius: 12px;
}
.tab {
  flex: 1; height: 40px; border-radius: 9px; cursor: pointer; border: 0;
  background: transparent; font: 500 13.5px/1 var(--sans); color: var(--ink-2);
}
.tab:hover { color: var(--ink); }
.tab.active { background: var(--ink); color: #f4f6f2; box-shadow: 0 2px 8px -2px rgba(15,26,23,.4); }
.balance-row { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; margin-bottom: 4px; }
.balance-row b { font-family: var(--mono); font-weight: 500; }
.cost-line {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 16px; padding: 14px 16px; border-radius: var(--r-s);
  background: var(--scr); color: var(--phos-dim);
  font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  box-shadow: inset 0 2px 12px rgba(0,0,0,.4);
}
.cost-line b {
  font: 500 19px/1 var(--mono); font-variant-numeric: tabular-nums;
  color: var(--phos); letter-spacing: 0; text-transform: none;
  text-shadow: 0 0 12px rgba(143,247,216,.35);
}

/* ---- assets ---- */
.asset-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.asset-row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: var(--case); border: 1px solid var(--case-edge);
  border-radius: var(--r); padding: 14px 16px; cursor: pointer; color: var(--ink);
  box-shadow: var(--sh); transition: transform .12s, border-color .12s;
}
.asset-row:hover { border-color: var(--phos-2); transform: translateY(-1px); text-decoration: none; }
.asset-row .a-name { font-weight: 600; color: var(--ink); }
.asset-row .a-counts { display: flex; gap: 18px; font: 400 13px/1.4 var(--mono); color: var(--ink-2); }
.asset-row .a-counts b { color: var(--ink); font-weight: 500; }

/* ---- footer ---- */
.footer {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  max-width: 1080px; margin: 0 auto; padding: 18px 20px 28px;
  border-top: 1px solid var(--line);
  font: 400 12px/1.5 var(--mono); color: var(--ink-3);
}

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { min-height: 140px; order: -1; }
  .hero-title { font-size: 25px; }
}
@media (max-width: 640px) {
  .stats-bar { grid-template-columns: 1fr; }
  .mainnav { order: 3; width: 100%; }
  .detail-price { text-align: left; }
  .chin-text { display: none; }
}
