/* OwnLMS landing — "engineered clarity". Graphite, a blueprint grid, one electric signal. */

@property --tenant {
  syntax: '<color>';
  inherits: true;
  initial-value: #938159;
}

:root {
  --bg: #0a0c0f;
  --bg-2: #07090b;
  --panel: #12161b;
  --panel-2: #181d23;
  --text: #e8ecf1;
  --muted: #8b95a3;
  --faint: #5b6572;
  --line: rgba(232, 236, 241, 0.09);
  --line-2: rgba(232, 236, 241, 0.16);

  --light: #f3f5f7;
  --light-2: #e7ebef;
  --ink: #0a0c0f;
  --ink-muted: #56606c;
  --line-light: rgba(10, 12, 15, 0.1);

  --signal: #c8f31d;
  --signal-dim: rgba(200, 243, 29, 0.14);

  --f-display: 'Miriam Libre', 'Assistant', system-ui, sans-serif;
  --f-body: 'Assistant', 'Segoe UI', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;

  --step--1: clamp(0.84rem, 0.8rem + 0.22vw, 0.95rem);
  --step-0: clamp(1.02rem, 0.96rem + 0.3vw, 1.18rem);
  --step-1: clamp(1.2rem, 1.08rem + 0.6vw, 1.5rem);
  --step-2: clamp(1.35rem, 1.2rem + 0.75vw, 1.75rem);
  --step-4: clamp(2.2rem, 1.6rem + 2.8vw, 3.9rem);
  --step-5: clamp(2.7rem, 1.4rem + 5vw, 5.9rem);

  --space-s: clamp(1rem, 0.91rem + 0.43vw, 1.25rem);
  --space-m: clamp(1.4rem, 1.3rem + 0.6vw, 1.8rem);
  --space-l: clamp(2rem, 1.83rem + 0.87vw, 2.5rem);
  --space-xl: clamp(3rem, 2.74rem + 1.3vw, 3.75rem);
  --space-2xl: clamp(4rem, 3.2rem + 3.5vw, 6.5rem);
  --space-3xl: clamp(5.5rem, 4.3rem + 5vw, 9rem);

  --gutter: clamp(1.25rem, 0.5rem + 4vw, 5rem);
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.9, 0.25, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection {
  background: var(--signal);
  color: var(--ink);
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 6px;
}
.mono {
  font-family: var(--f-mono);
  font-size: 0.85em;
  letter-spacing: 0;
}

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--signal);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
}

/* ---------- surfaces ---------- */
.dark {
  background: var(--bg);
  color: var(--text);
}
.darker {
  background: var(--bg-2);
  color: var(--text);
}
.light {
  background: var(--light);
  color: var(--ink);
}
.grid-bg {
  position: relative;
  isolation: isolate;
}
.grid-bg::before {
  /* Blueprint grid, fading out toward the edges so it frames rather than fills. */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 30%, transparent 85%);
  opacity: 0.7;
}

