/* Self-hosted fonts (SIL OFL, see /fonts/README.txt). These are Google Fonts'
   own @font-face rules with the URLs pointed at /fonts/, so no request to Google is
   made when the site loads. */
/* Bricolage Grotesque - vietnamese */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/bricolage-grotesque-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Bricolage Grotesque - latin-ext */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/bricolage-grotesque-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Bricolage Grotesque - latin */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/bricolage-grotesque-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Public Sans - vietnamese */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/public-sans-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Public Sans - latin-ext */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/public-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Public Sans - latin */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/public-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Public Sans - vietnamese */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/public-sans-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Public Sans - latin-ext */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/public-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Public Sans - latin */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/public-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Public Sans - vietnamese */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/public-sans-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Public Sans - latin-ext */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/public-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Public Sans - latin */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/public-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Public Sans - vietnamese */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/public-sans-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Public Sans - latin-ext */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/public-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Public Sans - latin */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/public-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #001c3d;
  --bg-1: #052548;
  --bg-2: #0a2e52;
  --line: rgba(255,255,255,0.09);
  --line-soft: rgba(255,255,255,0.05);
  --teal: #22e0c2;
  --teal-soft: #8ff2e3;
  --teal-wash: rgba(34,224,194,0.10);
  --ink: #f2f6fa;
  --muted: #8fa0bc;
  --muted-dim: #5d6d89;
  --display: "Bricolage Grotesque", "Public Sans", sans-serif;
  --body: "Public Sans", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; position: relative; }

/* ---------- backdrop ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--bg);
}
.backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 12% -5%, rgba(34,224,194,0.14), transparent 60%),
    radial-gradient(ellipse 40% 40% at 100% 15%, rgba(34,224,194,0.07), transparent 55%);
}
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------- header ---------- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0;
  position: relative;
  z-index: 2;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 30px; height: 30px; display: block; border-radius: 7px; }
.brand span {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  margin-left: 36px;
  transition: color 0.15s ease;
}
nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 60px;
}
.hero-mark {
  position: absolute;
  right: -2%;
  top: 8%;
  width: 42%;
  height: auto;
  max-width: 620px;
  pointer-events: none;
  filter: drop-shadow(0 30px 70px rgba(0,0,0,0.4));
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--teal-soft);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  margin-bottom: 30px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-wash);
}
h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 30px;
  text-wrap: balance;
}
h1 .accent { color: var(--teal); }
.lede {
  font-size: 1.2rem;
  line-height: 1.62;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 56px;
}

.hero-rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- process ---------- */
.process {
  padding: 84px 0 100px;
  position: relative;
  z-index: 2;
}
.process-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}
.process-head h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
}
.process-head p {
  color: var(--muted-dim);
  font-size: 0.95rem;
  margin: 0;
  max-width: 34ch;
  text-align: right;
}

