:root {
  --bg-page: #0a0a0b;
  --bg-app: #0f0f11;
  --bg-rail: #0b0b0c;
  --bg-sidebar: #0f0f11;
  --bg-terminal: #0d0d0f;
  --bg-card: #101012;
  --bg-hover: #17171a;
  --bg-active: #1e1e22;
  --border: #26262a;
  --border-soft: #1a1a1d;
  --text: #ededf0;
  --text-dim: #a9a9ad;
  --text-faint: #6a6a6e;
  --accent: #3ecf8e;
  --accent-soft: #6fe0ab;
  --accent-dim: #11251b;
  --accent-avatar: #35c07a;
  --warn: #e0b341;
  --ok: #3ecf8e;
  --crab: #c47a58;
  --link: #6b93d6;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: Inter, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1080px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg-page);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* subtle green glow behind the hero */
.glow {
  position: absolute;
  top: -220px;
  left: 50%;
  width: min(900px, 100%);
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(62, 207, 142, 0.15), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Top nav ─────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(10, 10, 11, 0.72);
  border-bottom: 1px solid var(--border-soft);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 60px;
}
.nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.nav .brand img {
  height: 20px;
  width: auto;
  display: block;
}
.nav .links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav .links a {
  color: var(--text-dim);
  font-size: 14px;
  transition: color 0.12s;
}
.nav .links a:hover {
  color: var(--text);
}
.nav .links .ghost {
  color: var(--text-dim);
}
@media (max-width: 720px) {
  .nav .links a.hide-sm {
    display: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg-hover);
  transition:
    background 0.12s,
    border-color 0.12s,
    transform 0.12s;
  cursor: pointer;
}
.btn:hover {
  background: var(--bg-active);
  border-color: var(--text-faint);
  transform: translateY(-1px);
}
.btn.primary {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: #d6f0e6;
}
.btn.primary:hover {
  background: #356e59;
}
.btn svg {
  width: 17px;
  height: 17px;
}

/* ── Hero ─────────────────────────── */
.hero {
  position: relative;
  text-align: center;
  padding: 96px 0 72px;
}
.hero .wrap {
  position: relative;
  z-index: 1;
}
.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent-soft);
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border: 1px solid var(--accent-dim);
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 650;
  margin-bottom: 20px;
}
.hero h1 .accent {
  color: var(--accent);
}
.hero .lede {
  max-width: 640px;
  margin: 0 auto 14px;
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-dim);
}
.hero .sub {
  max-width: 560px;
  margin: 0 auto 34px;
  font-size: 14.5px;
  color: var(--text-faint);
}
.hero .cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── App preview (mockup miniature) ─────────────── */
.preview {
  position: relative;
  z-index: 1;
  padding: 8px 0 40px;
}
.window {
  max-width: 940px;
  margin: 0 auto;
  background: var(--bg-app);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.titlebar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-rail);
}
.traffic {
  display: flex;
  gap: 7px;
}
.traffic span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3d3b37;
}
.titlebar .app-name {
  margin-left: 6px;
  font-size: 12.5px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}
.titlebar .app-name b {
  color: var(--text-dim);
  font-weight: 600;
}

.app {
  display: flex;
  height: 440px;
}
.rail {
  width: 66px;
  background: var(--bg-rail);
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0 16px;
  gap: 14px;
  flex-shrink: 0;
}
.ws-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eeeee9;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.ws-avatar img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: block;
}
.ws-avatar .caret {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #161618;
  border: 1px solid #2f2f33;
  color: var(--text-dim);
  font-size: 9px;
  line-height: 13px;
  text-align: center;
}
.dot.warn {
  background: var(--warn);
}
.dot.ok {
  background: var(--ok);
}
.rail hr {
  width: 26px;
  border: none;
  border-top: 1px solid var(--border-soft);
  margin: 0;
}
.rail .spacer {
  flex: 1;
}
.rail .ico {
  position: relative;
  width: 44px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
}
.rail .ico.on {
  background: var(--accent-dim);
  color: var(--accent);
}
.rail .ico.on::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
}
.rail .ico svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar {
  width: 244px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-soft);
  padding: 8px 8px;
  font-size: 13px;
  flex-shrink: 0;
  overflow: hidden;
}
.sb-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 6px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border-soft);
}
.sb-header .grow {
  flex: 1;
}
.ws-badge {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--accent-avatar);
  color: #08321f;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sb-ws-name {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
}
.sb-caret {
  color: var(--text-faint);
  font-size: 11px;
}
.sb-ico {
  color: var(--text-faint);
  display: flex;
}
.sb-ico.on {
  color: var(--accent);
}
.sb-ico svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  padding: 0 8px 10px;
}
.tree-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4.5px 8px;
  border-radius: 6px;
  color: var(--text-dim);
  white-space: nowrap;
}
.tree-item.repo {
  color: var(--text);
  font-weight: 500;
}
.tree-item.selected {
  background: var(--bg-active);
  color: var(--text);
}
.tree-item .chev {
  font-size: 9px;
  color: var(--text-faint);
  width: 10px;
  display: inline-block;
}
.indent-1 {
  padding-left: 24px;
}
.indent-2 {
  padding-left: 40px;
}
.tree-item .fname {
  font-family: var(--mono);
  font-size: 12px;
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-terminal);
}
.tabstrip {
  height: 46px;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-app);
  font-size: 13px;
}
.tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  color: var(--text-dim);
  border-right: 1px solid var(--border-soft);
  border-top: 2px solid transparent;
  cursor: default;
}
.tab.active {
  color: var(--text);
  background: var(--bg-terminal);
  border-top-color: var(--accent);
}
.tab .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.acct-swatch {
  width: 16px;
  height: 13px;
  border-radius: 3px;
  background: var(--crab);
  display: inline-block;
}
.tab-add {
  display: flex;
  align-items: center;
  padding: 0 15px;
  color: var(--text-faint);
  font-size: 17px;
}