/* ---------- type ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--f-body);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--muted);
  margin-bottom: var(--space-s);
}
.label span {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.18rem 0.5rem;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  color: var(--signal);
}
.light .label {
  color: var(--ink-muted);
}
.light .label span {
  color: var(--ink);
  border-color: var(--line-light);
  background: var(--signal);
}
.h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--step-4);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.display {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--step-5);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.dim {
  color: var(--muted);
}
.light .dim {
  color: var(--ink-muted);
}
mark {
  background: none;
  color: inherit;
}
.light mark {
  /* Highlighter stroke under the words on light ground — the signal colour, used as ink. */
  background: linear-gradient(transparent 58%, var(--signal) 58%, var(--signal) 92%, transparent 92%);
  padding-inline: 0.08em;
}
.dark mark,
.darker mark {
  color: var(--signal);
}
.signal-text {
  color: var(--signal);
}
.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  max-width: 36ch;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 700 var(--step-0) / 1 var(--f-body);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease),
    transform 0.15s var(--ease), box-shadow 0.25s var(--ease);
}
.btn .arrow {
  display: inline-block;
  font-family: var(--f-mono);
  transition: transform 0.3s var(--ease);
}
@media (hover: hover) {
  .btn:hover .arrow {
    transform: translateX(-4px);
  }
}
.btn:active {
  transform: translateY(1px);
}
.btn-signal {
  background: var(--signal);
  color: var(--ink);
  box-shadow: 0 0 0 0 rgba(200, 243, 29, 0);
}
@media (hover: hover) {
  .btn-signal:hover {
    box-shadow: 0 0 0 5px rgba(200, 243, 29, 0.16), 0 10px 30px -10px rgba(200, 243, 29, 0.6);
  }
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
@media (hover: hover) {
  .btn-ghost:hover {
    border-color: var(--text);
  }
}
.btn-ink {
  background: var(--ink);
  color: var(--light);
}
@media (hover: hover) {
  .btn-ink:hover {
    background: var(--signal);
    color: var(--ink);
  }
}
.btn-sm {
  padding: 0.62rem 1rem;
  font-size: var(--step--1);
  border-radius: 8px;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .btn-sm .long {
    display: none;
  }
}

/* ---------- brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  direction: ltr;
}
.brand-mark {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: var(--text);
  stroke-width: 6.5;
  stroke-linecap: square;
}
.brand-mark .key,
.foot-big .key {
  fill: var(--signal);
  stroke: none;
}
.brand-word b {
  color: var(--signal);
  font-weight: inherit;
}
.brand-word {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.04em;
}
.brand-plus {
  width: 0.66em;
  height: 0.66em;
  fill: none;
  stroke: var(--signal);
  stroke-width: 4;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0.8rem var(--gutter) auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: var(--space-l);
  padding: 0.6rem 0.7rem 0.6rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 14px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(14, 17, 21, 0.94);
  border-color: var(--line-2);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 12px 40px -18px rgba(0, 0, 0, 0.8);
}
.nav nav {
  margin-inline-start: auto;
}
.nav-links {
  display: flex;
  gap: 0.3rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--muted);
}
.nav-links a {
  display: block;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
@media (hover: hover) {
  .nav-links a:hover {
    color: var(--text);
    background: rgba(232, 236, 241, 0.06);
  }
}
@media (max-width: 860px) {
  .nav nav {
    display: none;
  }
  .nav .btn {
    margin-inline-start: auto;
  }
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: var(--space-2xl);
  padding: calc(var(--space-2xl) + 4rem) var(--gutter) var(--space-2xl);
  overflow: hidden;
}
.hero::after {
  /* One point of light behind the frame — the signal, far off. */
  content: '';
  position: absolute;
  inset-inline-end: 8%;
  top: 30%;
  width: 34rem;
  height: 34rem;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(200, 243, 29, 0.1), transparent);
  pointer-events: none;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.85rem 0.4rem 0.75rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(18, 22, 27, 0.6);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--muted);
  margin-bottom: var(--space-m);
}
.status i {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--signal);
}
.status i::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--signal);
  animation: ping 1.8s var(--ease) infinite;
}
@keyframes ping {
  to {
    transform: scale(3);
    opacity: 0;
  }
}
.hero-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--step-5);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-l);
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.hero-title .line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease);
}
.hero-title .line:nth-child(2) > span {
  transition-delay: 0.08s;
}
.hero-title .line:nth-child(3) > span {
  transition-delay: 0.16s;
}
.hero.go .hero-title .line > span {
  transform: none;
}
.hero-lede {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--muted);
  max-width: 42ch;
  --d: 0.3s;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: var(--space-xl);
  --d: 0.42s;
}

