:root {
  --bg: #000;
  --bg-2: #0b0b0f;
  --card: #111115;
  --line: rgba(255, 255, 255, .08);
  --text: #f5f5f7;
  --muted: #86868b;
  --soft: #a1a1a6;
  /* Big Sur: sky blue into coral, magenta and amber. */
  --blue: #3b8cff;
  --warm: #ff8a5c;
  --grad: linear-gradient(92deg, #4fb3ff 0%, #8f7bff 28%, #ff4f7b 60%, #ffa24a 100%);
  --glow-warm: rgba(255, 79, 123, .42);
  --glow-cool: rgba(79, 150, 255, .38);
  --radius: 28px;
  --wrap: 1040px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.47 var(--font);
  letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(var(--wrap), 100% - 44px); margin-inline: auto; }
.narrow { --wrap: 720px; text-align: center; }
.sr-only, .honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: #000; padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

.gradient { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Nav: thin, translucent, blurred — Apple's global nav. */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: 52px;
  background: rgba(0, 0, 0, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { height: 100%; width: min(1080px, 100% - 44px); margin-inline: auto; display: flex; align-items: center; gap: 28px; }
.nav-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.nav-brand img { border-radius: 6px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 13px; color: var(--soft); }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang { background: none; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; padding: 4px 10px; color: var(--soft); cursor: pointer; }
.lang:hover { color: var(--text); border-color: rgba(255,255,255,.2); }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px; border-radius: 999px; border: 0;
  background: var(--blue); color: #fff; font-size: 17px; font-weight: 400; letter-spacing: -.02em;
  cursor: pointer; transition: background .2s, transform .2s;
}
.pill:hover { background: #2a74e6; }
.pill:active { transform: scale(.98); }
.pill-small { height: 28px; padding: 0 14px; font-size: 12px; }
.link { color: var(--blue); font-size: 17px; }
.link:hover { text-decoration: underline; }

/* Hero */
.hero { padding: 88px 0 0; text-align: center; overflow: clip; position: relative; isolation: isolate; }
/* Big Sur light behind the hero: soft, out of focus, never behind text contrast. */
.hero::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -220px; width: min(1400px, 140vw); height: 900px; transform: translateX(-50%);
  background:
    radial-gradient(40% 45% at 30% 40%, rgba(79, 170, 255, .30), transparent 70%),
    radial-gradient(38% 45% at 55% 55%, rgba(255, 64, 110, .30), transparent 70%),
    radial-gradient(30% 40% at 75% 35%, rgba(255, 150, 70, .22), transparent 70%);
  filter: blur(40px); opacity: .9; pointer-events: none;
}
.eyebrow { color: var(--warm); font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.hero-title { font-size: clamp(64px, 12vw, 132px); line-height: 1; font-weight: 700; letter-spacing: -.045em; padding-bottom: .06em; }
.hero-tagline { font-size: clamp(28px, 4.2vw, 48px); font-weight: 600; letter-spacing: -.03em; margin-top: 8px; }
.hero-sub { max-width: 640px; margin: 18px auto 0; color: var(--soft); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.4; }
.hero-actions { display: flex; gap: 26px; justify-content: center; align-items: center; margin-top: 30px; }
.hero-meta { margin-top: 18px; color: var(--muted); font-size: 14px; letter-spacing: -.01em; }

/* The live demo sits in a fixed window; it doesn't resize with the scroll. */
.hero-stage { margin-top: 64px; padding-bottom: 40px; }
.hero-frame {
  margin: 0 auto;
  width: min(1280px, 94%);
  border-radius: 18px;
  overflow: hidden;
  background: #0a0a0d;
  box-shadow: 0 40px 140px -30px var(--glow-warm), 0 -20px 120px -50px var(--glow-cool), 0 0 0 1px var(--line);
  aspect-ratio: 16 / 10;
  transform: translateZ(0);
}
.hero-frame video { width: 100%; height: 100%; object-fit: cover; }
.hero-frame.film { aspect-ratio: 16 / 9; position: relative; }
.film-toggle { position: absolute; right: 14px; bottom: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: rgba(20,20,26,.5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); opacity: .55; transition: opacity .2s; }
.film:hover .film-toggle, .film-toggle:focus-visible { opacity: 1; }
.film-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.film-toggle .i-play { display: none; fill: currentColor; stroke: none; }
.film-toggle.paused .i-play { display: block; } .film-toggle.paused .i-pause { display: none; }
.film-sound { right: 60px; }
.film-sound .spk { fill: currentColor; stroke: none; }
.film-sound .i-on { display: none; } .film-sound.on .i-on { display: block; } .film-sound.on .i-off { display: none; }

/* Live demo, right under the hero film. */
.live { padding: 72px 0 24px; text-align: center; }
.live-title { font-size: clamp(40px, 6vw, 72px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; }
.live-sub { max-width: 560px; margin: 14px auto 0; color: var(--soft); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.4; }
.live-stage { margin-top: 40px; }

/* Sections */
section { position: relative; }
.section-title { font-size: clamp(34px, 5vw, 56px); line-height: 1.07; font-weight: 700; letter-spacing: -.035em; }
.section-title.big { font-size: clamp(40px, 7vw, 80px); line-height: 1.04; letter-spacing: -.045em; }
.kicker { color: var(--warm); font-size: 19px; font-weight: 600; margin-bottom: 12px; }
.lede { max-width: 720px; color: var(--soft); font-size: clamp(19px, 2vw, 24px); line-height: 1.38; margin-top: 22px; font-weight: 500; letter-spacing: -.025em; }
.lede strong { color: var(--text); font-weight: 600; }

/* Craft: for people who chose a Mac for how it feels */
.craft { padding: 160px 0 40px; text-align: center; }
.craft .statement { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.1; font-weight: 700; letter-spacing: -.04em; max-width: 980px; margin: 0 auto; color: #6e6e73; }
.craft .statement strong { color: var(--text); font-weight: 700; }
.craft-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; text-align: left; }
.craft-point { background: var(--card); border-radius: var(--radius); padding: 30px 30px 34px; border: 1px solid rgba(255,255,255,.04); }
.craft-point .glyph { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(79,179,255,.25), rgba(255,79,123,.25)); box-shadow: inset 0 1px 0 rgba(255,255,255,.15); }
.craft-point h3 { font-size: 22px; letter-spacing: -.028em; line-height: 1.2; }
.craft-point p { color: var(--soft); font-size: 16px; line-height: 1.45; margin-top: 8px; }

/* Split: the core */
.split { padding: 160px 0 60px; }
.split-film { margin-top: 64px; border-radius: 22px; overflow: hidden; position: relative; aspect-ratio: 16 / 10; background: #0a0a0d;
  box-shadow: 0 40px 120px -30px var(--glow-cool), 0 0 0 1px var(--line); }
.split-film video { width: 100%; height: 100%; object-fit: cover; }
.split-keys { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 18px; padding: 10px 18px;
  border-radius: 999px; background: rgba(12,12,16,.62); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,.1); white-space: nowrap; }
.split-keys span { display: inline-flex; align-items: center; gap: 4px; }
.split-keys kbd { min-width: 26px; height: 26px; padding: 0 6px; font-size: 13px; border-radius: 7px; }
.split-keys em { font-style: normal; font-size: 13px; color: var(--soft); margin-left: 4px; }
.split-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 20px; }
.mini { background: var(--card); border-radius: var(--radius); padding: 14px 14px 28px; border: 1px solid rgba(255,255,255,.04); }
.mini-media { border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; background: #0a0a0d; margin-bottom: 22px; }
.mini-media video { width: 100%; height: 100%; object-fit: cover; }
.mini h3 { font-size: 22px; letter-spacing: -.028em; line-height: 1.18; padding: 0 16px; }
.mini p { color: var(--soft); font-size: 16px; line-height: 1.45; margin-top: 8px; padding: 0 16px; }
/* Wallpapers, inside the design section */
.bg-stage { margin-top: 72px; }
.bg-frames { position: relative; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: #0a0a0d; box-shadow: 0 0 0 1px var(--line); }
.bg-frame { position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--ease); }
.bg-frame.is-active { opacity: 1; }
.bg-frame img { width: 100%; height: 100%; object-fit: cover; }
.bg-frames::after { content: ""; position: absolute; inset: 0; pointer-events: none; transition: box-shadow .8s var(--ease); }
.bg-picker { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.bg-picker button { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 8px; border-radius: 999px; border: 1px solid transparent;
  background: rgba(255,255,255,.07); cursor: pointer; transition: background .2s, border-color .2s; }
.bg-picker button[aria-selected="true"] { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); }
.bg-picker em { font-style: normal; font-size: 15px; }
.sw { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.sw-0 { background: linear-gradient(135deg, #2b1a7a, #7a2a9a 55%, #c2447a); }
.sw-1 { background: linear-gradient(135deg, #1e7fd0, #d73a5c 55%, #f0a23a); }
.sw-2 { background: linear-gradient(135deg, #f1ece6, #c8241f 55%, #3a1414); }

/* Point at the UI: text scrolls, the picture stays */
.point { padding: 160px 0 80px; }
.story { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; margin-top: 80px; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .5s var(--ease); }
.step.is-active { opacity: 1; }
.step-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); font-size: 15px; font-weight: 600; margin-bottom: 18px; }
.step h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.12; letter-spacing: -.03em; font-weight: 700; }
.step p { color: var(--soft); font-size: 19px; margin-top: 12px; line-height: 1.45; }
.story-sticky { position: sticky; top: calc(50vh - min(30vw, 330px) / 1.6 - 20px); aspect-ratio: 16 / 10; }
.story-shot {
  position: absolute; inset: 0; border-radius: 20px; overflow: hidden;
  opacity: 0; transform: scale(.97); transition: opacity .6s var(--ease), transform .8s var(--ease);
  box-shadow: 0 30px 90px -30px rgba(0,0,0,.9), 0 0 0 1px var(--line);
}
.story-shot img { width: 100%; height: 100%; object-fit: cover; }
.story-shot.is-active { opacity: 1; transform: none; }
.terminal { background: #0c0c10; display: flex; flex-direction: column; }
.term-bar { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.term-bar span { width: 12px; height: 12px; border-radius: 50%; background: #3a3a3f; }
.term-bar span:nth-child(1) { background: #ff5f57; } .term-bar span:nth-child(2) { background: #febc2e; } .term-bar span:nth-child(3) { background: #28c840; }
.term-bar em { margin-left: 10px; font-style: normal; font: 12px var(--mono); color: var(--muted); letter-spacing: 0; }
.terminal pre { margin: 0; padding: 26px 26px; font: clamp(9px, 0.95vw, 13.5px)/1.8 var(--mono); letter-spacing: 0; color: #e8e8ed; white-space: pre; overflow: hidden; }
.point-cta { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; margin-top: 72px; padding: 30px 32px;
  border-radius: var(--radius); background: var(--card); border: 1px solid rgba(255,255,255,.04); }
.point-cta p { font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; letter-spacing: -.025em; }
.t-dim { color: #7c7c85; } .t-accent { color: #b8a8ff; } .t-str { color: #ffb4d0; } .t-hi { color: #fff; font-weight: 600; } .t-ok { color: var(--warm); }

/* Bento */
.features { padding: 140px 0 60px; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.tile-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; min-height: 360px;
  border: 1px solid rgba(255,255,255,.04);
}
.tile-card.span-2 { grid-column: span 2; }
.tile-card.wide-card { grid-column: 1 / -1; min-height: 0; display: grid; grid-template-columns: 1fr auto; column-gap: 40px; align-items: center; }
.wide-card h3 { grid-column: 1; }
.wide-card p:not(.agents) { grid-column: 1; }
.wide-card .agents { grid-column: 2; grid-row: 1 / span 2; margin-top: 0 !important; }
.tile-copy { padding: 30px 32px 0; }
.tile-card h3 { font-size: 24px; line-height: 1.16; letter-spacing: -.028em; font-weight: 700; }
.tile-card p { color: var(--soft); font-size: 17px; margin-top: 8px; line-height: 1.42; }
.tile-img { flex: 1; min-height: 240px; margin-top: 26px; padding-left: 32px; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; object-position: left top; border-radius: 14px 0 0 0; box-shadow: 0 0 0 1px var(--line); }
/* Small cards keep their picture to a fixed strip so a tall shot can't stretch the row. */
.tile-card:not(.span-2) .tile-img:not(.centered):not(.tile-video) { flex: none; height: 250px; min-height: 0; margin-top: auto; overflow: hidden; }
.tile-video { margin-top: auto; padding: 0 24px 24px; display: flex; align-items: center; }
.tile-video video { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.tile-img.centered { padding: 0 28px 28px; display: flex; align-items: center; }
.tile-img.centered img { height: auto; object-fit: initial; border-radius: 16px; box-shadow: 0 20px 60px -20px rgba(0,0,0,.8), 0 0 0 1px var(--line); }
.text-card { padding: 32px; justify-content: flex-start; }
.text-card .mono { margin-top: auto; font: 600 15px var(--mono); letter-spacing: 0; color: var(--soft); }
.agents { margin-top: auto !important; display: flex; flex-wrap: wrap; gap: 8px; }
.agents span { padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--text); font-size: 14px; font-weight: 500; }

kbd {
  min-width: 46px; height: 46px; padding: 0 12px; display: inline-grid; place-items: center;
  border-radius: 11px; font: 500 19px var(--font); color: var(--text);
  background: linear-gradient(#2a2a30, #1b1b20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 2px 0 #050507, 0 4px 14px rgba(0,0,0,.5);
}

/* Waitlist */
.waitlist { padding: 160px 0 80px; }
.wl-icon { margin: 0 auto 30px; width: 128px; height: 128px; filter: drop-shadow(0 20px 50px var(--glow-warm)); }
.waitlist .lede { margin-inline: auto; }
.wl-form { margin-top: 36px; }
.wl-row { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; }
.wl-row input {
  flex: 1; min-width: 0; height: 52px; padding: 0 20px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: var(--text); font: inherit;
}
.wl-row input::placeholder { color: #6e6e73; }
.wl-row input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59,140,255,.28); }
.wl-row .pill { height: 52px; }
.form-message { min-height: 24px; margin-top: 14px; font-size: 15px; }
.form-message.success { color: #30d158; }
.form-message.error { color: #ff6961; }
.fine { color: var(--muted); font-size: 12px; letter-spacing: -.01em; }

/* FAQ */
.faq { padding: 60px 0 140px; }
.faq .section-title { margin-bottom: 30px; }
.faq details { text-align: left; border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font-size: 21px; font-weight: 600; letter-spacing: -.02em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 300; color: var(--soft); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--soft); padding: 0 0 24px; font-size: 17px; }

.footer { border-top: 1px solid var(--line); padding: 30px 0 50px; color: var(--muted); font-size: 12px; }
.footer-inner { display: flex; align-items: center; gap: 22px; }
.footer-inner .fine { margin-left: auto; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-media { order: -1; position: sticky; top: 64px; z-index: 2; }
  .story-sticky { position: relative; top: 0; }
  .step { min-height: 60vh; }
  .bento { grid-template-columns: 1fr; }
  .tile-card.span-2 { grid-column: auto; }
  .tile-card.wide-card { grid-template-columns: 1fr; }
  .wide-card .agents { grid-column: 1; grid-row: auto; margin-top: 18px !important; }
  .split-grid { grid-template-columns: 1fr; }
  .craft-points { grid-template-columns: 1fr; }
  .split-keys { gap: 10px; bottom: 12px; padding: 8px 12px; }
  .split-keys span:nth-child(n+4) { display: none; }
  .hero-frame { width: 92%; }
}
@media (max-width: 520px) {
  .hero-actions { flex-direction: column; gap: 16px; }
  .wl-row { flex-direction: column; }
  .footer-inner { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .story-shot, .step { transition: none; }
  .reveal { opacity: 1; transform: none; }
}
