/* ==========================================================================
   ProcWatch — procwatch.app
   Terminal-noir cyberpunk. Near-black field, cyan signal, magenta threshold.
   ========================================================================== */

/* ---------- Self-hosted fonts ---------- */
@font-face {
  font-family: 'Chakra Petch';
  src: url('../fonts/ChakraPetch-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Chakra Petch';
  src: url('../fonts/ChakraPetch-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Chakra Petch';
  src: url('../fonts/ChakraPetch-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBMPlexSans-var.woff2') format('woff2');
  font-weight: 100 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/JetBrainsMono-var.woff2') format('woff2');
  font-weight: 100 800; font-style: normal; font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* surfaces */
  --bg:         #0a0a0f;
  --bg-deep:    #07070b;
  --bg-raised:  #10101a;
  --bg-panel:   #0d0d16;
  --line:       #23233a;
  --line-faint: rgba(56, 60, 96, 0.28);

  /* neon */
  --cyan:       #00e5ff;
  --cyan-dim:   #0e7e96;
  --magenta:    #ff2d95;
  --acid:       #b8ff2e;
  --violet:     #8a7bff;

  /* text — all AA+ on --bg */
  --text:       #e9eaf2;
  --text-muted: #a6acc4;
  --text-faint: #7e84a0;

  /* type */
  --font-display: 'Chakra Petch', 'Avenir Next Condensed', sans-serif;
  --font-body:    'IBM Plex Sans', 'Helvetica Neue', sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* rhythm */
  --space-section: clamp(5rem, 11vw, 9rem);
  --content-w: 72rem;

  /* fx */
  --glow-cyan:    0 0 18px rgba(0, 229, 255, 0.35), 0 0 60px rgba(0, 229, 255, 0.12);
  --glow-magenta: 0 0 18px rgba(255, 45, 149, 0.35), 0 0 60px rgba(255, 45, 149, 0.12);
  --notch: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 1rem; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #7df2ff; }
code, kbd, .mono { font-family: var(--font-mono); }
code {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  font-size: 0.88em;
  color: var(--acid);
}
kbd {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 0.05em 0.45em;
  font-size: 0.85em;
  color: var(--text);
}
ul, ol { padding-left: 1.2rem; }
::selection { background: var(--magenta); color: #0a0a0f; }

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

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--cyan); color: var(--bg-deep);
  font-family: var(--font-mono); font-size: 0.85rem;
  padding: 0.6rem 1rem; border-radius: 4px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; }

/* ---------- Shared bits ---------- */
.eyebrow {
  color: var(--acid);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}
.section { padding: var(--space-section) 1.5rem; position: relative; }
.section-alt {
  background:
    linear-gradient(180deg, rgba(16, 16, 26, 0.0), rgba(16, 16, 26, 0.55) 18%, rgba(16, 16, 26, 0.55) 82%, rgba(16, 16, 26, 0.0)),
    repeating-linear-gradient(90deg, var(--line-faint) 0 1px, transparent 1px 72px);
}
.section-inner { max-width: var(--content-w); margin: 0 auto; }
.section-narrow { max-width: 52rem; }
.section-lede { max-width: 44rem; color: var(--text-muted); font-size: 1.12rem; }

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  clip-path: var(--notch);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--cyan);
  color: #04141a;
  box-shadow: var(--glow-cyan);
}
.btn-primary:hover { background: #6ceeff; color: #04141a; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--magenta);
  border: 1px solid var(--magenta);
}
.btn-ghost:hover { color: #ff7dbb; border-color: #ff7dbb; box-shadow: var(--glow-magenta); }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.05rem; }
.btn[aria-disabled="true"] {
  opacity: 0.55; cursor: not-allowed; box-shadow: none;
}
.link-arrow {
  font-family: var(--font-mono); font-size: 0.92rem;
  color: var(--text-muted); text-decoration: none;
  border-bottom: 1px dashed var(--text-faint);
}
.link-arrow::after { content: ' ↓'; color: var(--acid); }
.link-arrow:hover { color: var(--text); }

/* macOS-window dots */
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--content-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.5rem; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-frame { fill: none; stroke: var(--cyan); stroke-width: 1.6; }
.brand-pulse { fill: none; stroke: var(--magenta); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  color: var(--text); letter-spacing: 0.02em;
}
.brand-name em { font-style: normal; color: var(--cyan); }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a:not(.btn) {
  font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--text-muted); text-decoration: none;
}
.nav-links a:not(.btn):hover { color: var(--cyan); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 6px;
  padding: 0.55rem 0.6rem; cursor: pointer;
  flex-direction: column; gap: 4px;
}
.nav-toggle-bar { width: 20px; height: 2px; background: var(--cyan); transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 9vw, 7.5rem) 1.5rem clamp(4rem, 8vw, 6.5rem);
  background:
    radial-gradient(ellipse 90% 60% at 70% -10%, rgba(0, 229, 255, 0.09), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 110%, rgba(255, 45, 149, 0.07), transparent 60%),
    var(--bg-deep);
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg,  var(--line-faint) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, var(--line-faint) 0 1px, transparent 1px 56px);
  mask-image: radial-gradient(ellipse 100% 90% at 50% 30%, black 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 100% 90% at 50% 30%, black 30%, transparent 78%);
}
.hero-scanlines {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
}
.hero-inner {
  position: relative;
  max-width: min(88rem, calc(100vw - 3rem)); margin: 0 auto;
  display: grid; grid-template-columns: minmax(24rem, 0.85fr) minmax(34rem, 1.15fr);
  gap: clamp(2rem, 4vw, 4rem); align-items: center;
}
.hero-sub { color: var(--text-muted); font-size: 1.18rem; max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 1.8rem 0 1.4rem; }
.hero-trust { color: var(--text-faint); font-size: 0.8rem; letter-spacing: 0.04em; }
.hero-visual { min-width: 0; }

