/* Clipath landing page.
   Dark by design: the app is a dark-mode utility and the page should feel like
   the same product. */

:root {
  --bg: #08080c;
  --bg-2: #0d0d14;
  --surface: #12121b;
  --surface-2: #171722;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #edeef4;
  --text-2: #a0a0b4;
  --text-3: #6e6e84;
  --accent: #6e6bff;
  --accent-2: #22d3ee;
  --accent-soft: rgba(110, 107, 255, 0.14);
  --ok: #34d399;
  --radius: 14px;
  --max: 1120px;
  /* Inter carries no Thai, so Noto Sans Thai has to sit directly behind it:
     the browser falls through per character, and anything further down the
     list would only be reached if both were missing. */
  --font: "Inter", "Noto Sans Thai", "Segoe UI Variable Text", "Segoe UI",
    system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", ui-monospace, "SF Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  letter-spacing: -0.022em;
  margin: 0;
  font-weight: 640;
}

p {
  margin: 0;
}

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

code,
kbd,
.mono {
  font-family: var(--mono);
  font-size: 0.9em;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------------------------------------------------------------- nav ----- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8, 8, 12, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(8, 8, 12, 0.9);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 640;
  letter-spacing: -0.02em;
  font-size: 17px;
}
.brand img {
  width: 26px;
  height: 26px;
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14.5px;
  color: var(--text-2);
}
.nav-links a:hover {
  color: var(--text);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  font-size: 12.5px;
}
.lang button {
  background: none;
  border: 0;
  color: var(--text-3);
  /* Thai needs headroom for tone marks; a tight line-height clips them. */
  padding: 3px 11px;
  line-height: 1.9;
  cursor: pointer;
  font: inherit;
  transition: 0.18s;
}
.lang button[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 11px;
  border: 1px solid var(--border);
  font-size: 14.5px;
  font-weight: 560;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.3, 1), background 0.18s,
    border-color 0.18s, box-shadow 0.18s;
  background: var(--surface);
  color: var(--text);
}
.btn:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 24px -8px rgba(110, 107, 255, 0.85);
}
.btn-primary:hover {
  box-shadow: 0 12px 34px -10px rgba(110, 107, 255, 0.95);
}
.btn-sm {
  padding: 8px 15px;
  font-size: 13.5px;
}

/* --------------------------------------------------------------- hero ----- */

.hero {
  position: relative;
  padding: 150px 0 90px;
  overflow: hidden;
}

/* Animated field behind the hero: a slow-drifting grid with an accent bloom.
   Purely decorative, and it stops moving under prefers-reduced-motion. */
.field {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 900px;
  pointer-events: none;
  z-index: 0;
}
.field .grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 32%, #000 30%, transparent 78%);
  animation: drift 28s linear infinite;
}
.field .bloom {
  position: absolute;
  left: 50%;
  top: 12%;
  width: 780px;
  height: 480px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(110, 107, 255, 0.3),
    rgba(34, 211, 238, 0.08) 45%,
    transparent 70%
  );
  filter: blur(28px);
  animation: pulse 9s ease-in-out infinite;
}
@keyframes drift {
  to {
    background-position: 58px 58px, 58px 58px;
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.75;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.06);
  }
}

.hero .wrap {
  position: relative;
  z-index: 1;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 26px;
}
.pill b {
  color: var(--text);
  font-weight: 560;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
}

.hero h1 {
  font-size: clamp(32px, 5.6vw, 60px);
  max-width: 1000px;
  margin-inline: auto;
  font-weight: 680;
}
/* Each half of the headline gets its own line. Thai has no spaces between
   words, so left to wrap freely it breaks mid-word; controlling the break
   point here is the only way to keep both languages reading cleanly. */
.hero h1 span {
  display: block;
}
.hero h1 .grad {
  background: linear-gradient(100deg, #a5a3ff, #22d3ee 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  margin: 22px auto 0;
  max-width: 58ch;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-2);
}
.hero .cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
}
.hero .meta {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-3);
}

/* ------------------------------------------------------------- window ----- */
/* A drawn mock-up of the editor rather than a screenshot: it stays legible at
   any width and never leaks whatever happened to be on a real desktop. */

