/* key marketing — dark, macOS-native, fingerprint atmosphere */

:root {
  --bg-deep: #05070c;
  --surface: rgba(18, 24, 36, 0.72);
  --surface-solid: #121a28;
  --border: rgba(148, 163, 184, 0.12);
  --text: #e8edf5;
  --muted: #94a3b8;
  --dim: #64748b;
  --accent: #3b82f6;
  --accent-deep: #1d4ed8;
  --success: #34d399;
  --matrix: #4ade80;
  --purple: #7c3aed;
  --radius-lg: 20px;
  --radius-md: 12px;
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 9999;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: linear-gradient(to bottom, rgba(5, 7, 12, 0.92), transparent);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.15rem;
}

.brand-icon {
  display: flex;
  flex-shrink: 0;
  line-height: 0;
}

.brand-icon img {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
}

.brand-name {
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 860px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.45;
  transform: scale(1.02);
}

.hero-bg-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 7, 12, 0.2) 0%,
    rgba(5, 7, 12, 0.75) 45%,
    var(--bg-deep) 100%
  );
}

.hero-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 7rem 1.5rem 3.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2.5rem;
  min-width: 0;
}

.hero-inner {
  position: relative;
  max-width: 720px;
  min-width: 0;
}

.hero-demo {
  position: relative;
  width: 100%;
  min-width: 0;
}

.hero-demo .demo-stage {
  position: relative;
  z-index: 1;
}

.hero-demo.is-terminal-priming .terminal-window {
  opacity: 0;
}

@media (min-width: 1100px) {
  .hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, min(44vw, 460px));
    gap: 2rem clamp(1.5rem, 3.5vw, 2.75rem);
    align-items: center;
    align-content: center;
    justify-content: stretch;
    padding-bottom: 3rem;
  }

  .hero-demo {
    align-self: start;
  }

  .hero-inner {
    max-width: none;
  }

  .hero-lead {
    max-width: min(52ch, 100%);
  }

  .hero-demo .demo-desktop {
    max-width: 100%;
    margin: 0;
  }
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 1rem;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.hero-title-accent {
  background: linear-gradient(120deg, #93c5fd 0%, #7c3aed 40%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.125rem;
  color: #cbd5e1;
  max-width: 52ch;
  margin: 0 0 2rem;
}

.hero-lead code {
  font-family: var(--font-mono);
  font-size: 0.95em;
  color: var(--matrix);
  background: rgba(74, 222, 128, 0.08);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.45);
}


.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.demo-stage {
  position: relative;
}

.demo-desktop {
  max-width: 920px;
  margin: 0 auto;
}

.demo-terminal-stack {
  position: relative;
  width: 100%;
  z-index: 1;
  overflow: visible;
}

.demo-terminal-stack .terminal-window {
  position: relative;
  z-index: 1;
}

/* Terminal */
.terminal-window {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 260px;
}

.terminal-chrome {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red {
  background: #ff5f56;
}
.dot-yellow {
  background: #ffbd2e;
}
.dot-green {
  background: #27c93f;
}

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  color: var(--dim);
  font-weight: 500;
}

.terminal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 1rem 1.15rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.55;
}

.terminal-scroll {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overflow-anchor: none;
}

.terminal-history {
  flex: 0 0 auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: #cbd5e1;
  line-height: 1.55;
}

.terminal-history > div:not(.terminal-turn-break) {
  margin: 0;
  padding: 0;
  line-height: 1.55;
}

.terminal-history .terminal-command-line,
.terminal-cursor-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: calc(1em * 1.55);
  line-height: 1.55;
}

.terminal-history .line-out {
  color: var(--matrix);
}
.terminal-history .line-out.dim {
  color: var(--dim);
}
.terminal-history .line-err {
  color: #f87171;
}

.terminal-history .dim,
.terminal-cursor-row .dim {
  color: var(--dim);
}

.terminal-history .typed {
  color: #f1f5f9;
}

