/* Product display faces, self-hosted. Subset to the glyphs in the three product
   names ("Guardian Chart", "CharleyBarley", "BamBoast"); anything else falls back to Georgia. */
@font-face { font-family: "DM Serif Display"; font-weight: 400; font-display: swap; src: url("assets/fonts/dm-serif-display-400.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-weight: 600; font-display: swap; src: url("assets/fonts/lora-600.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 700; font-display: swap; src: url("assets/fonts/playfair-display-700.woff2") format("woff2"); }

:root {
  --ink: #07152f;
  --ink-2: #0e2044;
  --muted: #5f6b82;
  --text: #07152f;
  --subtle: #71809a;
  --nav-ink: #4c5870;
  --line: rgba(7, 21, 47, 0.1);
  --line-strong: rgba(7, 21, 47, 0.22);
  --bg: #fbfcff;
  --surface: #ffffff;
  --header-bg: rgba(251, 252, 255, 0.8);
  --btn-bg: #07152f;
  --btn-ink: #ffffff;
  --link: #126df6;
  --gradient-start: #07152f;
  --glow-1: rgba(19, 198, 244, 0.1);
  --glow-2: rgba(92, 43, 217, 0.05);
  --panel-bg: #07152f;
  --panel-line: transparent;
  --blue: #126df6;
  --cyan: #13c6f4;
  --violet: #5c2bd9;
  --brand-gradient: linear-gradient(105deg, var(--cyan) 0%, var(--blue) 45%, var(--violet) 100%);
  --radius: 20px;
  --shadow: 0 28px 80px rgba(7, 21, 47, 0.12);
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  color-scheme: light;
}

/* Dark theme: follows the system unless the visitor picks one with the toggle. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text: #e9eef8;
    --muted: #9aa7bd;
    --subtle: #8391a8;
    --nav-ink: #b3bfd3;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.22);
    --bg: #050d1d;
    --surface: #0b1730;
    --header-bg: rgba(5, 13, 29, 0.78);
    --btn-bg: #ffffff;
    --btn-ink: #07152f;
    --link: #5aa9ff;
    --gradient-start: #ffffff;
    --glow-1: rgba(19, 198, 244, 0.12);
    --glow-2: rgba(92, 43, 217, 0.12);
    --panel-bg: #0a1631;
    --panel-line: rgba(255, 255, 255, 0.08);
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --text: #e9eef8;
  --muted: #9aa7bd;
  --subtle: #8391a8;
  --nav-ink: #b3bfd3;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.22);
  --bg: #050d1d;
  --surface: #0b1730;
  --header-bg: rgba(5, 13, 29, 0.78);
  --btn-bg: #ffffff;
  --btn-ink: #07152f;
  --link: #5aa9ff;
  --gradient-start: #ffffff;
  --glow-1: rgba(19, 198, 244, 0.12);
  --glow-2: rgba(92, 43, 217, 0.12);
  --panel-bg: #0a1631;
  --panel-line: rgba(255, 255, 255, 0.08);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 0%, var(--glow-1), transparent 32rem),
    radial-gradient(circle at 0% 40%, var(--glow-2), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}
.brand img { width: 36px; height: 36px; }
.brand-name {
  font-size: 21px;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-name strong { font-weight: 850; letter-spacing: -0.02em; }


.header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--nav-ink);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.theme-toggle:hover { border-color: var(--line-strong); color: var(--text); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.header-cta {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.header-cta:hover { border-color: var(--line-strong); transform: translateY(-1px); }

/* Shared type */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--subtle);
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-gradient);
}
.eyebrow-light { color: rgba(255, 255, 255, 0.55); }

h1, h2 { letter-spacing: -0.045em; line-height: 0.98; font-weight: 780; }
h2 { font-size: clamp(40px, 5.2vw, 72px); }

.gradient-text {
  background: linear-gradient(105deg, var(--gradient-start) 5%, var(--blue) 55%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero */
.hero { padding-block: clamp(56px, 9vw, 110px) clamp(48px, 7vw, 90px); overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}
.hero h1 { font-size: clamp(52px, 7.4vw, 104px); }
.lede {
  margin-top: 28px;
  max-width: 600px;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.65;
  color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--btn-bg); color: var(--btn-ink); box-shadow: 0 12px 30px rgba(7, 21, 47, 0.18); }
.button-primary:hover { box-shadow: 0 16px 36px rgba(18, 109, 246, 0.28); }
.button-secondary { background: var(--surface); border: 1px solid var(--line); }
.button-secondary:hover { border-color: var(--line-strong); }

.hero-mark {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1;
  justify-self: center;
  display: grid;
  place-items: center;
}
.hero-mark img {
  position: relative;
  z-index: 2;
  width: 62%;
  filter: drop-shadow(0 30px 40px rgba(18, 109, 246, 0.22));
  animation: float 8s ease-in-out infinite;
}
.orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(18, 109, 246, 0.14); }
.orbit-outer { inset: 0; }
.orbit-inner { inset: 14%; border-color: rgba(92, 43, 217, 0.12); }
.hero-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(19, 198, 244, 0.2), rgba(92, 43, 217, 0.08) 55%, transparent 72%);
  filter: blur(20px);
}