.terminal {
  flex: 1;
  padding: 22px 24px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-dim);
  overflow: hidden;
}
.terminal.cc {
  display: flex;
  flex-direction: column;
}
.terminal .prompt {
  color: var(--accent);
}
.terminal .muted {
  color: var(--text-faint);
}
.terminal .dim {
  color: var(--text-dim);
}
.terminal .strong {
  color: var(--text);
  font-weight: 700;
}
.terminal .link {
  color: var(--link);
}
.cc-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.cc-head > div {
  min-width: 0;
}
.cc-head > div > div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crab {
  width: 46px;
  height: 38px;
  flex: none;
  background: var(--crab);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.crab span {
  width: 5px;
  height: 8px;
  background: #211a16;
  border-radius: 1px;
  display: inline-block;
}
.grow-v {
  flex: 1;
}
.cc-input {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-terminal);
  color: var(--text-dim);
}
.cc-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  color: var(--text-faint);
}
.cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: #c9c9cc;
  vertical-align: -3px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ── Generic section ─────────────────── */
section {
  position: relative;
}
.section-pad {
  padding: 76px 0;
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: -0.01em;
  font-weight: 640;
  margin-bottom: 14px;
}
.section-head p {
  color: var(--text-dim);
  font-size: 16px;
}
.divider {
  height: 1px;
  background: var(--border-soft);
  max-width: var(--maxw);
  margin: 0 auto;
}

/* ── Problem ─────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 26px 24px;
}
.problem-card .n {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 14px;
}
.problem-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
  font-weight: 600;
}
.problem-card p {
  color: var(--text-dim);
  font-size: 14.5px;
}

/* ── Features ─────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 24px 22px;
  transition:
    border-color 0.14s,
    transform 0.14s,
    background 0.14s;
}
.feature:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
  background: #211f1d;
}
.feature .ficon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  color: var(--accent-soft);
  margin-bottom: 16px;
}
.feature .ficon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature p {
  color: var(--text-dim);
  font-size: 14px;
}
.feature.wide {
  grid-column: span 1;
}

/* spotlight feature (folders as context) */
.spotlight {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 44px;
  margin-bottom: 26px;
}
.spotlight .tag {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.spotlight h3 {
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  font-weight: 640;
}
.spotlight p {
  color: var(--text-dim);
  font-size: 15.5px;
  margin-bottom: 14px;
}
.spotlight .code {
  background: var(--bg-terminal);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 2;
  color: var(--text-dim);
}
.code .c {
  color: var(--text-faint);
}
.code .g {
  color: var(--accent);
}
.code .p {
  color: var(--link);
}
.code .sel {
  color: var(--text);
}

/* ── Remote ─────────────── */
.remote {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.remote-copy h2 {
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: -0.01em;
  font-weight: 640;
  margin-bottom: 14px;
}
.remote-copy > p {
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 22px;
}
.remote-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.remote-points li {
  position: relative;
  padding-left: 28px;
  color: var(--text-dim);
  font-size: 15px;
}
.remote-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-dim);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%233ecf8e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10l4 4 8-9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone-glow {
  position: absolute;
  inset: -10% 10%;
  background: radial-gradient(closest-side, rgba(62, 207, 142, 0.14), transparent 72%);
  pointer-events: none;
}
.phone {
  position: relative;
  width: 236px;
  padding: 10px;
  background: #161618;
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}
.phone::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 5px;
  border-radius: 3px;
  background: #2a2a2e;
  z-index: 2;
}
.phone-screen {
  background: var(--bg-terminal);
  border-radius: 22px;
  padding: 30px 16px 20px;
  min-height: 360px;
}
.p-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}
.p-head .grow {
  flex: 1;
}
.p-badge {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent-avatar);
  color: #08321f;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.p-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}
