:root {
  --bg: #06080f;
  --ink: #eef1f8;
  --muted: #9aa6bd;
  --gold: #eaa33e;      /* the accretion disk */
  --gold-soft: #f3c57e;
  --line: rgba(238, 241, 248, 0.14);
  --glass: rgba(10, 14, 24, 0.55);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ---- the image, a bit transparent, fixed behind everything ---- */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background: url("/assets/hero.jpg") no-repeat center top;
  background-size: cover;
  opacity: 0.55;
}
/* scrim: keep the sky bright up top, darken downward so text stays readable */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 50% 8%, transparent 0%, rgba(6, 8, 15, 0.35) 60%, rgba(6, 8, 15, 0.7) 100%),
    linear-gradient(180deg, rgba(6, 8, 15, 0.1) 0%, rgba(6, 8, 15, 0.45) 50%, rgba(6, 8, 15, 0.82) 100%);
}

.wrap { max-width: 660px; margin: 0 auto; padding: 0 22px; }

/* ---- nav ---- */
nav {
  position: relative; z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
  max-width: 660px; margin: 0 auto; padding: 22px;
}
nav .brand { font-weight: 700; letter-spacing: 0.04em; text-decoration: none; color: var(--ink); font-size: 1.05rem; text-shadow: 0 1px 10px rgba(0,0,0,0.6); }
nav .brand .dot { color: var(--gold); }
nav a.link { text-decoration: none; color: var(--muted); font-size: 0.95rem; transition: color 0.15s; text-shadow: 0 1px 10px rgba(0,0,0,0.6); }
nav a.link:hover { color: var(--gold-soft); }

/* ---- hero ---- */
.hero {
  position: relative; z-index: 2;
  min-height: 82vh;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  text-align: center;
  padding: 0 22px 6vh;
}
.hero .kicker { color: var(--gold-soft); font-size: 0.78rem; letter-spacing: 0.3em; text-transform: uppercase; margin: 0 0 14px; text-shadow: 0 1px 14px rgba(0,0,0,0.8); }
.hero h1 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(3.4rem, 15vw, 6rem);
  font-weight: 600; letter-spacing: 0.01em; line-height: 1;
  margin: 0;
  text-shadow: 0 2px 40px rgba(0,0,0,0.75), 0 0 70px rgba(234,163,62,0.25);
}
.hero .tag { color: var(--ink); opacity: 0.9; font-size: 1.05rem; margin: 18px 0 0; max-width: 30ch; text-shadow: 0 1px 16px rgba(0,0,0,0.9); }
.scrolldown { margin-top: 30px; color: var(--muted); font-size: 1.4rem; animation: bob 2.2s ease-in-out infinite; text-decoration: none; }
@keyframes bob { 0%,100%{ transform: translateY(0); opacity:.6 } 50%{ transform: translateY(6px); opacity:1 } }

/* ---- speech ---- */
.speech { position: relative; z-index: 2; padding: 4vh 0 10px; }
.speech p {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.24rem; line-height: 1.7; margin: 0 0 1.5rem; color: var(--ink);
  text-shadow: 0 1px 18px rgba(6, 8, 15, 0.95), 0 1px 3px rgba(6,8,15,0.9);
}
.speech p.lead { font-size: 1.4rem; color: #fff; }
.speech .sign { color: var(--gold); font-weight: 600; font-size: 1.6rem; margin-top: 2.2rem; font-family: "Iowan Old Style", Palatino, Georgia, serif; }
.speech hr { border: 0; border-top: 1px solid var(--line); margin: 44px 0; }
.speech .closing { color: var(--muted); font-size: 1.05rem; }
.speech .closing strong { color: var(--gold-soft); }

/* ---- buttons ---- */
.btn {
  display: inline-block; cursor: pointer;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #241603; border: 0;
  padding: 14px 30px; border-radius: 999px;
  font-size: 1rem; font-weight: 700; letter-spacing: 0.01em; text-decoration: none;
  box-shadow: 0 6px 30px rgba(234,163,62,0.3);
  transition: transform 0.06s, box-shadow 0.15s, filter 0.15s;
}
.btn:hover { filter: brightness(1.05); box-shadow: 0 8px 38px rgba(234,163,62,0.45); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--gold-soft); border: 1px solid var(--gold); box-shadow: none; }
.btn.ghost:hover { background: rgba(234,163,62,0.1); }

/* ---- footer ---- */
footer { position: relative; z-index: 2; border-top: 1px solid var(--line); margin-top: 64px; padding: 28px 0 60px; background: rgba(6,8,15,0.5); }
footer .row { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; }
footer .meta { color: var(--muted); font-size: 0.82rem; }
footer code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.74rem; color: var(--muted); word-break: break-all; }
footer a { color: var(--gold-soft); text-decoration: none; }

/* ---- launch page ---- */
.lead-block { position: relative; z-index: 2; padding: 8vh 0 8px; text-align: center; }
.lead-block h1 { font-family: "Iowan Old Style", Palatino, Georgia, serif; font-size: clamp(2.2rem, 9vw, 3.2rem); font-weight: 600; margin: 0 0 10px; text-shadow: 0 2px 30px rgba(0,0,0,0.7); }
.lead-block p { color: var(--muted); margin: 0 auto; max-width: 42ch; text-shadow: 0 1px 14px rgba(0,0,0,0.9); }

.panel {
  position: relative; z-index: 2;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  margin: 28px 0 60px;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.wallet-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.wallet-bar .addr { font-family: ui-monospace, Menlo, monospace; font-size: 0.85rem; color: var(--gold-soft); }

form.launch { display: flex; flex-direction: column; gap: 18px; }
form.launch label { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
form.launch input[type=text], form.launch textarea {
  width: 100%; background: rgba(6,8,15,0.5); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px;
  font: inherit; font-size: 1rem;
}
form.launch textarea { resize: vertical; min-height: 72px; }
form.launch input::placeholder, form.launch textarea::placeholder { color: rgba(154,166,189,0.55); }
form.launch input:focus, form.launch textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(234,163,62,0.15); }
.row2 { display: flex; gap: 14px; }
.row2 > div { flex: 1; }
.drop {
  border: 1px dashed var(--line); border-radius: 14px; padding: 24px; text-align: center;
  color: var(--muted); cursor: pointer; background: rgba(6,8,15,0.4); transition: border-color 0.15s;
}
.drop:hover { border-color: var(--gold); }
.drop img { max-width: 120px; max-height: 120px; border-radius: 12px; margin: 12px auto 0; display: block; }
.optional { border-top: 1px solid var(--line); padding-top: 18px; }
.optional summary { cursor: pointer; color: var(--muted); font-size: 0.9rem; }
.optional[open] summary { margin-bottom: 14px; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.status { margin: 0 0 4px; padding: 14px 16px; border-radius: 12px; font-size: 0.95rem; display: none; }
.status.show { display: block; }
.status.info { background: rgba(234,163,62,0.12); color: var(--gold-soft); border: 1px solid rgba(234,163,62,0.25); }
.status.error { background: rgba(190,70,55,0.15); color: #f0a494; border: 1px solid rgba(190,70,55,0.3); }
.status.ok { background: rgba(50,170,100,0.15); color: #7fe0a6; border: 1px solid rgba(50,170,100,0.3); }
.status a { color: inherit; font-weight: 700; }
.status code { font-family: ui-monospace, Menlo, monospace; font-size: 0.8rem; word-break: break-all; }
