:root {
  --bg: #0b0b0c;
  --panel: #151517;
  --line: #2a2a2e;
  --text: #f2f2f3;
  --text-2: #b4b4ba;
  --text-3: #8a8a91;
  --accent: #c4672a;
  --accent-text: #e08a4c;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* The phones in front of the main app overhang it a little: never a sideways scroll on a phone. */
html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 12px; }

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px max(16px, calc((100vw - 1120px) / 2));
  background: rgba(11, 11, 12, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; }
.brand img { border-radius: 7px; }
.brand:hover { text-decoration: none; }

nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
nav a { color: var(--text-2); }
nav a:hover { color: var(--text); text-decoration: none; }
nav .nav-cta { color: var(--accent-text); }

main > section { padding: 72px max(16px, calc((100vw - 1120px) / 2)); }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 40px;
  padding-top: 88px;
  background: radial-gradient(ellipse 70% 60% at 70% 30%, rgba(196, 103, 42, 0.28), rgba(196, 103, 42, 0) 70%);
}

.hero h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 750; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--text-2); max-width: 34em; }
/* The hero's slides: one shown at a time, crossfading as they move. */
.stage { position: relative; aspect-ratio: 1 / 0.9; }
.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}
.slide.on { opacity: 1; transform: none; pointer-events: auto; }
.slide .board3d { filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.6)); }
.slide .shots { width: 100%; }
.slide .wide { border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); }
/* A thin bar of five parts under the slides: the ones shown, and the current one filling until the next. */
.timer { position: absolute; left: 14%; right: 14%; bottom: -38px; display: flex; gap: 6px; }
.timer span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.timer i { display: block; width: 0; height: 100%; background: var(--accent); }
.timer .done i { width: 100%; }
.timer .run i { animation: timer-fill var(--every, 6s) linear forwards; }
@keyframes timer-fill { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .slide { transition: opacity 0.2s linear; transform: none; }
  .timer .run i { animation: none; width: 100%; }
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.button:hover { text-decoration: none; border-color: #3a3a40; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.primary:hover { background: #b25c24; }
.button:disabled { opacity: 0.6; cursor: default; }

.fine { font-size: 14px; color: var(--text-3); max-width: 40em; }

.why {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 24px !important;
}
.why article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.why article.on { border-color: var(--accent); background: #1b1512; }
.why article:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.why h2 { font-size: 19px; color: var(--accent-text); }
.why p { margin: 0; color: var(--text-2); font-size: 15.5px; }

.features { display: grid; gap: 88px; }
.feature { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.feature.flip .feature-text { order: 2; }
.feature h2 { font-size: clamp(26px, 3vw, 34px); }
.feature ul { margin: 0; padding-left: 20px; color: var(--text-2); }
.feature li { margin: 6px 0; }
.feature p { color: var(--text-2); }

.shots { display: flex; justify-content: center; align-items: flex-start; }
.shots img {
  width: 34%;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
.shots.two img { width: 42%; }
.shots img + img { margin-left: -6%; margin-top: 7%; }
.shots img:nth-child(3) { margin-top: 14%; }

/* The main app with the phone in front of it. */
.combo { position: relative; width: 100%; padding-bottom: 7%; }
.combo .desk { width: 100%; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55); }
.combo .phone {
  position: absolute;
  right: -2%;
  bottom: 0;
  width: 23%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}
.combo.left .phone { right: auto; left: -2%; }
.slide .combo { width: 96%; }

.more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.more article { border-top: 1px solid var(--line); padding-top: 18px; }
.more h3 { font-size: 20px; }
.more p { margin: 0; color: var(--text-2); font-size: 15.5px; }

.remote .wide { border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); }

.specs h2, .download h2, .beta h2 { font-size: clamp(26px, 3vw, 34px); }
.specs dl { display: grid; grid-template-columns: 180px 1fr; margin: 8px 0 0; border-top: 1px solid var(--line); }
.specs dt, .specs dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--text-3); }
.specs dd { color: var(--text-2); }

.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.platform { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.platform h3 { font-size: 20px; }
.platform p { margin: 0 0 14px; color: var(--text-3); font-size: 15px; }
.platform .fine { margin: 12px 0 0; font-size: 13px; }
.soon { font-size: 14px; color: var(--text-3); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }

/* The panels near the end: the beta, the open-source core, and the closing call. */
.panel {
  background: linear-gradient(180deg, #17171a, #121214);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 48px);
}
.beta-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  background: radial-gradient(ellipse 60% 70% at 15% 100%, rgba(196, 103, 42, 0.18), rgba(196, 103, 42, 0) 70%), linear-gradient(180deg, #17171a, #121214);
}
.beta-pitch p { color: var(--text-2); max-width: 30em; }
.beta-phones { display: flex; gap: 0; margin-top: 28px; }
.beta-phones .phone { width: 42%; max-width: 180px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6); }
.beta-phones .phone + .phone { margin-left: -8%; margin-top: 10%; }
.beta form { display: grid; gap: 14px; }
.beta .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.beta label { display: grid; gap: 6px; font-size: 15px; color: var(--text-2); }
.beta .optional { color: var(--text-3); font-size: 13px; }
.beta input {
  font: inherit;
  color: var(--text);
  background: #0f0f11;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
}
.beta input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.beta button { justify-self: start; }
.beta .fine { margin: 0; }
.beta .result { margin: 0; min-height: 1.5em; color: var(--text-2); }
.beta .result.error { color: #ff8a80; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.faq h2 { font-size: clamp(26px, 3vw, 34px); }
.faq details { max-width: 820px; border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 36px 18px 0;
  position: relative;
  font-weight: 600;
  font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 14px;
  font-size: 24px;
  font-weight: 400;
  color: var(--accent-text);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--text-2); max-width: 46em; }

.core { padding-top: 0 !important; }
.core-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.eyebrow { margin: 0 0 8px; color: var(--accent-text); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.core-panel h2 { font-size: clamp(26px, 3vw, 34px); }
.core-panel p { color: var(--text-2); }
.core-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.core-parts li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0f0f11;
  color: var(--text-2);
  font-size: 15px;
}
.core-parts strong { color: var(--text); font-weight: 600; }

.closing {
  text-align: center;
  padding-top: 88px !important;
  padding-bottom: 96px !important;
  background: radial-gradient(ellipse 50% 70% at 50% 100%, rgba(196, 103, 42, 0.22), rgba(196, 103, 42, 0) 70%);
}
.closing h2 { font-size: clamp(30px, 4vw, 44px); }
.closing p { max-width: 42em; margin: 0 auto; font-size: 18px; color: var(--text-2); }
.closing .actions { justify-content: center; margin-top: 28px; }

footer {
  padding: 36px max(16px, calc((100vw - 1120px) / 2)) 48px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 13.5px;
}
footer p { margin: 4px 0; }
footer a { margin-left: 14px; }

.page { max-width: 760px; margin: 0 auto; padding: 56px 16px 72px; }
.page h1 { font-size: clamp(30px, 4vw, 42px); }
.page h2 { font-size: 22px; margin-top: 34px; }
.page p, .page li { color: var(--text-2); }

@media (max-width: 900px) {
  .hero, .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-text { order: 0; }
  .why { grid-template-columns: 1fr 1fr; }
  .more, .platforms, .beta-panel, .core-panel { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  nav a:not(.nav-cta) { display: none; }
  .why { grid-template-columns: 1fr; }
  .beta .row { grid-template-columns: 1fr; }
  .specs dl { grid-template-columns: 1fr; }
  .specs dt { padding-bottom: 0; border-bottom: none; }
  main > section { padding-top: 56px; padding-bottom: 56px; }
}
