:root {
  --night: #0b1026;
  --night-2: #121a3a;
  --card: rgba(255, 255, 255, 0.05);
  --card-line: rgba(255, 255, 255, 0.09);
  --text: #eef1fb;
  --muted: #a9b0c9;
  --gold: #f7b84b;
  --gold-2: #e08a1e;
  --cocoa: #8b5a3c;
  --radius: 18px;
  --max: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--night);
  background-image:
    radial-gradient(1200px 600px at 50% -200px, rgba(80, 110, 220, 0.25), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ffd07a; }
img, video { max-width: 100%; display: block; }

#snow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(11, 16, 38, 0.72);
  border-bottom: 1px solid var(--card-line);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
}
.brand img { width: 30px; height: 30px; }
.topbar nav { display: flex; gap: 22px; }
.topbar nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.topbar nav a:hover, .topbar nav a[aria-current="page"] { color: var(--text); }

/* A string of bulbs under the top bar */
.string {
  position: relative;
  height: 26px;
  overflow: hidden;
  z-index: 9;
  pointer-events: none;
}
.string svg { width: 100%; height: 26px; display: block; }
.bulb { animation: twinkle 3.2s ease-in-out infinite; }
@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) { .bulb { animation: none; } }

/* Hero */
.hero {
  text-align: center;
  padding: 56px 0 24px;
}
.hero .wordmark { width: min(420px, 80vw); margin: 0 auto; }
.hero h1 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
  margin: 18px 0 12px;
  letter-spacing: -0.01em;
}
.hero p.lede {
  color: var(--muted);
  font-size: clamp(17px, 2.2vw, 20px);
  max-width: 620px;
  margin: 0 auto 28px;
}

.buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.button:hover { transform: translateY(-1px); filter: brightness(1.06); }
.button.primary {
  color: #2a1700;
  background: linear-gradient(180deg, #ffd27a, var(--gold) 55%, var(--gold-2));
  box-shadow: 0 6px 24px rgba(247, 184, 75, 0.28);
}
.button.secondary {
  color: var(--text);
  background: var(--card);
  border-color: var(--card-line);
}
.button.cocoa {
  color: #fff;
  background: linear-gradient(180deg, var(--cocoa), #5e3a26);
}
.button[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}
.button small { font-weight: 600; opacity: 0.8; }
.note { color: var(--muted); font-size: 14px; margin-top: 12px; }

.screen {
  margin: 44px auto 0;
  max-width: 960px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--card-line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(255, 255, 255, 0.03);
  background: #000;
  aspect-ratio: 16 / 10;
}
.screen video, .shot video { width: 100%; height: 100%; object-fit: cover; }

/* Features */
section { padding: 72px 0; }
.section-title {
  text-align: center;
  font-size: clamp(26px, 4vw, 36px);
  margin: 0 0 10px;
}
.section-sub { text-align: center; color: var(--muted); margin: 0 auto 40px; max-width: 600px; }

.feature {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 44px;
  align-items: center;
  margin: 0 0 72px;
}
.feature:last-child { margin-bottom: 0; }
.feature.flip .shot { order: 2; }
.feature h3 { font-size: 26px; margin: 0 0 10px; line-height: 1.2; }
.feature p { color: var(--muted); margin: 0 0 10px; }
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 999px;
  padding: 3px 10px;
  margin-top: 4px;
}
.shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-line);
  aspect-ratio: 16 / 10;
  background: #000;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 22px;
}
.card h4 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .icon { font-size: 24px; margin-bottom: 8px; display: block; }

/* Versions table */
.versions { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 16px;
}
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--card-line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-size: 15px; color: var(--muted); font-weight: 700; }
td.yes { color: #9fe0a8; font-weight: 700; }
td.no { color: var(--muted); }

/* Text pages */
.page { max-width: 720px; margin: 0 auto; padding: 56px 0 72px; }
.page h1 { font-size: clamp(32px, 5vw, 44px); margin: 0 0 6px; line-height: 1.1; }
.page .updated { color: var(--muted); margin: 0 0 32px; }
.page h2 { font-size: 22px; margin: 36px 0 8px; }
.page p, .page li { color: #d6dbee; }
.page ul { padding-left: 22px; }

details {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 14px;
  padding: 0 18px;
  margin: 0 0 10px;
}
summary {
  cursor: pointer;
  font-weight: 700;
  padding: 15px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold); font-weight: 800; }
details[open] summary::after { content: "−"; }
details > div { padding: 0 0 14px; color: #d6dbee; }
details > div p { margin: 0 0 10px; }

.contact {
  margin-top: 36px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 28px 22px;
}
.contact h2 { margin-top: 0; }

/* Footer */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--card-line);
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 14px;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
.credit { flex-basis: 100%; font-size: 13px; opacity: 0.8; }

@media (max-width: 820px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 20px; margin-bottom: 56px; }
  .feature.flip .shot { order: 0; }
  .grid { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .topbar nav { gap: 14px; }
  .topbar nav a { font-size: 14px; }
  .topbar nav .optional { display: none; }
  .hero { padding-top: 36px; }
  .button { width: 100%; justify-content: center; }
  th, td { padding: 12px; font-size: 14px; }
}
