:root {
  color-scheme: dark;
  --bg: #080b10;
  --panel: rgba(255, 255, 255, 0.07);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #eef4ff;
  --muted: #9aa9bd;
  --accent: #79f2c0;
  --accent-strong: #36d99a;
  --danger: #ff8a8a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(54, 217, 154, 0.18), transparent 32rem),
    radial-gradient(circle at 82% 0%, rgba(73, 123, 255, 0.15), transparent 30rem),
    var(--bg);
}

.shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 9vh 0 48px;
}

.hero { max-width: 760px; }

.mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border: 1px solid rgba(121, 242, 192, 0.45);
  border-radius: 16px;
  color: var(--accent);
  background: rgba(121, 242, 192, 0.08);
  font-weight: 800;
  letter-spacing: -0.08em;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.6rem, 8vw, 5.9rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.lede {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.6;
}

code {
  color: #c8ffdf;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.panel {
  margin-top: 44px;
  padding: 22px;
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

label {
  display: block;
  margin: 0 0 10px 4px;
  color: #dce7f5;
  font-size: 0.9rem;
  font-weight: 700;
}

.input-row {
  display: flex;
  gap: 12px;
}

input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  outline: none;
  padding: 15px 16px;
  color: var(--text);
  background: rgba(2, 6, 12, 0.72);
  font: inherit;
}

input:focus {
  border-color: rgba(121, 242, 192, 0.65);
  box-shadow: 0 0 0 4px rgba(121, 242, 192, 0.1);
}

button {
  border: 0;
  border-radius: 14px;
  padding: 0 22px;
  color: #03130c;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

button:hover:not(:disabled) { filter: brightness(1.08); }
button:disabled { cursor: wait; opacity: 0.62; }

.status {
  min-height: 1.5em;
  margin: 14px 4px 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.status[data-state="working"] { color: var(--accent); }
.status[data-state="done"] { color: #c8ffdf; }
.status[data-state="error"] { color: var(--danger); }

.notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.notes div {
  min-height: 132px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.notes strong,
.notes span { display: block; }
.notes strong { margin-bottom: 8px; }
.notes span { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

@media (max-width: 760px) {
  .shell { padding-top: 7vh; }
  .input-row { flex-direction: column; }
  button { min-height: 50px; }
  .notes { grid-template-columns: 1fr; }
}