/* glitch — decorative duplicates are aria-safe via data-text; static under reduced motion */
.glitch { position: relative; display: inline-block; color: var(--cyan); text-shadow: var(--glow-cyan); }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  pointer-events: none;
  clip-path: inset(0 0 0 0);
  opacity: 0;
}
.glitch::before { color: var(--magenta); z-index: -1; }
.glitch::after  { color: var(--acid);    z-index: -2; }
@media (prefers-reduced-motion: no-preference) {
  .glitch::before { animation: glitch-a 7s steps(1) infinite; }
  .glitch::after  { animation: glitch-b 7s steps(1) infinite; }
  @keyframes glitch-a {
    0%, 92%, 100% { opacity: 0; transform: none; }
    93% { opacity: 0.85; transform: translate(-4px, 2px); clip-path: inset(12% 0 58% 0); }
    95% { opacity: 0.85; transform: translate(3px, -1px);  clip-path: inset(62% 0 8% 0); }
    97% { opacity: 0; }
  }
  @keyframes glitch-b {
    0%, 93%, 100% { opacity: 0; transform: none; }
    94% { opacity: 0.7; transform: translate(4px, -2px); clip-path: inset(48% 0 22% 0); }
    96% { opacity: 0.7; transform: translate(-3px, 1px); clip-path: inset(5% 0 78% 0); }
    98% { opacity: 0; }
  }
}