.terminal-history .password-prompt,
.terminal-cursor-row .password-prompt {
  color: var(--muted);
  font-weight: 500;
  margin-right: 0.5ch;
}

.terminal-history .masked-inline {
  color: var(--dim);
  letter-spacing: 0.08em;
}

.terminal-turn-break {
  height: 1rem;
  min-height: 1rem;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  /* Do not override hidden carets — that used to leave a solid bar visible while “off”. */
  .caret:not([data-hidden="true"]) {
    animation: none;
    opacity: 1;
  }
}

.terminal-cursor-row {
  flex: 0 0 auto;
}

.terminal-cursor-row[data-concealed="true"] {
  visibility: hidden;
}

.prompt {
  color: var(--dim);
  margin-right: 0.5ch;
  user-select: none;
  font-weight: 500;
}

.typed {
  color: #f1f5f9;
}

.caret {
  display: inline-block;
  flex-shrink: 0;
  width: 0.55ch;
  height: 1em;
  background: var(--accent);
  margin-left: 1px;
  align-self: center;
  animation: blink 1s step-end infinite;
}

.caret[data-hidden="true"] {
  display: none !important;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Auth overlays — full terminal bounds; Touch ID + watch centered as a unit; watch straddles sheet’s right edge */
.auth-column {
  position: absolute;
  inset: 0;
  margin: 0;
  border: none;
  padding: 0;
  z-index: 5;
  box-sizing: border-box;
  pointer-events: none;
  --auth-watch-width: 176px;
  --auth-watch-max-width: none;
}

/* Pairs sheet + watch: centered in the terminal; keeps a min box when sheet is [hidden] (debug watch / idle) */
.auth-pair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(calc(100% - 2rem), 292px);
  z-index: 6;
  pointer-events: none;
}

.auth-pair:not(:has(.touch-sheet:not([hidden]))) {
  min-height: 200px;
}

.auth-column .auth-pair .touch-sheet {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  width: 100%;
  margin: 0;
  z-index: 1;
  transform: translateY(10px) scale(0.97);
  pointer-events: auto;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.4),
    0 8px 28px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.07);
}

.auth-column .auth-pair .touch-sheet[data-visible="true"] {
  transform: translateY(0) scale(1);
}

/* Lower-right of the sheet: mostly on the dialog, slight extension past the right edge */
.auth-column .auth-pair .watch-frame {
  position: absolute;
  top: 64%;
  left: calc(100% - 14px);
  right: auto;
  bottom: auto;
  width: var(--auth-watch-width);
  max-width: var(--auth-watch-max-width);
  margin: 0;
  z-index: 2;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 14px));
  transition:
    opacity 0.32s var(--ease-out) 0.04s,
    transform 0.32s var(--ease-out) 0.04s;
}

.auth-column .auth-pair .watch-frame[data-visible="true"] {
  opacity: 1;
  transform: translate(-50%, -50%);
}


.touch-sheet {
  max-width: 300px;
  margin: 0 auto;
  background: #1e1e23;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1rem 1.1rem 0.95rem;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.35),
    0 8px 26px rgba(0, 0, 0, 0.3);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  text-align: left;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition:
    opacity 0.32s var(--ease-out),
    transform 0.32s var(--ease-out);
}

.touch-sheet[data-visible="true"] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.touch-sheet[hidden] {
  display: none;
}

.touch-sheet-icon-row {
  margin-bottom: 0.5rem;
}

.touch-sheet-fingerprint-bubble {
  position: relative;
  display: inline-block;
  vertical-align: top;
}

.touch-sheet-fingerprint-inner {
  display: block;
  line-height: 0;
}

.touch-sheet-fingerprint-frame {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: #ffffff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 2px 8px rgba(0, 0, 0, 0.28);
}

.touch-sheet-fingerprint-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.touch-sheet-app-badge {
  position: absolute;
  right: -5px;
  bottom: -3px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.touch-sheet-app-badge-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 4px;
}

.touch-sheet-title {
  margin: 0 0 0.65rem;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
}

