/* ================================================================
   Ordinal — infinite compute on any computer
   ================================================================ */

:root {
  --ink: #0a0a0a;
  --ink-soft: #3c3c3c;
  --gray-1: #6f6f6f;   /* body copy on white */
  --gray-2: #9c9c9c;   /* dim copy */
  --gray-3: #c9c9c9;   /* faint copy / unlit words */
  --line: #e7e7e5;
  --panel: #f4f4f3;
  --white: #ffffff;

  --violet: #7c5cff;
  --orange: #ff8a3d;
  --teal:   #21b8a6;
  --blue:   #4d9fff;
  --green:  #34d399;

  --font: "Google Sans Flex", -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Google Sans Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-panel: 28px;
  --r-win: 14px;
  --shadow-win: 0 30px 80px rgba(10, 10, 10, .14), 0 4px 16px rgba(10, 10, 10, .06);
  --shadow-pill: 0 2px 12px rgba(10, 10, 10, .07);
  --header-h: 96px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-optical-sizing: auto;
  background: var(--white);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

.mono { font-family: var(--mono); }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-weight: 480; letter-spacing: -0.025em; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, background .25s, color .25s, border-color .25s;
  cursor: pointer;
}
.btn:active { transform: scale(.97); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(10,10,10,.18); }

.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { transform: translateY(-1px); border-color: #d5d5d2; box-shadow: 0 8px 20px rgba(10,10,10,.06); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0,0,0,.35); }

.btn.full { width: 100%; }
.btn.sm { height: 42px; padding: 0 20px; font-size: 13.5px; }

/* ---------------- Header ---------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 60;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

.logo-chip {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-pill), inset 0 0 0 1px rgba(10,10,10,.04);
  color: var(--ink);
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.logo-chip:hover { transform: scale(1.06); }
.logo-chip .omega { width: 22px; height: 22px; }

.logo-3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: none;
}
.logo-chip.live .logo-3d { display: block; }
.logo-chip.live .omega { display: none; }

/* a spark of current orbits the omega */
.omega-spark {
  stroke: var(--violet);
  stroke-dasharray: 16 84;
  stroke-dashoffset: 0;
  animation: spark 3.2s linear infinite;
}
@keyframes spark { to { stroke-dashoffset: -100; } }

.menu-pill {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border: 1px solid rgba(10,10,10,.06);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-pill);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: box-shadow .25s, transform .25s;
}
.menu-pill:hover { box-shadow: 0 6px 20px rgba(10,10,10,.12); }

.menu-icon { display: inline-flex; flex-direction: column; gap: 4px; width: 15px; }
.menu-icon i { height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .3s, width .3s; }
body.menu-open .menu-icon i:first-child { transform: translateY(2.75px) rotate(45deg); }
body.menu-open .menu-icon i:last-child  { transform: translateY(-2.75px) rotate(-45deg); }

.header-demo {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none !important;
  transition: opacity .35s, transform .35s, background .3s, color .3s;
}
.site-header.scrolled .header-demo {
  opacity: 1;
  transform: none;
  pointer-events: auto !important;
}
.site-header.on-dark .header-demo { background: transparent; color: #fff; box-shadow: none; }
.site-header.on-dark .header-demo:hover { background: rgba(255,255,255,.1); }

/* ---------------- Menu overlay ---------------- */

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 50;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s cubic-bezier(.2,.7,.2,1), visibility .4s;
}
body.menu-open .menu-overlay { opacity: 1; visibility: visible; }

.menu-inner { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }

.menu-nav { display: flex; flex-direction: column; gap: 6px; margin-bottom: 40px; }
.menu-nav a {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 460;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  width: fit-content;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s cubic-bezier(.2,.7,.2,1), transform .5s cubic-bezier(.2,.7,.2,1), color .2s;
}
.menu-nav a:hover { color: var(--gray-2); }
body.menu-open .menu-nav a { opacity: 1; transform: none; }
body.menu-open .menu-nav a:nth-child(1) { transition-delay: .06s; }
body.menu-open .menu-nav a:nth-child(2) { transition-delay: .12s; }
body.menu-open .menu-nav a:nth-child(3) { transition-delay: .18s; }
body.menu-open .menu-nav a:nth-child(4) { transition-delay: .24s; }

