/*
 * Skuery landing page.
 *
 * Deliberately single-theme: this page is a fixed brand statement, so it reads from the
 * constant brand tokens (--sk-ink, --sk-bone, --sk-teal, --sk-scan) and never from the
 * role tokens (--sk-bg, --sk-surface) that flip with the viewer's OS theme. Ink and Bone
 * bands alternate; Scan appears only on Ink, where it clears 9.47:1.
 */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* The page is light in every theme; don't let the UA paint dark scrollbars. */
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--sk-bone);
  color: var(--sk-ink);
  font-family: var(--sk-font-text);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--sk-teal); }

:where(a, button):focus-visible {
  outline: 2px solid var(--sk-teal-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.ln-band.is-ink :where(a, button):focus-visible { outline-color: var(--sk-scan); }

/* ------------------------------------------------------------------ bands */
.ln-band { padding: 92px 0; }
.ln-band.is-ink {
  background: var(--sk-ink);
  color: var(--sk-bone);
}
.ln-band.is-hero { padding: 0 0 96px; overflow: hidden; position: relative; }
.ln-band.is-tight { padding: 68px 0; }
/* A third ground, so two light sections in a row still read as separate bands. */
.ln-band.is-sunken { background: #EDF1EE; }

.ln-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

.ln-band.is-ink .ln-lede,
.ln-band.is-ink .ln-note { color: #9DB5AE; }

/* -------------------------------------------------------------------- type */
.ln-eyebrow {
  font-family: var(--sk-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--sk-teal);
  margin: 0;
}
.ln-band.is-ink .ln-eyebrow { color: var(--sk-scan); }

h1, h2, h3 {
  font-family: var(--sk-font-display);
  font-weight: 600;
  letter-spacing: -0.028em;
  margin: 0;
  text-wrap: balance;
}
.ln-h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; }
.ln-h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; }
.ln-h3 { font-size: 19px; letter-spacing: -0.012em; line-height: 1.3; }

.ln-h1 em { font-style: normal; color: var(--sk-scan); }

.ln-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--sk-slate);
  margin: 0;
  max-width: 58ch;
}
.ln-note {
  font-size: 14.5px;
  color: var(--sk-slate);
  margin: 0;
  max-width: 62ch;
}
p { margin: 0; }