.touch-sheet-line {
  margin: 0 0 0.45rem;
  font-size: 0.8125rem;
  line-height: 1.38;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
}

.touch-sheet-line:last-of-type {
  margin-bottom: 0;
}

.touch-sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 1rem;
}

.touch-btn {
  width: 100%;
  font-family: inherit;
  font-size: 0.8125rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: none;
  cursor: default;
}

.touch-btn-primary {
  background: linear-gradient(180deg, #0a84ff 0%, #0071e3 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset;
}

.touch-btn-secondary {
  background: #3a3a3e;
  color: #f5f5f7;
  font-weight: 500;
}

/* Watch Ultra — watchOS “Double Click to Approve”; no left control; side ridge aligns with on-screen pill */
.watch-frame {
  position: relative;
  align-self: center;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.32s var(--ease-out) 0.04s,
    transform 0.32s var(--ease-out) 0.04s;
}

.watch-frame[data-visible="true"] {
  opacity: 1;
  transform: translateY(0);
}

.watch-frame[hidden] {
  display: none;
}

.watch-frame--ultra {
  /* Shared height token; runtime JS mirrors the rendered pill height onto the side ridge. */
  --watch-pill-h: 60px;
  --watch-side-exterior-top: calc(50% + 2.45rem);
  --watch-side-exterior-h: var(--watch-pill-h);
  /* Slightly inboard vs the crown so the side button sits on the case edge instead of floating. */
  --watch-side-exterior-right: calc(-0.5rem - 1px);
  --watch-side-exterior-w: 6px;
  max-width: 210px;
  /* Equal inset on all sides so the glass is centered in the titanium shell; hardware extends past with negative `right` */
  padding: 0.5rem;
  border-radius: 2rem;
  background: linear-gradient(155deg, #a8adb2 0%, #7a7f84 38%, #4f5256 100%);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  overflow: visible;
}

/* Raised guard lip on the right (Ultra-style) — sits outside the glass */
.watch-frame--ultra::after {
  content: "";
  position: absolute;
  top: 18%;
  bottom: 18%;
  right: -0.02rem;
  width: 5px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.12), rgba(255, 255, 255, 0.06));
  pointer-events: none;
  z-index: 1;
}

/* Glass; physical ridge is positioned on .watch-frame--ultra (same as crown) so the outer edge lines up. */
.watch-screen-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: visible;
}

