/* NoHop shared system — category standard at Linear's craft level.
   Near-black canvas, hairline borders, Nunito Sans, one mint accent. */

:root {
  color-scheme: dark;

  /* Surfaces */
  --bg: #08090a;
  --bg-raised: #0f1011;
  --bg-elevated: #151618;
  --bg-hover: #1b1c1f;

  /* Lines */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --line-faint: rgba(255, 255, 255, 0.05);

  /* Text */
  --text: #f7f8f8;
  --text-2: #b4bcc0;
  --text-3: #8a9196;
  --text-4: #62686d;

  /* Accent: NoHop mint, derived from the command-green mark */
  --accent: #5fd8ae;
  --accent-strong: #8ae6c6;
  --accent-ink: #052820;
  --accent-soft: rgba(95, 216, 174, 0.12);
  --accent-line: rgba(95, 216, 174, 0.32);

  /* Type */
  --font: "Nunito Sans", ui-sans-serif, system-ui, sans-serif;

  --fs-xs: 0.8125rem;   /* 13 */
  --fs-sm: 0.9375rem;   /* 15 */
  --fs-md: 1.0625rem;   /* 17 */
  --fs-lg: 1.25rem;     /* 20 */
  --fs-xl: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --fs-2xl: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --fs-hero: clamp(2.6rem, 1.5rem + 4.4vw, 4.75rem);

  /* Space */
  --gutter: clamp(1rem, 0.5rem + 2.4vw, 2rem);
  --container: 1200px;
  --section: clamp(5rem, 3.5rem + 6vw, 9rem);

  /* Shape and depth */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  /* Light system: one source, top-left (~155deg). Structural light is neutral white and low;
     mint stays a signal. --light-edge is the lit top corner added to raised surfaces. */
  --light-edge: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-frame: 0 1px 0 rgba(255, 255, 255, 0.07) inset, 0 18px 40px -18px rgba(0, 0, 0, 0.7), 0 6px 14px -8px rgba(0, 0, 0, 0.5);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 140ms;
  --dur: 260ms;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
  color: var(--text);
}

p { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }
a:not([class]) { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--line-strong); }
a:not([class]):hover { text-decoration-color: var(--accent); }
.nh-nav a,
.nh-footer a { text-decoration: none; }

::selection { background: var(--accent); color: var(--accent-ink); }

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

html { scrollbar-color: #2a2c30 var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2c30; border-radius: 10px; border: 2px solid var(--bg); }

.nh-container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.nh-section { padding-block: var(--section); position: relative; }
.nh-section + .nh-section { border-top: 1px solid var(--line-faint); }

.nh-tabular { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ Skip link */
.nh-skip {
  position: absolute;
  left: var(--gutter);
  top: -60px;
  z-index: 100;
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: var(--fs-sm);
}
.nh-skip:focus { top: 12px; }

/* ------------------------------------------------------------------ Buttons */
.nh-btn {
  --btn-h: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--btn-h);
  padding: 0 1.1rem;
  border-radius: var(--r-md);
  font: 600 var(--fs-sm) / 1 var(--font);
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.nh-btn:active { transform: translateY(1px); }
.nh-btn--sm { --btn-h: 36px; padding: 0 0.85rem; font-size: var(--fs-xs); }
.nh-btn--lg { --btn-h: 50px; padding: 0 1.35rem; font-size: var(--fs-md); }

.nh-btn--primary {
  background: var(--text);
  color: #0a0b0c;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 8px 24px -10px rgba(255, 255, 255, 0.35);
}
.nh-btn--primary:hover { background: #ffffff; box-shadow: 0 1px 0 #fff inset, 0 10px 30px -10px rgba(255, 255, 255, 0.5); }

.nh-btn--secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--line-strong);
  box-shadow: var(--light-edge);
}
.nh-btn--secondary:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.22); }

.nh-btn--accent { background: var(--accent); color: var(--accent-ink); }
.nh-btn--accent:hover { background: var(--accent-strong); }

.nh-btn--link {
  min-height: auto;
  padding: 0.35rem 0;
  border-radius: 0;
  color: var(--text-2);
}
.nh-btn--link:hover { color: var(--text); }
.nh-btn__arrow { transition: transform var(--dur) var(--ease-out); }
.nh-btn--link:hover .nh-btn__arrow { transform: translateX(3px); }