code {
  font-family: var(--sk-font-mono);
  font-size: 0.87em;
  background: rgba(14, 107, 98, 0.08);
  color: var(--sk-teal-deep);
  padding: 1px 5px;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
.ln-band.is-ink code {
  background: rgba(47, 217, 190, 0.12);
  color: var(--sk-scan);
}

.ln-stack { display: flex; flex-direction: column; gap: 18px; }
.ln-stack-lg { display: flex; flex-direction: column; gap: 44px; }
.ln-head { display: flex; flex-direction: column; gap: 14px; max-width: 62ch; }

/* --------------------------------------------------------------------- nav */
.ln-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 0;
}
.ln-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--sk-bone);
  text-decoration: none;
}
.ln-brand svg { width: 38px; height: 38px; flex: none; }
.ln-brand span {
  font-family: var(--sk-font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.ln-nav-links { display: flex; align-items: center; gap: 8px; }
.ln-nav-links a {
  color: #C6D6D0;
  text-decoration: none;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 8px;
}
.ln-nav-links a:hover { color: var(--sk-bone); background: rgba(255, 255, 255, 0.06); }
/* The hero owns the one filled CTA; the nav's is an outline so they don't compete. */
.ln-nav-links .ln-btn { margin-left: 6px; padding: 9px 16px; font-size: 14.5px; }

/* ------------------------------------------------------------------ hero */
/* Text left, the pipeline running top-to-bottom on the right, so the band carries
   both the claim and the proof without a dead half. */
.ln-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 60px;
  align-items: center;
  padding-top: 72px;
}
.ln-hero {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 52ch;
}
.ln-hero .ln-lede { color: #9DB5AE; font-size: 19px; }

.ln-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.ln-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 500;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
}
.ln-btn-primary {
  background: var(--sk-scan);
  border-color: var(--sk-scan);
  color: var(--sk-ink);
}
.ln-btn-primary:hover { background: #55E4CD; border-color: #55E4CD; }
.ln-btn-ghost {
  border-color: #2A4F49;
  color: var(--sk-bone);
}
.ln-btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: #4A756D; }

.ln-btn-solid {
  background: var(--sk-teal);
  border-color: var(--sk-teal);
  color: #FFFFFF;
}
.ln-btn-solid:hover { background: var(--sk-teal-deep); border-color: var(--sk-teal-deep); }

/* ------------------------------------------- convergence diagram (§ hero) */
.ln-merge {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.ln-sources { display: flex; flex-direction: column; gap: 10px; }

.ln-source {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #1C3B36;
  border-radius: 10px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ln-source-name {
  font-family: var(--sk-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #7A968F;
}
.ln-source-value {
  font-family: var(--sk-font-mono);
  font-size: 13px;
  color: #C6D6D0;
  overflow-wrap: anywhere;
}
.ln-source-value b { color: var(--sk-bone); font-weight: 500; }

.ln-arrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--sk-scan);
  padding-left: 4px;
}
.ln-arrow svg { width: 26px; height: 26px; flex: none; transform: rotate(90deg); }
.ln-arrow-label {
  font-family: var(--sk-font-mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #7A968F;
}

.ln-canonical {
  background: rgba(47, 217, 190, 0.06);
  border: 1px solid var(--sk-scan);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ln-canonical-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.ln-canonical-title {
  font-family: var(--sk-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sk-scan);
}
.ln-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(47, 217, 190, 0.14);
  color: var(--sk-scan);
  white-space: nowrap;
}
.ln-pill::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.ln-fields { display: grid; gap: 9px; margin: 0; }
.ln-fields > div {
  display: grid;
  grid-template-columns: minmax(0, 108px) minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}
.ln-fields dt {
  font-family: var(--sk-font-mono);
  font-size: 11px;
  color: #7A968F;
  overflow-wrap: anywhere;
}
.ln-fields dd {
  margin: 0;
  font-family: var(--sk-font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--sk-bone);
  overflow-wrap: anywhere;
}

/* -------------------------------------------------- barcode rule (motif) */
.ln-rule {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}
.ln-rule span { display: block; flex: none; background: var(--sk-teal); border-radius: 1px; }
.ln-band.is-ink .ln-rule span { background: var(--sk-scan); }

/* ------------------------------------------------------------------ steps */
.ln-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(232px, 100%), 1fr));
  gap: 1px;
  background: var(--sk-line);
  border: 1px solid var(--sk-line);
  border-radius: 14px;
  overflow: hidden;
}
.ln-step {
  background: #FFFFFF;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.ln-step-no {
  font-family: var(--sk-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  color: var(--sk-teal);
  font-variant-numeric: tabular-nums;
}
.ln-step p { font-size: 14.5px; color: var(--sk-slate); }

/* ----------------------------------------------------------------- groups */
.ln-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 18px;
}
.ln-group {
  background: #FFFFFF;
  border: 1px solid var(--sk-line);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ln-group p { font-size: 14px; color: var(--sk-slate); }
.ln-group-meta {
  font-family: var(--sk-font-mono);
  font-size: 11.5px;
  color: var(--sk-teal);
  overflow-wrap: anywhere;
}

/* -------------------------------------------------------------------- api */
.ln-api {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
  gap: 20px;
  align-items: start;
}
.ln-code {
  background: #041917;
  border: 1px solid #1C3B36;
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
}
.ln-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid #1C3B36;
  font-family: var(--sk-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #7A968F;
}
.ln-code-status { color: var(--sk-scan); }
.ln-code pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-family: var(--sk-font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  color: #C6D6D0;
  tab-size: 2;
}
.ln-code .k { color: var(--sk-scan); }
.ln-code .s { color: #E4C989; }
.ln-code .n { color: #A8D8F0; }
.ln-code .c { color: #6B857E; }

.ln-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 18px 26px;
  margin: 0;
}
.ln-facts > div { display: flex; flex-direction: column; gap: 4px; }
.ln-facts dt {
  font-family: var(--sk-font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sk-scan);
}
.ln-facts dd { margin: 0; font-size: 14.5px; color: #C6D6D0; }

/* --------------------------------------------------------------- controls */
.ln-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(288px, 100%), 1fr));
  gap: 16px 30px;
}
.ln-list li {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 15px;
  border-left: 2px solid var(--sk-teal);
}
.ln-list strong { font-weight: 600; font-size: 15px; }
.ln-list span { font-size: 14px; color: var(--sk-slate); }

/* ---------------------------------------------------------------- status */
.ln-status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}
.ln-status-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 24px;
  border-radius: 12px;
  border: 1px solid var(--sk-line);
  background: #FFFFFF;
}
.ln-status-col.is-now { border-color: var(--sk-teal); }
.ln-status-label {
  font-family: var(--sk-font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sk-slate);
}
.ln-status-col.is-now .ln-status-label { color: var(--sk-teal); }
.ln-status-col ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; }
.ln-status-col li { font-size: 14.5px; color: var(--sk-slate); }

/* ---------------------------------------------------------------- footer */
.ln-footer {
  background: var(--sk-ink);
  color: var(--sk-bone);
  padding: 72px 0 40px;
}
.ln-footer-cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid #1C3B36;
}
.ln-footer-cta h2 { max-width: 20ch; }
.ln-footer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-size: 13.5px;
  color: #7A968F;
}
.ln-footer-foot a { color: #C6D6D0; }

/* -------------------------------------------------------------- animation */
/*
 * One orchestrated load sequence, then nothing. The scan sweep is the only moving
 * part and it runs a single time — it echoes the mark rather than decorating.
 */
@media (prefers-reduced-motion: no-preference) {
  .ln-rise {
    animation: ln-rise 620ms cubic-bezier(0.22, 0.68, 0.32, 1) both;
  }
  .ln-rise-2 { animation-delay: 90ms; }
  .ln-rise-3 { animation-delay: 180ms; }
  .ln-rise-4 { animation-delay: 300ms; }

  .ln-band.is-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sk-scan), transparent);
    opacity: 0;
    animation: ln-scan 1700ms 620ms ease-in-out both;
    pointer-events: none;
  }
}

@keyframes ln-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes ln-scan {
  0% { opacity: 0; transform: translateY(0); }
  12% { opacity: 0.85; }
  88% { opacity: 0.85; }
  100% { opacity: 0; transform: translateY(min(760px, 78vh)); }
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 1000px) {
  .ln-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
    padding-top: 52px;
  }
  .ln-hero { max-width: 60ch; }
  .ln-band { padding: 68px 0; }
}

@media (max-width: 620px) {
  .ln-wrap { padding: 0 20px; }
  .ln-nav-links a:not(.ln-btn) { display: none; }
  .ln-fields > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