.p-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.p-dot.warn {
  background: var(--warn);
}
.p-time {
  font-size: 11px;
  color: var(--warn);
}
.p-term {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-dim);
}
.p-muted {
  color: var(--text-faint);
}
.p-ok {
  color: var(--accent);
}
.p-ask {
  color: var(--text);
  margin-top: 4px;
}
.p-path {
  color: var(--link);
}
.p-btns {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.p-btn {
  flex: 1;
  text-align: center;
  padding: 9px 0;
  border-radius: 9px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
}
.p-btn.yes {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent);
}
.p-btn.no {
  background: var(--bg-hover);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

/* ── How it works ─────────────── */
.how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  overflow: hidden;
}
.how .col {
  padding: 30px 28px;
  border-right: 1px solid var(--border-soft);
  background: var(--bg-card);
}
.how .col:last-child {
  border-right: none;
}
.how .col .lbl {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.how .col h3 {
  font-size: 17px;
  margin-bottom: 10px;
  font-weight: 600;
}
.how .col p {
  color: var(--text-dim);
  font-size: 14px;
}
.how .col .flow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 14px;
}

/* ── Providers table ─────────────── */
.providers {
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  overflow: hidden;
}
.providers table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.providers th,
.providers td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
}
.providers thead th {
  background: var(--bg-card);
  color: var(--text-faint);
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.providers tbody tr:last-child td {
  border-bottom: none;
}
.providers td.name {
  color: var(--text);
  font-weight: 600;
}
.providers td code {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent-soft);
  background: var(--bg-terminal);
  padding: 2px 7px;
  border-radius: 5px;
}
.providers .yes {
  color: var(--ok);
}

/* ── Download ─────────────── */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.dl-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 24px 22px;
}
.dl-card .ficon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  color: var(--accent-soft);
  margin-bottom: 16px;
}
.dl-card .ficon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.dl-card .ficon svg .cut {
  fill: var(--accent-dim);
}
.dl-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.dl-card p {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 18px;
}
.dl-card .btn {
  margin-top: auto;
}
.dl-alt {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-faint);
}
.dl-alt a {
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dl-alt a:hover {
  color: var(--text);
}
.dl-version {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent-soft);
}
.dl-note {
  margin-top: 22px;
  text-align: center;
  font-size: 14px;
  color: var(--text-faint);
}
.dl-note a {
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dl-note a:hover {
  color: var(--text);
}

/* ── Non-goals ─────────────── */
.nongoals {
  max-width: 820px;
  margin: 0 auto;
}
.nongoals .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 28px;
}
.nongoals .item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-dim);
  font-size: 14.5px;
}
.nongoals .item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: var(--text-faint);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nongoals .note {
  text-align: center;
  margin-top: 30px;
  color: var(--text-faint);
  font-size: 14px;
}
.nongoals .note b {
  color: var(--text-dim);
}

/* ── Final CTA ─────────────── */
.final {
  text-align: center;
  padding: 88px 0;
}
.final h2 {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  font-weight: 650;
}
.final p {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto 30px;
}
.final .cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ─────────────── */
footer {
  border-top: 1px solid var(--border-soft);
  padding: 40px 0;
}
footer .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
}
.foot-brand img {
  height: 18px;
}
footer .jp {
  font-size: 13px;
  color: var(--text-faint);
}
.foot-links {
  margin-left: auto;
  display: flex;
  gap: 24px;
}
.foot-links a {
  color: var(--text-dim);
  font-size: 14px;
  transition: color 0.12s;
}
.foot-links a:hover {
  color: var(--text);
}

/* ── Animations ─────────────── */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes rise-in-lg {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes glow-breathe {
  0%,
  100% {
    opacity: 0.75;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.05);
  }
}
@keyframes dot-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(224, 179, 65, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(224, 179, 65, 0);
  }
}