/* Runtime JS sets top + height from the real on-screen pill so the two stay locked together. */
.watch-frame--ultra > .watch-side-exterior {
  position: absolute;
  top: var(--watch-side-exterior-top, calc(50% + 2.45rem));
  right: var(--watch-side-exterior-right, calc(-0.5rem - 4px));
  width: var(--watch-side-exterior-w, 6px);
  height: var(--watch-side-exterior-h, var(--watch-pill-h));
  min-height: var(--watch-side-exterior-h, var(--watch-pill-h));
  max-height: var(--watch-side-exterior-h, var(--watch-pill-h));
  border-radius: 0 6px 6px 0;
  transform: none;
  background: linear-gradient(180deg, #6e7378, #3d4044);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.35);
  z-index: 4;
  pointer-events: none;
  box-sizing: border-box;
}

@keyframes watch-side-double-press {
  0%,
  100% {
    transform: translateX(0);
  }
  11% {
    transform: translateX(-5px);
  }
  24% {
    transform: translateX(0);
  }
  40% {
    transform: translateX(-5px);
  }
  58% {
    transform: translateX(0);
  }
}

/* Physical side button: two quick presses (green on-screen pill is delayed in JS until this finishes) */
.watch-frame--ultra[data-side-press="true"] > .watch-side-exterior {
  animation: watch-side-double-press 0.72s cubic-bezier(0.33, 1, 0.68, 1) 1 both;
}

.watch-screen {
  position: absolute;
  inset: 0;
  border-radius: 1.2rem;
  background: #000000;
  border: 2px solid #1c1c20;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 6px 22px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  z-index: 2;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

/* Crown — taller to read at marketing scale (Ultra proportions) */
.watch-frame--ultra .watch-crown {
  position: absolute;
  top: 17%;
  right: calc(-0.5rem - 4px);
  width: 13px;
  height: 44px;
  border-radius: 0 6px 6px 0;
  background: linear-gradient(180deg, #5c5f64, #2e3033);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.35);
  z-index: 3;
  pointer-events: none;
}

.watch-close {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 4;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(58, 58, 60, 0.95);
  color: #fff;
  font-size: 14px;
  font-weight: 300;
  line-height: 1;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
}

.watch-close span {
  pointer-events: none;
  margin-top: -1px;
}

/* Even inset inside the glass — same padding L/R/T/B so content isn’t optically shifted */
.watch-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  height: 100%;
  padding: 2.65rem 0.65rem;
  box-sizing: border-box;
  transition: opacity 0.35s;
}

.watch-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  flex: 0 0 auto;
  gap: 0.65rem;
  transform: none;
}

.watch-upper {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.watch-lower {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

.watch-frame--ultra .watch-lower {
  margin-top: -6px;
}

.watch-mac-cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  margin-top: 0;
}

.watch-frame--ultra .watch-mac-cluster {
  margin-top: 0.55rem;
}

/* Monitor — dominant hero on the face (reference proportions) */
.watch-mac-display {
  width: 46%;
  min-width: 74px;
  max-width: 94px;
  aspect-ratio: 72 / 52;
  height: auto;
  border: 2px solid #fff;
  border-radius: 6px 6px 4px 4px;
  position: relative;
  box-sizing: border-box;
}

/* Inner app tile ~¼ of bezel area */
.watch-mac-inner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48%;
  height: 48%;
  border-radius: 3px;
  background: #0a0a0a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.watch-mac-app-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 22%;
}

.watch-mac-stand {
  width: 34px;
  height: 7px;
  background: #fff;
  border-radius: 0 0 4px 4px;
  margin-top: 2px;
}

.watch-frame--ultra .watch-mac-display {
  width: 58%;
  min-width: 90px;
  max-width: 120px;
}

.watch-frame--ultra .watch-mac-stand {
  width: 40px;
  height: 8px;
}

.watch-device-name {
  margin: 0.46rem 0 0;
  padding: 0 0.65rem;
  font-size: 0.64rem;
  font-weight: 400;
  color: #98989d;
  letter-spacing: -0.01em;
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
}

/*
 * Row height matches --watch-pill-h (same as exterior ridge height token).
 */
.watch-footer-approve {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0.28rem;
  width: 100%;
  margin-top: 0;
  padding: 0 0.1rem;
  box-sizing: border-box;
  height: var(--watch-pill-h, 60px);
}

.watch-dc-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  text-align: right;
  padding: 0 0.06rem;
  flex: 0 1 auto;
  max-width: calc(100% - 12px);
  height: var(--watch-pill-h, 60px);
  box-sizing: border-box;
}

/* Slow, steady fluid nudge toward the side — two soft waves per cycle, no sharp snaps */
@keyframes watch-double-click-nudge {
  0%,
  100% {
    transform: translateX(0);
  }
  10% {
    transform: translateX(-3.5px);
  }
  20% {
    transform: translateX(-6.5px);
  }
  30% {
    transform: translateX(-8px);
  }
  40% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(0);
  }
  60% {
    transform: translateX(-3.5px);
  }
  70% {
    transform: translateX(-6.5px);
  }
  80% {
    transform: translateX(-8px);
  }
  90% {
    transform: translateX(-4px);
  }
}