.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
}
.flow::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 3%;
  right: 3%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
}
.node {
  position: relative;
  padding: 0 20px 0 0;
}
.node:last-child { padding-right: 0; }
.node .dot {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--teal-soft);
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.node:hover .dot {
  border-color: var(--teal);
  background: var(--teal-wash);
  transform: translateY(-3px);
}
.node .t {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.node .d {
  color: var(--muted-dim);
  font-size: 0.86rem;
  line-height: 1.55;
  padding-right: 8px;
}

/* ---------- about strip ---------- */
.about {
  padding: 20px 0 100px;
  border-top: 1px solid var(--line);
}
.about-grid {
  padding-top: 84px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
}
.about-grid h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
  max-width: 12ch;
}
.about-grid .copy p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 20px;
}
.about-grid .copy p:last-child { margin-bottom: 0; }
.about-grid .copy strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
footer .brand span { font-size: 0.92rem; }
footer .brand img { width: 24px; height: 24px; }
.foot-links {
  display: flex;
  gap: 24px;
  order: 2;
}
.foot-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.86rem;
  transition: color 0.15s ease;
}
.foot-links a:hover { color: var(--ink); }
.foot-meta { order: 3; }
@media (max-width: 600px) {
  footer { flex-direction: column; align-items: flex-start; }
  .foot-links { order: unset; }
  .foot-meta { order: unset; }
}
.foot-meta {
  color: var(--muted-dim);
  font-size: 0.82rem;
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .process-head { flex-direction: column; align-items: flex-start; }
  .process-head p { text-align: left; }
}
@media (max-width: 760px) {
  nav { display: none; }
  .hero-mark { width: 55%; max-width: 260px; opacity: 0.5; }
  .flow { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .flow::before { display: none; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .hero { padding-top: 64px; }
  .lede { margin-bottom: 44px; }
  .process, .about { padding-top: 56px; padding-bottom: 72px; }
  .about-grid { padding-top: 56px; }
  .flow { grid-template-columns: 1fr; }
}

/* ---------- shared sub-page hero (support, docs) ---------- */
.page-hero { padding: 88px 0 40px; }
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.page-hero .lede { font-size: 1.1rem; line-height: 1.65; color: var(--muted); max-width: 62ch; margin: 0 0 28px; }

/* ---------- support page ---------- */
.card-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  padding: 20px 0 100px;
}
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
}
.card h2 {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 14px;
}
.card p { color: var(--muted); font-size: 0.96rem; line-height: 1.65; margin: 0 0 18px; }
.card p:last-child { margin-bottom: 0; }
.email-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: #002018;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 10px;
  transition: opacity 0.15s ease;
}
.email-link:hover { opacity: 0.88; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
  margin-bottom: 10px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}
.checklist li:last-child { margin-bottom: 0; }

/* ---------- docs page ---------- */
.version-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.8rem;
  color: var(--teal-soft);
  background: var(--teal-wash);
  border: 1px solid rgba(34,224,194,0.25);
  padding: 6px 12px;
  border-radius: 999px;
}
.doc-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding: 20px 0 100px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.toc a {
  text-decoration: none;
  color: var(--muted-dim);
  font-size: 0.88rem;
  padding: 7px 0;
  border-left: 2px solid transparent;
  padding-left: 12px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.toc a:hover { color: var(--ink); border-color: var(--line); }
.doc-section { margin-bottom: 56px; scroll-margin-top: 40px; }
.doc-section:last-child { margin-bottom: 0; }
.doc-section h2 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.doc-section p { color: var(--muted); font-size: 0.98rem; line-height: 1.7; margin: 0 0 16px; }
.doc-section p:last-child { margin-bottom: 0; }
.doc-section ul { margin: 0 0 16px; padding-left: 20px; color: var(--muted); font-size: 0.96rem; line-height: 1.75; }
.doc-section ul:last-child { margin-bottom: 0; }
.doc-section strong { color: var(--ink); font-weight: 600; }
.doc-section code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--teal-soft);
}
.section-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.section-tile {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
}
.section-tile .t { font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.section-tile .d { color: var(--muted-dim); font-size: 0.84rem; line-height: 1.55; }
.note {
  background: var(--teal-wash);
  border: 1px solid rgba(34,224,194,0.2);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}
.note strong { color: var(--teal-soft); }
.link-teal { color: var(--teal-soft); }
.link-inherit { color: inherit; }
.back-link {
  display: inline-block;
  text-decoration: none;
  color: var(--muted-dim);
  font-size: 0.85rem;
  margin-bottom: 18px;
  transition: color 0.15s ease;
}
.back-link:hover { color: var(--teal-soft); }

/* ---------- docs hub ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 20px 0 100px;
}
.product-card {
  display: block;
  text-decoration: none;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.product-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.product-card .kicker {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-soft);
  margin-bottom: 10px;
}
.product-card h2 {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--ink);
}
.product-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 16px;
}
.product-card .go {
  color: var(--teal-soft);
  font-size: 0.86rem;
  font-weight: 600;
}
.product-card.placeholder {
  border-style: dashed;
  opacity: 0.5;
}
.product-card.placeholder:hover { border-color: var(--line); transform: none; }

@media (max-width: 700px) {
  .product-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .card-row { grid-template-columns: 1fr; }
  .doc-layout { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .toc a { padding: 4px 0; border-left: none; padding-left: 0; }
  .section-grid { grid-template-columns: 1fr; }
}
