:root {
  --black: #000000;
  --dark: #141414;
  --dark-tile: #1d1d1d;
  --light: #f5f5f7;
  --white: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --text-on-dark: #f5f5f7;
  --muted-on-dark: #a1a1a6;
  --accent: #0a5cff;
  --max: 1000px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; }
kbd { font-family: inherit; font-size: 0.85em; font-weight: 600; padding: 0 6px; border-radius: 6px; background: rgba(0, 0, 0, 0.06); border: 1px solid rgba(0, 0, 0, 0.12); white-space: nowrap; }
.dark kbd { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.18); color: var(--text-on-dark); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 720px; }

/* Fixed nav that switches text color with the section behind it */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 10; height: 56px; backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); background: rgba(245, 245, 247, 0.78); border-bottom: 1px solid rgba(0, 0, 0, 0.06); transition: background 0.3s, border-color 0.3s; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav .brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 17px; }
.nav .brand img { width: 26px; height: 26px; border-radius: 6px; }
.nav nav a { color: var(--text); margin-left: 32px; font-size: 14px; opacity: 0.85; }
.nav nav a:hover { opacity: 1; text-decoration: none; }
.nav.on-dark { background: rgba(0, 0, 0, 0.72); border-color: rgba(255, 255, 255, 0.08); }
.nav.on-dark .brand, .nav.on-dark nav a { color: var(--text-on-dark); }

/* GitHub ribbon: a rotated band clipped to the corner just below the fixed nav. */
.fork { position: absolute; top: 56px; right: 0; z-index: 9; width: 150px; height: 150px; overflow: hidden; pointer-events: none; }
.fork span { position: absolute; top: 44px; right: -50px; width: 220px; height: 32px; line-height: 32px; transform: rotate(45deg); pointer-events: auto; text-align: center; font-size: 13px; font-weight: 600; letter-spacing: 0.01em; color: #fff; background: var(--accent); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); outline: 1px dashed rgba(255, 255, 255, 0.45); outline-offset: -5px; transition: filter 0.2s; }
.fork:hover span { filter: brightness(1.12); text-decoration: none; }

/* Sections */
section { padding: 120px 0; }
section.dark { background: var(--dark); color: var(--text-on-dark); }
section.light { background: var(--light); }
section.light + section.light { padding-top: 0; }
h1, h2 { text-align: center; font-size: 56px; font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
section .sub { text-align: center; font-size: 19px; color: var(--muted); margin: 22px auto 64px; max-width: 640px; }
section.dark .sub { color: var(--muted-on-dark); }

/* Hero */
section.hero { padding-top: 160px; background: var(--black); }
.hero .demo { max-width: 880px; margin: 56px auto 0; }
.hero .demo video, .hero .demo img { display: block; width: 100%; border-radius: 18px; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1); }
.hero .sub { margin: 56px auto 40px; font-size: 21px; color: var(--text-on-dark); }
.hero .cta { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.btn { display: inline-flex; align-items: center; height: 48px; padding: 0 26px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 500; font-size: 17px; }
.btn:hover { text-decoration: none; background: #0048d6; }
.hero .more { font-size: 15px; color: #4c8dff; }

/* Tiles, Dropover style: rounded cards, text on top, UI on a wallpaper below */
.tiles { display: grid; gap: 20px; margin-bottom: 20px; }
.tiles.two { grid-template-columns: repeat(2, 1fr); }
.tile { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--white); border: 1px solid rgba(0, 0, 0, 0.04); }
section.dark .tile { background: var(--dark-tile); border-color: rgba(255, 255, 255, 0.06); }
.tile .text { padding: 32px 32px 24px; }
.tile h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.tile p { margin: 0; color: var(--muted); font-size: 17px; }
section.dark .tile p { color: var(--muted-on-dark); }
.tile .media { position: relative; height: 300px; margin: 0 32px 32px; border-radius: 14px; overflow: hidden; background: #1b2a4a; }
.tile .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.tile .media.bottom img { object-position: center bottom; }
.tile .media.number { background: linear-gradient(160deg, #1c3a6b, #0d1a33); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; }
.tile .media.number span { font-size: 96px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; text-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
.tile .media.number small { font-size: 15px; opacity: 0.85; margin-top: 6px; }
.tiles.single .tile { flex-direction: row; align-items: stretch; }
.tiles.single .text { flex: 0 0 40%; display: flex; flex-direction: column; justify-content: center; padding: 40px; }
.tiles.single .media.tall { flex: 1; height: 420px; margin: 32px 32px 32px 0; }

/* Pro banner */
.banner { margin-top: 20px; padding: 40px 40px 48px; border-radius: 22px; color: #fff; text-align: center; background: linear-gradient(135deg, #1f6fff, #2a2aff 55%, #4b1bd6); box-shadow: 0 30px 60px -20px rgba(42, 42, 255, 0.5); }
.banner .label { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; }
.banner .label img { width: 28px; height: 28px; border-radius: 7px; }
.banner h3 { font-size: 48px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 72px 0 24px; }
.banner .price { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.banner p { margin: 12px 0 0; opacity: 0.85; font-size: 16px; }

/* Long feature list */
#details h2 { margin-bottom: 64px; }
.list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
.list p { margin: 0; font-size: 17px; color: var(--muted); }
.list strong { color: var(--text); font-weight: 600; }

/* FAQ */
.faq h2 { margin-bottom: 40px; }
.faq details { border-top: 1px solid rgba(0, 0, 0, 0.1); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.faq summary { cursor: pointer; font-weight: 500; font-size: 17px; list-style: none; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Prose pages (support, privacy) */
main.prose { max-width: 720px; margin: 0 auto; padding: 120px 24px 80px; }
.prose h1 { text-align: left; font-size: 44px; margin: 0 0 6px; }
.prose p.meta { color: var(--muted); margin: 0 0 32px; }
.prose h2 { text-align: left; font-size: 26px; margin: 40px 0 8px; }
.prose h3 { font-size: 18px; margin: 28px 0 4px; }
.prose p, .prose li { color: #3a3a3c; }
.prose code { font-size: 15px; background: rgba(0, 0, 0, 0.06); padding: 1px 6px; border-radius: 5px; }

/* Footer */
footer { background: var(--white); padding: 56px 0 40px; font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start; }
footer .brand { display: flex; align-items: center; gap: 12px; }
footer .brand img { width: 40px; height: 40px; border-radius: 9px; }
footer .brand div { display: flex; flex-direction: column; }
footer .brand strong { color: var(--text); font-weight: 600; }
footer .brand span { color: var(--muted); }
footer .cols { display: flex; gap: 72px; }
footer .cols h4 { margin: 0 0 12px; font-size: 14px; color: var(--text); }
footer .cols a { display: block; color: var(--muted); margin: 0 0 8px; }
footer .copy { grid-column: 1 / -1; text-align: center; color: var(--muted); margin: 40px 0 0; }

@media (max-width: 760px) {
  .fork { display: none; }
  h1, h2 { font-size: 38px; }
  section { padding: 80px 0; }
  .hero { padding-top: 120px; }
  .nav nav a { margin-left: 16px; }
  .nav nav a:nth-child(1), .nav nav a:nth-child(4) { display: none; }
  .tiles.two, .list { grid-template-columns: 1fr; }
  .tiles.single .tile { flex-direction: column; }
  .tiles.single .text { padding: 32px 32px 24px; }
  .tiles.single .media.tall { margin: 0 32px 32px; height: 300px; }
  .banner h3 { font-size: 34px; margin-top: 48px; }
  footer .wrap { grid-template-columns: 1fr; }
}

