:root {
  color-scheme: dark;
  --bg: #06100e;
  --surface: rgba(10, 25, 22, 0.86);
  --surface-strong: #0d201c;
  --line: rgba(156, 255, 204, 0.13);
  --line-strong: rgba(156, 255, 204, 0.28);
  --text: #f1f8f4;
  --muted: #91a59d;
  --accent: #88ffbd;
  --accent-dark: #06150f;
  --cyan: #6cead4;
  --danger: #ff8f8f;
  --warning: #ffd27a;
  --radius: 20px;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(106, 234, 212, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(106, 234, 212, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px;
  color: var(--text);
  font-family: var(--font-body);
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); }

.ambient {
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  pointer-events: none;
}
.ambient--one { top: -280px; right: -120px; background: var(--accent); }
.ambient--two { bottom: -360px; left: -220px; background: var(--cyan); }

.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-size: 18px; letter-spacing: -0.02em; }
.brand b { color: var(--accent); }
.brand__mark { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(136, 255, 189, 0.07); }
.brand__mark svg { width: 21px; fill: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.network-pill, .wallet-button { height: 42px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.03em; }
.network-pill { display: flex; align-items: center; gap: 9px; padding: 0 15px; color: var(--muted); background: rgba(7, 20, 17, 0.66); }
.network-pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 4px rgba(145, 165, 157, 0.1); }
.network-pill[data-state="online"] .network-pill__dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(136, 255, 189, 0.1), 0 0 12px var(--accent); }
.network-pill[data-state="warning"] .network-pill__dot { background: var(--warning); }
.wallet-button { display: flex; align-items: center; gap: 9px; padding: 0 17px; cursor: pointer; border-color: var(--line-strong); background: var(--text); color: #07110e; font-weight: 600; transition: transform 160ms ease, background 160ms ease; }
.wallet-button:hover { transform: translateY(-1px); background: var(--accent); }
.wallet-button:disabled { cursor: wait; opacity: 0.65; transform: none; }
.wallet-button.is-connected { background: rgba(136, 255, 189, 0.08); color: var(--accent); }

.page { padding-block: 94px 80px; }
.hero { max-width: 760px; margin-bottom: 64px; }
.eyebrow, .section-kicker, .gas-note, .task-heading__hint, .site-footer { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; color: var(--muted); font-size: 11px; }
.eyebrow span { padding: 4px 7px; border: 1px solid rgba(136, 255, 189, 0.35); border-radius: 4px; color: var(--accent); background: rgba(136, 255, 189, 0.06); }
.hero h1 { margin: 0; font-size: clamp(46px, 7vw, 82px); line-height: 0.99; letter-spacing: -0.065em; font-weight: 700; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { max-width: 630px; margin: 28px 0 0; color: var(--muted); font-size: clamp(16px, 2vw, 19px); line-height: 1.75; }

.workspace { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(13, 32, 28, 0.92), rgba(7, 19, 16, 0.88)); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.25); backdrop-filter: blur(20px); }
.workspace__topline, .task-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 28px 32px 20px; }
.section-kicker { display: block; margin-bottom: 8px; color: var(--accent); font-size: 10px; }
.workspace h2 { margin: 0; font-size: 20px; letter-spacing: -0.025em; }
.gas-note, .task-heading__hint { color: var(--muted); font-size: 9px; }

.composer { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 0 32px 32px; border-bottom: 1px solid var(--line); }
.composer input { min-width: 0; height: 58px; padding: 0 18px; border: 1px solid var(--line); border-radius: 12px; outline: none; background: rgba(3, 13, 11, 0.72); color: var(--text); transition: border-color 160ms ease, box-shadow 160ms ease; }
.composer input::placeholder { color: #64776f; }
.composer input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(136, 255, 189, 0.11); }
.composer button { display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 168px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-dark); font-weight: 800; cursor: pointer; }
.composer button:hover { filter: brightness(1.07); }
.composer button:disabled, .composer input:disabled { cursor: wait; opacity: 0.58; }
.composer button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.app-status { margin: 22px 32px 0; padding: 13px 15px; border-left: 2px solid var(--line-strong); background: rgba(3, 13, 11, 0.4); color: var(--muted); font-size: 13px; line-height: 1.5; }
.app-status[data-state="success"] { border-color: var(--accent); color: #bcefd2; }
.app-status[data-state="pending"] { border-color: var(--warning); color: #f1dbad; }
.app-status[data-state="error"] { border-color: var(--danger); color: #ffc1c1; }
.app-status a { white-space: nowrap; text-decoration: none; }

.task-heading { padding-top: 34px; }
.task-list { display: grid; gap: 8px; margin: 0; padding: 0 32px 32px; list-style: none; }
.task { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; min-height: 64px; padding: 13px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(5, 17, 14, 0.55); transition: border-color 160ms ease, transform 160ms ease; }
.task:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.task input { appearance: none; display: grid; width: 22px; height: 22px; place-content: center; margin: 0; border: 1px solid #527269; border-radius: 7px; cursor: pointer; }
.task input::before { content: ""; width: 11px; height: 11px; clip-path: polygon(14% 44%, 0 59%, 40% 100%, 100% 20%, 84% 7%, 39% 70%); background: var(--accent-dark); transform: scale(0); }
.task input:checked { border-color: var(--accent); background: var(--accent); }
.task input:checked::before { transform: scale(1); }
.task input:focus-visible { outline: 3px solid rgba(136, 255, 189, 0.25); outline-offset: 3px; }
.task__copy { overflow-wrap: anywhere; line-height: 1.45; }
.task__number { color: #577069; font-family: var(--font-mono); font-size: 10px; }
.task.is-complete .task__copy { color: #63766f; text-decoration: line-through; text-decoration-color: #456158; }

.empty-state { margin: 0 32px 32px; padding: 46px 20px; border: 1px dashed var(--line-strong); border-radius: 12px; text-align: center; background: rgba(3, 13, 11, 0.22); }
.empty-state[hidden] { display: none; }
.empty-state__icon { display: grid; width: 42px; height: 42px; place-items: center; margin: 0 auto 14px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--accent); }
.empty-state h3 { margin: 0 0 8px; font-size: 16px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 13px; }

.site-footer { display: flex; justify-content: space-between; gap: 24px; padding-block: 25px 40px; border-top: 1px solid var(--line); color: #62766e; font-size: 9px; }
.site-footer a { text-decoration: none; }
.footer-links { display: flex; align-items: center; gap: 8px; }
.footer-links a { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); transition: border-color 160ms ease, color 160ms ease, background 160ms ease; }
.footer-links a:hover, .footer-links a:focus-visible { border-color: var(--line-strong); background: rgba(136, 255, 189, 0.06); color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 700px) {
  .shell { width: min(100% - 28px, 1120px); }
  .site-header { min-height: 78px; }
  .network-pill { display: none; }
  .wallet-button { padding: 0 13px; }
  .page { padding-block: 64px 56px; }
  .hero { margin-bottom: 42px; }
  .hero h1 { font-size: clamp(42px, 13vw, 64px); }
  .workspace__topline, .task-heading { padding-inline: 20px; }
  .composer { grid-template-columns: 1fr; padding: 0 20px 24px; }
  .composer button { min-height: 54px; }
  .app-status { margin-inline: 20px; }
  .task-list { padding-inline: 20px; }
  .empty-state { margin-inline: 20px; }
  .gas-note, .task-heading__hint { display: none; }
  .site-footer { flex-direction: column; gap: 8px; }
  .footer-links { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