.watch-frame--ultra .watch-footer-approve .watch-dc-text {
  animation: watch-double-click-nudge 2.65s cubic-bezier(0.42, 0, 0.58, 1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .watch-frame--ultra .watch-footer-approve .watch-dc-text {
    animation: none;
  }
  .watch-frame--ultra[data-side-press="true"] > .watch-side-exterior {
    animation: none;
    transform: none;
  }
}

.watch-dc-line {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #fff;
}

.watch-side-pill {
  width: 4px;
  border-radius: 2px;
  background: #fff;
  flex-shrink: 0;
  align-self: center;
  margin-right: 0;
}

.watch-frame--ultra .watch-side-pill {
  height: var(--watch-pill-h);
  min-height: var(--watch-pill-h);
  max-height: var(--watch-pill-h);
  box-sizing: border-box;
  padding: 0;
  border: none;
}

.watch-footer-approve[data-active="true"] .watch-side-pill {
  background: #34d399;
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.65);
}

/* Bring the bar close to the inner glass edge without over-pulling the whole row. */
.watch-frame--ultra .watch-footer-approve {
  margin-right: -0.4rem;
  padding-right: 0;
}

.watch-frame--ultra .watch-dc-text {
  max-width: calc(100% - 10px);
}

/* Tight glow so the highlight doesn’t read much taller than the ridge */
.watch-frame--ultra .watch-footer-approve[data-active="true"] .watch-side-pill {
  box-shadow: 0 0 7px rgba(52, 211, 153, 0.55);
}

/* Features */
.features {
  padding: 2rem 1.5rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.features .section-head {
  margin-bottom: 1.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 700px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-card code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--matrix);
}

.feature-card p a:link,
.feature-card p a:visited {
  color: var(--matrix);
  text-decoration: underline;
  text-decoration-color: rgba(74, 222, 128, 0.35);
  text-underline-offset: 0.12em;
}

.feature-card p a:hover {
  color: var(--text);
  text-decoration-color: rgba(74, 222, 128, 0.65);
}

.feature-card p a:hover code {
  color: var(--matrix);
}

.feature-card p a code {
  color: var(--matrix);
}

/* Compose section */
.compose-section {
  padding: 2rem 1.5rem 5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.compose-section .feature-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .compose-section .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.compose-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.compose-card h3 {
  margin: 0;
  padding: 1.25rem 1.5rem 1rem;
  font-size: 1.1rem;
}

.compose-card pre {
  margin: 0;
  flex: 1;
  padding: 1rem 1.5rem 1.25rem;
  background: rgba(0, 0, 0, 0.28);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}

.compose-card pre code {
  color: var(--muted);
}

/* Bottom section — install + commands side by side */
.bottom-section {
  padding: 2rem 1.5rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.bottom-section .section-head {
  margin-bottom: 2rem;
}

.bottom-section .section-head code {
  font-family: var(--font-mono);
  font-size: 0.95em;
  color: var(--matrix);
  background: rgba(74, 222, 128, 0.08);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.bottom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .bottom-grid {
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
  }
}

.commands-card .cli-help {
  padding: 1rem 1.5rem 1.25rem;
  background: rgba(0, 0, 0, 0.28);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.65;
}

.install-card .install-inner {
  padding: 1.25rem 1.5rem 1.5rem;
  background: rgba(0, 0, 0, 0.28);
  border-top: 1px solid var(--border);
}

/* CLI */

.cli-block {
  margin: 0;
  padding: 1.25rem 1.5rem;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.65;
}


/* key help–style command list (see CLIParser.usageText) */
.cli-help {
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.cli-help-label {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dim);
}

.cli-help-label:not(:first-child) {
  margin-top: 1.25rem;
}

.cli-help-usage {
  margin: 0 0 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text);
}

.cli-help-cmd {
  color: #93c5fd;
  font-weight: 500;
}

.cli-help-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cli-help-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
  gap: 0.65rem 1rem;
  align-items: baseline;
  font-size: 0.82rem;
  line-height: 1.45;
}

@media (max-width: 540px) {
  .cli-help-list > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

.cli-help-list dt {
  margin: 0;
  font-weight: 400;
}

.cli-help-list dt code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: #93c5fd;
  word-break: break-word;
}

.cli-help-list dd {
  margin: 0;
  color: var(--muted);
}

/* Install */

.install-code {
  margin: 0 0 1rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  overflow-x: auto;
}

.install-note {
  margin: 0.5rem 0 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.install-hint {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

