:root {
  color-scheme: dark;
  --bg: #08111f;
  --bg-soft: #0f1c2f;
  --card: rgba(16, 29, 49, 0.82);
  --card-border: rgba(148, 163, 184, 0.18);
  --text: #e5eefb;
  --muted: #9fb0c7;
  --primary: #5eead4;
  --primary-strong: #2dd4bf;
  --danger: #fb7185;
  --warning: #fbbf24;
  --success: #34d399;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.2), transparent 34rem),
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.18), transparent 32rem),
    linear-gradient(135deg, var(--bg), #050815 70%);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

code {
  color: #a7f3d0;
  background: rgba(94, 234, 212, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.12);
  border-radius: 0.35rem;
  padding: 0.08rem 0.28rem;
}

.app-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.hero {
  margin-bottom: 28px;
}

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

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.hero-warning {
  display: inline-flex;
  max-width: 860px;
  margin: 0 0 14px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.1);
  padding: 0.6rem 0.9rem;
  line-height: 1.6;
}

.hero-text {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(420px, 1.15fr);
  gap: 24px;
  align-items: start;
}

.card {
  border: 1px solid var(--card-border);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.form-card,
.result-card {
  padding: 28px;
}

.section-title {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(94, 234, 212, 0.25);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(94, 234, 212, 0.08);
  padding: 0.34rem 0.72rem;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.muted-pill {
  color: var(--muted);
  border-color: rgba(159, 176, 199, 0.22);
  background: rgba(159, 176, 199, 0.08);
}

.field {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}

.field > span {
  color: #c7d2e6;
  font-size: 0.92rem;
  font-weight: 700;
}

.field small {
  color: var(--muted);
  line-height: 1.5;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  outline: none;
  color: var(--text);
  background: rgba(8, 17, 31, 0.78);
  padding: 1rem 1.05rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

textarea {
  resize: vertical;
  min-height: 92px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(94, 234, 212, 0.7);
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.1);
  background: rgba(8, 17, 31, 0.95);
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.form-note {
  margin: -2px 0 20px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.ghost-button {
  border: 0;
  border-radius: 14px;
  min-height: 52px;
  padding: 0 1.25rem;
  font-weight: 800;
}

.primary-button {
  width: 100%;
  font-size: 1.05rem;
  color: #04211d;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
}

.primary-button:hover:not(:disabled) {
  filter: brightness(1.07);
}

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

.ghost-button:hover:not(:disabled) {
  border-color: rgba(94, 234, 212, 0.36);
  background: rgba(94, 234, 212, 0.09);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.result-badge {
  display: grid;
  min-height: 220px;
  place-items: center;
  border-radius: 28px;
  margin-bottom: 22px;
  padding: 22px;
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.08em;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 22px 60px rgba(0, 0, 0, 0.24);
}

.result-badge.neutral {
  color: var(--muted);
  background: rgba(148, 163, 184, 0.1);
}

.result-badge.success {
  color: #052e25;
  background: linear-gradient(135deg, #6ee7b7, #2dd4bf);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 28px 80px rgba(45, 212, 191, 0.28);
}

.result-badge.danger {
  color: #3b0712;
  background: linear-gradient(135deg, #fda4af, #fb7185);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 28px 80px rgba(251, 113, 133, 0.24);
}

.result-badge.warning {
  color: #3b2500;
  background: linear-gradient(135deg, #fde68a, #fbbf24);
}

.result-list {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
}

.result-list div {
  display: grid;
  gap: 6px;
  overflow: hidden;
}

.result-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #dbeafe;
}

.hint {
  color: var(--muted);
  line-height: 1.75;
}

@media (max-width: 860px) {
  .app-shell {
    width: min(100% - 20px, 1120px);
    padding: 28px 0;
  }

  .layout-grid {
    grid-template-columns: 1fr;
  }

  .result-badge {
    min-height: 180px;
    font-size: clamp(3rem, 18vw, 5.5rem);
  }

  .input-row {
    grid-template-columns: 1fr;
  }
}