.shot {
  position: relative;
  margin: 62px auto 0;
  max-width: 940px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03);
  overflow: hidden;
}
.titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
}
.tl-dots {
  display: flex;
  gap: 6px;
  margin-right: 6px;
}
.tl-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #33333f;
}
.shot-body {
  padding: 18px;
}
.shot-head {
  font-size: 13.5px;
  color: var(--text-2);
}
.shot-head b {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 560;
}
.tools {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 16px auto;
  padding: 7px;
  width: fit-content;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
}
.tools i {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  font-style: normal;
  color: var(--text-2);
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.tools i svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tools i.on {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
.canvas {
  position: relative;
  /* Matches the demo's viewBox, so the whole mock-up fits with nothing
     cropped and no letterboxing at any width. */
  aspect-ratio: 640 / 300;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

/* ---- the running demo ---------------------------------------------------- */

.demo {
  display: block;
  width: 100%;
  height: 100%;
}
/* The mocked screenshot: an editor, syntax-coloured, so it reads as a real
   screen rather than a wireframe. */
.d-code {
  font-family: var(--mono);
  font-size: 9px;
}
.d-ln {
  font-family: var(--mono);
  font-size: 8px;
  fill: rgba(255, 255, 255, 0.24);
  text-anchor: end;
}
.d-side {
  font-family: var(--mono);
  font-size: 8.5px;
  fill: rgba(255, 255, 255, 0.44);
}
.d-term {
  font-family: var(--mono);
  font-size: 8.5px;
}
.c-kw {
  fill: #c792ea;
}
.c-str {
  fill: #a5e07a;
}
.c-fn {
  fill: #82aaff;
}
.c-var {
  fill: #f0d9a0;
}
.c-pl {
  fill: #b9c4dd;
}
.d-note {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  fill: #ff453a;
}
.d-badge circle {
  fill: #ff453a;
}
.d-badge text {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  fill: #fff;
  text-anchor: middle;
}
.d-handle circle {
  fill: #fff;
  stroke: var(--accent);
  stroke-width: 2;
}

/* Every annotation starts hidden and is revealed as its tool comes up. The
   ones already drawn stay on screen, so the canvas fills the way a real
   editing session does. */
.ink {
  opacity: 0;
  transition: opacity 0.35s ease;
}
.ink.in {
  opacity: 1;
}
/* Strokes draw themselves; pathLength="1" makes the dash maths independent of
   the actual path length. */
#ink-arrow path,
#ink-rect path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.55s ease-out;
}
#ink-arrow.in path,
#ink-rect.in path {
  stroke-dashoffset: 0;
}
/* transform-box defaults to view-box for SVG, so these origins are plain
   user units from the viewBox corner. */
#ink-highlighter rect {
  transform: scaleX(0);
  transform-origin: 168px 133px;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.3, 1);
}
#ink-highlighter.in rect {
  transform: scaleX(1);
}
#ink-text text {
  transform: translateY(6px);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.3, 1);
}
#ink-text.in text {
  transform: translateY(0);
}
#ink-blur g {
  opacity: 0;
  transition: opacity 0.45s ease;
}
#ink-blur.in g {
  opacity: 1;
}
#ink-counter .d-badge {
  transform: scale(0);
  transition: transform 0.32s cubic-bezier(0.3, 1.5, 0.5, 1);
}
#ink-counter .d-badge:nth-child(1) {
  transform-origin: 150px 87px;
}
#ink-counter .d-badge:nth-child(2) {
  transform-origin: 150px 132px;
  transition-delay: 0.16s;
}
#ink-counter .d-badge:nth-child(3) {
  transform-origin: 150px 218px;
  transition-delay: 0.32s;
}
#ink-counter.in .d-badge {
  transform: scale(1);
}
#ink-crop rect,
#ink-crop path,
#ink-crop .d-handle {
  transform: scale(1.1);
  transform-origin: 320px 150px;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.3, 1);
}
#ink-crop.in rect,
#ink-crop.in path,
#ink-crop.in .d-handle {
  transform: scale(1);
}

/* The pointer sits over the whole mock-up rather than inside the canvas SVG,
   because the run ends on the Copy Path button — which is outside it. */
.d-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 19px;
  height: 19px;
  z-index: 5;
  opacity: 0;
  transform: translate(0, 0);
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55));
}
.d-cursor.on {
  opacity: 1;
}
.d-cursor svg {
  width: 100%;
  height: 100%;
  display: block;
}

.d-dims {
  font-family: var(--mono);
  font-size: 8.5px;
  fill: #fff;
  text-anchor: middle;
}
/* The capture scrim only fades; the marquee is already at its final size and
   the drag is carried by the pointer travelling corner to corner. */
#ink-capture {
  transition: opacity 0.4s ease;
}

/* The run opens on the whole screen, small, with the selection drawn over it;
   taking the region zooms that selection up to become the image being edited.
   `pre` is the before state, and the script drops it once the region is taken. */
.d-shot {
  transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.demo.pre .d-shot {
  transform: translate(121.6px, 56.8px) scale(0.62);
}

.demo-caption {
  margin-top: 14px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-3);
  min-height: 20px;
}
.demo-caption b {
  color: var(--text);
  font-weight: 560;
  margin-right: 8px;
}

.shot-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  /* Room above the buttons for the toast, which would otherwise land on the
     caption line. */
  margin-top: 44px;
  position: relative;
}
/* The toast belongs to the Copy Path button, so it hangs off the button rather
   than off the centre of the row — where it sat above Copy Image instead. */