/* Sections */
.section { padding-block: clamp(72px, 10vw, 120px); }
.section-tight { padding-top: 0; }
.section-heading {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}
.section-heading > p {
  max-width: 460px;
  justify-self: end;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
/* Each card takes its colors and display face from the product's own site. */
.product-card {
  --card-bg: var(--surface);
  --card-ink: var(--text);
  --card-muted: var(--muted);
  --card-accent: var(--blue);
  --card-glow: rgba(18, 109, 246, 0.12);
  --card-line: var(--line);
  --card-font: inherit;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--card-ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -120px;
  top: -130px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--card-glow), transparent 70%);
  pointer-events: none;
}

.product-chronicle {
  --card-bg: linear-gradient(160deg, #f8fbfe 0%, #e6f1fb 100%);
  --card-ink: #042c53;
  --card-muted: #475569;
  --card-accent: #185fa5;
  --card-glow: rgba(55, 138, 221, 0.18);
  --card-line: #d6e6f5;
  --card-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Helvetica, Arial, sans-serif;
}
.product-guardian {
  --card-bg: linear-gradient(150deg, #0f2035 0%, #162c46 60%, #1c3553 100%);
  --card-ink: #ffffff;
  --card-muted: rgba(255, 255, 255, 0.7);
  --card-accent: #4ddbe8;
  --card-glow: rgba(27, 189, 212, 0.3);
  --card-line: transparent;
  --card-font: "DM Serif Display", Georgia, serif;
}
.product-charley {
  --card-bg: linear-gradient(160deg, #ffffff 0%, #f4f6f7 55%, #e6edf1 100%);
  --card-ink: #2e4257;
  --card-muted: #56636f;
  --card-accent: #5e7363;
  --card-glow: rgba(157, 176, 167, 0.35);
  --card-line: #e4e9ec;
  --card-font: "Lora", Georgia, serif;
}
.product-bamboast {
  --card-bg: linear-gradient(160deg, #fff8f6 0%, #fceeea 100%);
  --card-ink: #2e3d24;
  --card-muted: #617852;
  --card-accent: #3e5032;
  --card-glow: rgba(212, 175, 55, 0.22);
  --card-line: #f3dcd5;
  --card-font: "Playfair Display", Georgia, serif;
}

/* Dark theme: keep each brand's palette, shifted onto a dark ground. */
:root[data-theme="dark"] .product-chronicle {
  --card-bg: linear-gradient(160deg, #061a33 0%, #0c3260 100%);
  --card-ink: #e6f1fb;
  --card-muted: #b5d4f4;
  --card-accent: #7fb6ee;
  --card-glow: rgba(55, 138, 221, 0.22);
  --card-line: rgba(127, 182, 238, 0.18);
}
:root[data-theme="dark"] .product-guardian { --card-line: rgba(77, 219, 232, 0.16); }
:root[data-theme="dark"] .product-charley {
  --card-bg: linear-gradient(160deg, #1b2a2d 0%, #1f3034 55%, #243a3d 100%);
  --card-ink: #e6edf1;
  --card-muted: #b7c9d3;
  --card-accent: #9db0a7;
  --card-glow: rgba(157, 176, 167, 0.18);
  --card-line: rgba(157, 176, 167, 0.18);
}
:root[data-theme="dark"] .product-bamboast {
  --card-bg: linear-gradient(160deg, #222c1b 0%, #2e3d24 100%);
  --card-ink: #fceeea;
  --card-muted: #e2cfc8;
  --card-accent: #d4af37;
  --card-glow: rgba(212, 175, 55, 0.18);
  --card-line: rgba(212, 175, 55, 0.18);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .product-chronicle {
    --card-bg: linear-gradient(160deg, #061a33 0%, #0c3260 100%);
    --card-ink: #e6f1fb;
    --card-muted: #b5d4f4;
    --card-accent: #7fb6ee;
    --card-glow: rgba(55, 138, 221, 0.22);
    --card-line: rgba(127, 182, 238, 0.18);
  }
  :root:not([data-theme="light"]) .product-guardian { --card-line: rgba(77, 219, 232, 0.16); }
  :root:not([data-theme="light"]) .product-charley {
    --card-bg: linear-gradient(160deg, #1b2a2d 0%, #1f3034 55%, #243a3d 100%);
    --card-ink: #e6edf1;
    --card-muted: #b7c9d3;
    --card-accent: #9db0a7;
    --card-glow: rgba(157, 176, 167, 0.18);
    --card-line: rgba(157, 176, 167, 0.18);
  }
  :root:not([data-theme="light"]) .product-bamboast {
    --card-bg: linear-gradient(160deg, #222c1b 0%, #2e3d24 100%);
    --card-ink: #fceeea;
    --card-muted: #e2cfc8;
    --card-accent: #d4af37;
    --card-glow: rgba(212, 175, 55, 0.18);
    --card-line: rgba(212, 175, 55, 0.18);
  }
}

.product-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.product-logo { width: 56px; height: 56px; object-fit: contain; }
.product-guardian .product-logo { filter: drop-shadow(0 0 14px rgba(77, 219, 232, 0.35)); }
.product-bamboast .product-logo { border-radius: 14px; box-shadow: 0 8px 20px rgba(62, 80, 50, 0.18); }
.product-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--card-accent);
  opacity: 0.85;
}
.product-card h3 {
  margin-bottom: 12px;
  font-family: var(--card-font);
  font-size: clamp(34px, 3.2vw, 42px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.product-bamboast h3 { font-weight: 700; }
.product-chronicle h3 { font-weight: 700; letter-spacing: -0.035em; }
.product-chronicle .product-logo { border-radius: 14px; box-shadow: 0 0 0 1px rgba(4, 44, 83, 0.08), 0 8px 20px rgba(24, 95, 165, 0.15); }
.product-card p { max-width: 440px; font-size: 15px; line-height: 1.65; color: var(--card-muted); }

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 13px;
  font-weight: 800;
  color: var(--card-accent);
}
.product-link span { transition: transform 0.2s ease; }
.product-link::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.product-card:hover .product-link span { transform: translate(3px, -3px); }

/* In the works */
.pipeline { margin-top: 40px; }
.pipeline-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--subtle);
}
.pipeline-heading::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pipeline-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pipeline-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
a.pipeline-item { transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
a.pipeline-item:hover { transform: translateY(-2px); border-style: solid; background: var(--surface); }
.pipeline-icon { width: 48px; height: 48px; border-radius: 12px; }
.pipeline-icon-vela { background: #060b18; }
.pipeline-item h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 17px; letter-spacing: -0.01em; }
.pipeline-item p { font-size: 14px; line-height: 1.55; color: var(--muted); }
.pipeline-arrow { font-size: 12px; font-weight: 800; color: var(--link); transition: transform 0.2s ease; }
a.pipeline-item:hover .pipeline-arrow { transform: translate(2px, -2px); }

/* Approach */
.approach-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  padding: clamp(36px, 6vw, 76px);
  border-radius: calc(var(--radius) + 8px);
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(19, 198, 244, 0.15), transparent 22rem),
    radial-gradient(circle at 70% 95%, rgba(92, 43, 217, 0.16), transparent 24rem),
    var(--panel-bg);
  border: 1px solid var(--panel-line);
}
.approach-copy > p {
  margin-top: 26px;
  max-width: 500px;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.66);
}
.principles { list-style: none; margin: 0; padding: 0; align-self: center; }
.principles li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.principles li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.principle-num { padding-top: 4px; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; color: var(--cyan); }
.principles h3 { margin-bottom: 6px; font-size: 19px; letter-spacing: -0.01em; }
.principles p { font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, 0.6); }

/* Contact */
.contact-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: center; }
.contact-copy > p:not(.eyebrow) {
  margin-top: 24px;
  max-width: 480px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}
.contact-copy h2 { font-size: clamp(36px, 4.2vw, 56px); max-width: 560px; }
.contact-email { margin-top: 32px; }

.support-list { display: grid; gap: 10px; }
.support-heading {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--subtle);
}
.support-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.support-item:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.support-item img { width: 40px; height: 40px; object-fit: contain; }
.support-icon-rounded { border-radius: 10px; }
.support-item strong { display: block; font-size: 15px; }
.support-item small { display: block; font-size: 13px; color: var(--muted); }
.support-arrow { font-size: 14px; font-weight: 800; color: var(--link); transition: transform 0.2s ease; }
.support-item:hover .support-arrow { transform: translate(3px, -3px); }

/* Legal pages */
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(44px, 6vw, 72px); }
.legal-meta { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--subtle); }
.legal-lede {
  margin: 36px 0 12px;
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.7;
}
.legal h2 { margin: 44px 0 12px; font-size: 22px; letter-spacing: -0.02em; line-height: 1.3; font-weight: 750; }
.legal p, .legal li { font-size: 16px; line-height: 1.75; color: var(--muted); }
.legal p + p { margin-top: 14px; }
.legal strong { color: var(--text); }
.legal ul { margin: 12px 0 0; padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal-inner a:not(.button) { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 40px;
}
.site-footer .brand img { width: 32px; height: 32px; }
.site-footer .brand-name { font-size: 19px; }
.footer-meta a:hover, .footer-meta a[aria-current] { color: var(--text); }
.footer-meta { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 13px; font-weight: 600; color: var(--subtle); }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-mark { width: min(300px, 80%); justify-self: start; order: -1; }
  .section-heading, .approach-panel, .contact-inner { grid-template-columns: 1fr; }
  .section-heading { gap: 20px; }
  .section-heading > p { justify-self: start; }
  .product-grid, .pipeline-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 300px; }
  .approach-panel { gap: 40px; }
  .contact-inner { gap: 48px; }
}

@media (max-width: 560px) {
  .header-inner { height: 64px; }
  .brand-name { font-size: 19px; }
  .brand img { width: 32px; height: 32px; }
  .hero-mark { width: 200px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .contact-email { display: flex; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { flex-direction: column; gap: 6px; }
}