/* hero settles top to bottom on load */
.hero .kicker,
.hero .lede,
.hero .sub,
.hero .cta {
  animation: rise-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.hero .lede {
  animation-delay: 0.16s;
}
.hero .sub {
  animation-delay: 0.24s;
}
.hero .cta {
  animation-delay: 0.32s;
}
.preview .window {
  animation: rise-in-lg 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.4s backwards;
}

.glow {
  animation: glow-breathe 12s ease-in-out infinite;
}
.p-dot.warn {
  animation: dot-pulse 2.2s ease-out infinite;
}

/* nav logo: slide in on load, then a glint sweeps its pixels every few seconds */
@keyframes logo-in {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes logo-shine {
  0% {
    background-position: 100% 0;
  }
  18% {
    background-position: 0% 0;
  }
  100% {
    background-position: 0% 0;
  }
}
.nav .brand {
  position: relative;
  animation: logo-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.nav .brand img {
  transition: filter 0.15s;
}
.nav .brand:hover img {
  filter: brightness(1.25);
}
.nav .brand::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-mask: url("assets/logo.png") left center / contain no-repeat;
  mask: url("assets/logo.png") left center / contain no-repeat;
  background: linear-gradient(
    115deg,
    transparent 42%,
    rgba(255, 255, 255, 0.85) 50%,
    transparent 58%
  );
  background-size: 300% 100%;
  background-repeat: no-repeat;
  animation: logo-shine 7s ease-in-out infinite;
}

/* feature cards: a green arc travels the border ring, each card at its own pace */
@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes border-spin {
  to {
    --border-angle: 360deg;
  }
}
.feature::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  padding: 1px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 0%,
    transparent 82%,
    rgba(62, 207, 142, 0.55) 91%,
    transparent 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation-name: border-spin;
  animation-duration: var(--spin-dur, 9s);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-direction: var(--spin-dir, normal);
  animation-delay: var(--spin-delay, 0s);
}
.feature:nth-child(1) {
  --spin-dur: 8s;
  --spin-delay: -3s;
}
.feature:nth-child(2) {
  --spin-dur: 11s;
  --spin-delay: -7s;
  --spin-dir: reverse;
}
.feature:nth-child(3) {
  --spin-dur: 9.5s;
  --spin-delay: -1.5s;
}
.feature:nth-child(4) {
  --spin-dur: 12.5s;
  --spin-delay: -9s;
}
.feature:nth-child(5) {
  --spin-dur: 7.5s;
  --spin-delay: -5s;
  --spin-dir: reverse;
}
.feature:nth-child(6) {
  --spin-dur: 10.5s;
  --spin-delay: -2.5s;
}
.feature:nth-child(7) {
  --spin-dur: 13s;
  --spin-delay: -6s;
  --spin-dir: reverse;
}
.feature:nth-child(8) {
  --spin-dur: 8.8s;
  --spin-delay: -4s;
}
.feature:nth-child(9) {
  --spin-dur: 11.8s;
  --spin-delay: -8s;
}

/* headline typing (char spans added by the script; chars keep their layout slot) */
.hero h1 .ch {
  opacity: 0;
}
.hero h1 .ch.on {
  opacity: 1;
}
.hero h1 .type-cursor {
  display: inline-block;
  width: 0.45em;
  height: 0.78em;
  margin-right: -0.45em;
  vertical-align: -0.04em;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
  transition: opacity 0.6s;
}

/* typing cursor for the spotlight code block (added by the script) */
.code .type-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  margin-left: 3px;
  vertical-align: -1px;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
  transition: opacity 0.6s;
}

/* scroll reveal: the script tags elements, so without JS nothing is hidden */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.55s ease,
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ── Responsive ─────────────── */
@media (max-width: 900px) {
  .problem-grid,
  .dl-grid,
  .how {
    grid-template-columns: 1fr;
  }
  /* Features become a swipe carousel: 2 stacked cards per column, next column peeks. */
  .feature-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, 1fr);
    grid-auto-columns: min(320px, 82%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -24px;
    padding: 0 24px;
    scroll-padding-inline: 24px;
    scrollbar-width: none;
  }
  .feature-grid::-webkit-scrollbar {
    display: none;
  }
  .feature {
    scroll-snap-align: start;
  }
  .how .col {
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
  }
  .how .col:last-child {
    border-bottom: none;
  }
  .spotlight {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px;
  }
  .remote {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .remote-copy {
    text-align: center;
  }
  .remote-points {
    display: inline-flex;
    text-align: left;
  }
  .nongoals .grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  /* Show the whole desktop app as a scaled-down miniature instead of a cropped panel. */
  .window {
    width: 760px;
    margin-left: auto;
    margin-right: auto;
    zoom: 0.55;
  }
  .section-pad {
    padding: 56px 0;
  }
  .providers {
    overflow-x: auto;
  }
  .providers th,
  .providers td {
    white-space: nowrap;
    padding: 12px 14px;
  }
}
@media (max-width: 480px) {
  .feature-grid {
    margin: 0 -16px;
    padding: 0 16px;
    scroll-padding-inline: 16px;
  }
  .wrap {
    padding: 0 16px;
  }
  .window {
    zoom: 0.44;
  }
}
@media (max-width: 380px) {
  .window {
    zoom: 0.37;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .cursor,
  .hero .kicker,
  .hero .lede,
  .hero .sub,
  .hero .cta,
  .preview .window,
  .glow,
  .p-dot.warn {
    animation: none;
  }
  .feature:hover,
  .btn:hover {
    transform: none;
  }
  .feature::before {
    display: none;
  }
  .nav .brand {
    animation: none;
  }
  .nav .brand::after {
    display: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