/* hero app preview */
.hero-app-window {
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 80% at 74% 8%, rgba(0, 229, 255, 0.08), transparent 62%),
    radial-gradient(ellipse 64% 72% at 20% 106%, rgba(255, 45, 149, 0.07), transparent 64%),
    var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(0, 229, 255, 0.06);
}
.hero-app-titlebar,
.hero-app-toolbar,
.hero-app-statusbar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border-color: var(--line);
  background: rgba(13, 13, 22, 0.92);
}
.hero-app-titlebar {
  min-height: 2.6rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
.hero-app-title {
  margin-left: 0.35rem;
  color: var(--text-faint);
  font-size: 0.7rem;
  font-weight: 700;
}
.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  padding: 0.34rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--magenta);
  font-size: 0.68rem;
  font-weight: 700;
}
.hero-status-pill span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 10px rgba(255, 45, 149, 0.55);
}
.hero-gear {
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  color: transparent;
  font-size: 0;
  line-height: 0;
  background: rgba(16, 16, 26, 0.86);
  border: 1px solid rgba(56, 60, 96, 0.9);
  box-shadow: inset 0 0 0 1px rgba(56, 60, 96, 0.38);
}
.hero-gear::before {
  content: '';
  display: block;
  width: 1.04rem;
  height: 1.04rem;
  transform: translateY(2px);
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%237E84A0'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12.22%202h-.44a2%202%200%200%200-2%202v.18a2%202%200%200%201-1%201.73l-.43.25a2%202%200%200%201-2%200l-.15-.08a2%202%200%200%200-2.73.73l-.22.38a2%202%200%200%200%20.73%202.73l.15.1a2%202%200%200%201%201%201.72v.51a2%202%200%200%201-1%201.74l-.15.09a2%202%200%200%200-.73%202.73l.22.38a2%202%200%200%200%202.73.73l.15-.08a2%202%200%200%201%202%200l.43.25a2%202%200%200%201%201%201.73V20a2%202%200%200%200%202%202h.44a2%202%200%200%200%202-2v-.18a2%202%200%200%201%201-1.73l.43-.25a2%202%200%200%201%202%200l.15.08a2%202%200%200%200%202.73-.73l.22-.39a2%202%200%200%200-.73-2.73l-.15-.08a2%202%200%200%201-1-1.74v-.5a2%202%200%200%201%201-1.74l.15-.09a2%202%200%200%200%20.73-2.73l-.22-.38a2%202%200%200%200-2.73-.73l-.15.08a2%202%200%200%201-2%200l-.43-.25a2%202%200%200%201-1-1.73V4a2%202%200%200%200-2-2z'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='3'/%3E%3C/svg%3E");
}
.hero-app-toolbar {
  justify-content: space-between;
  padding: 0.65rem 0.8rem;
  background:
    linear-gradient(90deg, rgba(0, 229, 255, 0.05), rgba(255, 45, 149, 0.02)),
    rgba(7, 7, 11, 0.64);
}
.hero-app-toolbar .hero-status-pill { margin-left: 0; }
.hero-segmented {
  display: inline-flex;
  min-width: min(17rem, 42%);
  padding: 0.16rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 16, 26, 0.86);
  color: var(--text-muted);
  font-size: 0.64rem;
  font-weight: 700;
}
.hero-segmented span {
  flex: 1;
  text-align: center;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
}
.hero-segmented .is-active {
  color: var(--text);
  background: rgba(0, 229, 255, 0.23);
  outline: 1px solid var(--cyan-dim);
}
.hero-rank {
  width: 7.6rem;
  text-align: right;
  color: var(--text-faint);
  font-size: 0.64rem;
}
.hero-app-body {
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) minmax(16rem, 0.86fr);
  gap: 0.75rem;
  min-height: 27rem;
  padding: 0.8rem;
  background:
    repeating-linear-gradient(0deg, var(--line-faint) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, var(--line-faint) 0 1px, transparent 1px 56px);
}
.hero-process-pane,
.hero-inspector-pane {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(7, 7, 11, 0.74);
}
.hero-process-pane {
  padding: 0.75rem;
}
.hero-search {
  display: flex;
  align-items: center;
  height: 2.2rem;
  margin-bottom: 0.65rem;
  padding: 0 0.75rem;
  color: var(--text-faint);
  font-size: 0.72rem;
  background: rgba(16, 16, 26, 0.9);
  border: 1px solid var(--line);
  clip-path: var(--notch);
}
.hero-search::before {
  content: '⌕';
  margin-right: 0.45rem;
  color: var(--cyan);
  font-family: var(--font-body);
}
.hero-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 7, 11, 0.75);
}
.hero-table-head,
.hero-process-row {
  display: grid;
  grid-template-columns: 1fr 4.5rem 4.5rem;
  align-items: center;
  column-gap: 0.65rem;
}
.hero-table-head {
  height: 1.9rem;
  padding: 0 0.75rem;
  color: var(--text-faint);
  font-size: 0.58rem;
  font-weight: 700;
  background: rgba(13, 13, 22, 0.96);
  border-bottom: 1px solid var(--line);
}
.hero-table-head span:not(:first-child) { text-align: right; }
.hero-section-label {
  margin: 0;
  padding: 0.42rem 0.75rem;
  color: var(--cyan);
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(16, 16, 26, 0.52);
}
.hero-process-row {
  position: relative;
  min-height: 3rem;
  padding: 0.45rem 0.75rem 0.45rem 1.2rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(35, 35, 58, 0.62);
}
.hero-process-row:last-child { border-bottom: 0; }
.hero-process-row.is-selected {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.15), rgba(0, 229, 255, 0.04));
}
.hero-process-row strong {
  display: block;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.15;
}
.hero-process-row em {
  display: block;
  color: var(--text-faint);
  font-size: 0.58rem;
  font-style: normal;
}
.hero-process-row b,
.hero-process-row > span:last-child {
  justify-self: end;
  font-size: 0.68rem;
}
.hero-process-row.is-hot b { color: var(--hot); }
.hero-severity-bar {
  position: absolute;
  left: 0.7rem;
  width: 0.16rem;
  height: 1.45rem;
  border-radius: 2px;
  background: var(--hot);
  box-shadow: 0 0 10px rgba(255, 95, 87, 0.35);
}
.hero-severity-bar.is-ok {
  background: var(--acid);
  box-shadow: 0 0 10px rgba(184, 255, 46, 0.25);
}
.hero-inspector-pane {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem;
  background:
    radial-gradient(ellipse 90% 80% at 52% 0%, rgba(0, 229, 255, 0.08), transparent 58%),
    rgba(13, 13, 22, 0.82);
}
.hero-inspector-head {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--hot);
  background: rgba(255, 95, 87, 0.05);
  clip-path: var(--notch);
}
.hero-warning-icon {
  display: grid;
  place-items: center;
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  color: var(--hot);
  background: rgba(255, 95, 87, 0.18);
  font-family: var(--font-display);
  font-weight: 800;
}
.hero-inspector-head strong {
  display: block;
  margin-bottom: 0.1rem;
  font-family: var(--font-display);
  font-size: 1.22rem;
  line-height: 1;
}
.hero-inspector-head p,
.hero-inspector-head span {
  display: block;
  margin: 0;
  color: var(--text-faint);
  font-size: 0.56rem;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 17rem;
}
.hero-live-panel {
  padding: 0.65rem;
  background: rgba(7, 7, 11, 0.64);
  border: 1px solid var(--line);
  clip-path: var(--notch);
}
.hero-live-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
}
.hero-live-head span {
  color: var(--magenta);
  font-size: 0.6rem;
  font-weight: 700;
}
.cpu-graph {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 6.6;
  background: rgba(13, 13, 22, 0.92);
}
.event-feed {
  list-style: none; margin: 0; padding: 0.6rem 0.9rem 0.8rem;
  border-top: 1px solid var(--line);
  font-size: 0.62rem; line-height: 1.75;
  color: var(--text-muted);
  min-height: 4.15rem;
}
.event-feed li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-feed .ev-time { color: var(--text-faint); margin-right: 0.6em; }
.event-feed .ev-proc { color: var(--acid); }
.event-feed .ev-pct  { color: var(--magenta); font-weight: 700; }
.event-feed .event-logged::before { content: '▲ logged  '; color: var(--magenta); }
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}
.hero-metrics span {
  min-width: 0;
  padding: 0.55rem;
  border: 1px solid var(--line);
  background: rgba(16, 16, 26, 0.75);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.hero-metrics em,
.hero-metrics strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-metrics em {
  color: var(--text-faint);
  font-size: 0.5rem;
  font-style: normal;
  text-transform: uppercase;
}
.hero-metrics strong {
  margin-top: 0.14rem;
  color: var(--text);
  font-size: 0.74rem;
}
.hero-metrics span:first-child strong { color: var(--magenta); }
.hero-cause-card {
  padding: 0.75rem;
  border: 1px solid var(--cyan-dim);
  background: rgba(16, 16, 26, 0.78);
  clip-path: var(--notch);
}
.hero-cause-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
}
.hero-cause-card p {
  margin: 0.28rem 0 0;
  color: var(--text-muted);
  font-size: 0.68rem;
  line-height: 1.35;
}
.hero-cause-card p::before {
  content: '> ';
  color: var(--magenta);
  font-family: var(--font-mono);
  font-weight: 800;
}
.hero-app-statusbar {
  justify-content: space-between;
  padding: 0.45rem 0.85rem;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 0.62rem;
}