.nh-icon { flex: none; }

/* ------------------------------------------------------------------ Nav */
.nh-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) ease, border-color var(--dur) ease, backdrop-filter var(--dur) ease;
}
.nh-nav.is-scrolled,
.nh-nav.is-open {
  background: rgba(8, 9, 10, 0.78);
  border-bottom-color: var(--line);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.nh-nav__inner { display: flex; align-items: center; gap: 2rem; height: 64px; }
.nh-nav__brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 650; font-size: 1.0625rem; letter-spacing: -0.02em; color: var(--text); }
.nh-nav__brand .nh-mark { color: var(--accent); }
.nh-nav__links { display: flex; gap: 1.75rem; flex: 1; }
.nh-nav__links a { font-size: var(--fs-sm); color: var(--text-3); transition: color var(--dur-fast) ease; }
.nh-nav__links a:hover { color: var(--text); }
.nh-nav__actions { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }

.nh-nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nh-nav__toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform var(--dur) var(--ease-out); }
.nh-nav.is-open .nh-nav__toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nh-nav.is-open .nh-nav__toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.nh-nav__sheet { display: none; }

@media (max-width: 820px) {
  .nh-nav__links { display: none; }
  .nh-nav__toggle { display: inline-flex; }
  .nh-nav__sheet:not([hidden]) {
    display: grid;
    gap: 0.25rem;
    padding: 0.5rem var(--gutter) 1.25rem;
    border-top: 1px solid var(--line);
  }
  .nh-nav__sheet a { padding: 0.75rem 0; font-size: var(--fs-lg); color: var(--text-2); border-bottom: 1px solid var(--line-faint); }
  /* Touch targets: the nav action grows to 44px on touch layouts. */
  .nh-nav .nh-btn--sm { --btn-h: 44px; }
}
@media (max-width: 420px) {
  .nh-nav .nh-btn--sm span { display: none; }
  .nh-nav .nh-btn--sm { width: 44px; padding: 0; }
}

/* ------------------------------------------------------------------ Section head */
.nh-section-head { display: grid; gap: 1rem; max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.nh-section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.nh-section-head h2 { font-size: var(--fs-2xl); }
/* Two-tone headings: the supporting half of an h2 in tertiary text (max 3 per page). */
.nh-dim { color: var(--text-3); }
.nh-section-head p { font-size: var(--fs-lg); color: var(--text-3); line-height: 1.5; max-width: 38rem; }

/* ------------------------------------------------------------------ Product frame */
.nh-frame {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  box-shadow: var(--light-edge), var(--shadow-frame);
  overflow: hidden;
}
.nh-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.05), transparent 24%);
}
.nh-frame__bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg-elevated); }
.nh-frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2c30; }
.nh-frame img { width: 100%; }
.nh-frame figcaption { padding: 12px 16px; font-size: var(--fs-xs); color: var(--text-3); border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------ Status */
.nh-status { display: inline-flex; align-items: center; gap: 0.55rem; font-size: var(--fs-xs); color: var(--text-3); }
.nh-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ------------------------------------------------------------------ Footer */
.nh-footer { border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; }
.nh-footer__inner { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem 2rem; align-items: center; }
.nh-footer__brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 650; letter-spacing: -0.02em; }
.nh-footer__brand .nh-mark { color: var(--accent); }
.nh-footer__links { display: flex; flex-wrap: wrap; gap: 1.25rem 1.5rem; justify-content: flex-end; }
/* 44px hit area via padding, cancelled by margin so the row keeps its look. */
.nh-footer__links a { display: inline-flex; align-items: center; padding-block: 10px; margin-block: -10px; font-size: var(--fs-sm); color: var(--text-3); }
.nh-footer__links a:hover { color: var(--text); }
.nh-footer__legal { grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--text-3); padding-top: 1.25rem; border-top: 1px solid var(--line-faint); }

@media (max-width: 640px) {
  .nh-footer__inner { grid-template-columns: 1fr; }
  .nh-footer__links { justify-content: flex-start; }
}
