:root {
  --bg: #0b0e14;
  --bg-elevated: #10141d;
  --bg-card: #131826;
  --border: #232a3b;
  --text: #e7e9ee;
  --text-dim: #9aa3b5;
  --accent: #4a90d9;
  --accent-bright: #6fb1f0;
  --success: #3fb37f;
  --warning: #d9a441;
  --max-width: 1120px;
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

img {
  max-width: 100%;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}
.brand:hover {
  text-decoration: none;
  color: var(--accent-bright);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}
.btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-bright);
  text-decoration: none;
}
.btn-outline {
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--accent);
  text-decoration: none;
}

/* Hero */
.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--border);
}
.hero .eyebrow {
  color: var(--accent-bright);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 2.75rem;
  line-height: 1.15;
  margin: 0 0 20px;
  max-width: 780px;
  letter-spacing: -0.01em;
}
.hero p.lede {
  font-size: 1.2rem;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 0 32px;
}
.hero .cta-row {
  display: flex;
  gap: 14px;
}

/* Sections */
section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}
section:last-of-type {
  border-bottom: none;
}
.section-heading {
  max-width: 640px;
  margin: 0 0 40px;
}
.section-heading .eyebrow {
  color: var(--accent-bright);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.section-heading h2 {
  font-size: 1.9rem;
  margin: 0 0 12px;
}
.section-heading p {
  color: var(--text-dim);
  margin: 0;
}

.grid {
  display: grid;
  gap: 24px;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 860px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}
.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.placeholder-note {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-style: italic;
}

/* Prose pages (Legal, About) */
.prose {
  max-width: 760px;
}
.prose h1 {
  font-size: 2.1rem;
  margin-bottom: 8px;
}
.prose .updated {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 40px;
}
.prose h2 {
  font-size: 1.3rem;
  margin-top: 40px;
}
.prose p,
.prose li {
  color: var(--text-dim);
}

/* Contact form */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}
form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.form-status {
  font-size: 0.9rem;
  padding: 12px 14px;
  border-radius: var(--radius);
  display: none;
}
.form-status.visible {
  display: block;
}
.form-status.success {
  background: rgba(63, 179, 127, 0.12);
  border: 1px solid var(--success);
  color: var(--success);
}
.form-status.error {
  background: rgba(217, 164, 65, 0.12);
  border: 1px solid var(--warning);
  color: var(--warning);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.site-footer .footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a {
  color: var(--text-dim);
}

.vertical-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vertical-list li::before {
  content: "\2713";
  color: var(--success);
  margin-right: 10px;
  font-weight: 700;
}
