/* RH7 — base stylesheet
   Vanilla CSS, no framework, no external fonts or CDNs. */

:root {
  --color-bg: #0b1220;
  --color-bg-alt: #0f1830;
  --color-surface: #121b34;
  --color-border: #223055;
  --color-text: #e7ebf5;
  --color-text-muted: #a9b3cc;
  --color-accent: #4f7dff;
  --color-accent-hover: #6b91ff;
  --color-accent-soft: rgba(79, 125, 255, 0.12);
  --max-width: 1120px;
  --radius: 10px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: rgba(11, 18, 32, 0.9);
  backdrop-filter: saturate(140%) blur(6px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
}
.brand:hover { text-decoration: none; color: var(--color-text); }

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-accent), #7c5cff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-text-muted);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-text);
  background: var(--color-surface);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text);
  padding: 8px 10px;
  font-size: 1.1rem;
  cursor: pointer;
}

.nav-cta {
  background: var(--color-accent);
  color: #fff !important;
  padding: 8px 16px !important;
  border-radius: 6px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--color-accent-hover); text-decoration: none !important; }

/* Hero */
.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--color-border);
  background:
    radial-gradient(700px 300px at 15% 0%, var(--color-accent-soft), transparent 60%),
    var(--color-bg);
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 20px;
  max-width: 20ch;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 60ch;
  margin: 0 0 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--color-accent-hover); color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-secondary:hover { background: var(--color-surface); color: var(--color-text); }

/* Sections */
section { padding: 72px 0; }
.section-alt { background: var(--color-bg-alt); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }

.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 12px; }
.section-head p { color: var(--color-text-muted); margin: 0; }

/* Cards / grid */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin: 0 0 10px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--color-text-muted); font-size: 0.96rem; }

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-weight: 700;
}

/* Lists */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; color: var(--color-text-muted); }
.check-list li::before {
  content: "";
  flex: 0 0 6px;
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  margin-top: 9px;
}

/* Prose / legal pages */
.prose { max-width: 74ch; }
.prose h1 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); margin-bottom: 8px; }
.prose .updated { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 40px; }
.prose h2 { font-size: 1.3rem; margin-top: 40px; margin-bottom: 12px; }
.prose h3 { font-size: 1.05rem; margin-top: 24px; margin-bottom: 8px; }
.prose p, .prose li { color: var(--color-text-muted); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { text-decoration: underline; }

.callout {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-left: 3px solid var(--color-accent);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 24px 0;
}
.callout p { margin: 0; }

/* Page header for interior pages */
.page-header {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}
.page-header h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 12px; }
.page-header p { color: var(--color-text-muted); max-width: 60ch; margin: 0; }

/* Table */
table { width: 100%; border-collapse: collapse; margin: 20px 0; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--color-border); font-size: 0.92rem; }
th { color: var(--color-text); }
td { color: var(--color-text-muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-card h3 { margin-top: 0; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; color: var(--color-text-muted); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.95rem;
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 14px; }
.form-status { margin-top: 14px; font-size: 0.9rem; }
.form-status[data-state="success"] { color: #7ee0a8; }
.form-status[data-state="error"] { color: #ff9d9d; }

/* CTA band */
.cta-band {
  border-radius: 16px;
  background: linear-gradient(135deg, #16204a, #0f1830);
  border: 1px solid var(--color-border);
  padding: 48px;
  text-align: center;
}
.cta-band h2 { margin: 0 0 12px; }
.cta-band p { color: var(--color-text-muted); margin: 0 0 28px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  padding: 48px 0 32px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin: 0 0 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid ul a { color: var(--color-text-muted); font-size: 0.92rem; }
.footer-grid ul a:hover { color: var(--color-text); }
.footer-brand p { color: var(--color-text-muted); font-size: 0.92rem; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 860px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-header.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 24px 20px;
    gap: 4px;
  }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 20px; }
  .hero { padding: 64px 0 48px; }
}
