/* ═══════════════════════════════════════════════════════════════════════════
   VaniQ — the shared surface.

   One canvas, one typeface, one accent. The page is dark because the product
   is: VaniQ lives in the menu bar and draws a dark HUD over whatever you are
   working in, and a bright marketing page would be a different object than the
   thing it sells.

   The typeface is the system one on purpose. This is a Mac-only app, so every
   qualified visitor renders San Francisco — the same face as the app, macOS and
   apple.com. No webfont request, no flash of fallback, nothing to load before
   the first paint.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  color-scheme: dark;

  /* Surfaces, from the page floor up. */
  --void:        #070809;
  --ink:         #0B0D11;
  --surface:     #14171E;
  --surface-2:   #1A1E26;
  --surface-3:   #222833;

  /* Hairlines. Borders on dark are light at low alpha, never grey fills. */
  --hair:        rgba(255, 255, 255, 0.075);
  --hair-lift:   rgba(255, 255, 255, 0.12);
  --hair-bright: rgba(255, 255, 255, 0.20);

  /* Type. Three levels is enough; a fourth always turns into noise. */
  --text:        #F4F6FA;
  --text-2:      #A3ACBB;
  --text-3:      #6B7482;

  /* The signal. The app's amber, unchanged — it is the same colour as the
     waveform in the HUD, so the site and the product agree. */
  --amber:       #F0AE4E;
  --amber-deep:  #E9A13B;
  --amber-dim:   rgba(240, 174, 78, 0.14);
  --amber-line:  rgba(240, 174, 78, 0.28);
  --on-amber:    #1A1205;

  /* Semantic only: text that has landed in the app. */
  --mint:        #5BC0A3;
  --mint-dim:    rgba(91, 192, 163, 0.14);

  --shadow-sm:   0 1px 2px rgba(0,0,0,.45);
  --shadow:      0 2px 6px rgba(0,0,0,.4), 0 18px 48px rgba(0,0,0,.45);
  --shadow-lg:   0 4px 12px rgba(0,0,0,.45), 0 40px 90px rgba(0,0,0,.6);

  --gutter:      clamp(20px, 5.2vw, 44px);
  --wide:        1140px;
  --mid:         900px;
  --narrow:      660px;
  --radius:      18px;
  --radius-lg:   24px;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Cascadia Mono",
          monospace;

  /* Apple's own display sizes are large and tightly tracked; the tracking is
     what stops them reading as shouting. */
  --t-display: clamp(2.6rem, 1.35rem + 5.1vw, 5.1rem);
  --t-h2:      clamp(1.95rem, 1.25rem + 2.9vw, 3.4rem);
  --t-h3:      clamp(1.15rem, 1.06rem + 0.4vw, 1.35rem);
  --t-lede:    clamp(1.08rem, 1rem + 0.5vw, 1.35rem);
  --t-body:    clamp(1rem, 0.97rem + 0.18vw, 1.09rem);
  --t-small:   0.9375rem;
  --t-micro:   0.8125rem;

  --section-y:  clamp(88px, 11vw, 168px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 78px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-synthesis-weight: none;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.06;
  text-wrap: balance;
}
h1 { font-size: var(--t-display); letter-spacing: -0.04em; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); letter-spacing: -0.02em; line-height: 1.25; }
p  { margin: 0; }

a { color: inherit; text-decoration: none; }
.link {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--amber-line);
  transition: text-decoration-color .2s ease;
}
.link:hover { text-decoration-color: var(--amber); }

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

code, .mono, .num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

img, svg, canvas, video { display: block; max-width: 100%; }
/* An author-level `display` on a type selector beats the UA's [hidden] rule,
   so say it once here rather than remembering it at every call site. */
[hidden] { display: none !important; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  padding: 12px 20px; background: var(--surface); border-radius: 0 0 12px 0;
}
.skip:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Layout ───────────────────────────────────────────────────────────────── */

.wrap   { width: 100%; max-width: var(--wide);   margin-inline: auto; padding-inline: var(--gutter); }
.wrap--mid    { max-width: calc(var(--mid)    + var(--gutter) * 2); }
.wrap--narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); }

section { position: relative; }
.band { padding-block: var(--section-y); }
.band--ink  { background: var(--ink); }
.band--tight { padding-block: clamp(60px, 7vw, 104px); }

/* A hairline that fades out at both ends, so bands meet without a hard rule. */
.band--seam { border-top: 1px solid transparent; border-image: linear-gradient(90deg, transparent, var(--hair) 22%, var(--hair) 78%, transparent) 1; }

.head { text-align: center; max-width: 42ch; margin-inline: auto; }
.head--wide { max-width: 54ch; }
.eyebrow {
  font-size: var(--t-micro);
  font-weight: 590;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}
.eyebrow--quiet { color: var(--text-3); }
.lede {
  margin-top: 22px;
  font-size: var(--t-lede);
  line-height: 1.5;
  color: var(--text-2);
  letter-spacing: -0.016em;
}
.note {
  font-size: var(--t-small);
  line-height: 1.6;
  color: var(--text-3);
}
.note--center { text-align: center; max-width: 60ch; margin-inline: auto; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 999px;
  font-family: inherit; font-size: 1.0125rem; font-weight: 590;
  letter-spacing: -0.014em;
  cursor: pointer; white-space: nowrap;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s ease,
              background-color .18s ease, opacity .18s ease;
}
.btn:active { transform: scale(.975); }

