/* The website. Dark like the three references (Linear #08090a), Inter / SF Pro, tight headline
   tracking, a grey scale doing most of the work, white as the only accent (the app's own: the
   icon's lines, the caption's progress line, the flying dots). */

:root {
  --bg: #08090a;
  --bg-2: #0e0f11;
  --text: #f7f8f8;
  --text-2: #d0d6e0;
  --muted: #8a8f98;
  --faint: #62666d;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --btn: #e6e6e6;
  --btn-text: #111214;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --pad: 24px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--dc-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
.mono { font-family: var(--mono); }
.grow { flex: 1; }
.dim { color: var(--muted); }
.center { text-align: center; justify-content: center; }
.container { width: min(1200px, 100% - var(--pad) * 2); margin: 0 auto; }

/* ---------------------------------------------------------------- type */

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.022em; }
h1 { font-size: clamp(44px, 7.4vw, 88px); line-height: 1; }
h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; max-width: 22ch; }
h2.big { font-size: clamp(40px, 6vw, 72px); line-height: 1; max-width: none; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.012em; }
.lead { margin: 22px 0 0; font-size: 19px; line-height: 1.55; color: var(--text-2); max-width: 34em; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font: 500 15px/1 var(--dc-font);
  white-space: nowrap;
  transition: background .15s, transform .15s;
}
.btn-primary { background: var(--btn); color: var(--btn-text); }
.btn-primary:hover { background: #fff; }
.btn-primary img { width: 20px; height: 18px; }
.btn-glow { box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 10px 34px rgba(255, 255, 255, .16), 0 0 70px rgba(255, 255, 255, .1); }
.btn-glow:hover { box-shadow: 0 0 0 1px #fff, 0 12px 40px rgba(255, 255, 255, .24), 0 0 90px rgba(255, 255, 255, .16); }
.btn-quiet { color: var(--text-2); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); }
.btn-quiet:hover { background: rgba(255, 255, 255, .1); }
.btn-small { height: 34px; padding: 0 14px; border-radius: 8px; font-size: 14px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
/* the requirements: a quiet serif, the items set apart by space alone */
.reqs { margin: 18px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 30px; font: italic 400 19px/1.3 "Instrument Serif", "Iowan Old Style", "Songti SC", Georgia, serif; color: var(--muted); letter-spacing: .01em; }

/* ---------------------------------------------------------------- nav: a floating bar */

.nav {
  position: fixed;
  z-index: 50;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 100% - 24px);
  height: 54px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 10px 0 16px;
  border-radius: 14px;
  background: rgba(14, 15, 17, .72);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px rgba(0, 0, 0, .35);
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.nav-links { display: flex; gap: 26px; margin: 0 auto; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-end { display: flex; align-items: center; gap: 8px; }

/* ---------------------------------------------------------------- hero: told while you scroll */

.hero { position: relative; height: 480vh; }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-light { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 55% at 50% 50%, rgba(255, 255, 255, .06), transparent 70%), radial-gradient(40% 40% at 50% 0%, rgba(255, 255, 255, .07), transparent 70%); }
.hero-knot { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-head { position: absolute; left: 0; right: 0; top: max(92px, 10vh); z-index: 2; text-align: center; padding: 0 var(--pad); }
.hero-head::before {              /* a little dark round the headline, so the lines pass behind it */
  content: ""; position: absolute; left: 50%; top: 50%; width: min(900px, 100%); height: 140%; transform: translate(-50%, -50%); z-index: -1;
  background: radial-gradient(closest-side, rgba(8, 9, 10, .75), transparent); pointer-events: none;
}
.hero-cta { position: absolute; left: 0; right: 0; bottom: 76px; z-index: 4; margin: 0; padding: 0 var(--pad); }
.hero h1, .hero-line { font-size: clamp(48px, 8.4vw, 118px); line-height: .98; filter: drop-shadow(0 0 34px rgba(255, 255, 255, .14)); transition: opacity var(--form, .6s) ease-out; will-change: opacity; }   /* its own layer: fading it doesn't redraw the glow */
.hero h1.faint { opacity: .26; }
.hero h1.morphing { transition: none; }          /* a guess, until the words land in it */
.hero h1 .lit, .hero h1 .dim, .hero-line .lit, .hero-line .dim { -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .lit, .hero-line .lit { background-image: linear-gradient(180deg, #fff 35%, rgba(255, 255, 255, .74)); }
.hero h1 .dim, .hero-line .dim { background-image: linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, .3)); }
.hero-caret { display: inline-block; width: .055em; height: .74em; margin-left: .08em; vertical-align: -.02em; border-radius: 3px; background: var(--sp-accent); animation: caret 1.06s steps(1) infinite; }
.hero-cap { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); z-index: 3; display: flex; align-items: center; justify-content: center; }
/* the last line: the headline's dots fall into it once the lines have gone */
.hero-end { position: absolute; left: 0; right: 0; top: 53%; transform: translateY(-50%); z-index: 2; text-align: center; padding: 0 var(--pad); pointer-events: none; }
.hero-line { margin: 0; font-weight: 600; letter-spacing: -.022em; text-wrap: balance; opacity: 0; transition: none; }
.hero-end .reqs { margin-top: 26px; opacity: 0; }
.hero .cta-row { justify-content: center; }
.scroll-cue { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.scroll-cue i { width: 1px; height: 26px; background: linear-gradient(rgba(255, 255, 255, .8), transparent); animation: cue 1.8s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* stages: drawn at a fixed size, scaled down to fit narrow screens */
.stage-wrap { position: relative; width: min(1120px, 100% - var(--pad) * 2); margin-left: auto; margin-right: auto; }
.stage-wrap > .scenes { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.note-window { left: 50%; top: 70px; width: 660px; transform: translateX(-50%); }
.scene .dc-anchor { bottom: 46px; }
.mac-menubar .clock { opacity: .9; }

/* a soft light where the app's elements float, so their glass has something to show */
.pool { position: absolute; inset: -12% 0; z-index: 0; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025) 55%, transparent); }

/* ---------------------------------------------------------------- sections */

.section { padding: 150px 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split > * { min-width: 0; }

/* how it works: three steps, at the top of the section that shows them in apps */
.how { margin-bottom: 120px; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.how-steps li { padding: 0 36px; min-width: 0; }
.how-steps li:first-child { padding-left: 0; }
.how-steps li:last-child { padding-right: 0; }
.how-steps li + li { border-left: 1px solid var(--line); }      /* thin rules between, nothing behind */
/* each step's picture: the app's own pieces, floating in a little light, each playing its moment */
.how-vis { position: relative; height: 220px; margin-bottom: 30px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.how-vis .pool { inset: 0; }
.how-vis > .kb-key { position: relative; }
.how-vis-keys .kb-key.space { width: 170px; }
.how-vis .dc-anchor { bottom: 30px; transform: translateX(-50%) scale(.88); transform-origin: 50% 100%; }   /* (a caption fits its column) */
.how-field { position: absolute; left: 50%; top: 22px; width: min(88%, 380px); transform: translateX(-50%); padding: 11px 16px; border-radius: 12px; background: rgba(30, 30, 34, .92); box-shadow: 0 0 0 .5px rgba(255, 255, 255, .14), 0 18px 50px rgba(0, 0, 0, .45); font: 400 15px/22px var(--dc-font); color: #ececf1; min-height: 44px; z-index: 1; }
.how-field .field { margin: 0; }
.how-steps h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -.022em; margin: 0 0 12px; }
.how-steps p:last-child { margin: 0; font-size: 16px; color: var(--muted); max-width: 26em; }

/* privacy */
.privacy-row { margin-top: 64px; align-items: start; }
.privacy-row .lead { margin-top: 0; }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.facts div { padding: 16px 18px; background: var(--bg-2); }
.facts dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.facts dd { margin: 6px 0 0; font-size: 13px; color: var(--text-2); }

/* anywhere: tabs and scenes */
.tabs { display: inline-flex; gap: 4px; padding: 4px; margin: 48px 0 24px; border-radius: 11px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }
.tabs button { height: 34px; padding: 0 16px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: 500 14px/1 var(--dc-font); cursor: pointer; }
.tabs button:hover { color: var(--text); }
.tabs button.on { background: rgba(255, 255, 255, .12); color: var(--text); }
.scenes { width: 1120px; height: 600px; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.scene.on { opacity: 1; visibility: visible; transition: opacity .35s; }
.chat-window { left: 50%; top: 64px; width: 560px; height: 420px; transform: translateX(-50%); display: flex; flex-direction: column; }
.chat-thread { flex: 1; padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.bubble { margin: 0; max-width: 72%; padding: 8px 13px; border-radius: 18px; font: 400 15px/21px var(--dc-font); }
.bubble.them { background: rgba(255, 255, 255, .1); color: #ececf1; border-bottom-left-radius: 6px; }
.chat-input { margin: 12px; padding: 9px 14px; border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); font: 400 15px/22px var(--dc-font); color: #ececf1; min-height: 42px; }
.chat-input .field { margin: 0; }
.term-window { left: 50%; top: 64px; width: 720px; height: 380px; transform: translateX(-50%); }
.term-line { margin: 0 !important; white-space: pre-wrap; }
.term-line.dimmed { color: #8b8b93; }

/* the compact Mac, for narrow screens */
.compact .note-window { width: 500px; top: 52px; }
.compact .chat-window { width: 500px; height: 360px; top: 52px; }
.compact .term-window { width: 520px; height: 330px; top: 52px; }
.compact .dc-words, .compact .dc-words-inner { max-width: 440px; }
.compact .mac-menubar span:not(.grow):not(.menu-item):not(.clock):nth-child(n+4) { display: none; }

/* languages */
.langs { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.langs li { display: flex; align-items: baseline; gap: 18px; padding: 15px 0; border-top: 1px solid var(--line); font-size: 21px; line-height: 1.35; letter-spacing: -.01em; color: var(--faint); transition: color .3s; }
.langs li .name { flex: none; width: 104px; font: 400 12px/1 var(--mono); letter-spacing: .04em; color: var(--faint); }
.langs li .w { transition: color .24s ease-out, opacity .24s ease-out; }
.langs li.on .w.heard { color: rgba(247, 248, 248, .45); }
.langs li.on .w.sure { color: var(--text); }
.langs li.done { color: var(--text-2); }

/* the end: a keyboard with ⌥ and Space lit */
.final { text-align: center; padding-top: 110px; overflow: hidden; }
.keyboard { display: grid; gap: 10px; justify-content: center; margin: 0 auto 64px; perspective: 900px; }
.kb-row { display: flex; gap: 10px; justify-content: center; }
.kb-key {
  position: relative;
  height: 64px;
  min-width: 64px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(#17181b, #111215);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 0 0 1px rgba(255, 255, 255, .06), 0 2px 0 #050506;
  color: rgba(255, 255, 255, .26);
  font: 400 15px/1 var(--dc-font);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  transition: color .25s, box-shadow .25s, transform .12s, background .25s;
}
.kb-key small { font-size: 13px; align-self: flex-start; }
.kb-key.wide { min-width: 96px; }
.kb-key.space { width: 360px; }
.kb-row:first-child .kb-key { opacity: .45; }
.kb-key.lit { color: #fff; background: linear-gradient(#202126, #18191d); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .22), 0 0 34px rgba(255, 255, 255, .14), 0 0 90px rgba(255, 255, 255, .07), 0 2px 0 #050506; }
.kb-key.lit.down { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 0 0 1px rgba(255, 255, 255, .4), 0 0 46px rgba(255, 255, 255, .26), 0 0 120px rgba(255, 255, 255, .12), 0 0 0 #050506; }
.final-title { margin: 0 auto; max-width: none; font-size: clamp(34px, 5vw, 60px); }
.final .reqs { margin-top: 20px; }
.final .cta-row { margin-top: 38px; }

/* faq */
.faq { align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font-size: 17px; font-weight: 500; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list details p { margin: -6px 0 22px; color: var(--muted); max-width: 40em; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 30px 0 40px; font-size: 14px; color: var(--muted); }
.footer-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer .nav-brand { color: var(--text); }
.footer a:hover { color: var(--text); }

/* entrances: from blur to sharp, like focusing (Linear) */
.reveal { opacity: 0; filter: blur(8px); transform: translateY(14px); transition: opacity .7s ease-out, filter .7s ease-out, transform .7s ease-out; }
.reveal.in { opacity: 1; filter: none; transform: none; }

/* ---------------------------------------------------------------- narrow screens */

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav { gap: 12px; }
  .nav-end { margin-left: auto; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .how-steps { grid-template-columns: 1fr; gap: 0; }
  .how-steps li, .how-steps li:first-child, .how-steps li:last-child { padding: 28px 0; }
  .how-steps li + li { border-left: 0; border-top: 1px solid var(--line); }
  .how { margin-bottom: 88px; }
  .langs { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --pad: 16px; }
  .section { padding: 96px 0; }
  .lead { font-size: 17px; }
  .hero-line { font-size: 9vw; }
  .reqs { font-size: 16px; gap: 4px 18px; }
    .hero-cap { transform: translate(-50%, -50%) scale(.84); }
  .hero-cta { bottom: 76px; }
  .facts { grid-template-columns: 1fr; }
  .langs li { font-size: 18px; flex-wrap: wrap; gap: 6px 14px; }
  .langs li .name { width: auto; }
  .kb-key { height: 46px; min-width: 46px; padding: 7px 8px; border-radius: 9px; font-size: 12px; }
  .kb-key small { font-size: 10px; }
  .kb-key.wide { min-width: 52px; padding-left: 6px; padding-right: 6px; font-size: 11px; }
  .kb-key.space { width: 104px; }
  .keyboard, .kb-row { gap: 6px; }
  .kb-key.hide-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero-sticky { position: relative; height: 100vh; }
  .hero-line, .hero-end .reqs { opacity: 1; }
  .scroll-cue { display: none; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; filter: none; transform: none; transition: none; }
}


/* ---------------------------------------------------------------- the apps it takes care with */

.apps { padding: 34px 0 96px; text-align: center; }
.apps-title { margin: 0 0 30px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-size: clamp(22px, 2.6vw, 32px); font-weight: 600; letter-spacing: -.02em; color: rgba(255, 255, 255, .26); white-space: nowrap; transition: color .2s; }
.marquee-track span:hover { color: var(--text); }
.marquee-track span em { font: 400 11px/1 var(--mono); letter-spacing: .06em; color: var(--faint); font-style: normal; margin-left: 10px; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }
.apps-note { max-width: 42em; margin: 30px auto 0; padding: 0 var(--pad); color: var(--muted); font-size: 15px; }

/* ---------------------------------------------------------------- the end: light on the keyboard */

.final-beam {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1200px;
  height: 900px;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(34% 52% at 50% 0%, rgba(255, 255, 255, .11), transparent 72%),
    conic-gradient(from 180deg at 50% -4%, transparent 162deg, rgba(255, 255, 255, .05) 176deg, rgba(255, 255, 255, .07) 180deg, rgba(255, 255, 255, .05) 184deg, transparent 198deg);
}
.final .container { position: relative; }
.final-caption.dc-anchor { position: relative; left: auto; bottom: auto; transform: none; height: 128px; margin-bottom: 26px; }
.keyboard { position: relative; }
.keyboard::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -46px; height: 70px; background: radial-gradient(50% 50% at 50% 50%, rgba(255, 255, 255, .12), transparent 70%); filter: blur(18px); pointer-events: none; }

/* film grain, so the black isn't flat */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (max-width: 980px) {
}
@media (max-width: 600px) {
  .final-caption.dc-anchor { transform: scale(.8); transform-origin: 50% 100%; height: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}
