/* ====== Base / Theme ====== */
:root{
  --bg:#0b1020;
  --panel:#121833;
  --text:#e6e8ef;
  --muted:#9aa3b2;
  --link:#93c5fd;
  --accent:#7c3aed;
  --ring:rgba(124,58,237,.35);
  --border:#1b2447;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ====== Layout ====== */
.container { max-width: 920px; margin: 0 auto; padding: 24px; }

.site-header, .site-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; background: var(--panel); border-bottom: 1px solid var(--border);
}
.site-footer { border-top: 1px solid var(--border); border-bottom: 0; }

/* Brand */
.brand { display: inline-flex; gap: 8px; align-items: center; color: var(--text); text-decoration: none; font-weight: 600; }
.brand img { height: 40px; width: auto; vertical-align: middle; }

/* Nav */
.site-nav a { color: var(--muted); text-decoration: none; margin-left: 16px; }
.site-nav a[aria-current="page"] { color: var(--text); }

/* Typography */
h1 { font-size: clamp(1.6rem, 2.5vw, 2rem); margin: 24px 0 12px; }
h2 { font-size: 1.15rem; margin: 20px 0 10px; }
p { margin: 0 0 12px; }
ul { padding-left: 1.1em; }

/* ====== Cards / Panels ====== */
.card, .form {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

/* ====== Contact Form ====== */
.form { max-width: 760px; margin: 48px auto 72px; }
.form h1 { margin: 0 0 6px; }
.form .lead { color: var(--muted); margin-bottom: 18px; }

.form .grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.form .field { grid-column: 1 / -1; }
.form .field.half { grid-column: span 6; }

.form label {
  display: block; margin-bottom: 6px; color: var(--muted); font-size: .95rem;
}

.form input, .form textarea, .form button { width: 100%; font: inherit; }

.form input, .form textarea {
  background: #0d1226;
  color: var(--text);
  border: 1px solid #25315f;
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form textarea { min-height: 140px; resize: vertical; }

.form input:focus, .form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}

.form .actions {
  display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px;
}

.form button {
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid #2c3b79;
  background: transparent;
  padding: 12px 18px;
  color: var(--text);
}
.form button:hover { filter: brightness(1.08); }

.form .hint { font-size: .9rem; color: var(--muted); }
.hidden { display: none !important; }

/* Status colors (used by script) */
.success { color: var(--muted); }
.error { color: #f87171; }

/* ====== Content pages (privacy / terms) ====== */
.prose p { margin: 0 0 12px; }
.prose h2 { margin-top: 20px; }
.prose ul { margin: 0 0 12px; }

/* ====== Responsive ====== */
@media (max-width: 720px) {
  .container { padding: 16px; }
  .site-header, .site-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
  .form .field.half { grid-column: 1 / -1; }
}