.btn--primary {
  color: var(--on-amber);
  background: linear-gradient(180deg, #F7BC64 0%, var(--amber-deep) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.45) inset,
              0 6px 20px rgba(233,161,59,.24),
              0 1px 2px rgba(0,0,0,.35);
}
.btn--primary:hover {
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset,
              0 10px 30px rgba(233,161,59,.34),
              0 1px 2px rgba(0,0,0,.35);
}
.btn--ghost {
  color: var(--text);
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 1px var(--hair-lift) inset;
}
.btn--ghost:hover { background: rgba(255,255,255,.1); }

.btn--sm { min-height: 40px; padding: 0 18px; font-size: .9375rem; }
.btn__meta { font-weight: 400; opacity: .62; font-size: .9375rem; }

.actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; align-items: center;
  margin-top: 34px;
}

/* ── Masthead ─────────────────────────────────────────────────────────────── */

.masthead {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 8, 9, 0.66);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.masthead--stuck {
  border-bottom-color: var(--hair);
  background: rgba(7, 8, 9, 0.84);
}
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 56px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand__mark { width: 24px; height: 24px; border-radius: 5.5px; flex: none; }
.brand__name {
  font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.02em;
  display: inline-flex; align-items: baseline;
}
.brand__name .i { color: var(--amber); }

.masthead__nav { display: flex; align-items: center; gap: 4px; }
.masthead__nav a:not(.btn) {
  padding: 8px 13px; border-radius: 9px;
  font-size: .9063rem; font-weight: 450; color: var(--text-2);
  transition: color .18s ease, background-color .18s ease;
}
.masthead__nav a:not(.btn):hover { color: var(--text); background: rgba(255,255,255,.05); }
@media (max-width: 720px) {
  .masthead__nav .hide-sm { display: none; }
}

/* ── macOS window chrome, used everywhere a demonstration appears ─────────── */

.win {
  position: relative;
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--hair) inset, var(--shadow);
  overflow: hidden;
}
.win__bar {
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding-inline: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
  border-bottom: 1px solid var(--hair);
}
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.lights i:nth-child(1) { background: #FF5F57; }
.lights i:nth-child(2) { background: #FEBC2E; }
.lights i:nth-child(3) { background: #28C840; }
.win__title {
  flex: 1; text-align: center;
  font-size: .75rem; font-weight: 500; color: var(--text-3);
  letter-spacing: -0.005em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.win__body { padding: 20px; }

/* The caret that stands in for your cursor in every mockup. */
.caret {
  display: inline-block; width: 2px; height: 1.05em;
  vertical-align: -0.16em; margin-left: 1px;
  background: var(--amber);
  animation: blink 1.06s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── The HUD. A faithful copy of the panel the app actually draws. ────────── */

.hud {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 11px 16px 11px 12px;
  border-radius: 23px;
  background: rgba(24, 27, 34, 0.92);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 0 0 1px rgba(240,174,78,.34) inset,
              0 10px 30px rgba(0,0,0,.5),
              0 0 44px rgba(240,174,78,.09);
}
.hud--done { box-shadow: 0 0 0 1px rgba(91,192,163,.34) inset,
                         0 10px 30px rgba(0,0,0,.5),
                         0 0 44px rgba(91,192,163,.09); }
.hud__wave {
  width: 62px; height: 40px; border-radius: 13px;
  background: var(--amber-dim);
  display: grid; place-items: center;
}
.hud--done .hud__wave { background: var(--mint-dim); }
.hud__text { min-width: 0; }
.hud__state {
  display: flex; align-items: center; gap: 7px;
  font-size: .75rem; font-weight: 590; letter-spacing: -0.005em;
  color: var(--amber);
}
.hud--done .hud__state { color: var(--mint); }
.hud__state::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
}
.hud__said {
  display: block;
  margin-top: 2px;
  font-size: .9375rem; color: var(--text); letter-spacing: -0.014em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hud__badge {
  margin-left: auto; padding-left: 10px;
  font-size: .6875rem; font-weight: 590; color: var(--text-3);
  white-space: nowrap;
}

/* ── Keycap ───────────────────────────────────────────────────────────────── */

.key {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 28px; padding: 0 9px;
  border-radius: 7px;
  font-family: var(--sans); font-size: .75rem; font-weight: 590;
  color: var(--text-2);
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.04));
  box-shadow: 0 0 0 1px var(--hair-lift) inset, 0 1px 2px rgba(0,0,0,.4);
  transition: all .14s ease;
}
.key[data-held="true"] {
  color: var(--on-amber);
  background: linear-gradient(180deg, #F7BC64, var(--amber-deep));
  box-shadow: 0 0 0 1px rgba(240,174,78,.6) inset, 0 0 22px rgba(240,174,78,.4);
  transform: translateY(1px);
}

/* ── Cards ────────────────────────────────────────────────────────────────── */

.card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--hair) inset, var(--shadow-sm);
}
.card h3 { margin-bottom: 10px; }
.card p  { color: var(--text-2); font-size: var(--t-small); line-height: 1.6; }

.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid--2 { grid-template-columns: 1fr; } }

/* ── Reveal on scroll ─────────────────────────────────────────────────────── */

.reveal-on .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
}
.reveal-on .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-on .reveal { opacity: 1; transform: none; transition: none !important; }
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.foot {
  padding-block: 48px 56px;
  border-top: 1px solid var(--hair);
  background: var(--void);
}
.foot__inner {
  display: flex; flex-wrap: wrap; gap: 16px 28px;
  align-items: center; justify-content: space-between;
}
.foot__links { display: flex; flex-wrap: wrap; gap: 6px; }
.foot__links a {
  padding: 6px 10px; border-radius: 8px;
  font-size: var(--t-small); color: var(--text-3);
  transition: color .18s ease;
}
.foot__links a:hover { color: var(--text); }
.foot__mark { display: flex; align-items: center; gap: 10px; }
.foot__mark span { font-size: var(--t-small); color: var(--text-3); }
