:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --surface-sunk: #fbfbfd;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --hairline: #d2d2d7;
  --link: #0066cc;
  --button: #0071e3;
  --button-hover: #0077ed;
  --window: #ececec;
  --window-sidebar: #e7e7e9;
  --shadow: 0 30px 80px -20px rgb(0 0 0 / 0.25), 0 0 0 0.5px rgb(0 0 0 / 0.12);

  --seg-projects: #007aff;
  --seg-caches: #af52de;
  --seg-system: #ff6961;
  --seg-sims: #ff9f0a;
  --seg-docker: #32ade6;
  --seg-data: #34c759;
  --seg-library: #64748b;
  --seg-macos: #8e8e93;

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

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #101012;
    --surface: #1c1c1e;
    --surface-sunk: #161618;
    --text: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-tertiary: #86868b;
    --hairline: #38383a;
    --link: #2997ff;
    --button: #0071e3;
    --button-hover: #0a84ff;
    --window: #2a2a2c;
    --window-sidebar: #232325;
    --shadow: 0 30px 80px -20px rgb(0 0 0 / 0.7), 0 0 0 0.5px rgb(255 255 255 / 0.12);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

code { font-family: var(--mono); font-size: 0.88em; letter-spacing: 0; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap { width: min(1040px, 100% - 44px); margin-inline: auto; }

/* Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid color-mix(in srgb, var(--hairline) 70%, transparent);
}

.nav .wrap { display: flex; align-items: center; gap: 30px; height: 60px; font-size: 14px; }
.nav .brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin-right: auto; }
.nav .brand img { width: 28px; height: 28px; }
.nav a:not(.brand):not(.pill) { color: var(--text-secondary); }
.nav a:not(.brand):not(.pill):hover { color: var(--text); text-decoration: none; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 980px;
  background: var(--button);
  color: #fff;
  font-weight: 400;
  white-space: nowrap;
}
.pill:hover { background: var(--button-hover); text-decoration: none; }
.nav .pill { padding: 8px 18px; font-size: 14px; font-weight: 500; }

@media (max-width: 640px) {
  .nav .links { display: none; }
}

/* Type */

.eyebrow { font-size: 21px; font-weight: 600; color: var(--text-secondary); margin: 0 0 6px; letter-spacing: 0.011em; }
.headline { font-family: var(--font-display); font-size: clamp(40px, 6vw, 64px); font-weight: 600; line-height: 1.05; letter-spacing: -0.015em; margin: 0; }
.subhead { font-family: var(--font-display); font-size: clamp(21px, 2.4vw, 28px); line-height: 1.2; font-weight: 400; color: var(--text-secondary); margin: 14px 0 0; letter-spacing: 0.004em; }
.section-title { font-family: var(--font-display); font-size: clamp(32px, 4.4vw, 48px); font-weight: 600; line-height: 1.08; letter-spacing: -0.003em; margin: 0; }
.lede { font-size: 21px; line-height: 1.38; color: var(--text-secondary); max-width: 680px; margin: 18px 0 0; letter-spacing: 0.011em; }
.lede strong { color: var(--text); font-weight: 600; }

/* Hero */

.hero { padding: 72px 0 40px; text-align: center; overflow-x: clip; }
.hero-logo { width: 148px; height: 148px; margin: 0 auto 14px; filter: drop-shadow(0 18px 30px rgb(0 113 227 / 0.3)); }
.hero-logo svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hero .subhead { max-width: 640px; margin-inline: auto; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; margin-top: 30px; }
.actions .pill { padding: 12px 22px; font-size: 17px; }
.chevron::after { content: " ›"; }
.fineprint { font-size: 12px; color: var(--text-tertiary); margin-top: 16px; letter-spacing: 0; }

/* App window recreation */

.window {
  margin: 56px auto 0;
  width: min(980px, 100%);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
  font-size: 13px;
  letter-spacing: -0.01em;
}

.window-bar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; background: var(--window); border-bottom: 0.5px solid var(--hairline); }
.window-bar span { width: 12px; height: 12px; border-radius: 50%; }
.window-bar span:nth-child(1) { background: #ff5f57; }
.window-bar span:nth-child(2) { background: #febc2e; }
.window-bar span:nth-child(3) { background: #28c840; }
.window-bar b { margin-left: 14px; font-weight: 600; }
.window-bar em { font-style: normal; color: var(--text-secondary); margin-left: 6px; }

.window-body { display: grid; grid-template-columns: 196px 1fr; }
.window-side { background: var(--window-sidebar); padding: 14px 10px; border-right: 0.5px solid var(--hairline); }
.window-side h4 { font-size: 11px; font-weight: 600; color: var(--text-tertiary); margin: 14px 8px 4px; }
.window-side div { display: flex; justify-content: space-between; padding: 5px 8px; border-radius: 6px; color: var(--text); }
.window-side div small { color: var(--text-secondary); font-size: 12px; }
.window-side div.on { background: var(--button); color: #fff; }
.window-side div.on small { color: rgb(255 255 255 / 0.8); }
.window-main { padding: 22px 26px; background: var(--surface-sunk); display: grid; gap: 16px; align-content: start; }

.card { background: var(--surface); border-radius: 12px; padding: 16px 18px; box-shadow: 0 0 0 0.5px var(--hairline); }
.card h5 { margin: 0 0 10px; font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; }
.card h5 small { font-weight: 400; color: var(--text-secondary); font-size: 13px; }
.big-number { font-family: var(--font-display); font-size: 40px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.muted { color: var(--text-secondary); }
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mini-grid .card { padding: 12px 14px; }
.mini-grid b { display: block; font-size: 17px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 1px; }

@media (max-width: 760px) {
  .window-body { grid-template-columns: 1fr; }
  .window-side { display: none; }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Storage bar component */

storage-bar { display: flex; gap: 2px; height: 18px; border-radius: 5px; overflow: hidden; background: color-mix(in srgb, var(--text-tertiary) 22%, transparent); }
storage-bar span { height: 100%; width: var(--share); transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1); }
storage-bar[data-pending] span { width: 0; }

@media (prefers-reduced-motion: reduce) {
  storage-bar span { transition: none; }
}

.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; color: var(--text-secondary); font-size: 12px; }

/* Sections */

section { padding: 110px 0; --tile-bg: var(--bg-alt); }
section.alt { background: var(--bg-alt); --tile-bg: var(--surface); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

.proof { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); line-height: 1.25; font-weight: 600; max-width: 820px; margin: 0 auto; text-align: center; letter-spacing: 0.004em; color: var(--text-tertiary); }
.proof span { color: var(--text); }

/* Feature tiles */

.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 56px; }
.tile { grid-column: span 3; background: var(--tile-bg); border-radius: 22px; padding: 34px 34px 0; display: flex; flex-direction: column; overflow: hidden; min-height: 460px; }
.tile.wide { grid-column: span 6; min-height: 0; padding-bottom: 34px; }
.tile.third { grid-column: span 2; min-height: 0; padding-bottom: 34px; }
.tile h3 { font-family: var(--font-display); font-size: 28px; line-height: 1.14; margin: 0; font-weight: 600; letter-spacing: 0.007em; }
.tile p { color: var(--text-secondary); margin: 10px 0 0; font-size: 17px; }
.tile p strong { color: var(--text); font-weight: 600; }
.tile .demo { margin-top: auto; padding: 28px 0 0; }

@media (max-width: 860px) {
  .tile, .tile.third { grid-column: span 6; }
}

.rows { background: var(--surface); border-radius: 12px 12px 0 0; box-shadow: 0 0 0 0.5px var(--hairline); padding: 6px 0; font-size: 13px; letter-spacing: -0.01em; }
.rows div { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 9px 16px; }
.rows div + div { border-top: 0.5px solid var(--hairline); }
.rows code { font-family: var(--mono); font-size: 12px; }
.rows small { display: block; color: var(--text-tertiary); font-size: 11px; }
.tag { font-size: 11px; padding: 2px 7px; border-radius: 980px; background: color-mix(in srgb, currentColor 12%, transparent); white-space: nowrap; }
.tag.orange { color: #c35f00; }
.tag.blue { color: var(--link); }
.tag.green { color: #248a3d; }
.tag.gray { color: var(--text-tertiary); }
@media (prefers-color-scheme: dark) {
  .tag.orange { color: #ffb340; }
  .tag.green { color: #30d158; }
}
.stop { display: inline-block; font-size: 12px; padding: 3px 12px; border-radius: 980px; border: 0.5px solid var(--hairline); background: var(--surface); color: var(--text); }

/* Safety list */

.checks { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px 40px; }
.checks li { padding-top: 20px; border-top: 0.5px solid var(--hairline); }
.checks b { display: block; font-size: 19px; margin-bottom: 4px; }
.checks span { color: var(--text-secondary); }

/* Install */

.steps { counter-reset: step; list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.steps li { counter-increment: step; background: var(--tile-bg); border-radius: 18px; padding: 26px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px; margin: 0 0 14px; }
.center .steps li::before { margin-inline: auto; }
.steps b { display: block; font-size: 19px; margin-bottom: 6px; }
.steps span { color: var(--text-secondary); font-size: 15px; }
.steps kbd { font-family: var(--font); font-size: 13px; padding: 1px 6px; border-radius: 5px; border: 0.5px solid var(--hairline); background: var(--bg); }

copy-command { display: flex; align-items: center; gap: 12px; justify-content: space-between; max-width: 520px; margin: 28px auto 0; background: var(--surface); border-radius: 12px; padding: 12px 12px 12px 18px; box-shadow: 0 0 0 0.5px var(--hairline); }
copy-command code { font-family: var(--mono); font-size: 14px; overflow-x: auto; white-space: nowrap; }
copy-command button { font: inherit; font-size: 13px; padding: 5px 14px; border-radius: 980px; border: none; background: var(--bg-alt); color: var(--text); cursor: pointer; }
section.alt copy-command button { background: var(--bg-alt); }

/* FAQ */

.faq { max-width: 760px; margin: 40px auto 0; }
.faq details { border-bottom: 0.5px solid var(--hairline); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font-size: 19px; font-weight: 600; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 26px; line-height: 0.9; color: var(--text-secondary); transition: transform 0.25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--text-secondary); }
.faq summary { transition: color 0.2s ease; }
.faq summary:hover { color: var(--link); }

@media (prefers-reduced-motion: no-preference) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content {
    block-size: 0;
    overflow: clip;
    transition-property: block-size, content-visibility;
    transition-duration: 0.4s;
    transition-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-behavior: allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
  .faq details p { transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .faq details:not([open]) p { opacity: 0; transform: translateY(-6px); }
  .faq summary::after { transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
}

/* Footer */

.site-footer { background: var(--bg-alt); color: var(--text-tertiary); font-size: 12px; line-height: 1.5; padding: 64px 0 36px; letter-spacing: -0.01em; }
.footer-top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; align-items: start; }
.footer-cols { grid-column: span 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 17px; font-weight: 600; line-height: 28px; }
.footer-brand .brand img { width: 28px; height: 28px; }
.footer-brand .brand:hover { text-decoration: none; }
.footer-brand p { font-size: 14px; color: var(--text-secondary); margin: 14px 0 20px; }
.footer-brand .pill { padding: 8px 16px; font-size: 14px; }
.footer-cols h2 { font-size: 13px; font-weight: 600; color: var(--text); margin: 0 0 12px; line-height: 28px; letter-spacing: -0.01em; }
.footer-cols a { display: block; color: var(--text-secondary); padding: 4px 0; font-size: 14px; }
.footer-cols a:hover { color: var(--text); text-decoration: none; }
.footer-bottom { margin-top: 64px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 40px; }
.footer-bottom p { margin: 0; }
.footer-bottom p:first-child { max-width: 680px; }
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-column: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 520px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Scroll reveal, only where supported and wanted */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 28%;
    }
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: none; }
}

/* Legal, support and release pages */

.page { padding: 72px 0 120px; }
.page .wrap { max-width: 760px; }
.page-eyebrow { font-size: 17px; font-weight: 600; color: var(--text-secondary); margin: 0 0 6px; }
.page-title { font-family: var(--font-display); font-size: clamp(36px, 5vw, 48px); font-weight: 600; line-height: 1.08; letter-spacing: -0.003em; margin: 0; }
.page-updated { color: var(--text-tertiary); font-size: 14px; margin: 12px 0 0; }
.page-lede { font-size: 21px; line-height: 1.38; color: var(--text-secondary); margin: 22px 0 0; }
.page h2 { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin: 48px 0 10px; letter-spacing: 0.009em; }
.page h3 { font-size: 17px; font-weight: 600; margin: 26px 0 4px; }
.page p, .page li { color: var(--text-secondary); }
.page b { color: var(--text); font-weight: 600; }
.page ol, .page ul { padding-left: 22px; }
.page li { margin: 6px 0; }
.page pre { background: var(--bg-alt); border-radius: 12px; padding: 14px 18px; overflow-x: auto; }
.page.center .wrap { text-align: center; }

.help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 36px; }
.help-card { display: block; background: var(--tile-bg, var(--bg-alt)); border-radius: 18px; padding: 20px 22px; color: var(--text); transition: background 0.2s ease; }
.help-card:hover { text-decoration: none; background: color-mix(in srgb, var(--bg-alt) 80%, var(--text-tertiary)); }
.help-card b { display: block; font-size: 17px; }
.help-card span { display: block; color: var(--text-secondary); font-size: 15px; margin-top: 4px; }
@media (max-width: 560px) { .help-grid { grid-template-columns: 1fr; } }

.release { margin-top: 36px; }
.release header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.release header h2 { margin: 0; }
.release header span { color: var(--text-tertiary); font-size: 14px; }
.release .page-lede { margin-top: 8px; }
.release ul { margin-top: 18px; }

/* Skip link */

.skip { position: absolute; left: 12px; top: -48px; z-index: 20; background: var(--button); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 10px; text-decoration: none; }

/* Motion. Everything below only runs with motion allowed; otherwise the page shows its finished state. */

@media (prefers-reduced-motion: no-preference) {
  .enter { animation: enter 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: var(--delay, 0s); }

  .logo .seg { animation: draw 1.1s cubic-bezier(0.3, 0.7, 0.2, 1) both; }
  .logo .seg-1 { animation-delay: 0.05s; }
  .logo .seg-2 { animation-delay: 0.2s; }
  .logo .seg-3 { animation-delay: 0.32s; }
  .logo .seg-4 { animation-delay: 0.44s; }
  .logo .trail { animation: fade 0.8s ease 0.75s both; }
  .logo .brackets { animation: fade 0.6s ease 0.5s both; }
  .logo .spark-main { animation: pop 0.6s cubic-bezier(0.3, 1.6, 0.4, 1) 0.95s both, twinkle 5s ease-in-out 2s infinite; }
  .logo .spark-small { animation: pop 0.5s cubic-bezier(0.3, 1.6, 0.4, 1) 1.15s both, twinkle 5s ease-in-out 3.2s infinite; }
}

@keyframes enter { from { opacity: 0; transform: translateY(18px); } }
@keyframes draw { from { stroke-dasharray: 0 360; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.2) rotate(-30deg); } }
@keyframes twinkle {
  0%, 82%, 100% { transform: scale(1) rotate(0deg); }
  88% { transform: scale(1.22) rotate(18deg); }
  94% { transform: scale(0.94) rotate(0deg); }
}

/* Hero window scan */

scan-window, story-steps, process-demo, type-terminal { display: block; }
.window { position: relative; }
.scan-line { position: absolute; left: 0; top: 38px; height: 2px; width: 0; background: var(--button); opacity: 0; z-index: 2; }
scan-window[data-armed] .step-in { opacity: 0; transform: translateY(10px); }
scan-window[data-play] .step-in { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(0.25s + var(--i) * 0.09s); }
scan-window[data-armed] storage-bar span { width: 0; }
scan-window[data-play] storage-bar span { width: var(--share); transition-delay: 0.45s; }
scan-window[data-scanning] .scan-line { animation: scan 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes scan {
  0% { width: 0; opacity: 1; }
  85% { width: 100%; opacity: 1; }
  100% { width: 100%; opacity: 0; }
}

/* How it works: a pinned screen that follows the steps */

.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 56px; }
.story-device { position: sticky; top: 120px; align-self: start; }
.device { border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; font-size: 13px; letter-spacing: -0.01em; }
.window-bar.small { height: 30px; }
.window-bar.small span { width: 10px; height: 10px; }
.screens { position: relative; height: 330px; }
.screen { position: absolute; inset: 0; padding: 22px 24px; opacity: 0; transform: translateY(14px) scale(0.985); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
story-steps:not([data-active]) .screen[data-screen="1"],
story-steps[data-active="1"] .screen[data-screen="1"],
story-steps[data-active="2"] .screen[data-screen="2"],
story-steps[data-active="3"] .screen[data-screen="3"],
story-steps[data-active="4"] .screen[data-screen="4"] { opacity: 1; transform: none; }
.screen-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.tiny { font-size: 12px; margin: 6px 0 12px; }
.found { list-style: none; padding: 0; margin: 0; border-radius: 10px; box-shadow: 0 0 0 0.5px var(--hairline); background: var(--surface-sunk); }
.found li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 14px; }
.found li + li { border-top: 0.5px solid var(--hairline); }
.progress { height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--text-tertiary) 22%, transparent); overflow: hidden; }
.progress i { display: block; height: 100%; width: 56%; border-radius: 3px; background: var(--button); }
.segmented { display: flex; margin: 16px 0; padding: 2px; border-radius: 8px; background: color-mix(in srgb, var(--text-tertiary) 18%, transparent); font-size: 12px; }
.segmented span { flex: 1; text-align: center; padding: 5px; border-radius: 6px; color: var(--text-secondary); }
.segmented .on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgb(0 0 0 / 0.12); }
.sheet-buttons { display: flex; justify-content: flex-end; gap: 8px; }
.sheet-buttons span { padding: 6px 14px; border-radius: 7px; font-size: 13px; }
.sheet-buttons .ghost { background: color-mix(in srgb, var(--text-tertiary) 18%, transparent); }
.sheet-buttons .primary { background: var(--button); color: #fff; }
.check-mark { width: 64px; height: 64px; margin: 18px auto 14px; border-radius: 50%; background: #34c759; position: relative; }
.check-mark::after { content: ""; position: absolute; left: 22px; top: 15px; width: 14px; height: 26px; border: solid #fff; border-width: 0 5px 5px 0; transform: rotate(45deg); }
.center { text-align: center; }
.shrink-bar { height: 14px; margin: 18px 10px 0; border-radius: 4px; background: color-mix(in srgb, var(--text-tertiary) 22%, transparent); overflow: hidden; }
.shrink-bar i { display: block; height: 100%; width: 62%; background: var(--button); border-radius: 4px; }

.story-text { list-style: none; padding: 0; margin: 0; }
.story-text li { min-height: 62vh; padding-top: 18vh; transition: opacity 0.4s ease; }
.story-text li:first-child { padding-top: 40px; }
.story-text li:last-child { min-height: 46vh; }
story-steps[data-active] .story-text li { opacity: 0.32; }
story-steps[data-active] .story-text li[data-current] { opacity: 1; }
.story-text h3 { font-family: var(--font-display); font-size: 32px; line-height: 1.12; margin: 0 0 10px; font-weight: 600; }
.story-text p { font-size: 19px; color: var(--text-secondary); margin: 0; }
.story-text strong { color: var(--text); }

@media (prefers-reduced-motion: no-preference) {
  story-steps[data-active="1"] .progress i { animation: indeterminate 1.6s ease-in-out infinite; }
  story-steps[data-active="4"] .shrink-bar i { animation: shrink 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both; }
  story-steps[data-active="4"] .check-mark { animation: pop 0.6s cubic-bezier(0.3, 1.6, 0.4, 1) both; }
}
@keyframes indeterminate { 0% { transform: translateX(-100%); } 100% { transform: translateX(180%); } }
@keyframes shrink { from { width: 84%; } }

@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; gap: 24px; }
  .story-device { top: 60px; z-index: 2; }
  .screens { height: 290px; }
  .story-text li { min-height: 44vh; padding-top: 8vh; }
}

/* Tile demos */

.rows.compare div, .rows.map div { grid-template-columns: 1fr auto; position: relative; padding-bottom: 16px; }
.rows.compare i, .rows.map i { position: absolute; left: 16px; bottom: 7px; height: 4px; border-radius: 2px; background: var(--seg-projects); width: calc(var(--to) * 0.86); }
.rows.compare div:nth-child(2) i { background: var(--seg-data); }
.rows.compare div:nth-child(3) i { background: var(--seg-caches); }
[data-armed] .rows.compare i, [data-armed].rows.compare i, [data-armed] .rows.map i, [data-armed].rows.map i { width: 0; }
[data-play] i { transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
[data-play].rows.compare i, [data-play].rows.map i { width: calc(var(--to) * 0.86); }
[data-play] .rows.compare div:nth-child(2) i, [data-play].rows.compare div:nth-child(2) i { transition-delay: 0.15s; }
[data-play] .rows.compare div:nth-child(3) i, [data-play].rows.compare div:nth-child(3) i { transition-delay: 0.3s; }

.cascade div { transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
[data-armed].cascade div { opacity: 0; transform: translateY(12px); }
[data-play].cascade div { opacity: 1; transform: none; }
[data-play].cascade div:nth-child(2) { transition-delay: 0.08s; }
[data-play].cascade div:nth-child(3) { transition-delay: 0.16s; }
[data-play].cascade div:nth-child(4) { transition-delay: 0.24s; }

.procs { position: relative; }
.procs .proc { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 9px 16px; max-height: 64px; transition: max-height 0.5s ease, opacity 0.4s ease, padding 0.5s ease; overflow: hidden; }
.procs .proc + .proc { border-top: 0.5px solid var(--hairline); }
.procs .proc.gone { max-height: 0; opacity: 0; padding-block: 0; }
.procs .stop { transition: background 0.15s ease, transform 0.15s ease; }
.procs .stop.pressed { background: var(--button); color: #fff; transform: scale(0.94); border-color: transparent; }
.toast { position: absolute; right: 16px; bottom: -44px; margin: 0; padding: 8px 14px; border-radius: 10px; background: var(--text); color: var(--bg); font-size: 13px; opacity: 0; transform: translateY(8px); transition: opacity 0.35s ease, transform 0.35s ease; }
.toast.show { opacity: 1; transform: none; }
.tile.wide .demo { padding-bottom: 46px; }

.terminal { display: block; background: #1d1d1f; color: #f5f5f7; border-radius: 12px 12px 0 0; padding: 16px 18px 20px; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; min-height: 190px; letter-spacing: 0; }
.terminal p { margin: 0; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.terminal .prompt { color: #30d158; }
.terminal .out { color: #a1a1a6; }
[data-armed].terminal .out { visibility: hidden; }
[data-armed].terminal .out.shown { visibility: visible; }
.terminal .typed.caret::after { content: ""; display: inline-block; width: 7px; height: 14px; margin-left: 1px; background: #f5f5f7; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tile { transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease; }
  .tile:hover { transform: translateY(-4px); box-shadow: 0 22px 50px -24px rgb(0 0 0 / 0.25); }
}

/* More details list */

.more-title { font-family: var(--font-display); font-size: 32px; font-weight: 600; margin: 100px 0 0; text-align: center; letter-spacing: -0.003em; }
.more { list-style: none; margin: 40px 0 0; padding: 44px 48px; border-radius: 28px; background: var(--bg-alt); display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 48px; }
.more li { color: var(--text-secondary); font-size: 17px; }
.more b { display: block; color: var(--text); font-size: 19px; margin: 14px 0 4px; }
.more-icon { display: block; width: 32px; height: 32px; }
.more-icon svg { width: 100%; height: 100%; display: block; }
@media (max-width: 860px) { .more { grid-template-columns: repeat(2, 1fr); padding: 32px 28px; } }
@media (max-width: 560px) { .more { grid-template-columns: 1fr; } }

.download-icon { margin: 0 auto 22px; width: 96px; height: 96px; }

/* Safety */

.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.tier { background: var(--tier); color: #fff; border-radius: 18px; padding: 24px; }
.tier-label { display: inline-block; font-size: 13px; font-weight: 600; color: #fff; padding: 3px 10px; border-radius: 980px; background: rgb(255 255 255 / 0.22); }
.tier p { margin: 14px 0 8px; font-size: 17px; font-weight: 600; line-height: 1.3; color: #fff; }
.tier small { color: rgb(255 255 255 / 0.82); font-size: 13px; }
.tier code { color: #fff; }
@media (max-width: 860px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tiers { grid-template-columns: 1fr; } }

.safety-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 90px; }
@media (max-width: 860px) { .safety-split { grid-template-columns: 1fr; gap: 28px; } }
.sub-title { font-family: var(--font-display); font-size: 32px; line-height: 1.12; margin: 0; font-weight: 600; }
.sub-lede { color: var(--text-secondary); font-size: 19px; margin: 12px 0 0; }
.fine-list { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.fine-list li { padding-left: 26px; position: relative; }
.fine-list li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--text-tertiary); }

safety-check { display: block; }
.check-card { background: var(--surface); border-radius: 18px; padding: 22px 24px; box-shadow: var(--shadow); font-size: 15px; }
.check-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 6px; font-weight: 600; }
.check-head span { color: var(--text-secondary); font-weight: 400; }
.check-card ol { list-style: none; padding: 0; margin: 16px 0 18px; display: grid; gap: 12px; }
.check-card li { display: flex; align-items: center; gap: 12px; color: var(--text); }
.check-card li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background: #34c759 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.check-done { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, #34c759 12%, transparent); color: #248a3d; font-weight: 600; }
@media (prefers-color-scheme: dark) { .check-done { color: #30d158; } }
.check-done::before { content: ""; width: 18px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 16'%3E%3Cpath d='M2 4h14M6 4V2h6v2M4 4l1 11h8l1-11' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 16'%3E%3Cpath d='M2 4h14M6 4V2h6v2M4 4l1 11h8l1-11' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }

[data-armed].check-card li { opacity: 0.35; }
[data-armed].check-card li::before { background-color: var(--hairline); background-image: none; }
[data-armed].check-card li.passed { opacity: 1; transition: opacity 0.25s ease; }
[data-armed].check-card li.passed::before { background-color: #34c759; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); animation: pop 0.35s cubic-bezier(0.3, 1.6, 0.4, 1); }
[data-armed].check-card .check-done { opacity: 0; transform: translateY(6px); transition: opacity 0.4s ease, transform 0.4s ease; }
[data-armed].check-card .check-done.shown { opacity: 1; transform: none; }

.never { margin: 80px 0 0; font-size: 19px; color: var(--text-secondary); max-width: 760px; }
.never b { color: var(--text); font-weight: 600; }
.private { margin: 22px 0 0; color: var(--text-secondary); }

.nav a[aria-current="true"]:not(.brand):not(.pill) { color: var(--text); }
.release-meta { margin: 14px 0 0; font-size: 14px; color: var(--text-secondary); }

/* Modern touches: soft gradient glows and frosted cards */

.hero-stage { position: relative; }
.hero-stage::before {
  content: "";
  position: absolute;
  inset: -4% -10% -14% -10%;
  z-index: -1;
  background:
    radial-gradient(40% 55% at 18% 38%, rgb(0 113 227 / 0.32), transparent 72%),
    radial-gradient(40% 55% at 82% 38%, rgb(0 113 227 / 0.32), transparent 72%),
    radial-gradient(38% 45% at 50% 96%, rgb(100 170 255 / 0.28), transparent 72%);
  filter: blur(48px);
}
.hero .wrap { position: relative; isolation: isolate; }

.glow-band {
  --tile-bg: color-mix(in srgb, var(--surface) 62%, transparent);
  background:
    radial-gradient(60% 70% at 15% 8%, rgb(0 113 227 / 0.13), transparent 70%),
    radial-gradient(55% 70% at 85% 96%, rgb(0 113 227 / 0.13), transparent 70%),
    var(--bg);
}
.glow-band .steps li { backdrop-filter: saturate(160%) blur(24px); -webkit-backdrop-filter: saturate(160%) blur(24px); box-shadow: 0 12px 40px -24px rgb(0 0 0 / 0.25); }
.glow-band copy-command { background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: none; }
@media (prefers-color-scheme: dark) {
  .hero-stage::before { opacity: 0.7; }
}