/* ---------- tenant frame (signature) ---------- */
.tenant {
  --tenant: #938159;
  position: relative;
  margin: 0;
  transition: --tenant 0.8s var(--ease);
  --d: 0.25s;
}
.tf {
  background: #fcfcfd;
  color: #16181c;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(232, 236, 241, 0.12), 0 0 0 8px rgba(232, 236, 241, 0.03),
    0 50px 100px -40px rgba(0, 0, 0, 0.85);
}
.tf-bar {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.95rem 1.3rem;
  border-bottom: 1px solid #eceef1;
  font-size: 0.82rem;
}
.tf-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.98rem;
  white-space: nowrap;
}
.tf-logo i {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 7px;
  background: var(--tenant);
  color: #fff;
  font-style: normal;
  font-size: 0.8rem;
}
.tf-nav {
  display: flex;
  gap: 1rem;
  color: #6b7380;
  font-weight: 600;
}
.tf-nav .on {
  color: #16181c;
  box-shadow: 0 2px 0 var(--tenant);
  padding-bottom: 2px;
}
.tf-avatar {
  margin-inline-start: auto;
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: #eef0f3;
  font-size: 0.75rem;
  font-weight: 700;
}
.tf-body {
  padding: 1.3rem 1.3rem 1.6rem;
}
.tf-hello {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
}
.tf-continue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.15rem;
  border-radius: 12px;
  background: color-mix(in oklab, var(--tenant) 8%, white);
  border: 1px solid color-mix(in oklab, var(--tenant) 22%, white);
}
.tf-continue strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0.15rem 0;
}
.tf-kicker,
.tf-meta,
.tf-label {
  font-size: 0.76rem;
  color: #6b7380;
}
.tf-ring {
  --p: 38;
  position: relative;
  flex: none;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: conic-gradient(var(--tenant) calc(var(--p) * 1%), #e8ebef 0);
  display: grid;
  place-items: center;
}
.tf-ring::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fcfcfd;
}
.tf-ring em {
  position: relative;
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
}
.tf-label {
  margin: 1.2rem 0 0.55rem;
}
.tf-tracks {
  display: grid;
  gap: 0.55rem;
}
.tf-track {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  align-items: center;
  padding: 0.7rem 0.9rem;
  border: 1px solid #eceef1;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
}
.tf-track small {
  color: #6b7380;
  font-family: var(--f-mono);
  font-size: 0.7rem;
}
.tf-bar-p {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 4px;
  background: #eceef1;
  overflow: hidden;
}
.tf-bar-p span {
  display: block;
  height: 100%;
  background: var(--tenant);
  border-radius: inherit;
  transition: width 0.8s var(--ease);
}
[data-t] {
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.swap [data-t] {
  opacity: 0;
  transform: translateY(6px);
}
.tf-toast {
  position: absolute;
  inset-inline-end: -1.6rem;
  bottom: 4.4rem;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  max-width: 15.5rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.45;
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.9);
  animation: float 6s ease-in-out infinite;
}
.tf-toast b {
  font-weight: 700;
}
.tf-toast-dot {
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.18);
}
@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}
.tenant-cap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: var(--step--1);
  color: var(--muted);
}
.tenant-cap b {
  color: var(--text);
  font-weight: 700;
}
.tenant-dots {
  display: flex;
  gap: 0.4rem;
  margin-inline-start: auto;
}
.tenant-dots button {
  width: 1.4rem;
  height: 0.3rem;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: var(--line-2);
  cursor: pointer;
  transition: background 0.3s var(--ease), width 0.3s var(--ease);
}
.tenant-dots button[aria-pressed='true'] {
  width: 2.4rem;
  background: var(--signal);
}

/* ---------- section heads ---------- */
.section-head {
  max-width: 46rem;
  margin-bottom: var(--space-2xl);
}

/* ---------- numbers ---------- */
.numbers {
  padding: var(--space-3xl) var(--gutter);
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 0;
}
.num {
  padding: var(--space-m);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: #fff;
}
.num dt {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 1.4rem;
}
.num dd {
  margin: 0;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.7rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  text-align: right;
}
.num-hot {
  background: var(--ink);
  color: var(--light);
  border-color: var(--ink);
}
.num-hot dt {
  color: #9aa4b1;
}
.num-hot dd {
  color: var(--signal);
}
@media (max-width: 900px) {
  .numbers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .num dd {
    font-size: clamp(1.7rem, 1rem + 4.2vw, 3rem);
  }
}
@media (max-width: 480px) {
  .numbers-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .num {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
  }
  .num dt {
    margin: 0;
  }
  .num dd {
    font-size: 2.1rem;
  }
}

