/* Base: page background, typography, links, form controls and buttons. */

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg-0);
  background-image:
    radial-gradient(1100px 700px at 8% -12%, rgba(124, 131, 255, 0.38), transparent 60%),
    radial-gradient(900px 620px at 112% 6%, rgba(34, 211, 238, 0.22), transparent 62%),
    radial-gradient(1000px 760px at 50% 125%, rgba(192, 132, 252, 0.28), transparent 62%),
    linear-gradient(165deg, var(--bg-0) 0%, var(--bg-1) 55%, var(--bg-2) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; color: var(--text-strong); font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: 22px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
p { margin: 0; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }

code, .mono { font-family: var(--mono); font-size: 12px; color: #c7d2fe; }

/* ---------- form controls ---------- */

input, select, textarea {
  font: inherit;
  color: var(--text-strong);
  background: rgba(6, 9, 24, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
select option, select optgroup { background: #101735; color: var(--text); }
textarea { min-height: 84px; resize: vertical; font-family: var(--mono); font-size: 12.5px; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { border-color: rgba(34, 211, 238, 0.7); box-shadow: var(--focus); }
input:disabled { opacity: 0.6; }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: #22d3ee; padding: 0; }

/* ---------- buttons ---------- */

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--glass-2);
  color: var(--text-strong);
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, filter 0.15s ease;
}
.btn:hover { background: var(--glass-3); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.primary { background: var(--grad-accent); border-color: transparent; color: #0a0f24; box-shadow: 0 10px 26px -10px rgba(34, 211, 238, 0.85); }
.btn.primary:hover { filter: brightness(1.06); background: var(--grad-accent); }
.btn.danger { background: rgba(251, 113, 133, 0.14); border-color: rgba(251, 113, 133, 0.45); color: #ffd6dd; }
.btn.danger:hover { background: rgba(251, 113, 133, 0.24); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text-strong); background: var(--glass-1); }
.btn.sm { padding: 5px 11px; font-size: 12px; }
.btn.block { width: 100%; justify-content: center; }
