/* Light mode. Colors match the extension (Chrome cr_elements). */
:root {
  color-scheme: light;
  --text: #1f1f1f;
  --secondary: #444746;
  --primary: #0b57d0;
  --primary-hover: #0842a0;
  --tonal: rgb(168 199 250 / 55%);
  --separator: rgb(0 0 0 / 6%);
  --hover: rgb(31 31 31 / 6%);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font:
    400 16px/1.5 "Geist",
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header: sticky glass bar */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(255 255 255 / 72%);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--separator);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.link {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 500;
}

.link:hover {
  background: var(--hover);
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  box-shadow:
    0 1px 2px rgb(0 0 0 / 12%),
    inset 0 1px 0 rgb(255 255 255 / 18%);
  transition: transform 0.2s var(--ease);
}

.btn:hover {
  background: var(--primary-hover);
}

.btn:active {
  transform: scale(0.97);
}

.btn-sm {
  height: 36px;
  margin-left: 8px;
  padding: 0 16px;
  font-size: 14px;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding: 96px 0 120px;
  text-align: center;
}

.glow {
  position: absolute;
  z-index: -1;
  top: 45%;
  left: 50%;
  width: 900px;
  height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--tonal), transparent);
  filter: blur(60px);
  pointer-events: none;
}

h1 {
  max-width: 16ch;
  margin: 0 auto;
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.sub {
  max-width: 46ch;
  margin: 20px auto 0;
  color: var(--secondary);
  font-size: clamp(17px, 2vw, 19px);
  text-wrap: balance;
}

.cta {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.note {
  margin: 14px 0 0;
  color: var(--secondary);
  font-size: 13px;
  opacity: 0.8;
}

/* Image placeholder: glass frame + gray box */
.frame {
  max-width: 1040px;
  margin: 72px auto 0;
  padding: 8px;
  border: 1px solid var(--separator);
  border-radius: 32px;
  background: rgb(255 255 255 / 60%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 1px 1px rgb(0 0 0 / 4%),
    0 12px 24px -8px rgb(0 0 0 / 8%),
    0 48px 96px -24px rgb(11 87 208 / 18%);
}

.shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1658 / 1080;
  border-radius: 24px;
  background: linear-gradient(180deg, #f3f4f6, #e9ebee);
}

/* Browser logos */
.browsers {
  position: relative;
  padding-bottom: 96px;
  text-align: center;
}

.browsers-title {
  margin: 0 0 28px;
  color: var(--secondary);
  font-size: 15px;
}

.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px clamp(28px, 6vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.logos img {
  display: block;
  width: auto;
  height: 40px;
}

/* Section titles */
.head h2,
.why h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

/* Features: bento grid */
.features {
  position: relative;
  padding: 24px 0 120px;
}

.head {
  margin-bottom: 56px;
  text-align: center;
}

.bento {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.card {
  grid-column: span 2;
  overflow: hidden;
  padding: 32px;
  border: 1px solid var(--separator);
  border-radius: 28px;
  background: #eff2f6;
}

.card.wide {
  grid-column: span 3;
}

.card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card p {
  max-width: 40ch;
  margin: 8px 0 0;
  color: var(--secondary);
}

.visual {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 32px;
  border: 1px solid var(--separator);
  border-radius: 16px;
  background: #fff;
}

/* Screenshots: hairline drawn inside the image edge */
img.visual {
  border: 0;
  outline: 1px solid var(--separator);
  outline-offset: -1px;
}

/* Private card: pills instead of an image */
.pills {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 12px;
  min-height: 240px;
  padding: 24px;
  background: #f5f5f7;
}

.pills span {
  padding: 12px 22px;
  border: 1px solid var(--separator);
  border-radius: 999px;
  background: #111111;
  color: #fff;
  font-size: 17px;
  font-weight: 500;
}

/* Why: closing call to action */
.why {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 120px 0 136px;
  text-align: center;
}

.dots {
  position: absolute;
  z-index: -1;
  inset: 0;
  mask-image: radial-gradient(ellipse 50% 60% at center, #000, transparent);
  -webkit-mask-image: radial-gradient(
    ellipse 50% 60% at center,
    #000,
    transparent
  );
}

/* Dots canvas (drawn by dots.js) */
.dots canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Footer */
.bottom {
  border-top: 1px solid var(--separator);
}

.foot {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 72px;
  font-size: 14px;
}

.foot-brand p {
  margin: 12px 0 0;
  color: var(--secondary);
}

.foot-brand .legal + .legal {
  margin-top: 4px;
}

.maker {
  color: var(--text);
}

.maker:hover {
  text-decoration: underline;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.col-title {
  margin: 0 0 10px;
  font-weight: 600;
}

.foot-cols a {
  display: block;
  padding: 5px 0;
  color: var(--secondary);
}

.foot-cols a:hover {
  color: var(--text);
}

/* Cards and the closing section fade up as they scroll in (no JS) */
@supports (animation-timeline: view()) {
  .card,
  .why .wrap {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}

@media (max-width: 800px) {
  .bento,
  .foot {
    grid-template-columns: 1fr;
  }
  .card,
  .card.wide {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .foot-cols {
    grid-template-columns: 1fr 1fr;
  }
}

/* Motion: transform and opacity only */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.97);
  }
}

.reveal {
  animation: rise 0.8s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}

.frame {
  animation: appear 1.1s var(--ease) 0.35s both;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 640px) {
  .link {
    display: none;
  }
  .hero {
    padding: 64px 0 80px;
  }
}
