/* VibeGuardian — one background, one display size, one button, one frame, one glass card. */
:root {
  --bg: #f3f3f3;
  --ink: #141414;
  --muted: #5e5e5e;
  --faint: #8a8a8a;
  --line: rgba(20, 20, 20, 0.09);
  --navy: #1c2848;
  --green: #2f9e66;
  --red: #d9443f;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --display: 48px;
  --w: 1000px;
  --gutter: 24px;
  --r-frame: 20px;
  --r-card: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 0.875em; }

.wrap { max-width: calc(var(--w) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: 128px; scroll-margin-top: 24px; }

/* Type */
h1, h2 {
  margin: 0;
  font-size: var(--display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h3 { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -0.012em; }
.lede { margin-top: 18px; max-width: 580px; color: var(--muted); }
.eyebrow {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
}
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.muted { color: var(--muted); }

/* Links and the one button */
.link { font-weight: 500; text-decoration: underline; text-decoration-color: rgba(20, 20, 20, 0.25); text-underline-offset: 4px; }
.link:hover { text-decoration-color: var(--ink); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: #2b2b2b; transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }
.btn.sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: #f1f1f1; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(20, 20, 20, 0.22); }
.btn.ghost:hover { background: rgba(20, 20, 20, 0.05); }
.btn.ghost-light { background: rgba(255, 255, 255, 0.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
.btn.ghost-light:hover { background: rgba(255, 255, 255, 0.18); }
.actions { gap: 12px; }
.live-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink); }
.live-link i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(47, 158, 102, 0.18); }
.live-link svg { width: 15px; height: 15px; }
.live-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.tryit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: 28px; padding: 22px 26px; border-radius: var(--r-card); background: rgba(20, 20, 20, 0.04); }
.tryit p { margin: 0; max-width: 620px; color: var(--muted); }
.tryit b { color: var(--ink); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; text-decoration: none; }
.brand img { width: 22px; height: 22px; }
.nav ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.nav li a:not(.btn) { font-size: 14px; color: var(--muted); text-decoration: none; }
.nav li a:not(.btn):hover { color: var(--ink); }

/* Hero */
.hero { padding-top: 56px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.05);
  font-size: 13px;
  color: var(--muted);
}
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hero h1 { max-width: 640px; }

/* The frame: a soft gradient that holds a glass card */
.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-frame);
  background: var(--navy) center / cover no-repeat;
  padding: 48px;
}
.frame.night { background-image: url(img/bg-night.webp); }
.frame.ember { background-image: url(img/bg-ember.webp); }
.frame.moss { background-image: url(img/bg-moss.webp); }
.frame.sea { background-image: url(img/bg-sea.webp); }
.frame.sky { background-image: url(img/bg-sky.webp); }
.frame.dusk { background-image: url(img/bg-dusk.webp); }
.frame.tight { padding: 28px; }
.hero .frame { margin-top: 56px; }

