@import url("/ambient-particles.css");

:root {
  color-scheme: light;
  --page: #ffffff;
  --panel: #ffffff;
  --panel-raised: #f2f8f5;
  --border: #d8e1dc;
  --ink: #1d2621;
  --muted: #56635c;
  --action: #176b52;
  --action-hover: #12563f;
  --success: #176b52;
  --warning: #815400;
  --error: #a73535;
  --focus: #176b52;
  --shadow: 0 14px 42px rgba(23, 38, 30, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
}

a {
  color: inherit;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.page {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.content-column {
  max-width: 960px;
  margin: 0 auto;
}

.content-column .hero {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.content-column .hero h1 {
  max-width: 900px;
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.content-column .demo-card {
  max-width: 680px;
}

.nav {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 calc((min(1180px, 100vw - 48px) - 100vw) / 2);
  padding: 10px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

.brand,
.footer-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-label {
  white-space: nowrap;
}

.mark,
.footer-mark {
  display: grid;
  flex: none;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: var(--ink);
}

.mark {
  width: 30px;
  height: 30px;
}

.mark img,
.footer-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.footer-mark {
  width: 28px;
  height: 28px;
}

.beta-badge {
  display: inline-flex;
  min-height: 21px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #b6d7c6;
  border-radius: 999px;
  background: var(--panel-raised);
  color: var(--action-hover);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 28px);
}

.nav-links a {
  padding: 8px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--action);
}

.nav-cta,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 16px;
  background: var(--action);
  color: #ffffff;
  font-size: 13px;
  font-weight: 680;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.nav-cta:hover,
.button:hover {
  background: var(--action-hover);
}

.nav-cta span {
  font-size: 19px;
  line-height: 0.8;
}

.nav-cta {
  min-height: 38px;
  padding: 0 14px;
  white-space: nowrap;
}

main > section + section {
  margin-top: 14px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  padding: clamp(56px, 8vw, 92px) 0 56px;
}

.hero-single {
  grid-template-columns: minmax(0, 800px);
}

.guide-index-hero h1,
.hero h1 {
  max-width: 760px;
  margin: 14px 0 0;
  font-size: clamp(38px, 5.8vw, 66px);
  font-weight: 680;
  line-height: 0.99;
  letter-spacing: -0.058em;
}

.eyebrow {
  display: inline-flex;
  color: var(--action);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.lede {
  max-width: 700px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  font-weight: 430;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.button.secondary {
  border-color: var(--border);
  background: var(--panel);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: #a8c5b5;
  background: var(--panel-raised);
  color: var(--action-hover);
}

.demo-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: var(--panel-raised);
}

.drop {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  background: var(--panel);
}

.drop strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.drop p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.progress {
  height: 8px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5eee9;
}

.progress span {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: inherit;
  background: var(--action);
}

.sheet {
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}

.sheet-head,
.sheet-row {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr 0.9fr 0.9fr;
}

.sheet-head {
  background: var(--panel-raised);
  color: var(--ink);
  font-weight: 700;
}

.sheet-head span,
.sheet-row span {
  min-width: 0;
  padding: 10px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.sheet-row span:nth-child(n + 3) {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.sheet-row.highlight {
  background: var(--panel-raised);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 20px 0 32px;
}

.panel {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(18px, 3vw, 26px);
  background: var(--panel);
}

.panel h2,
.panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 660;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.panel p,
.panel li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.panel p:last-child,
.panel ul:last-child {
  margin-bottom: 0;
}

.panel ul {
  padding-left: 20px;
}

.panel li + li {
  margin-top: 7px;
}

.faq {
  display: grid;
  gap: 10px;
  padding: 20px 0 48px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  background: var(--panel);
}

.faq summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
}

.faq p {
  color: var(--muted);
  line-height: 1.6;
}

.breadcrumbs {
  padding-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a,
.article-links a {
  color: var(--action);
  font-weight: 650;
}

.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 8px 0 40px;
}

.guide-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  background: var(--panel);
  text-decoration: none;
  transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.guide-card:hover {
  transform: translateY(-2px);
  border-color: #a8c5b5;
  background: #fbfdfc;
}

.guide-card span {
  margin-bottom: 14px;
  color: var(--action);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.guide-card strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.guide-card p {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.guide-card b {
  margin-top: auto;
  color: var(--action);
  font-size: 13px;
  font-weight: 650;
}

.article-meta {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.watch-video {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #101d1a;
}

.watch-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #101d1a;
}

.watch-caption {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.quick-answer {
  border-left: 3px solid var(--action);
  border-radius: 0 10px 10px 0;
  padding: 16px 18px;
  background: var(--panel-raised);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

.article-sections {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  padding-bottom: 24px;
}

.article-sections > .panel {
  min-width: 0;
}

.data-table-wrap,
.sample-table-wrap {
  max-width: 100%;
  min-width: 0;
  margin: 18px 0;
  overflow-x: auto;
}

.data-table,
.sample-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.data-table th,
.data-table td,
.sample-table th,
.sample-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.data-table th,
.sample-table th {
  background: var(--panel-raised);
  color: var(--ink);
  font-weight: 650;
}

.data-table td.numeric,
.data-table th.numeric,
.sample-table td.numeric,
.sample-table th.numeric {
  text-align: right;
  white-space: nowrap;
}

.data-table caption,
.sample-table caption {
  padding-bottom: 10px;
  color: var(--muted);
  text-align: left;
}

.formula-wrap {
  overflow-wrap: anywhere;
}

.equation {
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--panel-raised);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

.related,
.article-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 0 40px;
}

.related a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 13px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
}

.related a:hover {
  border-color: #a8c5b5;
  color: var(--action);
}

.footer {
  display: grid;
  grid-template-columns: minmax(190px, 0.82fr) minmax(0, 2.4fr);
  align-items: start;
  gap: clamp(28px, 5vw, 64px);
  margin-top: 32px;
  padding: 30px 0 36px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-brand-block {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 12px;
}

.footer-brand strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.footer-brand-block > p {
  max-width: 250px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.footer-link-group {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 11px;
}

.footer-link-group h2 {
  margin: 0 0 3px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.footer-link-group a {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 520;
  line-height: 1.4;
  text-decoration: none;
}

.footer-link-group a svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 1px;
  fill: none;
  stroke: var(--action);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.footer-link-group a:hover {
  color: var(--action);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .footer {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-brand-block > p {
    max-width: none;
  }
}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 124px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 20px;
    overflow-x: auto;
  }

  .nav-links a {
    white-space: nowrap;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 54px;
  }

  .grid,
  .guide-card-grid {
    grid-template-columns: 1fr;
  }

  .guide-card {
    min-height: 0;
  }

  .demo-card {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .page {
    width: min(100% - 32px, 1180px);
  }

  .nav {
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .nav-cta {
    min-height: 36px;
  }

  .nav-links {
    gap: 18px;
  }

  .hero {
    padding: 42px 0 36px;
  }

  .hero h1,
  .guide-index-hero h1 {
    font-size: clamp(36px, 11vw, 48px);
    line-height: 1.02;
  }

  .lede {
    font-size: 17px;
  }

  .cta-row > .button {
    flex: 1 1 auto;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
  }

  .drop {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
