/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ---------- Variables ---------- */
:root {
  --bg: #08032f;
  --text: #eaeaf0;
  --heading: #ffffff;
  --accent: #7247ff;
  --muted: #b6b6c9;
  --border: #1e1a5a;
  --max-width: 720px;
}

/* ---------- Body ---------- */
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Layout ---------- */
header,
footer {
  text-align: center;
  padding: 16px;
}

main {
  max-width: var(--max-width);
  margin: auto;
  padding: 24px;
}

/* ---------- Headings ---------- */
h1,
h2 {
  color: var(--heading);
  line-height: 1.25;
  margin-bottom: 0.6em;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.4rem;
  margin-top: 1.6em;
}

/* ---------- Text ---------- */
p {
  margin: 0 0 1.2em;
}

strong {
  color: var(--heading);
  font-weight: 600;
}

/* ---------- Links ---------- */
a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- Lists ---------- */
ul {
  padding-left: 1.2em;
}

li {
  margin-bottom: 0.4em;
}

/* ---------- Forms ---------- */
form {
  margin-top: 16px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

input {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  color: var(--text);
  background-color: #0f0b3d;
  border: 1px solid var(--border);
  border-radius: 6px;
}

input::placeholder {
  color: var(--muted);
}

button {
  margin-top: 12px;
  padding: 10px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  background-color: var(--accent);
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  opacity: 0.9;
}

/* ---------- Utility ---------- */
.hidden {
  display: none;
}
