/* ==========================================================================
   CmdTab — product site
   Strict monochrome. SF/Inter. Weight does the talking.
   Accents: one metallic sheen (hero title), three 8px product chips.
   ========================================================================== */

:root {
  --white: #ffffff;
  --paper: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #a1a1a6;
  --black: #000000;
  --carbon: #0a0a0b;
  --graphite: #1c1c1e;
  --line-l: rgba(0, 0, 0, .08);
  --line-d: rgba(255, 255, 255, .10);

  --chip-blue: #0a84ff;
  --chip-green: #30d158;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter",
          "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, monospace;

  --gutter: 20px;
  --max: 1200px;
  --nav-h: 52px;
  --r-card: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: var(--nav-h); }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: rgba(0, 0, 0, .87); color: #fff; }
img, svg { display: block; }

/* ------------------------------------------------------------- 12-col grid */
.container { max-width: var(--max); margin-inline: auto; padding-inline: 24px; }
.grid12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
}
.col-span-12 { grid-column: 1 / -1; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
@media (max-width: 900px) {
  .col-6, .col-4 { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------- Type */
.eyebrow {
  font-size: 13px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-3);
}
.section-title {
  font-size: clamp(40px, 5.6vw, 72px);
  font-weight: 700; line-height: 1.04; letter-spacing: -.025em;
}
.section-title .thin { font-weight: 200; letter-spacing: -.02em; }

/* -------------------------------------------------------------------- Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 200;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-l);
  transition: background .4s, border-color .4s;
}
.nav.on-dark {
  background: rgba(8, 8, 9, .72);
  border-bottom-color: var(--line-d);
}
.nav-inner {
  max-width: var(--max); margin-inline: auto;
  height: var(--nav-h);
  padding-inline: 24px;
  display: flex; align-items: center; gap: 36px;
}
.nav-brand {
  font-size: 17px; font-weight: 700; letter-spacing: -.01em;
  color: var(--ink); text-decoration: none;
  transition: color .4s;
}
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a {
  font-size: 13px; font-weight: 500; text-decoration: none;
  color: var(--ink-2); transition: color .25s;
}
.nav-links a:hover { color: var(--ink); }
.nav.on-dark .nav-brand { color: #fff; }
.nav.on-dark .nav-links a { color: rgba(255,255,255,.65); }
.nav.on-dark .nav-links a:hover { color: #fff; }
.nav-cta {
  font-size: 13px; font-weight: 600; text-decoration: none;
  color: #fff; background: var(--ink);
  padding: 7px 16px; border-radius: 100px;
  transition: background .3s, color .3s;
}
.nav-cta:hover { background: #000; }
.nav.on-dark .nav-cta { background: #fff; color: var(--ink); }

.nav-burger {
  display: none;
  width: 40px; height: 40px; margin-left: auto;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.nav-burger span {
  width: 20px; height: 1.5px; background: var(--ink);
  transition: transform .35s cubic-bezier(.4,0,.2,1), background .4s;
}
.nav.on-dark .nav-burger span { background: #fff; }
body.menu-open .nav-burger span:first-child { transform: translateY(4.25px) rotate(45deg); }
body.menu-open .nav-burger span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 150;
  padding: calc(var(--nav-h) + 40px) 32px;
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  backdrop-filter: saturate(180%) blur(28px);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .35s, visibility .35s, transform .35s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu a {
  font-size: 32px; font-weight: 600; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none;
  padding: 10px 0; border-bottom: 1px solid var(--line-l);
}
.mobile-menu .mm-cta { border: 0; margin-top: 18px; font-size: 20px; color: var(--ink-2); }

/* ------------------------------------------------------------------- Hero */
.hero {
  padding: calc(var(--nav-h) + clamp(64px, 12vh, 130px)) 0 0;
  text-align: center;
  background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%);
}
.hero-title {
  font-size: clamp(72px, 12vw, 160px);
  font-weight: 800; line-height: .98; letter-spacing: -.04em;
  background: linear-gradient(105deg,
    #3a3a3c 0%, #0c0c0d 28%, #59595e 47%, #0c0c0d 62%, #454549 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 20px;
}
.hero-title .dot { -webkit-text-fill-color: var(--ink-3); }
.hero-thin {
  margin-top: 18px;
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 100; letter-spacing: -.01em; color: var(--ink);
}
.hero-thin .chord { font-weight: 500; }
.hero-sub {
  max-width: 620px; margin: 26px auto 0;
  font-size: 18px; line-height: 1.55; font-weight: 400;
  color: var(--ink-2);
}
.hero-ctas {
  margin-top: 36px;
  display: flex; gap: 26px; justify-content: center; align-items: center;
}
.btn-solid {
  background: var(--ink); color: #fff; text-decoration: none;
  font-size: 16px; font-weight: 500;
  padding: 13px 28px; border-radius: 100px;
  transition: transform .3s cubic-bezier(.4,0,.2,1), background .3s;
}
.btn-solid:hover { background: #000; transform: scale(1.04); }
.btn-quiet { color: var(--ink); font-size: 16px; font-weight: 500; text-decoration: none; }
.btn-quiet:hover { opacity: .6; }

.hero-stage { margin-top: clamp(56px, 9vh, 96px); }
.stage {
  position: relative;
  max-width: 880px; margin-inline: auto;
  padding: clamp(48px, 7vw, 84px) 24px;
  border-radius: var(--r-card) var(--r-card) 0 0;
  background:
    radial-gradient(140% 120% at 50% -10%, #2c2c2e 0%, #131315 46%, #060607 100%);
  overflow: hidden;
}
.stage-glow {
  position: absolute; left: 50%; top: -30%;
  width: 70%; aspect-ratio: 2.4;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,255,255,.14), transparent 70%);
  pointer-events: none;
}

/* ------------------------------------------------------------- The  HUD */
.hud {
  position: relative;
  display: inline-flex; align-items: flex-start; gap: 8px;
  padding: 20px 22px 22px;
  border-radius: 30px;
  background: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, .5),
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -1px 0 rgba(255, 255, 255, .04);
}
.hud-cell {
  display: flex; flex-direction: column; align-items: center;
  padding: 9px 9px 0;
  border-radius: 18px;
  transition: background .3s;
}
.hud-cell .hud-label {
  height: 15px; margin-top: 7px;
  font-size: 11.5px; font-weight: 600;
  color: rgba(255, 255, 255, .92);
  white-space: nowrap; max-width: 140px;
  overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transition: opacity .25s;
}
.hud-cell.is-selected {
  background: linear-gradient(180deg, rgba(255,255,255,.30), rgba(255,255,255,.10));
  box-shadow: 0 0 10px rgba(255, 255, 255, .12);
}
.hud-cell.is-selected .hud-label { opacity: 1; }

.tile {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; border-radius: 15px;
  background: linear-gradient(180deg, #333336, #1b1b1d);
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .35);
  color: #ececf0;
}
.glyph { width: 30px; height: 30px; }
.glyph-mono { font: 700 19px/1 var(--mono); letter-spacing: -1px; }
.chip {
  position: absolute; right: -4px; bottom: -4px;
  width: 15px; height: 15px; border-radius: 5px;
  border: 2.5px solid #0f0f11;
}
.chip-blue { background: var(--chip-blue); }
.chip-green { background: var(--chip-green); }
.chip-mono { background: #e8e8ed; }

/* ------------------------------------------------------- Pinned demo */
.story { background: var(--black); }
.story-pin {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 24px) 0 40px;
}
.story-pin .container { width: 100%; text-align: center; }
.story-kicker {
  font-size: 15px; font-weight: 200; letter-spacing: .04em;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 28px;
}
.story-kicker b { font-weight: 600; color: #fff; }

.mac {
  max-width: 860px; margin-inline: auto;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line-d);
  background: var(--carbon);
  box-shadow: 0 50px 140px rgba(0, 0, 0, .7);
  text-align: left;
}
.mac-menubar {
  display: flex; align-items: center; gap: 14px;
  height: 32px; padding-inline: 14px;
  background: rgba(24, 24, 26, .9);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  font-size: 12px; color: rgba(255, 255, 255, .85);
  position: relative; z-index: 5;
}
.mb-logo { font-size: 13px; }
.mb-app { font-weight: 700; }
.mb-flex { flex: 1; }
.mb-time { color: rgba(255, 255, 255, .55); }

.mac-desktop {
  position: relative;
  aspect-ratio: 16 / 9.2;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 30% 0%, #232326 0%, #101012 55%, #050506 100%);
}

.mac-window {
  position: absolute; inset: 6% 7% 9%;
  border-radius: 12px; overflow: hidden;
  background: var(--paper);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  opacity: 0; transform: scale(.985);
  pointer-events: none;
}
.mac-window.is-active { opacity: 1; transform: none; }
.win-bar {
  display: flex; align-items: center; gap: 6px;
  height: 34px; padding-inline: 12px;
  background: #e9e9ec; border-bottom: 1px solid #dcdce0;
}
.win-bar.dark { background: #232327; border-bottom-color: #2e2e33; }
.wdot { width: 10px; height: 10px; border-radius: 50%; background: #c9c9ce; }
.win-bar.dark .wdot { background: #48484e; }
.win-url {
  margin-inline: auto;
  font-size: 11px; color: var(--ink-2);
  background: rgba(0, 0, 0, .05);
  border-radius: 6px; padding: 3px 22px;
}
.win-url.dark { color: #9a9aa2; background: rgba(255, 255, 255, .07); }
.win-body { position: absolute; inset: 34px 0 0; }

/* window sketches — grayscale skeletons */
.body-canvas { background: #fafafc; }
.sk { position: absolute; background: #fff; border-radius: 10px; box-shadow: 0 4px 18px rgba(0,0,0,.06); }
.sk-side { left: 3.5%; top: 8%; width: 17%; height: 80%; }
.sk-card { left: 30%; top: 16%; width: 42%; height: 54%; border-radius: 14px; box-shadow: 0 12px 36px rgba(0,0,0,.10); }
.sk-line { background: #e3e3e8; box-shadow: none; height: 8px; border-radius: 4px; }
.sk-line.l1 { left: 76%; top: 20%; width: 17%; }
.sk-line.l2 { left: 76%; top: 26%; width: 12%; }

.body-term { background: #131316; padding: 16px 18px; }
.body-term pre { font: 12.5px/1.8 var(--mono); color: #d6d6dc; white-space: pre-wrap; }
.body-term .ok { color: #fff; font-weight: 700; }
.body-term .mut { color: #6e6e73; }
.caret { animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.hud-demo {
  position: absolute; left: 50%; top: 52%;
  transform: translate(-50%, -50%);
  z-index: 4;
  opacity: 0; visibility: hidden;
}
.hud-demo .tile { width: 54px; height: 54px; border-radius: 13px; }
.hud-demo .glyph { width: 26px; height: 26px; }
.hud-demo { padding: 16px 18px 18px; border-radius: 26px; }

.story-keys {
  margin-top: 30px;
  display: flex; gap: 10px; justify-content: center;
}
.keycap {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 50px; height: 50px; padding-inline: 15px;
  border-radius: 12px;
  background: linear-gradient(180deg, #29292c, #17171a);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .10);
  color: #ececf0; font-size: 16px; font-weight: 600;
}
.keycap-wide { padding-inline: 22px; font-size: 14px; }
.keycap.is-down {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
  background: linear-gradient(180deg, #1d1d20, #101013);
  color: #fff;
}
.story-caption {
  margin-top: 26px;
  font-size: 21px; font-weight: 200; color: rgba(255, 255, 255, .85);
  opacity: 0;
}

/* -------------------------------------------------------------------- Why */
.why {
  background: var(--white);
  padding: clamp(120px, 18vh, 200px) 0;
}
.why-line {
  font-size: clamp(30px, 4.6vw, 58px);
  font-weight: 200; line-height: 1.2; letter-spacing: -.02em;
  color: #d9d9de;
  margin-bottom: .55em;
}
.why-line.strong { font-weight: 700; }

/* --------------------------------------------------------------- Features */
.features { background: var(--paper); padding: clamp(100px, 14vh, 160px) 0; }
.features-head { text-align: left; margin-bottom: 56px; row-gap: 14px; }
.cards { row-gap: var(--gutter); }
.card {
  background: var(--white);
  border-radius: var(--r-card);
  padding: 38px 34px 42px;
  transition: transform .5s cubic-bezier(.22,.61,.36,1), box-shadow .5s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .08);
}
.card-num {
  font-size: 13px; font-weight: 600; letter-spacing: .14em;
  color: var(--ink-3); margin-bottom: 40px;
}
.card h3 {
  font-size: 22px; font-weight: 700; letter-spacing: -.015em;
  margin-bottom: 10px;
}
.card p:not(.card-num) {
  font-size: 15.5px; line-height: 1.55; color: var(--ink-2);
}

/* --------------------------------------------------------------- Security */
.security {
  background: var(--black); color: #f5f5f7;
  padding: clamp(100px, 14vh, 160px) 0;
}
.sec-head { text-align: center; margin-bottom: 64px; }
.sec-lede {
  margin: 22px auto 0; max-width: 480px;
  font-size: 19px; font-weight: 300; line-height: 1.5;
  color: rgba(255, 255, 255, .6);
}
.sec-grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
}
@media (max-width: 760px) { .sec-grid { grid-template-columns: 1fr; } }
.sec-grid li {
  border: 1px solid var(--line-d);
  border-radius: var(--r-card);
  padding: 32px 30px;
  background: rgba(255, 255, 255, .03);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.sec-grid h4 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.sec-grid p { font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .55); }

/* ---------------------------------------------------------------- Install */
.install { background: var(--black); padding: 0 0 clamp(120px, 16vh, 180px); }
.install-panel {
  text-align: center; color: #f5f5f7;
  border: 1px solid var(--line-d);
  border-radius: 32px;
  padding: clamp(56px, 8vw, 88px) 32px;
  background:
    radial-gradient(120% 150% at 50% 0%, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, .02) 60%);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.install-sub { margin-top: 14px; font-size: 19px; font-weight: 300; color: rgba(255,255,255,.6); }
.code {
  max-width: 560px; margin: 32px auto 0;
  background: rgba(0, 0, 0, .6);
  border: 1px solid var(--line-d);
  border-radius: 12px; padding: 15px 20px;
  overflow-x: auto;
}
.code code { font: 13.5px/1.5 var(--mono); color: #e8e8ed; white-space: nowrap; }
.install-fine {
  margin-top: 24px;
  font-size: 13px; font-weight: 300; line-height: 1.6;
  color: rgba(255, 255, 255, .38);
}

/* ----------------------------------------------------------------- Footer */
.footer {
  background: var(--black);
  border-top: 1px solid var(--line-d);
  padding: 48px 0 64px; text-align: center;
}
.footer p { font-size: 13.5px; color: rgba(255, 255, 255, .5); }
.foot-dim { margin-top: 6px; font-size: 12px; color: rgba(255, 255, 255, .28); }

/* --------------------------------------------------- Motion fundamentals */
.fade-up { opacity: 0; transform: translateY(30px); }
html.no-motion .fade-up,
html.no-js .fade-up { opacity: 1; transform: none; }
html.no-motion .hud-demo { opacity: 1; visibility: visible; }
html.no-motion .story-caption { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