.chip-anchor {
  position: relative;
  display: inline-flex;
}
.chip.pressed {
  transform: scale(0.94);
  filter: brightness(1.15);
}
.chip {
  transition: transform 0.15s, filter 0.15s;
}
.demo-toast {
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translate(-50%, 6px);
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--ok);
  color: #06281c;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.demo-toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.chip {
  padding: 8px 15px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-2);
}
.chip.primary {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

/* --------------------------------------------------------- terminal ------- */

.term {
  margin: 34px auto 0;
  max-width: 620px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #06060a;
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 13.5px;
  text-align: left;
  color: var(--text-2);
}
.term .prompt {
  color: var(--accent-2);
}
.term .typed {
  color: var(--text);
}
.caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ------------------------------------------------------------ sections ---- */

section {
  padding: 96px 0;
  position: relative;
}
.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}
.eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(27px, 3.6vw, 40px);
}
.section-head p {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 17px;
}

.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), rgba(18, 18, 27, 0.4));
  position: relative;
}
.step .n {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: #b6b4ff;
  font-family: var(--mono);
  font-size: 13px;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.step p {
  color: var(--text-2);
  font-size: 14.5px;
}

/* feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.22s, transform 0.22s, background 0.22s;
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  background: var(--surface-2);
}
.card .ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  margin-bottom: 16px;
}
.card .ico svg {
  width: 19px;
  height: 19px;
  stroke: #b6b4ff;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 {
  font-size: 16.5px;
  margin-bottom: 8px;
}
.card p {
  color: var(--text-2);
  font-size: 14.5px;
}

.card.wide {
  grid-column: span 2;
}

/* stat row */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 22px;
}
.stat {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  background: var(--surface);
}
.stat b {
  display: block;
  font-size: 27px;
  font-weight: 660;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #fff, #a5a3ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span {
  font-size: 13.5px;
  color: var(--text-2);
}

/* install */
.install {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: start;
}
.olist {
  counter-reset: s;
  display: grid;
  gap: 18px;
}
.olist li {
  list-style: none;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
}
.olist li::before {
  counter-increment: s;
  content: counter(s);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: #b6b4ff;
  font-family: var(--mono);
  font-size: 12.5px;
}
.olist h4 {
  font-size: 15.5px;
  margin-bottom: 4px;
}
.olist p {
  color: var(--text-2);
  font-size: 14.5px;
}

.note {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(110, 107, 255, 0.06);
  font-size: 14.5px;
  color: var(--text-2);
}
.note b {
  color: var(--text);
}

.dlcard {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  position: sticky;
  top: 96px;
}
.dlcard h3 {
  font-size: 19px;
}
.dlcard .plat {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  font-size: 14px;
}
.dlcard .plat span {
  color: var(--text-3);
  margin-left: auto;
  font-size: 12.5px;
}
.dlcard .btn {
  width: 100%;
  justify-content: center;
}

/* tables */
.tablewrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 520px;
}
th,
td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  font-weight: 560;
  color: var(--text-3);
  font-size: 12.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
tr:last-child td {
  border-bottom: 0;
}
td:first-child {
  white-space: nowrap;
}
td.desc {
  color: var(--text-2);
}

kbd {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 7px;
  background: #1c1c28;
  color: var(--text);
  font-size: 12.5px;
  white-space: nowrap;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tab {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: 0.18s;
}
.tab[aria-selected="true"] {
  background: var(--accent-soft);
  border-color: rgba(110, 107, 255, 0.4);
  color: var(--text);
}
.panel[hidden] {
  display: none;
}

/* faq */
.faq {
  display: grid;
  gap: 12px;
}
details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 560;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  margin-left: auto;
  color: var(--text-3);
  font-family: var(--mono);
  transition: transform 0.2s;
}
details[open] summary::after {
  transform: rotate(45deg);
}
details p {
  padding: 0 22px 20px;
  color: var(--text-2);
  font-size: 14.5px;
}

/* footer */
footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
  color: var(--text-3);
  font-size: 14px;
}
footer .wrap {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
footer .links {
  margin-left: auto;
  display: flex;
  gap: 22px;
}
footer a:hover {
  color: var(--text);
}

/* Scroll reveal, as progressive enhancement only: the hiding is scoped to the
   .js class the script sets, so without JavaScript — or if the observer never
   fires for an element — the page is simply visible rather than blank. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.3, 1),
    transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 900px) {
  .features,
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .card.wide {
    grid-column: span 2;
  }
  .install {
    grid-template-columns: 1fr;
  }
  .dlcard {
    position: static;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 620px) {
  .features,
  .steps {
    grid-template-columns: 1fr;
  }
  .card.wide {
    grid-column: span 1;
  }
  section {
    padding: 68px 0;
  }
  .hero {
    padding-top: 120px;
  }
}

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

/* Link to the source, in the nav and the footer. */
.gh-link {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.gh-link:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
}
.gh-foot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
