:root {
  --bg: #0a0b0f;
  --bg-2: #10121a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --ink: #f4f5f7;
  --ink-2: #b8bcc8;
  --muted: #6b7287;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: #7c9cff;
  --accent-soft: rgba(124, 156, 255, 0.14);
  --accent-2: #5ee1a2;
  --danger: #ff6b6b;
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Instrument Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --top: 52px;
  --bottom: 56px;
  --max: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 90% -20%, rgba(124, 156, 255, 0.12), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(94, 225, 162, 0.06), transparent 55%),
    var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-weight: 560;
  font-size: 0.75rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s ease, opacity 0.15s ease;
}

.btn:active { transform: scale(0.98); }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.6875rem; }

.btn-accent {
  background: var(--accent);
  color: #0a0b0f;
}
.btn-accent:hover { filter: brightness(1.08); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
}
.btn-ghost:hover { background: var(--surface); color: var(--ink); }

.btn-quiet {
  background: var(--surface);
  color: var(--ink-2);
}
.btn-quiet:hover { background: var(--surface-2); color: var(--ink); }

.link-quiet {
  color: var(--muted);
  font-size: 0.6875rem;
}
.link-quiet:hover { color: var(--ink-2); }

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: 0.6875rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem;
  font-size: 0.8125rem;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(124, 156, 255, 0.45);
  background: rgba(255, 255, 255, 0.05);
}

.notice {
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.notice-error {
  border-color: rgba(255, 107, 107, 0.35);
  color: #ffb4b4;
}

.notice-success {
  border-color: rgba(94, 225, 162, 0.35);
  color: #b8f5d5;
}

.db-banner {
  margin: 0.75rem auto;
  width: min(100% - 2rem, var(--max));
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(255, 107, 107, 0.35);
  color: #ffb4b4;
  font-size: 0.75rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1rem 5rem;
  color: var(--muted);
  font-size: 0.6875rem;
}

.site-footer a:hover { color: var(--ink-2); }

@media (min-width: 768px) {
  body { font-size: 14px; }
  .site-footer { padding-bottom: 2rem; }
}
