:root {
  --ink: #182635;
  --ink-soft: #33465a;
  --muted: #5c6e7e;
  --paper: #f4f7f9;
  --surface: #ffffff;
  --line: #dde5ea;
  --accent: #0f8a7d;
  --accent-deep: #0b6b61;
  --accent-wash: #e3f1ef;
  --amber: #d9971e;
  --hero-ink: #10202e;
  --btn-fg: #ffffff;
  --shadow: 0 1px 2px rgba(24, 38, 53, 0.06), 0 8px 24px rgba(24, 38, 53, 0.07);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6edf2;
    --ink-soft: #c2cfd9;
    --muted: #8ba0af;
    --paper: #101922;
    --surface: #18242f;
    --line: #263543;
    --accent: #2fb5a5;
    --accent-deep: #45c9b9;
    --accent-wash: #14312e;
    --amber: #e0a63c;
    --hero-ink: #0b141d;
    --btn-fg: #06211d;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: "Georgia Pro", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 3.9rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.35rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.label {
  font-family: "Cascadia Code", Consolas, "SF Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
  display: block;
  margin-bottom: 0.9rem;
}

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: "Georgia Pro", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand svg { display: block; }
.brand small {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: -0.15rem;
}
nav.main { margin-left: auto; display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
nav.main a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}
nav.main a:hover { color: var(--ink); border-bottom-color: var(--accent); }
nav.main a.active { color: var(--ink); border-bottom-color: var(--accent); }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--btn-fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.25rem;
  border-radius: 3px;
  border: 1px solid var(--accent);
  transition: background 0.15s ease;
  cursor: pointer;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-deep); background: transparent; }

