:root {
  --bg: #0a0a0c;
  --bg-elev: #111114;
  --fg: #e7e7ea;
  --fg-dim: #9a9aa3;
  --fg-faint: #5c5c66;
  --accent: #5fd0bc;
  --accent-soft: rgba(95, 208, 188, 0.12);
  --border: #1f1f25;
  --max: 720px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease;
}

a:hover { border-bottom-color: var(--accent); }

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

header.site {
  padding: 32px 0 0;
  /* Sit above the hero accent (main::before, z-index 0), which bleeds up here. */
  position: relative;
  z-index: 2;
}

header.site .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 17px;
  color: var(--fg);
  border-bottom: none;
}

.brand-mark {
  color: var(--accent);
}

nav.site a {
  color: var(--fg-dim);
  font-size: 14px;
  margin-left: 20px;
}

nav.site a:hover { color: var(--fg); border-bottom-color: var(--fg); }

main {
  flex: 1;
  padding: 80px 0 96px;
  position: relative;
}

/* Atmospheric hero accent: a centered teal wireframe cluster, raised up the
   page (its bright core sits in the upper hero) at ~50% strength. Its dark
   backdrop matches the page (#0a0a0c), so it dissolves in with no edges. */
main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -28%);
  width: min(720px, 90%);
  aspect-ratio: 1 / 1;
  background-image: url(/assets/img/hero-bg.webp);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

/* Keep hero text above the accent without relying on a negative z-index. */
main > .container { position: relative; z-index: 1; }

@media (max-width: 600px) {
  main { padding: 56px 0 64px; }
  main::before { width: 130%; }
}

h1 {
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  font-weight: 600;
}

@media (max-width: 600px) {
  h1 { font-size: 34px; }
}

h2 {
  font-size: 18px;
  letter-spacing: -0.005em;
  margin: 40px 0 12px;
  font-weight: 600;
  color: var(--fg);
}

h3 {
  font-size: 15px;
  margin: 24px 0 8px;
  font-weight: 600;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

p { margin: 0 0 16px; color: var(--fg-dim); }
p strong { color: var(--fg); font-weight: 500; }

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg);
  max-width: 560px;
  margin-bottom: 32px;
}

ul {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--fg-dim);
}

li { margin-bottom: 6px; }
li::marker { color: var(--fg-faint); }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

.tag {
  display: inline-block;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 16px;
}

.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.card-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* min-width:0 lets the text column shrink and wrap inside the flex row */
.card-body { min-width: 0; }

.contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 14px;
  color: var(--fg-dim);
}

.contact-line span { color: var(--fg-faint); }

footer.site {
  border-top: 1px solid var(--border);
  padding: 24px 0 32px;
  font-size: 13px;
  color: var(--fg-faint);
}

footer.site .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer.site a { color: var(--fg-dim); }
footer.site a:hover { color: var(--fg); border-bottom-color: var(--fg); }

.meta {
  font-size: 13px;
  color: var(--fg-faint);
  margin-bottom: 32px;
}

.policy h2:first-of-type { margin-top: 0; }
.policy p, .policy li { color: var(--fg); }

.policy table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 15px;
}

.policy th {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--fg-dim);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.policy td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--fg);
}

.policy tr:last-child td { border-bottom: none; }

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
  max-width: 560px;
}

.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-weight: 600;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  font: inherit;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 10px 12px;
  border-radius: var(--radius);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

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

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
}

.contact-form button[type="submit"] {
  font: inherit;
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 11px 22px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.01em;
  align-self: flex-start;
  transition: filter 120ms ease, transform 120ms ease;
}

.contact-form button[type="submit"]:hover { filter: brightness(1.08); }
.contact-form button[type="submit"]:active { transform: translateY(1px); }

.contact-form .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

small.err {
  color: #ff8a8a;
  font-size: 13px;
  margin-top: 2px;
}

.card.error {
  border-color: rgba(255, 138, 138, 0.4);
  background: rgba(255, 138, 138, 0.06);
}
