:root {
  --bg: #0f0e14;
  --surface: #1a1920;
  --border: #2d2a36;
  --text: #e8e4ef;
  --muted: #8b8698;
  --accent: #b794f6;
  --accent-hover: #c4a8f7;
  --error: #f472b6;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

.page {
  max-width: 560px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 3rem;
}

.hero__title {
  font-size: 2.25rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hero__subhead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 1rem 0;
  max-width: 32em;
  margin-left: auto;
  margin-right: auto;
}

.hero__trust {
  color: var(--text);
  font-size: 0.95rem;
  margin: 0 0 1.75rem 0;
  opacity: 0.9;
}

.cta {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}

.cta:hover {
  background: var(--accent-hover);
}

/* What it is */
.what-it-is {
  margin-bottom: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.what-it-is__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem 0;
}

.what-it-is__text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0;
}

/* Form section */
.form-section {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.form-section__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1.25rem 0;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.field input {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
}

.field input::placeholder {
  color: var(--muted);
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(183, 148, 246, 0.2);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.actions {
  margin-top: 0.5rem;
}

button[type="submit"] {
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

button[type="submit"]:hover {
  background: var(--accent-hover);
}

button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.message {
  margin-top: 1.5rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.message.error {
  background: rgba(244, 114, 182, 0.12);
  color: var(--error);
  border: 1px solid rgba(244, 114, 182, 0.3);
}

.message.success {
  background: rgba(183, 148, 246, 0.12);
  color: var(--accent);
  border: 1px solid rgba(183, 148, 246, 0.3);
}

.result {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.result h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  color: var(--muted);
}

.result pre {
  margin: 0;
  font-size: 0.8rem;
  overflow: auto;
  max-height: 360px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
}

.result .meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.result .meta span {
  display: block;
}

.result img.svg-chart,
.result svg {
  max-width: 100%;
  height: auto;
  margin-top: 0.5rem;
}