/* ---------- capabilities (bento) ---------- */
.caps {
  padding: var(--space-3xl) var(--gutter);
}
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.8rem;
}
.tile {
  position: relative;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: var(--space-m);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(232, 236, 241, 0.035), rgba(232, 236, 241, 0.01));
  overflow: hidden;
  transition: border-color 0.3s var(--ease), opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.tile.t-wide {
  grid-column: span 8;
}
.tile.t-half {
  grid-column: span 6;
}
.tile::after {
  /* Cursor spotlight — follows --mx/--my set by the script. */
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(200, 243, 29, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
@media (hover: hover) {
  .tile:hover {
    border-color: rgba(200, 243, 29, 0.45);
  }
  .tile:hover::after {
    opacity: 1;
  }
}
.tile-n {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--signal);
}
.tile h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--step-2);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.tile p {
  color: var(--muted);
  max-width: 56ch;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.6rem;
}
.tags li {
  padding: 0.22rem 0.6rem;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
/* tile visuals */
.viz-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.8rem;
}
.viz-swatches span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.65rem 0.3rem 0.5rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  color: var(--text);
  direction: ltr;
}
.viz-swatches span::before {
  content: '';
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--c);
}
.viz-import {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  margin-top: auto;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--muted);
  direction: ltr;
}
.viz-import .bar {
  height: 4px;
  border-radius: 4px;
  background: var(--line-2);
  overflow: hidden;
}
.viz-import .bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--signal);
  border-radius: inherit;
  transition: width 1.8s var(--ease) 0.3s;
}
.viz-import .mono:last-child {
  color: var(--signal);
}
.tile.in .viz-import .bar span {
  width: 100%;
}
.viz-risk {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-top: auto;
  padding-top: 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.viz-risk span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.viz-risk i {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 12px var(--c);
}
.viz-wa {
  align-self: flex-start;
  max-width: 20rem;
  margin-top: auto;
  padding: 0.6rem 0.8rem 0.4rem;
  border-radius: 10px 10px 2px 10px;
  background: #1f5c3a;
  color: #e6f7ea;
  font-size: 0.84rem;
  line-height: 1.45;
}
.viz-wa span {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  color: #9fd8b0;
  direction: ltr;
  text-align: left;
}
@media (max-width: 1000px) {
  .tile,
  .tile.t-wide,
  .tile.t-half {
    grid-column: span 6;
  }
}
@media (max-width: 640px) {
  .tile,
  .tile.t-wide,
  .tile.t-half {
    grid-column: 1 / -1;
  }
}

/* ---------- AI ---------- */
.ai {
  padding: var(--space-3xl) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.ai .lede {
  color: var(--muted);
  margin-top: var(--space-m);
  max-width: 42ch;
}
.ai-points {
  margin-top: var(--space-l);
  display: grid;
  gap: 0.75rem;
}
.ai-points li {
  position: relative;
  padding-inline-start: 1.6rem;
  font-weight: 500;
}
.ai-points li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--signal);
}
.ai-demo {
  --d: 0.12s;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.demo-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  direction: ltr;
}
.demo-top span {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--line-2);
}
.demo-top em {
  margin-left: auto;
  font-style: normal;
  color: var(--faint);
}
.ask {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(200, 243, 29, 0.5);
  border-radius: 10px;
  background: rgba(200, 243, 29, 0.04);
}
.ask svg {
  width: 1.15rem;
  flex: none;
  fill: none;
  stroke: var(--signal);
  stroke-width: 2;
}
.ask-q::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-inline-start: 2px;
  vertical-align: -0.15em;
  background: var(--signal);
  animation: caret 1s steps(1) infinite;
}
@keyframes caret {
  50% {
    opacity: 0;
  }
}
.ask-found,
.ask-src {
  margin: 0 1.1rem 0.7rem;
  color: var(--faint);
  direction: ltr;
  text-align: right;
}
.ask-src {
  margin: 0.7rem 1.1rem 1rem;
}
.hit {
  margin: 0 1rem 0.55rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
}
.hit header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--step--1);
  margin-bottom: 0.35rem;
}
.hit b {
  font-weight: 700;
}
.hit time {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  padding: 0.1rem 0.45rem;
  border-radius: 5px;
  background: var(--signal);
  color: var(--ink);
  direction: ltr;
}
.hit p {
  font-size: var(--step--1);
  color: var(--muted);
  line-height: 1.6;
}
.hit mark {
  background: rgba(200, 243, 29, 0.16);
  color: var(--text);
  padding: 0 0.15em;
  border-radius: 3px;
}
@media (max-width: 900px) {
  .ai {
    grid-template-columns: 1fr;
  }
}