/* ---------- Problem ---------- */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem); align-items: start; margin-top: 1.5rem;
}
.split-copy p { color: var(--text-muted); }
.split-copy strong { color: var(--text); }

.terminal {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  clip-path: var(--notch);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}
.terminal-titlebar {
  display: flex; align-items: center; gap: 7px;
  padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--line);
  font-size: 0.72rem; color: var(--text-faint);
}
.terminal pre {
  margin: 0; padding: 1.1rem 1.2rem 1.3rem;
  font-size: 0.8rem; line-height: 1.85;
  overflow-x: auto;
}
.t-prompt { color: var(--acid); }
.t-dim    { color: var(--text-faint); }
.t-key    { color: var(--violet); font-weight: 700; }
.t-err    { color: var(--magenta); }
.t-hot    { color: var(--text); text-shadow: 0 0 14px rgba(255, 45, 149, 0.45); }
.t-mark   { color: var(--magenta); font-weight: 700; }

/* ---------- Steps ---------- */
.steps {
  list-style: none; padding: 0; margin: 2.5rem 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  counter-reset: step;
}
.step-card {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--cyan);
  clip-path: var(--notch);
  padding: 1.6rem 1.5rem 1.4rem;
}
.step-card:nth-child(2) { border-top-color: var(--magenta); }
.step-card:nth-child(3) { border-top-color: var(--acid); }
.step-num {
  display: block; font-size: 2rem; font-weight: 700;
  color: var(--line); margin-bottom: 0.6rem;
  -webkit-text-stroke: 1px var(--text-faint);
}
.step-card p { color: var(--text-muted); margin: 0; font-size: 0.97rem; }

