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

:root {
  --bg: #0f0f11;
  --surface: #1a1a1f;
  --border: #2a2a32;
  --text: #e8e8f0;
  --muted: #888898;
  --accent: #7c6af7;
  --accent-hover: #9a8bff;
  --success: #3ecf8e;
  --error: #f97066;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html { font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ── Layout ── */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header .logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.site-header .logo span { color: var(--accent); }
nav a {
  margin-left: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.15s;
}
nav a:hover, nav a.active { color: var(--text); }

main { flex: 1; }

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}

/* ── Hero ── */
.hero {
  padding: 5rem 0 3rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero h1 span { color: var(--accent); }
.hero p {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 520px;
  margin: 0 auto 2rem;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s, transform 0.1s;
}
.btn:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  margin-left: 0.75rem;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: transparent; }

/* ── Feature cards ── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  padding: 2rem 0 4rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card .icon { font-size: 1.6rem; margin-bottom: 0.75rem; }
.card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.card p { color: var(--muted); font-size: 0.88rem; line-height: 1.5; }

/* ── Content pages ── */
.page-header {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.page-header h1 { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }
.page-header p { color: var(--muted); margin-top: 0.5rem; }

.prose h2 { font-size: 1.2rem; font-weight: 600; margin: 2rem 0 0.6rem; }
.prose p { color: var(--muted); margin-bottom: 1rem; line-height: 1.7; }
.prose ul { color: var(--muted); padding-left: 1.25rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.35rem; line-height: 1.7; }

/* ── Form ── */
.form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 560px;
  margin: 0 auto 4rem;
}
.form-group { margin-bottom: 1.25rem; }
label { display: block; font-size: 0.88rem; font-weight: 500; margin-bottom: 0.35rem; }
input, textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  padding: 0.6rem 0.85rem;
  transition: border-color 0.15s;
  outline: none;
}
input:focus, textarea:focus { border-color: var(--accent); }
textarea { min-height: 110px; resize: vertical; }
.honeypot { display: none !important; }
.submit-btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem;
  cursor: pointer;
  transition: background 0.15s;
}
.submit-btn:hover { background: var(--accent-hover); }
.form-msg { margin-top: 1rem; padding: 0.7rem 1rem; border-radius: 6px; font-size: 0.9rem; display: none; }
.form-msg.success { background: #0d2e1f; border: 1px solid var(--success); color: var(--success); display: block; }
.form-msg.error   { background: #2e0d0d; border: 1px solid var(--error);   color: var(--error);   display: block; }

/* ── 404 ── */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
}
.not-found .code { font-size: 6rem; font-weight: 900; color: var(--accent); opacity: 0.3; line-height: 1; }
.not-found h1 { font-size: 1.5rem; margin: 0.5rem 0; }
.not-found p { color: var(--muted); margin-bottom: 2rem; }

/* ── Thanks ── */
.thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
}
.thanks .check { font-size: 3rem; margin-bottom: 1rem; }
.thanks h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.thanks p { color: var(--muted); margin-bottom: 2rem; }