/* The glass card */
.glass {
  position: relative;
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 1px 2px rgba(10, 15, 30, 0.06), 0 14px 36px rgba(10, 15, 30, 0.18);
  padding: 22px;
}
.glass.dark {
  background: rgba(14, 18, 30, 0.72);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e9ebf0;
}
.label { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.label.file { font-family: var(--mono); text-transform: none; letter-spacing: 0; }
.incident .mono { white-space: nowrap; }
.big { font-size: 28px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }

/* Status pills */
.pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.pill.dead { background: var(--green); color: #fff; }
.pill.alive { background: var(--red); color: #fff; }
.pill.soft { background: rgba(20, 20, 20, 0.06); color: var(--muted); font-weight: 500; letter-spacing: 0; }

/* Hero incident card */
.incident { max-width: 860px; margin: 0 auto; padding: 26px 28px 20px; }
.inc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.inc-head h3 { margin-top: 4px; }
.inc-body { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 18px 0 16px; }
.inc-foot { padding-top: 14px; border-top: 1px solid var(--line); }
.steps, .vantages { margin: 12px 0 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 58px 1fr; gap: 8px; padding: 5px 0; font-size: 14px; }
.steps .t { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.vantages li { display: grid; grid-template-columns: 1fr auto 46px; align-items: center; gap: 12px; padding: 5px 0; font-size: 14px; }
.vantages small { color: var(--faint); font-family: var(--mono); font-size: 11px; margin-left: 6px; }
.vantages .n { font-family: var(--mono); font-size: 13px; color: var(--muted); text-align: right; }
.ticks { display: flex; gap: 3px; }
.ticks i { width: 6px; height: 14px; border-radius: 2px; background: var(--green); }

/* Built-on strip */
.strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding-top: 44px; }
.strip .label { width: 100%; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--faint); font-size: 13px; }
.strip span:not(.label) { font-size: 17px; font-weight: 500; letter-spacing: -0.015em; color: #4a4a4a; }

/* Grids: features share rows (subgrid), so every frame in a row starts and ends level. */
.cols-2, .cols-3 { display: grid; column-gap: 28px; row-gap: 0; margin-top: 56px; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 > .feature { grid-row: span 5; display: grid; grid-template-rows: subgrid; }
.cols-3 > .feature { grid-row: span 4; display: grid; grid-template-rows: subgrid; }
.feature p { margin-top: 8px; color: var(--muted); }
.feature .frame { margin-top: 22px; display: flex; flex-direction: column; justify-content: center; }
.feature .frame > .glass { width: 100%; }
.checks { margin: 14px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.checks li { position: relative; padding: 4px 0 4px 24px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Proof chart */
.proof .frame { margin-top: 48px; }
.chart-card { margin: 0; padding: 24px 26px 18px; }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-bottom: 18px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.legend > span { white-space: nowrap; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; background: var(--green); vertical-align: 0; }
.legend i.red { background: var(--red); }
.legend i.navy { background: var(--navy); border-radius: 2px; }
.legend i.grn { border-radius: 2px; }
.chart-narrow { display: none; }

/* Small cards inside the feature frames */
.mini { padding: 18px; }
.mini .big { margin: 6px 0 2px; }
.mini .chart { margin-top: 14px; }
.code {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre;
  overflow-x: auto;
}
.code .c { color: var(--faint); }
.code .k { color: var(--navy); font-weight: 500; }
.code .v { color: #1d7a4e; }
.rows { margin: 12px 0 0; padding: 0; list-style: none; font-size: 13px; }
.rows li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.rows li:first-child { border-top: 0; }
.rows b { font-weight: 500; }
.rows .bad { color: #a8302b; font-weight: 600; }
.ref { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.4; }
.ref:first-of-type { border-top: 0; padding-top: 4px; }
.ref .id { font-family: var(--mono); color: var(--muted); flex: none; width: 24px; }
.ref .tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.ref .tags .pill { height: 20px; font-size: 11px; padding: 0 8px; }

/* Terminal */
.term { font-family: var(--mono); font-size: 12.5px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.term .p { color: #8fa3c7; }
.term .err { color: #ff8a80; }
.term .fp { color: #9fe0bd; }
.term .dim { color: #9aa0ad; }

/* Desktop app shots */
.shots { position: relative; height: 330px; }
.shots img { position: absolute; width: 300px; height: auto; filter: drop-shadow(0 16px 30px rgba(10, 10, 30, 0.35)); }
.shots .one { left: 0; top: 0; }
.shots .two { right: 0; bottom: 0; }

/* Numbers */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 28px; margin-top: 56px; }
.stat b { display: block; font-size: var(--display); font-weight: 400; letter-spacing: -0.04em; line-height: 1; }
.stat p { margin-top: 12px; color: var(--muted); font-size: 15px; }
.stat p span { color: var(--faint); }

/* Stages */
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; margin-top: 56px; }
.stages div { padding-top: 16px; border-top: 1px solid var(--line); }
.stages p { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 28px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 600px; }

/* Close */
.close .frame { padding: 88px 56px; color: #fff; }
.close h2 { max-width: 620px; }
.close p { margin-top: 16px; max-width: 520px; color: rgba(255, 255, 255, 0.82); }

/* Footer */
footer { padding: 96px 0 40px; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.foot p { margin-top: 10px; color: var(--muted); font-size: 14px; max-width: 320px; }
.foot h4 { margin: 0 0 12px; font-size: 13px; font-weight: 500; color: var(--faint); }
.foot ul { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.foot li { padding: 3px 0; }
.foot li a { text-decoration: none; color: var(--muted); }
.foot li a:hover { color: var(--ink); }
.legal { margin-top: 40px; font-size: 13px; color: var(--faint); }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 6px; }

@media (max-width: 860px) {
  :root { --display: 36px; --gutter: 16px; }
  .section { padding-top: 96px; }
  .nav ul li:not(:last-child) { display: none; }
  .frame { padding: 20px; }
  .incident { padding: 20px; }
  .inc-head { flex-direction: column-reverse; }
  .inc-body, .cols-2, .cols-3, .faq { grid-template-columns: 1fr; }
  .cols-2, .cols-3 { row-gap: 56px; }
  .cols-2 > .feature, .cols-3 > .feature { display: block; grid-row: auto; }
  .inc-body { gap: 20px; }
  .strip { justify-content: flex-start; gap: 10px 22px; }
  .strip span:not(.label) { font-size: 15px; }
  .stats, .stages { grid-template-columns: 1fr 1fr; }
  .shots { height: 300px; }
  .shots img { width: 240px; }
  .close .frame { padding: 48px 24px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .chart-wide { display: none; }
  .chart-narrow { display: block; }
  .proof .frame { padding: 12px; }
  .chart-card { padding: 18px 16px 14px; }
}
@media (max-width: 520px) {
  .stats, .stages { grid-template-columns: 1fr; }
  .vantages small { display: none; }
  .vantages li { grid-template-columns: 1fr auto; }
  .vantages .n { display: none; }
  .ticks i { width: 5px; }
  .shots img { width: 210px; }
  .shots { height: 270px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