/* ---------- home hero ---------- */
.hero {
  position: relative;
  background: var(--hero-ink);
  color: #e9f1f4;
  overflow: hidden;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .wrap {
  position: relative;
  padding-top: clamp(4rem, 10vw, 7.5rem);
  padding-bottom: clamp(4rem, 10vw, 7.5rem);
}
.hero .label { color: #7fd4c8; }
.hero h1 { color: #f4f9fa; max-width: 16ch; }
.hero h1 em { font-style: normal; color: #7fd4c8; }
.hero p.lede { max-width: 34rem; font-size: 1.15rem; color: #b9c9d2; }
.hero .actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 2rem; }
.hero .btn { color: #06211d; background: #2fb5a5; border-color: #2fb5a5; }
.hero .btn:hover { background: #45c9b9; border-color: #45c9b9; }
.hero .btn.ghost { color: #e9f1f4; border-color: #3a4f60; background: transparent; }
.hero .btn.ghost:hover { border-color: #7fd4c8; color: #7fd4c8; }

/* ---------- inner page header band ---------- */
.page-head {
  position: relative;
  background: var(--hero-ink);
  color: #e9f1f4;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background-image: linear-gradient(105deg, transparent 62%, rgba(47,181,165,0.12) 62.2%, rgba(47,181,165,0.12) 76%, transparent 76.2%, transparent 82%, rgba(224,166,60,0.10) 82.2%);
}
.page-head .label { color: #7fd4c8; margin-bottom: 0.5rem; }
.page-head h1 { color: #f4f9fa; font-size: clamp(2rem, 4.5vw, 2.9rem); margin: 0; }
.page-head p.sub { color: #b9c9d2; max-width: 40rem; margin: 0.8rem 0 0; }

/* product tabs */
.tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.8rem; }
.tabs a {
  text-decoration: none;
  color: #b9c9d2;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border: 1px solid #2c4257;
  border-radius: 999px;
}
.tabs a:hover { color: #7fd4c8; border-color: #7fd4c8; }
.tabs a.active { background: #2fb5a5; border-color: #2fb5a5; color: #06211d; }

/* ---------- sections ---------- */
section { position: relative; padding: clamp(3.5rem, 8vw, 6rem) 0; }
section.tight { padding: clamp(2.5rem, 6vw, 4rem) 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.intro { max-width: 44rem; }
.intro p { color: var(--ink-soft); }
.prose { max-width: 44rem; }
.prose p { color: var(--ink-soft); }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); gap: 1.4rem; margin-top: 2.5rem; }
.pillars.flush { margin-top: 0; }
.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.8rem 1.6rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
section.alt .pillar { background: var(--paper); }
.pillar .glyph { margin-bottom: 1.1rem; }
.pillar p { color: var(--muted); font-size: 0.97rem; flex: 1; }
.pillar a { font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.pillar a:hover { text-decoration: underline; }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 46rem) { .split { grid-template-columns: 1fr; } }
.split .col p { color: var(--ink-soft); }

/* stats */
.stats { background: var(--hero-ink); color: #e9f1f4; }
.stats .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 2rem; }
.stat b {
  display: block;
  font-family: "Cascadia Code", Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
}
.stat b i { font-style: normal; color: var(--amber); }
.stat span { color: #93a8b5; font-size: 0.92rem; display: block; margin-top: 0.35rem; max-width: 18ch; }

/* industries */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.8rem; max-width: 52rem; }
.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.42rem 1.05rem;
  font-size: 0.92rem;
}
section.alt .chip { background: var(--paper); }

/* marketfox */
.mfx {
  background: var(--accent-wash);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 6px;
  padding: clamp(1.8rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
@media (max-width: 46rem) { .mfx { grid-template-columns: 1fr; } }
.mfx .fox {
  font-family: "Georgia Pro", Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.mfx .fox i { font-style: normal; color: var(--accent-deep); }
.mfx ul { margin: 0; padding: 0; list-style: none; }
.mfx li { padding: 0.4rem 0 0.4rem 1.6rem; position: relative; color: var(--ink-soft); }
.mfx li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.85;
}

/* cta band */
.cta-band { background: var(--accent-wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.cta-band h2 { margin-bottom: 0.4em; }
.cta-band p { color: var(--ink-soft); max-width: 36rem; margin: 0 auto 1.6rem; }

/* facts row (about) */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1.4rem; margin-top: 2.2rem; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 1.3rem 1.4rem; }
.fact dt { font-family: "Cascadia Code", Consolas, monospace; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.fact dd { margin: 0.3rem 0 0; font-weight: 600; font-size: 1.05rem; }

/* team */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.4rem; margin-top: 2.5rem; }
.person {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.8rem 1.6rem;
}
.person .mono {
  width: 3.4rem; height: 3.4rem;
  border-radius: 50%;
  background: var(--hero-ink);
  color: #7fd4c8;
  display: flex; align-items: center; justify-content: center;
  font-family: "Georgia Pro", Georgia, serif;
  font-size: 1.15rem; font-weight: 700;
  margin-bottom: 1.1rem;
}
.person h3 { margin-bottom: 0.1em; }
.person .role { color: var(--accent-deep); font-size: 0.88rem; font-weight: 600; margin-bottom: 0.9rem; }
.person p { color: var(--muted); font-size: 0.95rem; }
.person a { font-size: 0.9rem; text-decoration: none; }
.person a:hover { text-decoration: underline; }

/* definition cards */
.defs { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1.2rem; }
.def { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 4px; padding: 1.4rem 1.5rem; }
.def h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.def h3 small { font-family: "Cascadia Code", Consolas, monospace; font-size: 0.68rem; letter-spacing: 0.1em; color: var(--amber); display: block; margin-bottom: 0.3rem; text-transform: uppercase; font-weight: 400; }
.def p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 46rem) { .contact-grid { grid-template-columns: 1fr; } }
form.mock { display: grid; gap: 0.9rem; }
form.mock .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
@media (max-width: 34rem) { form.mock .row2 { grid-template-columns: 1fr; } }
form.mock label { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); display: block; margin-bottom: 0.3rem; }
form.mock input, form.mock textarea {
  width: 100%;
  font: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.65rem 0.8rem;
}
form.mock button {
  font: inherit;
  font-weight: 600;
  background: var(--accent);
  color: var(--btn-fg);
  border: none;
  border-radius: 3px;
  padding: 0.75rem 1.6rem;
  cursor: pointer;
  justify-self: start;
}
form.mock button:hover { background: var(--accent-deep); }
.vcard { border-left: 3px solid var(--accent); padding-left: 1.4rem; margin: 0; }
.vcard dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-top: 1.2rem; font-family: "Cascadia Code", Consolas, monospace; }
.vcard dt:first-child { margin-top: 0; }
.vcard dd { margin: 0.25rem 0 0; color: var(--ink-soft); }
.vcard a { text-decoration: none; }
.vcard a:hover { text-decoration: underline; }

/* footer */
footer.site {
  background: var(--hero-ink);
  color: #93a8b5;
  padding: 3.5rem 0 2.5rem;
  font-size: 0.92rem;
}
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 46rem) { footer .cols { grid-template-columns: 1fr; } }
footer h4 { color: #e9f1f4; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 0.9rem; font-family: "Cascadia Code", Consolas, monospace; font-weight: 600; }
footer a { color: #b9c9d2; text-decoration: none; }
footer a:hover { color: #7fd4c8; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 0.5rem; }
footer .legal {
  border-top: 1px solid #24384a;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
footer .fbrand {
  color: #f4f9fa;
  font-family: "Georgia Pro", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
footer .fbrand small { flex-basis: 100%; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.62rem; color: #7a91a0; font-family: "Segoe UI", system-ui, sans-serif; font-weight: 400; }