/* ---------- Feature grid ---------- */
.feature-grid {
  list-style: none; padding: 0; margin: 2.5rem 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}
.feature-card {
  background: linear-gradient(160deg, var(--bg-raised), var(--bg-panel) 70%);
  border: 1px solid var(--line);
  clip-path: var(--notch);
  padding: 1.5rem 1.5rem 1.3rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.feature-card:hover {
  border-color: var(--cyan-dim);
  box-shadow: 0 0 26px rgba(0, 229, 255, 0.10);
  transform: translateY(-3px);
}
.feature-glyph {
  display: inline-grid; place-items: center;
  width: 1.7em; height: 1.7em; margin-right: 0.45em;
  color: var(--cyan);
  border: 1px solid var(--cyan-dim);
  font-size: 0.85em;
  vertical-align: -0.35em;
}
.feature-card p { color: var(--text-muted); margin: 0.4rem 0 0; font-size: 0.97rem; }

/* ---------- In action (screenshots) ----------
   The screenshots include their own dark app chrome and transparent edges, so
   they float on the page without an extra frame. The section uses the normal
   content width so shots don't outrun the rest of the copy. */
.shot {
  margin: 2.6rem 0 0;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
}
.shot figcaption {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-faint);
  letter-spacing: 0.03em;
  max-width: 60rem;
}
.shot figcaption code { font-size: 1em; }