.menu-actions { display: flex; gap: 12px; opacity: 0; transform: translateY(16px); transition: all .5s .3s cubic-bezier(.2,.7,.2,1); }
body.menu-open .menu-actions { opacity: 1; transform: none; }

.menu-foot { margin-top: 48px; font-size: 12px; color: var(--gray-2); opacity: 0; transition: opacity .5s .4s; }
body.menu-open .menu-foot { opacity: 1; }

/* ---------------- Reveal animations ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  /* short of 100vh on purpose: the demo caption + panel edge peek at the fold */
  height: 78vh;
  min-height: 600px;
  padding-top: var(--header-h);
  display: flex;
  align-items: center;
}

.hero-copy { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  padding: 0 16px 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gray-1);
  margin-bottom: 36px;
}
.badge-omega {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 1px;
}

.hero h1 {
  font-size: clamp(46px, 7.2vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.028em;
  margin-bottom: 30px;
}
.hero h1 .dim { color: #b9b9b6; }

.hero-sub {
  max-width: 460px;
  font-size: 16px;
  color: var(--gray-1);
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* floating job cards, cascading like prints on a desk */
.hero-cards {
  position: absolute;
  top: var(--header-h);
  right: 0;
  bottom: 24px;
  width: 48%;
  max-width: 660px;
  z-index: 1;
  pointer-events: none;
}
.jcard {
  position: absolute;
  width: 236px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 15px 12px;
  box-shadow: 0 24px 60px rgba(10,10,10,.10), 0 2px 8px rgba(10,10,10,.04);
  animation: jfloat 11s ease-in-out infinite alternate;
}
.jc-name { font-size: 13.5px; font-weight: 500; margin-top: 2px; }
.jc-meta { font-size: 9.5px; color: var(--gray-2); margin-top: 3px; }
.jc-sub  { font-size: 9.5px; color: var(--gray-2); }
.jcard .jbar { margin: 9px 0 6px; }

.jcard.mini {
  width: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 999px;
}
.mini-omega {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 1px;
}

.j1 { --rot: -5deg;  top: 2%;  right: 24%; animation-duration: 12s; }
.j2 { --rot: 3.5deg; top: 22%; right: 1%;  animation-duration: 10s; animation-delay: -3s; }
.j3 { --rot: -2.5deg; top: 45%; right: 27%; animation-duration: 13s; animation-delay: -6s; }
.j4 { --rot: 3deg;   top: 68%; right: 4%;  animation-duration: 11s; animation-delay: -8s; }
.j5 { --rot: -3deg;  top: 12%; right: 58%; animation-duration: 9s;  animation-delay: -2s; }

@keyframes jfloat {
  from { transform: rotate(var(--rot)) translateY(-9px); }
  to   { transform: rotate(var(--rot)) translateY(11px); }
}

/* ---------------- Chips & job bars (shared) ---------------- */

.chip {
  display: inline-flex;
  align-items: center;
  height: 16px;
  padding: 0 6px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: .04em;
  color: #fff;
}
.chip.lg { height: 22px; font-size: 10px; padding: 0 8px; border-radius: 6px; }
.chip.violet { background: var(--violet); }
.chip.orange { background: var(--orange); }
.chip.teal   { background: var(--teal); }
.chip.blue   { background: var(--blue); }

.jbar {
  height: 3px;
  border-radius: 2px;
  background: #ececea;
  overflow: hidden;
  margin: 7px 0 5px;
}
.jbar.dark { background: #262626; }
.jbar i {
  display: block;
  height: 100%;
  width: var(--w, 50%);
  border-radius: 2px;
  transition: width 1s cubic-bezier(.2,.7,.2,1);
}
.jbar i.violet { background: var(--violet); }
.jbar i.orange { background: var(--orange); }
.jbar i.teal   { background: var(--teal); }
.jbar i.blue   { background: var(--blue); }
.jbar i.anim { animation: creep 3s ease-in-out infinite alternate; }
@keyframes creep { from { width: var(--w); } to { width: calc(var(--w) + 6%); } }

.j-state { font-size: 8.5px; letter-spacing: .05em; }
.j-state.run   { color: var(--gray-2); }
.j-state.done  { color: var(--green); }
.j-state.queue { color: var(--gray-3); }

/* ---------------- Pinned demo ---------------- */

.demo { height: 280vh; position: relative; }

.demo-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: calc(var(--header-h) * .6) 16px 16px;
}

.demo-caption { font-size: 11.5px; letter-spacing: .02em; color: var(--gray-2); }

.demo-panel {
  position: relative;
  width: min(1240px, 100%);
  flex: 0 1 auto;
  height: min(76vh, 800px);
  background: var(--panel);
  border-radius: var(--r-panel);
  box-shadow: inset 0 0 0 1px rgba(10,10,10,.03);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* generic window chrome */
.window {
  background: #fff;
  border-radius: var(--r-win);
  box-shadow: var(--shadow-win);
  overflow: hidden;
  font-size: 12px;
}
.win-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid #efefed;
  background: #fafaf9;
}
.win-bar.dark { background: #1d1d1f; border-bottom: 1px solid #2a2a2c; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #dcdcda; }
.dots.color i:nth-child(1) { background: #ff5f57; }
.dots.color i:nth-child(2) { background: #febc2e; }
.dots.color i:nth-child(3) { background: #28c840; }
.win-nav { color: #c0c0be; font-size: 13px; letter-spacing: 4px; }
.win-title { font-weight: 500; font-size: 12.5px; color: var(--ink-soft); }
.win-bar.dark .win-title { color: #d7d7d9; }
.win-tools { margin-left: auto; display: flex; gap: 14px; font-size: 9px; color: #b7b7b4; letter-spacing: .04em; }

.console {
  width: min(920px, 88%);
  height: min(560px, 84%);
  display: flex;
  flex-direction: column;
  transform: translateY(24px) scale(.985);
  opacity: 0;
  transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .9s;
}
.demo-panel.live .console { transform: none; opacity: 1; }

.win-body { display: flex; flex: 1; min-height: 0; }

.sidebar {
  width: 178px;
  flex: none;
  border-right: 1px solid #f0f0ee;
  background: #fbfbfa;
  padding: 12px 8px;
  overflow: hidden;
}
.side-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #b3b3b0;
  margin: 12px 8px 5px;
}
.side-label:first-child { margin-top: 2px; }
.side-item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 11.5px;
  color: var(--ink-soft);
}
.side-item.active { background: #ececea; font-weight: 500; }
.si { width: 12px; height: 12px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.si.laptop  { border: 1.4px solid #9a9a97; border-radius: 3px 3px 1px 1px; height: 9px; }
.si.desktop { border: 1.4px solid #9a9a97; border-radius: 3px; }
.si.server  { border: 1.4px solid #9a9a97; border-radius: 3px; height: 12px; position: relative; }
.si.server::after { content:""; position:absolute; left:2px; right:2px; top:4px; height:1.4px; background:#9a9a97; }
.si.chip { border: 1.4px solid #9a9a97; border-radius: 2px; width: 10px; height: 10px; }
.si.dot { border-radius: 50%; width: 8px; height: 8px; margin: 0 2px; }
.si.dot.violet { background: var(--violet); }
.si.dot.orange { background: var(--orange); }
.si.dot.teal   { background: var(--teal); }
.si.dot.blue   { background: var(--blue); }
.si.om {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  width: 13px;
}

.content { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.tile-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px;
  align-content: start;
  overflow: hidden;
}

.tile.folder { text-align: center; padding-top: 6px; }
.folder-shape {
  width: 58px;
  height: 40px;
  margin: 0 auto 8px;
  border-radius: 6px;
  position: relative;
}
.folder-shape::before {
  content: "";
  position: absolute;
  top: -6px; left: 0;
  width: 26px; height: 10px;
  border-radius: 4px 6px 0 0;
  background: inherit;
  filter: brightness(1.08);
}
.folder-shape.violet { background: #cabcff; }
.folder-shape.orange { background: #ffceab; }
.folder-shape.teal   { background: #a9e7df; }
.tile.folder .tile-name { font-size: 9.5px; letter-spacing: .06em; color: var(--gray-1); font-weight: 500; }

.tile.job {
  border: 1px solid #f0f0ee;
  border-radius: 12px;
  padding: 10px 11px;
  background: #fff;
  transition: box-shadow .4s, border-color .4s, transform .4s;
}
.job-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tile-name {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tile-meta { font-size: 9px; color: var(--gray-2); margin-top: 2px; }
.tile-sub  { font-size: 9px; color: var(--gray-2); }

/* focus states driven by scroll */
.demo-panel.info .tile.job.focus {
  border-color: #cfcfff;
  box-shadow: 0 0 0 3px rgba(124,92,255,.14);
  transform: translateY(-2px);
}
.demo-panel.done .tile.job.focus .jbar i { width: 100% !important; background: var(--green); }
.demo-panel.done .tile.job.focus .j-state.run { color: var(--green); }
.demo-panel.done .tile.job.focus .j-state.run::after { content: "" }

.status-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 14px;
  border-top: 1px solid #f0f0ee;
  font-size: 9.5px;
  color: var(--gray-2);
  background: #fbfbfa;
}
.status-bar .crumb { color: #b3b3b0; }

/* dark get-info popover */
.job-info {
  position: absolute;
  right: clamp(12px, 6%, 80px);
  bottom: 10%;
  width: 306px;
  background: rgba(32,32,34,.96);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 30px 70px rgba(0,0,0,.4);
  color: #ececec;
  opacity: 0;
  transform: translateY(26px) scale(.96);
  transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1);
  z-index: 3;
}
.demo-panel.info .job-info { opacity: 1; transform: none; }

.ji-titlebar {
  font-size: 9.5px;
  color: #9a9a9c;
  text-align: center;
  padding: 8px 0 7px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.ji-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.ji-name p:first-child { font-size: 12.5px; font-weight: 500; }
.ji-mod { font-size: 8.5px; color: #8b8b8d; margin-top: 2px; }
.ji-size { margin-left: auto; font-size: 11px; font-weight: 500; }
.ji-rows { padding: 10px 14px 14px; display: grid; gap: 6px; }
.ji-rows p { font-size: 9.5px; color: #d6d6d8; display: flex; gap: 6px; line-height: 1.45; }
.ji-rows p span { color: #8b8b8d; min-width: 52px; text-align: right; flex: none; }
.ji-rows em { color: var(--green); font-style: normal; }

.demo-cursor {
  position: absolute;
  width: 20px;
  right: calc(clamp(12px, 6%, 80px) + 120px);
  bottom: calc(10% + 60px);
  z-index: 4;
  opacity: 0;
  transform: translate(-60px, -80px);
  transition: opacity .5s .1s, transform .9s cubic-bezier(.2,.7,.2,1);
}
.demo-panel.info .demo-cursor { opacity: 1; transform: none; }

.scroll-pill {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  background: #6f6f6c;
  color: #fff;
  font-size: 10px;
  letter-spacing: .12em;
  transition: opacity .5s, transform .5s;
  z-index: 5;
}
.sp-arrow { animation: nudge 1.6s ease-in-out infinite; display: inline-block; }
@keyframes nudge { 0%,100% { transform: translateY(-1px); } 50% { transform: translateY(2px); } }
.demo-panel.info .scroll-pill,
.demo-panel.done .scroll-pill { opacity: 0; transform: translate(-50%, 10px); }

/* ---------------- Statement ---------------- */

.statement { padding: 200px 24px; display: flex; justify-content: center; }
.statement-text {
  max-width: 880px;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 470;
  color: var(--gray-3);
}
.statement-text .w { transition: color .35s; }
.statement-text .w.lit { color: var(--ink); }

/* ---------------- Features ---------------- */

.features { padding: 40px 0 140px; overflow: hidden; }

.features-head { max-width: 720px; margin-bottom: 88px; }
.features-head h2 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.08;
  margin-bottom: 24px;
}
.features-head p { font-size: 16px; color: var(--gray-1); max-width: 560px; }

.feature-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 110px;
}
.fnum { font-size: 11px; color: var(--gray-2); letter-spacing: .08em; margin-bottom: 18px; }
.fcol { border-top: 1px solid var(--line); padding-top: 22px; }
.fcol h3 { font-size: 19px; margin-bottom: 12px; letter-spacing: -0.015em; }
.fcol p { font-size: 14.5px; color: var(--gray-1); }

/* marquees */
.marquees { display: grid; gap: 14px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; }
.m-left  .marquee-track { animation: slide-l 42s linear infinite; }
.m-right .marquee-track { animation: slide-r 48s linear infinite; }
@keyframes slide-l { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes slide-r { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.mcard {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 20px 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  flex: none;
}
.mname { font-size: 13px; font-weight: 500; }
.msize { font-size: 10px; color: var(--gray-2); }

/* ---------------- Dark walkthrough ---------------- */

.how { height: 480vh; background: #0b0b0c; color: #fff; }

.how-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.how-grid {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  flex: 1;
  min-height: 0;
}

.how-copy { position: relative; min-height: 240px; }
.how-step {
  position: absolute;
  inset: auto 0;
  top: 50%;
  transform: translateY(calc(-50% + 26px));
  opacity: 0;
  transition: opacity .55s cubic-bezier(.2,.7,.2,1), transform .55s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.how-step.active { opacity: 1; transform: translateY(-50%); }
.how-step h3 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 16px; letter-spacing: -0.02em; }
.how-step p { font-size: 15.5px; color: #a3a3a5; max-width: 360px; }

.how-stage { position: relative; height: min(62vh, 560px); }
.how-shot {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(30px) scale(.97);
  transition: opacity .55s cubic-bezier(.2,.7,.2,1), transform .55s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.how-shot.active { opacity: 1; transform: none; }

/* soft "desk at night" backdrop behind each shot */
.how-shot::before {
  content: "";
  position: absolute;
  inset: 4% 0;
  border-radius: 18px;
  background:
    radial-gradient(120% 90% at 20% 0%, #1c1c26 0%, transparent 55%),
    radial-gradient(120% 100% at 90% 100%, #16161c 0%, transparent 50%),
    #101013;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}

.window.dark { background: #161618; color: #e6e6e8; box-shadow: 0 40px 90px rgba(0,0,0,.6); position: relative; }

/* step 1: processors table */
.activity { width: min(600px, 92%); }
.act-table { padding: 6px 0; }
.act-row {
  display: grid;
  grid-template-columns: 1.7fr .6fr 1fr .7fr;
  gap: 8px;
  padding: 9px 18px;
  font-size: 11px;
  color: #cfcfd2;
  align-items: center;
}
.act-row.head { color: #77777a; font-size: 9.5px; letter-spacing: .06em; border-bottom: 1px solid #232326; }
.act-row span:last-child { text-align: right; }
.act-row span:nth-child(2), .act-row span:nth-child(3) { text-align: right; }
.act-row.hl {
  background: rgba(124,92,255,.12);
  box-shadow: inset 2px 0 0 var(--violet);
  color: #fff;
}
.act-row.hl span:first-child { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.om-badge {
  width: 16px; height: 16px;
  border-radius: 5px;
  background: var(--violet);
  color: #fff;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
}
.act-foot { padding: 10px 18px 14px; font-size: 9.5px; color: #77777a; border-top: 1px solid #232326; }

/* step 2: terminal */
.term { width: min(620px, 92%); }
.term-body { padding: 18px 20px 24px; font-size: 11.5px; line-height: 1.9; }
.term-body .t-gap { margin-top: 10px; }
.t-prompt { color: #8f8f93; }
.t-dim { color: #6d6d71; }
.t-ok { color: var(--green); }
.caret {
  display: inline-block;
  width: 7px; height: 13px;
  background: #e6e6e8;
  vertical-align: -2px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* step 3: palette */
.palette {
  position: relative;
  width: min(560px, 92%);
  background: rgba(28,28,32,.92);
  backdrop-filter: blur(18px);
  border-radius: 16px;
  box-shadow: 0 40px 90px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.08);
  overflow: hidden;
}
.pal-input {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.pal-kbd {
  font-size: 10px;
  color: #a9a9ad;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 6px;
  padding: 3px 7px;
}
.pal-query { font-size: 15px; color: #f2f2f4; font-weight: 450; }
.pal-rows { padding: 8px; display: grid; gap: 2px; }
.pal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  color: #d8d8da;
}
.pal-row.active { background: rgba(255,255,255,.08); }
.pr-name { font-size: 12.5px; }
.pr-eta { margin-left: auto; font-size: 10px; color: #8f8f93; }
.pal-foot {
  display: flex;
  gap: 18px;
  padding: 10px 18px;
  font-size: 9.5px;
  color: #77777a;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* step 4: board + toast */
.board { width: min(620px, 92%); }
.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px;
}
.bcard {
  border: 1px solid #242427;
  border-radius: 12px;
  background: #19191c;
  padding: 12px;
}
.bcard.big { grid-column: 1 / -1; }
.bname { font-size: 12.5px; font-weight: 500; margin-top: 8px; }
.bmeta { font-size: 9px; color: #8f8f93; margin-top: 5px; }

.toast {
  position: absolute;
  top: 6%;
  right: 2%;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: 270px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(40,40,44,.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.08);
  transform: translateX(30px);
  opacity: 0;
  transition: transform .7s .25s cubic-bezier(.2,.7,.2,1), opacity .7s .25s;
}
.how-shot.active .toast { transform: none; opacity: 1; }
.toast-omega {
  width: 26px; height: 26px;
  flex: none;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.toast-title { font-size: 11px; font-weight: 600; color: #fff; }
.toast-body { font-size: 10.5px; color: #b9b9bc; line-height: 1.45; margin-top: 2px; }

/* progress bars */
.how-bars {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 0 24px 44px;
}
.how-bars span {
  width: 84px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,.18);
  overflow: hidden;
}
.how-bars i { display: block; height: 100%; width: 0; background: #fff; border-radius: 2px; }

/* ---------------- Pricing ---------------- */

.pricing { padding: 160px 0 120px; }

.pricing-head { text-align: center; max-width: 560px; margin: 0 auto 36px; }
.pricing-head h2 { font-size: clamp(34px, 4.6vw, 54px); margin-bottom: 18px; }
.pricing-head p { color: var(--gray-1); font-size: 15.5px; }

.bill-toggle {
  position: relative;
  display: flex;
  width: fit-content;
  margin: 0 auto 56px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  background: #fff;
}
.bt-opt {
  position: relative;
  z-index: 1;
  height: 38px;
  padding: 0 22px;
  border: 0;
  background: none;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray-1);
  cursor: pointer;
  transition: color .3s;
}
.bt-opt.active { color: #fff; }
.bt-thumb {
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--ink);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.bill-toggle.annual .bt-thumb { transform: translateX(100%); }

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

.plan {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 28px 28px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.plan.featured { border-color: var(--ink); box-shadow: 0 24px 60px rgba(10,10,10,.08); }
.plan-flag {
  position: absolute;
  top: -10px;
  left: 28px;
  background: var(--ink);
  color: #fff;
  font-size: 9px;
  letter-spacing: .1em;
  padding: 4px 10px;
  border-radius: 999px;
}
.plan h3 { font-size: 21px; margin-bottom: 8px; }
.plan-for { font-size: 13.5px; color: var(--gray-1); min-height: 42px; margin-bottom: 22px; }

.price { display: flex; align-items: baseline; gap: 4px; }
.price sup { font-size: 20px; font-weight: 480; align-self: flex-start; margin-top: 8px; }
.price-num { font-size: 56px; font-weight: 480; letter-spacing: -0.03em; line-height: 1; }
.price-num.custom { font-size: 40px; }
.price-per { font-size: 13.5px; color: var(--gray-1); }
.price-note { font-size: 12px; color: var(--gray-2); margin: 10px 0 26px; min-height: 18px; }

.plan-list { list-style: none; display: grid; gap: 11px; margin-bottom: 30px; }
.plan-list li {
  position: relative;
  padding-left: 26px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.plan-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 12px;
}
.plan-list li.yes::before { content: "\2713"; color: var(--ink); }
.plan-list li.no { color: var(--gray-2); }
.plan-list li.no::before { content: "\00d7"; color: var(--gray-3); font-size: 14px; }

.plan .btn { margin-top: auto; }

.pricing-foot {
  text-align: center;
  font-size: 12px;
  color: var(--gray-2);
  max-width: 560px;
  margin: 44px auto 0;
}

/* ---------------- FAQ ---------------- */

.faq { padding: 120px 0 160px; }

.faq-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 1.6fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.faq-intro { position: sticky; top: 140px; }
.faq-intro h2 { font-size: clamp(34px, 4vw, 48px); line-height: 1.1; margin-bottom: 18px; }
.faq-intro p { color: var(--gray-1); font-size: 14.5px; max-width: 280px; }
.faq-intro a { text-decoration: underline; text-underline-offset: 3px; }

.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 2px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }

.fx { position: relative; width: 14px; height: 14px; flex: none; }
.fx::before, .fx::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--gray-2);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .35s;
}
.fx::before { width: 14px; height: 1.5px; }
.fx::after  { width: 1.5px; height: 14px; }
details[open] .fx::after { transform: rotate(90deg); opacity: 0; }
details[open] .fx::before { transform: rotate(180deg); }

.faq-body { overflow: hidden; }
.faq-body p {
  padding: 0 40px 24px 2px;
  font-size: 14.5px;
  color: var(--gray-1);
  max-width: 560px;
}

/* ---------------- CTA ---------------- */

.cta { padding: 24px; }

.cta-card {
  position: relative;
  min-height: 88vh;
  border-radius: 40px;
  background: #0b0b0c;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  overflow: hidden;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 50% 100%, rgba(124,92,255,.16) 0%, transparent 70%);
  pointer-events: none;
}
.cta-omega {
  position: absolute;
  width: 70vmin;
  height: 70vmin;
  bottom: -18vmin;
  right: -12vmin;
  color: rgba(255,255,255,.04);
  pointer-events: none;
}

.cta-title {
  position: relative;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 800px;
  margin-bottom: 30px;
}
.cta-title .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px) rotate(2deg);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.cta-card.in .cta-title .w { opacity: 1; transform: none; }
.cta-card.in .cta-title .w:nth-child(1) { transition-delay: .05s; }
.cta-card.in .cta-title .w:nth-child(2) { transition-delay: .15s; }
.cta-card.in .cta-title .w:nth-child(3) { transition-delay: .25s; }
.cta-card.in .cta-title .w:nth-child(4) { transition-delay: .35s; }
.cta-card.in .cta-title .w:nth-child(5) { transition-delay: .45s; }

.cta-sub {
  position: relative;
  color: #9c9c9f;
  font-size: 15.5px;
  margin-bottom: 44px;
  opacity: 0;
  transition: opacity .8s .55s;
}
.cta-card.in .cta-sub { opacity: 1; }

.cta-card .btn {
  position: relative;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s .65s, transform .7s .65s cubic-bezier(.2,.7,.2,1), box-shadow .25s;
}
.cta-card.in .btn { opacity: 1; transform: none; }

/* ---------------- Footer ---------------- */

.site-footer { position: relative; padding: 90px 0 0; overflow: hidden; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 2fr;
  gap: 60px;
  padding-bottom: 70px;
}

.logo-chip.static { box-shadow: inset 0 0 0 1px var(--line); }
.footer-tag { margin: 18px 0 24px; font-size: 14px; color: var(--gray-1); }
.footer-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.fcol-head { font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.footer-cols a {
  display: block;
  font-size: 13.5px;
  color: var(--gray-1);
  margin-bottom: 11px;
  transition: color .2s;
}
.footer-cols a:hover { color: var(--ink); }

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
  padding-bottom: 26px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--gray-2);
}

.ghost-word {
  font-size: clamp(120px, 22vw, 340px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: .72;
  text-align: center;
  color: #f4f4f2;
  user-select: none;
  transform: translateY(14%);
}

/* ================================================================
   Responsive
   ================================================================ */

@media (max-width: 1000px) {
  .hero-cards { display: none; }
  .feature-cols { grid-template-columns: 1fr; gap: 0; }
  .fcol { padding: 26px 0; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
  .footer-grid { grid-template-columns: 1fr; gap: 48px; }

  .how-grid { grid-template-columns: 1fr; gap: 0; align-content: center; }
  .how-copy { min-height: 190px; order: 2; }
  .how-step p { max-width: 520px; }
  .how-stage { order: 1; height: min(44vh, 420px); }
}

@media (max-width: 760px) {
  :root { --header-h: 76px; }

  .site-header { padding: 0 16px; }
  .header-demo { display: none; }
  .logo-chip { width: 42px; height: 42px; }

  .hero { min-height: 520px; }
  .hero-sub { font-size: 15px; }

  .demo { height: 240vh; }
  .demo-panel { height: min(72vh, 620px); border-radius: 20px; }
  .console { width: 94%; height: 88%; }
  .sidebar { display: none; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); overflow: hidden; }
  .tile.folder { display: none; }
  .job-info { right: 4%; bottom: 6%; width: min(290px, 88%); }
  .demo-cursor { display: none; }

  .statement { padding: 130px 24px; }

  .marquee .mcard { height: 48px; }

  .how { height: 420vh; }
  .act-row { grid-template-columns: 1.6fr .5fr .9fr .7fr; padding: 9px 12px; font-size: 10px; }
  .term-body { font-size: 10px; }
  .board-grid { grid-template-columns: 1fr 1fr; }
  .toast { display: none; }

  .pricing { padding: 110px 0 80px; }
  .faq { padding: 80px 0 110px; }

  .cta { padding: 12px; }
  .cta-card { border-radius: 28px; min-height: 70vh; }

  .footer-cols { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .footer-base { flex-direction: column; gap: 6px; }
}

/* ---------------- Reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .cta-title .w, .cta-sub, .cta-card .btn, .console { opacity: 1 !important; transform: none !important; }
  .statement-text { color: var(--ink); }
  .demo { height: auto; }
  .demo-pin { position: static; height: auto; padding-top: 40px; padding-bottom: 40px; }
  .demo-panel.live .console, .console { opacity: 1; }
  .job-info { opacity: 1; transform: none; position: relative; right: auto; bottom: auto; margin: 20px auto; }
  .how { height: auto; }
  .how-pin { position: static; height: auto; padding: 80px 0; }
  .how-copy, .how-stage { position: static; height: auto; }
  .how-step, .how-shot { position: static; opacity: 1; transform: none; margin-bottom: 40px; }
  .how-bars { display: none; }
}