/* ---------- journey ---------- */
.journey {
  padding: var(--space-3xl) var(--gutter);
}
.steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.8rem;
}
.step {
  position: relative;
  padding: var(--space-m) 1.1rem 1.3rem;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: #fff;
}
.step::after {
  /* Connector to the next card. */
  content: '';
  position: absolute;
  top: 2.05rem;
  inset-inline-end: calc(-0.8rem - 1px);
  width: 0.8rem;
  height: 2px;
  background: var(--ink);
}
.step:last-child::after {
  display: none;
}
.step-n {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  background: var(--ink);
  color: var(--signal);
  margin-bottom: 0.9rem;
}
.step h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1.25;
  margin-bottom: 0.4rem;
}
.step p {
  font-size: var(--step--1);
  color: var(--ink-muted);
}
.step:nth-child(1) { --d: 0s; }
.step:nth-child(2) { --d: 0.06s; }
.step:nth-child(3) { --d: 0.12s; }
.step:nth-child(4) { --d: 0.18s; }
.step:nth-child(5) { --d: 0.24s; }
.step:nth-child(6) { --d: 0.3s; }
@media (max-width: 1100px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .step::after {
    display: none;
  }
}
@media (max-width: 640px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- tour ---------- */
.tour {
  padding: var(--space-3xl) var(--gutter);
}
.tour .section-head {
  margin-bottom: var(--space-l);
}
.tour-lede {
  margin-top: var(--space-s);
  color: var(--muted);
  font-size: var(--step-1);
  max-width: 52ch;
}
.tour-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: var(--space-m);
  padding: 0.3rem;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(18, 22, 27, 0.7);
}
.tour-tabs::-webkit-scrollbar {
  display: none;
}
.tour-tabs button {
  flex: none;
  padding: 0.6rem 1rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: 600 var(--step--1) / 1 var(--f-body);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
@media (hover: hover) {
  .tour-tabs button:hover {
    color: var(--text);
  }
}
.tour-tabs button[aria-selected='true'] {
  background: var(--signal);
  color: var(--ink);
}
.tour-stage {
  position: relative;
  padding-inline-start: clamp(0rem, 6vw, 5.5rem);
  --d: 0.1s;
}
.tour-stage img {
  transition: opacity 0.18s var(--ease);
}
.tour-stage.swap img {
  opacity: 0;
}
.browser {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.9);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--line);
  direction: ltr;
}
.browser-bar .dots {
  display: flex;
  gap: 0.35rem;
}
.browser-bar .dots i {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--line-2);
}
.browser-bar .url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.3rem 0.8rem;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 0.78rem;
}
.browser img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 1000;
  object-fit: cover;
  object-position: top;
  background: #f7f8fa;
}
.phone {
  position: absolute;
  inset-inline-start: 0;
  bottom: -2.5rem;
  width: clamp(9rem, 17vw, 14.5rem);
  margin: 0;
  padding: 0.55rem;
  border-radius: 1.8rem;
  background: #05070a;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.95);
}
.phone .notch {
  position: absolute;
  top: 0.9rem;
  left: 50%;
  z-index: 1;
  width: 28%;
  height: 0.9rem;
  border-radius: 1rem;
  background: #05070a;
  transform: translateX(-50%);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 19;
  object-fit: cover;
  object-position: top;
  border-radius: 1.35rem;
  background: #f7f8fa;
}
.tour-caption {
  margin-top: calc(var(--space-l) + 2rem);
  color: var(--muted);
  font-size: var(--step-0);
  min-height: 1.6em;
}
@media (max-width: 720px) {
  .tour-stage {
    padding-inline-start: 0;
  }
  .phone {
    display: none;
  }
  .tour-caption {
    margin-top: var(--space-m);
  }
  .tour-tabs {
    width: auto;
  }
}

/* ---------- contact ---------- */
.contact {
  padding: var(--space-3xl) var(--gutter);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-2xl);
  align-items: end;
}
.contact .lede {
  margin-top: var(--space-l);
  color: var(--ink-muted);
}
.form {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: var(--space-l);
  border: 1px solid var(--line-light);
  border-radius: 18px;
  background: #fff;
  --d: 0.12s;
}
.form label {
  display: grid;
  gap: 0.4rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-muted);
}
.form input {
  font: 500 var(--step-0) / 1.3 var(--f-body);
  color: var(--ink);
  background: var(--light);
  border: 1px solid var(--line-light);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.form input:focus {
  outline: none;
  background: #fff;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(200, 243, 29, 0.55);
}
.form .btn {
  margin-top: 0.4rem;
}
.form-note {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-muted);
  min-height: 1.5em;
}
@media (max-width: 900px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

/* ---------- footer ---------- */
.foot {
  position: relative;
  padding: var(--space-3xl) var(--gutter) var(--space-l);
  overflow: hidden;
}
.foot-big svg {
  width: clamp(10rem, 24vw, 20rem);
  height: auto;
  margin-inline: auto;
  fill: none;
  stroke: var(--line-2);
  stroke-width: 1.2;
}
.foot-big circle:not(.key) {
  stroke-width: 1.5;
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  margin-top: var(--space-2xl);
  padding-top: var(--space-l);
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--faint);
}
.foot-row ul {
  display: flex;
  gap: var(--space-l);
}
@media (hover: hover) {
  .foot-row a:hover {
    color: var(--text);
  }
}

/* ---------- responsive hero ---------- */
@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding-top: calc(var(--space-2xl) + 3rem);
  }
  .tf-toast {
    inset-inline-end: 0.8rem;
    bottom: 5.4rem;
  }
}
@media (max-width: 520px) {
  .tf-nav {
    display: none;
  }
  .tf-toast {
    display: none;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .hero-title .line > span {
    transform: none;
  }
}

/* Honeypot: invisible and unreachable for people, still in the form for bots.
   Clipped in place rather than pushed off-screen — a far negative offset widens
   an RTL page and gives phones a sideways scroll. */
.hp {
  position: absolute !important;
  inset-inline-start: 0;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
}

.inline-link {
  color: var(--signal);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