.shot-subhead {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  margin: 4rem 0 0.6rem;
}

/* Menu-bar shot: the generated desktop scene gets a rounded frame + shadow here. */
.shot-menubar-wide img {
  border-radius: 12px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

.shot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem 2rem;
}
.shot-grid .shot { margin-top: 1.6rem; }

@media (max-width: 820px) {
  .shot-grid { grid-template-columns: 1fr; }
}

/* ---------- For developers ---------- */
.suspect-list {
  list-style: none; padding: 0; margin: 2.2rem 0;
  border: 1px solid var(--line);
  clip-path: var(--notch);
  background: var(--bg-deep);
}
.suspect-list li {
  padding: 0.95rem 1.3rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}
.suspect-list li:last-child { border-bottom: none; }
.suspect-list li::before { content: '▸ '; color: var(--magenta); }
.pitch {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.3;
  margin: 2.4rem 0 0.8rem;
}
.pitch strong { color: var(--cyan); text-shadow: var(--glow-cyan); }
.footnote { color: var(--text-faint); font-size: 0.92rem; max-width: 42rem; }

/* ---------- Everyone else ---------- */
.plain-card {
  max-width: 46rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--acid);
  clip-path: var(--notch);
  padding: 1.8rem 2rem 1rem;
  font-size: 1.1rem;
}
.plain-card p { color: var(--text-muted); }
.plain-card strong { color: var(--text); }

