:root {
  --bg: #f4f4f1;
  --surface: #ffffff;
  --surface-alt: #ecece8;
  --ink: #101010;
  --ink-soft: #4f4f4f;
  --line: #d9d9d3;
  --accent: #1d1d1d;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-sm: 0 6px 20px rgba(16, 16, 16, 0.06);
  --shadow-md: 0 14px 32px rgba(16, 16, 16, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", "Manrope", "Avenir Next", "Helvetica Neue", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 56px;
}

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

.brand-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-location {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px;
  box-shadow: var(--shadow-sm);
}

.nav-pill a {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.nav-pill a:hover,
.nav-pill a[aria-current="page"] {
  background: var(--surface-alt);
}

.mobile-nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  font-size: 20px;
}

.hero {
  margin-top: 26px;
  max-width: 860px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--surface);
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 18px 0 0;
  max-width: 700px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.capability-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.capability-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.capability-media {
  position: relative;
  min-height: 94px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.cap-ai .capability-media {
  background: #d5dced;
}

.cap-map .capability-media {
  background: #dce4a3;
}

.cap-links .capability-media {
  background: #dcd7ea;
}

.capability-badge {
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(16, 16, 16, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  padding: 5px 8px;
}

.capability-glyph {
  position: absolute;
  border-radius: 999px;
  opacity: 0.9;
}

.cap-glyph-a {
  width: 96px;
  height: 34px;
  right: 16px;
  top: 42px;
  background: #506f67;
}

.cap-glyph-b {
  width: 56px;
  height: 56px;
  left: 18px;
  top: 32px;
  border-radius: 20px;
  background: #7e95ab;
}

.cap-glyph-c {
  width: 72px;
  height: 72px;
  left: 20px;
  top: 24px;
  border-radius: 50%;
  background: #e3b29b;
}

.cap-glyph-d {
  width: 110px;
  height: 30px;
  right: -14px;
  top: 44px;
  background: #252525;
  transform: rotate(-10deg);
}

.cap-glyph-e {
  width: 98px;
  height: 36px;
  left: 20px;
  top: 40px;
  background: #ffffff;
  transform: rotate(16deg);
}

.cap-glyph-f {
  width: 48px;
  height: 48px;
  right: 28px;
  top: 38px;
  border-radius: 14px;
  background: #705b9a;
}

.capability-body {
  padding: 16px;
}

.capability-body h3 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.capability-body p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.48;
}

.capability-foot {
  margin-top: 14px;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #333;
}

.cards-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card-hit {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-media {
  min-height: 210px;
  border-bottom: 1px solid var(--line);
  padding: 14px;
  position: relative;
}

.media-a {
  background: #c8d5e7;
}

.media-b {
  background: #dbe17f;
}

.media-c {
  background: #d7d0ec;
}

.media-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(16, 16, 16, 0.18);
  background: rgba(255, 255, 255, 0.7);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
}

.mock-shape {
  position: absolute;
  border-radius: 999px;
  opacity: 0.88;
}

.shape-a1 {
  width: 220px;
  height: 120px;
  left: 24px;
  bottom: 34px;
  background: #6f8b85;
}

.shape-a2 {
  width: 170px;
  height: 92px;
  right: -20px;
  bottom: 10px;
  background: #315447;
}

.shape-b1 {
  width: 160px;
  height: 160px;
  left: 36px;
  bottom: 24px;
  border-radius: 50%;
  background: #eeb2a2;
}

.shape-b2 {
  width: 230px;
  height: 58px;
  right: -35px;
  top: 70px;
  background: #1f1f1f;
  transform: rotate(-12deg);
}

.shape-c1 {
  width: 130px;
  height: 130px;
  right: 30px;
  top: 76px;
  border-radius: 30%;
  background: #563b86;
}

.shape-c2 {
  width: 230px;
  height: 24px;
  left: -12px;
  top: 98px;
  background: #ffffff;
  transform: rotate(18deg);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.card-title {
  margin: 0;
  font-size: clamp(28px, 3.3vw, 46px);
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.card-text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.45;
}

.card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.site-footer {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: var(--ink-soft);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.site-footer a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  background: #ece7a6;
  border-radius: 6px;
  padding: 1px 6px;
}

.site-footer a:hover {
  background: #e3dd90;
}

.legal-wrap {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
}

.legal-sidebar,
.legal-main,
.support-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.legal-sidebar {
  padding: 16px;
  position: sticky;
  top: 18px;
  align-self: start;
}

.legal-sidebar h2 {
  margin: 0 0 10px;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-sidebar a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--ink-soft);
}

.legal-sidebar a:hover,
.legal-sidebar a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface-alt);
}

.legal-main {
  padding: 18px;
}

.legal-main h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.03em;
}

.legal-main p.lead {
  margin-top: 12px;
  color: var(--ink-soft);
  max-width: 70ch;
  font-size: 17px;
  line-height: 1.5;
}

.legal-main section {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.legal-main h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.legal-main p,
.legal-main li {
  color: #222;
  line-height: 1.55;
  font-size: 16px;
}

.support-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

main > .support-grid {
  margin-top: 28px;
}

.support-card {
  padding: 18px;
}

.support-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.support-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.support-cta {
  margin-top: 10px;
  display: inline-block;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.form-wrap {
  margin-top: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 600;
}

.input-row {
  margin-bottom: 14px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button.btn {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

#formStatus {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}

@media (max-width: 980px) {
  .cards-grid,
  .support-grid,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .legal-wrap {
    grid-template-columns: 1fr;
  }

  .legal-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-shell {
    padding: 16px 14px 44px;
  }

  .brand {
    font-size: 34px;
  }

  .mobile-nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-pill {
    display: none;
    width: 100%;
    border-radius: 16px;
    padding: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .nav-pill.is-open {
    display: flex;
    margin-top: 8px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero p {
    font-size: 17px;
  }

  .capability-body h3 {
    font-size: 28px;
  }
}
