:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-alt: #eef3f8;
  --text: #101418;
  --muted: #5d6571;
  --line: #dfe5ec;
  --blue: #1267dc;
  --blue-strong: #0757c8;
  --red: #e82f2f;
  --green: #2ba84a;
  --shadow: 0 22px 70px rgba(18, 36, 61, 0.16);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  letter-spacing: 0;
}

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

svg {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(247, 248, 251, 0.84);
  border-bottom: 1px solid rgba(223, 229, 236, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #4ca0ff);
  border-radius: 8px;
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand-mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover,
.footer a:hover {
  color: var(--blue);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 650;
  font-size: 14px;
}

.header-cta,
.button.primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 22px rgba(18, 103, 220, 0.22);
}

.header-cta:hover,
.button.primary:hover {
  background: var(--blue-strong);
}

.button.secondary {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
}

.button svg {
  width: 18px;
  height: 18px;
}

.button path,
.setup-card button path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-toggle {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(520px, 1.22fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(54px, 6vw, 76px) clamp(20px, 5vw, 64px) clamp(42px, 5vw, 58px);
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  max-width: 620px;
  margin: 0 0 22px;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

.trust-row span {
  position: relative;
  padding-left: 18px;
}

.trust-row span::before {
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 999px;
  content: "";
}

.hero-media {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(188, 199, 213, 0.7);
  border-radius: 8px;
  box-shadow: var(--shadow);
  aspect-ratio: 1.22 / 1;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 5%;
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(20px, 5vw, 64px);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
}

.section-heading p,
.setup-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.workflow-step {
  min-height: 310px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.step-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--blue);
  background: #e8f1ff;
  border-radius: 8px;
  font-weight: 750;
}

.workflow-step h3 {
  margin: 18px 0 8px;
  font-size: 19px;
}

.workflow-step p {
  min-height: 76px;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.mini-drop {
  display: grid;
  place-items: center;
  gap: 8px;
  height: 104px;
  color: var(--blue);
  background: var(--surface-alt);
  border: 1px dashed #9db6d8;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
}

.mini-drop svg {
  width: 36px;
  height: 36px;
}

.mini-drop path,
.channel-card path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chunk-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
}

.chunk-list li {
  padding: 8px 10px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.progress-card {
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}

.progress-card div {
  height: 7px;
  margin: 12px 0 8px;
  overflow: hidden;
  background: #dae3ee;
  border-radius: 999px;
}

.progress-card i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--red));
  border-radius: inherit;
}

.progress-card strong {
  color: var(--blue);
}

.channel-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 650;
}

.avatar {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--red), #ffb347);
  border-radius: 999px;
}

.channel-card svg {
  width: 20px;
  height: 20px;
  color: var(--blue);
}

.metadata {
  background: #fff;
  border-block: 1px solid var(--line);
}

.metadata-panel {
  display: grid;
  grid-template-columns: 190px 1fr;
  max-width: 1060px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(18, 36, 61, 0.1);
}

.tabs {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 18px 12px;
  background: var(--surface-alt);
  border-right: 1px solid var(--line);
}

.tabs span {
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 650;
}

.tabs .active {
  color: var(--blue);
  background: #dfefff;
}

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 26px;
}

.fields label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.fields label.wide {
  grid-column: 1 / -1;
}

.fields label > span {
  min-height: 42px;
  padding: 11px 12px;
  color: var(--text);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-weight: 500;
}

.fields .tags {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 8px;
}

.fields .tags::before {
  width: 100%;
  content: "Tags";
}

.fields .tags span {
  min-height: auto;
  padding: 7px 10px;
  color: var(--blue);
  background: #eef5ff;
}

.setup {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: clamp(28px, 7vw, 96px);
  max-width: 1220px;
  margin: 0 auto;
}

.setup-copy h2 {
  margin: 0 0 20px;
  font-size: clamp(34px, 5vw, 58px);
}

.setup-copy ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.setup-copy li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 17px;
}

.setup-copy li::before {
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  content: "";
}

.setup-copy li::after {
  position: absolute;
  left: 6px;
  top: 5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg);
}

.setup-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.window-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.window-dots span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.window-dots span:nth-child(1) {
  background: #ff5f57;
}

.window-dots span:nth-child(2) {
  background: #ffbd2e;
}

.window-dots span:nth-child(3) {
  background: #28c840;
}

.setup-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.setup-card p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.5;
}

.setup-card button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  width: 100%;
  justify-content: center;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 650;
}

.setup-card button svg {
  width: 22px;
  height: 22px;
  color: var(--blue);
}

.setup-card small {
  display: block;
  margin-top: 18px;
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 26px clamp(20px, 5vw, 64px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-copy {
  display: grid;
  gap: 8px;
  max-width: 680px;
}

.footer-copy span {
  color: var(--text);
  font-weight: 700;
}

.footer-copy p,
.footer-copy small {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-content: start;
  justify-content: flex-end;
}

.docs-page {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(54px, 8vw, 96px) clamp(20px, 5vw, 64px);
}

.docs-page h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.98;
}

.docs-page > p {
  max-width: 680px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}

.docs-card {
  margin: 18px 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(18, 36, 61, 0.08);
}

.docs-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.docs-card pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  background: #101418;
  color: #fff;
  border-radius: 7px;
}

.docs-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.5;
}

.legal-page {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(54px, 8vw, 96px) clamp(20px, 5vw, 64px);
}

.legal-hero {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.98;
}

.legal-hero p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}

.legal-section {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: 25px;
  line-height: 1.2;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.legal-section p {
  margin: 0;
}

.legal-section p + p,
.legal-section p + ul {
  margin-top: 14px;
}

.legal-section ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
}

.legal-section strong {
  color: var(--text);
}

.legal-section a {
  color: var(--blue);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav,
  .header-cta {
    display: none;
  }

  .site-header.menu-open .nav {
    position: absolute;
    inset: 65px 16px auto;
    display: grid;
    gap: 4px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-header.menu-open .nav a {
    padding: 12px;
  }

  .nav-toggle {
    display: grid;
    gap: 5px;
    width: 42px;
    height: 42px;
    place-content: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
  }

  .hero,
  .setup {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .hero {
    padding-top: 40px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero-media {
    aspect-ratio: 1 / 1.08;
  }

  .workflow-grid,
  .fields,
  .metadata-panel {
    grid-template-columns: 1fr;
  }

  .tabs {
    grid-auto-flow: column;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workflow-step {
    min-height: auto;
  }

  .footer {
    flex-direction: column;
  }
}