/* ---------- Privacy ---------- */
.section-privacy {
  text-align: center;
  background:
    radial-gradient(ellipse 70% 90% at 50% 50%, rgba(0, 229, 255, 0.05), transparent 70%),
    var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-privacy .eyebrow, .section-privacy .section-lede { margin-left: auto; margin-right: auto; }
.privacy-statement { font-size: clamp(1.9rem, 5vw, 3.4rem); max-width: 56rem; margin: 0 auto 1.4rem; }
.accent-cyan    { color: var(--cyan);    text-shadow: var(--glow-cyan); }
.accent-magenta { color: var(--magenta); text-shadow: var(--glow-magenta); }
.accent-acid    { color: var(--acid);    text-shadow: 0 0 18px rgba(184, 255, 46, 0.3); }

/* ---------- Pricing ---------- */
.section-pricing {
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 90% at 78% 18%, rgba(0, 229, 255, 0.10), transparent 62%),
    radial-gradient(ellipse 55% 80% at 12% 100%, rgba(255, 45, 149, 0.08), transparent 66%),
    linear-gradient(180deg, rgba(16, 16, 26, 0.18), rgba(16, 16, 26, 0.72)),
    repeating-linear-gradient(90deg, var(--line-faint) 0 1px, transparent 1px 72px),
    var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pricing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(18rem, 0.78fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.pricing-copy h2 {
  max-width: 42rem;
  margin-bottom: 1rem;
}
.pricing-copy h2 span {
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  white-space: nowrap;
}
.pricing-lede {
  max-width: 38rem;
  color: var(--text-muted);
  font-size: 1.18rem;
}
.pricing-proof {
  background: linear-gradient(160deg, rgba(16, 16, 26, 0.96), rgba(13, 13, 22, 0.88));
  border: 1px solid var(--cyan-dim);
  border-top: 3px solid var(--cyan);
  clip-path: var(--notch);
  padding: 1.7rem 1.8rem;
  box-shadow: 0 0 42px rgba(0, 229, 255, 0.10);
}
.pricing-proof-kicker {
  color: var(--acid);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.pricing-includes { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.pricing-includes li {
  padding: 0.45rem 0;
  color: var(--text-muted);
  border-bottom: 1px dashed var(--line);
}
.pricing-includes li::before { content: '✓ '; color: var(--acid); font-family: var(--font-mono); }
.pricing-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.8rem 0 1.2rem; }
.pricing-trial { color: var(--acid); font-size: 0.82rem; }
.pricing-sysreq { color: var(--text-faint); font-size: 0.78rem; letter-spacing: 0.03em; }
.pricing-refund { color: var(--acid); font-size: 0.8rem; margin-top: 0.8rem; }
.pricing-refund a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.pricing-refund a:hover { color: var(--cyan); }
.pricing-note { color: var(--text-faint); font-size: 0.9rem; max-width: 36rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 2rem; }
.faq-item {
  border: 1px solid var(--line);
  border-left: 2px solid var(--cyan-dim);
  background: var(--bg-panel);
  margin-bottom: 0.8rem;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 1rem 1.3rem;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute; right: 1.2rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono); color: var(--magenta); font-size: 1.2rem;
}
.faq-item[open] summary::after { content: '−'; color: var(--cyan); }
.faq-item[open] { border-left-color: var(--cyan); }
.faq-item summary:hover { color: var(--cyan); }
.faq-item p { padding: 0 1.3rem 1.1rem; margin: 0; color: var(--text-muted); }

/* ---------- Support ---------- */
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  margin: 2.5rem 0 0;
}
.support-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-left: 2px solid var(--cyan-dim);
  clip-path: var(--notch);
  padding: 1.5rem 1.6rem 1.4rem;
}
.support-card h3 { margin-bottom: 0.5rem; }
.support-card p { color: var(--text-muted); margin: 0; font-size: 0.97rem; }
.support-card p + p { margin-top: 0.7rem; }
.support-card strong { color: var(--text); }
.support-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--cyan);
  border-bottom: 1px solid var(--cyan-dim);
  text-decoration: none;
}
.support-link:hover { color: #7df2ff; }
.support-pending { margin-top: 0.9rem; color: var(--text-faint); font-size: 0.82rem; }
.support-note {
  margin-top: 2rem;
  color: var(--text-faint);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.support-note a { color: var(--text-muted); }
.support-note a:hover { color: var(--cyan); }
@media (max-width: 640px) {
  .support-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  padding: 3rem 1.5rem 2.5rem;
}
.footer-inner {
  max-width: var(--content-w); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 2rem; align-items: flex-start; justify-content: space-between;
}
.footer-tag { color: var(--text-faint); font-size: 0.78rem; margin-top: 0.4rem; }
.footer-links { display: flex; gap: 1.6rem; }
.footer-links a {
  font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--text-muted); text-decoration: none;
}
.footer-links a:hover { color: var(--cyan); }
.footer-legal { width: 100%; color: var(--text-faint); font-size: 0.75rem; margin: 1rem 0 0; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0; transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  /* staggered hero load */
  .js .hero .reveal:nth-child(1) { transition-delay: 0.05s; }
  .js .hero .reveal:nth-child(2) { transition-delay: 0.15s; }
  .js .hero .reveal:nth-child(3) { transition-delay: 0.25s; }
  .js .hero .reveal:nth-child(4) { transition-delay: 0.35s; }
  .js .hero .reveal:nth-child(5) { transition-delay: 0.45s; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { max-width: 42rem; }
  .hero-app-body { min-height: 0; }
  .split { grid-template-columns: 1fr; }
  .pricing-hero { grid-template-columns: 1fr; }
  .steps, .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hero-inner {
    max-width: min(100%, calc(100vw - 2rem));
  }
  .hero-app-toolbar {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .hero-segmented {
    order: 3;
    flex: 1 1 100%;
    min-width: 0;
  }
  .hero-rank {
    margin-left: auto;
    width: auto;
  }
  .hero-app-body {
    grid-template-columns: 1fr;
  }
  .hero-process-pane {
    padding: 0.65rem;
  }
  .hero-inspector-head p,
  .hero-inspector-head span {
    max-width: min(26rem, 100%);
  }
  .cpu-graph {
    aspect-ratio: 16 / 7.4;
  }
}
@media (max-width: 640px) {
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.5rem 1.2rem;
  }
  .nav-open .nav-links { display: flex; }
  .nav-links a:not(.btn) { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 1rem; text-align: center; }
  .terminal pre { font-size: 0.7rem; }
  .hero-app-titlebar {
    padding: 0.6rem 0.7rem;
  }
  .hero-app-titlebar .hero-status-pill {
    display: none;
  }
  .hero-app-body {
    padding: 0.6rem;
  }
  .hero-table-head,
  .hero-process-row {
    grid-template-columns: minmax(0, 1fr) 4rem 3.7rem;
    column-gap: 0.45rem;
  }
  .hero-process-row {
    padding-right: 0.55rem;
  }
  .hero-process-row strong,
  .hero-process-row em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .hero-inspector-head {
    gap: 0.6rem;
  }
  .hero-warning-icon {
    flex-basis: 2.1rem;
    width: 2.1rem;
    height: 2.1rem;
  }
  .hero-metrics {
    grid-template-columns: 1fr;
  }
  .hero-app-statusbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .pricing-proof { padding: 1.4rem 1.35rem; }
  .pricing-ctas .btn { width: 100%; text-align: center; }
}

/* ---------- Subpages (thanks / terms / privacy / refunds) ---------- */
/* Subpage headers have no JS nav toggle — keep their few links inline at
   every width instead of collapsing into the (absent) mobile menu. */
@media (max-width: 640px) {
  .nav-static .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    background: none;
    border-bottom: 0;
    padding: 0;
  }
  .nav-static .nav-links a:not(.btn) { padding: 0; border-bottom: 0; }
}

.page-main {
  max-width: 52rem;
  margin: 0 auto;
  padding: calc(4rem + 8vh) 1.5rem 6rem;
  min-height: 60vh;
}
.page-main h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  margin: 0.6rem 0 1.2rem;
}
.page-updated { color: var(--text-faint); font-size: 0.8rem; margin-bottom: 2.2rem; }
.legal h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 2.2rem 0 0.7rem;
  color: var(--text);
}
.legal p, .legal li { color: var(--text-muted); }
.legal ul { padding-left: 1.3rem; margin: 0.6rem 0 1rem; }
.legal li { margin: 0.35rem 0; }
.legal a { color: var(--cyan); text-decoration: none; border-bottom: 1px solid var(--cyan-dim); }
.legal a:hover { color: #7df2ff; }
.legal strong { color: var(--text); }

/* thanks / checkout-return page */
.thanks-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--cyan);
  clip-path: var(--notch);
  padding: 2rem 2.1rem;
  margin-top: 1.6rem;
}
.thanks-card[data-state="succeeded"] { border-top-color: var(--acid); }
.thanks-card[data-state="failed"] { border-top-color: var(--magenta); }
.thanks-status {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.8rem;
}
.thanks-card[data-state="succeeded"] .thanks-status { color: var(--acid); }
.thanks-card[data-state="failed"] .thanks-status { color: var(--magenta); }
.thanks-card h1 { margin-top: 0; }
.thanks-card p { color: var(--text-muted); }
.thanks-card a { color: var(--cyan); text-decoration: none; border-bottom: 1px solid var(--cyan-dim); }
.thanks-card a:hover { color: #7df2ff; }
.thanks-steps { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.thanks-steps li {
  padding: 0.55rem 0;
  color: var(--text-muted);
  border-bottom: 1px dashed var(--line);
}
.thanks-steps li::before { content: '→ '; color: var(--cyan); font-family: var(--font-mono); }
.thanks-meta {
  margin-top: 1.4rem;
  color: var(--text-faint);
  font-size: 0.78rem;
  word-break: break-all;
}
.thanks-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }
