:root {
  color-scheme: dark;
  --bg: #0b1020;
  --bg-soft: rgba(18, 24, 40, 0.92);
  --panel: rgba(14, 20, 36, 0.88);
  --panel-border: rgba(148, 163, 184, 0.18);
  --text: #e5eefc;
  --muted: #9db0d1;
  --faint: #6f82a8;
  --accent: #7dd3fc;
  --accent-strong: #38bdf8;
  --danger: #fb7185;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.45);
  --radius: 24px;
  --radius-sm: 16px;
  --max-width: 1080px;
  --ease: 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.2), transparent 34%),
    radial-gradient(circle at 85% 10%, rgba(125, 211, 252, 0.12), transparent 24%),
    linear-gradient(180deg, #0b1020 0%, #0b1224 42%, #0f172a 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 86%);
  opacity: 0.5;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 18px 34px;
}

.hero {
  padding: 10px 2px 22px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.1);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 14px 0 8px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero p {
  margin: 0;
  max-width: 68ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.statusbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: rgba(12, 18, 34, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.statusbar__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: #d8f2ff;
  font-size: 0.88rem;
  font-weight: 650;
}

.statusbar__pill[data-state="error"] {
  background: rgba(251, 113, 133, 0.14);
  color: #ffd1d9;
}

.statusbar__pill[data-state="ready"] {
  background: rgba(52, 211, 153, 0.12);
  color: #ccfbf1;
}

.statusbar__meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.card {
  padding: 18px;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--panel-border);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field__label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fbff;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 54px;
  padding: 16px 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: var(--radius-sm);
  background: rgba(3, 7, 18, 0.6);
  color: var(--text);
  font: inherit;
  line-height: 1.55;
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

textarea::placeholder {
  color: #6b7da1;
}

textarea:focus {
  border-color: rgba(125, 211, 252, 0.8);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.field__hint {
  color: var(--faint);
  font-size: 0.88rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.summary {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(8, 15, 28, 0.6);
}

.summary__block {
  display: grid;
  gap: 3px;
}

.summary__label {
  color: var(--faint);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.summary__value {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 650;
}

.summary__note {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), opacity var(--ease), background var(--ease);
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.button--ghost {
  color: var(--text);
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.button--primary {
  color: #07111f;
  background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 52%, #22d3ee 100%);
  box-shadow: 0 14px 30px rgba(56, 189, 248, 0.24);
}

.error {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(251, 113, 133, 0.32);
  background: rgba(251, 113, 133, 0.1);
  color: #ffd1d9;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 18px 12px 24px;
  }

  .statusbar {
    flex-direction: column;
    align-items: stretch;
  }

  .actions {
    flex-direction: column-reverse;
  }

  .button {
    width: 100%;
  }
}

