

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: normal;
  font-weight: var(--w-regular);
  font-feature-settings: var(--font-features);
  letter-spacing: var(--track);
  -webkit-font-smoothing: antialiased;
}

.tnum, time, .num { font-variant-numeric: tabular-nums; }

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

img, svg { display: block; }

button { font: inherit; letter-spacing: inherit; }

.sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

[class$="__scroll"], [class*="__scroll "] { position: relative; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
  border-radius: var(--r-1);
}

.skip {
  position: absolute; left: var(--s-4); top: var(--s-4); z-index: 100;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-3);
  background: var(--grey-50); color: var(--grey-500);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text);
  font-weight: var(--w-semi);
}

.display {
  letter-spacing: 0;
  font-size: var(--t-display);
  line-height: var(--lh-display);
  font-feature-settings: var(--font-features-display);
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
}

.h1   { font-size: var(--t-h1);   line-height: var(--lh-h1);  letter-spacing: 0; }
.h2   { font-size: var(--t-h2);   line-height: var(--lh-h2);  letter-spacing: 0; }
.lede { font-size: var(--t-lede); line-height: var(--lh-lede); font-weight: var(--w-medium); color: var(--text-body); }
.h3   { font-size: var(--t-h3);   line-height: var(--lh-h3);  font-weight: var(--w-medium); }

p { margin: 0; color: var(--text-body); }

.copy, .lede, .body-lg, .consent, .foot p, .foot a {
  font-weight: var(--w-medium);
  line-height: var(--lh-body);
}

.body-lg { font-size: var(--t-lg); line-height: var(--lh-lg); }
.muted   { color: var(--text-muted); }

.mono {
  font-family: var(--font-mono);
  font-size: var(--t-small);
  line-height: var(--lh-small);
  letter-spacing: 0;
  color: var(--text-body);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-small);
  line-height: var(--lh-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.wrap {
  width: 100%;
  max-width: calc(var(--w-page) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--wide { max-width: calc(var(--w-wide) + var(--gutter) * 2); }
.wrap--mid  { max-width: calc(var(--w-mid)  + var(--gutter) * 2); }
.wrap--text { max-width: calc(var(--w-text) + var(--gutter) * 2); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: var(--s-13); }

.page-top { padding-top: calc(16px + 76px + var(--s-11)); }

@media (max-width: 720px) {
  .page-top { padding-top: calc(12px + 56px + var(--s-8)); }
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding-inline: var(--s-4);
  border: 0; border-radius: var(--r-3);
  font-size: var(--t-body); font-weight: var(--w-medium);
  cursor: pointer;
  transition: background-color var(--e-hover), box-shadow var(--e-hover), transform var(--e-hover);
}

.btn--primary {
  background: var(--grey-50); color: var(--grey-500);
  box-shadow: var(--shadow-btn);
}
.btn--primary:hover  { background: var(--white); }
.btn--primary:active { background: var(--grey-100); transform: scale(0.98); }

.btn--ghost {
  background: linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.10));
  color: var(--text);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05),
              0 0 0 1px rgba(255, 255, 255, 0.25),
              inset 0 -1px rgba(0, 0, 0, 0.2);
}
.btn--ghost:hover  { background: var(--fill-hover); }
.btn--ghost:active { transform: scale(0.98); }

.btn--sm { height: 36px; padding-inline: var(--s-4); }

.field {
  width: 100%; height: 42px; padding-inline: var(--s-4);
  border: 1px solid var(--fill-soft);
  border-radius: var(--r-3);
  background: var(--fill-soft);
  color: var(--text);
  font: var(--w-medium) var(--t-body) var(--font-sans);
  letter-spacing: var(--track);
  transition: border-color var(--e-hover), background-color var(--e-hover);
}
.field::placeholder { color: var(--text-body); }
.field:hover { border-color: var(--line-bright); }

.signup { display: flex; gap: var(--s-2); }
.signup label { flex: 1 1 auto; display: block; }
.signup .btn { height: 42px; flex: 0 0 auto; }

.consent {
  margin-top: var(--s-3);
  font-size: var(--t-small); line-height: var(--lh-small);
  color: var(--text-muted);
}
.consent a { color: var(--text-body); text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--text); }

.bar {
  position: fixed; inset-block-start: 16px; inset-inline: 0; z-index: 40;
  width: min(var(--w-page), calc(100% - 32px));
  margin-inline: auto;
  height: 76px;
  padding-inline: var(--s-6) var(--s-5);
  display: flex; align-items: center; gap: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-5);
  background: var(--panel-glass);
  backdrop-filter: var(--blur-nav);
  -webkit-backdrop-filter: var(--blur-nav);
  box-shadow: var(--ring-top);
}

.bar__brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.bar__brand svg { width: 26px; height: 26px; }
.bar__name { font-size: var(--t-lg); font-weight: var(--w-semi); letter-spacing: 0; }

.bar__nav {
  flex: 1 1 auto;
  display: flex; justify-content: center; gap: var(--s-1);
}

.bar__link {
  display: flex; align-items: center;
  height: 36px; padding-inline: var(--s-3);
  border-radius: var(--r-3);
  font-size: var(--t-body); font-weight: var(--w-medium);
  color: var(--text-body);
  transition: color var(--e-hover), background-color var(--e-hover);
}
.bar__link:hover { color: var(--text); background: var(--fill-faint); }
.bar__link[aria-current="page"] { color: var(--text); }

.bar__cta { flex: 0 0 auto; }

.bar__toggle { display: none; }
.bar__cta--mobile { display: none; }

@media (max-width: 720px) {
  .bar {
    inset-block-start: 12px;
    width: calc(100% - 32px);
    height: 56px;
    padding-inline: var(--s-4) var(--s-3);
    gap: var(--s-3);
  }
  .bar__brand svg { width: 24px; height: 24px; }

  
  .bar__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; flex: 0 0 auto;
    margin-left: auto;
    border: 0; border-radius: var(--r-3);
    background: var(--fill-soft); color: var(--text);
    cursor: pointer;
  }

  .bar__nav {
    position: absolute; inset-inline: 0; top: calc(100% + var(--s-2));
    flex-direction: column; justify-content: flex-start; gap: var(--s-1);
    padding: var(--s-3);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-4);
    
    background: rgba(8, 9, 10, 0.96);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    box-shadow: var(--shadow-card);
  }
  .bar__nav[hidden] { display: none; }

  .bar__link { height: 44px; padding-inline: var(--s-3); }

  .bar__cta { display: none; }
  .bar__cta--mobile { display: flex; margin-top: var(--s-2); height: 44px; }
}

.foot { padding-block: var(--s-9) var(--s-8); border-top: 1px solid var(--line); }

.foot__signup {
  display: grid; grid-template-columns: 1fr minmax(320px, 420px);
  gap: var(--s-6); align-items: center;
  padding: var(--s-5) var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  background: var(--fill-faint);
}
.foot__signup h2 { font-size: var(--t-lg); line-height: var(--lh-lg); font-weight: var(--w-medium); }
.foot__signup p  { margin-top: var(--s-1); font-size: var(--t-body); color: var(--text-muted); }

.foot__cols {
  margin-top: var(--s-11);
  display: flex; justify-content: space-between; gap: var(--s-11);
}
.foot__brand { width: 360px; flex: 0 1 auto; }
.foot__brand p { margin-top: var(--s-4); color: var(--text-body); }

.foot__links { display: flex; gap: var(--s-11); }
.foot__col { width: 140px; }
.foot__col h3 { font-size: var(--t-body); line-height: var(--lh-small); font-weight: var(--w-medium); color: var(--text); }
.foot__col ul { margin: var(--s-4) 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--s-3); }
.foot__col a { color: var(--text-body); transition: color var(--e-link); }
.foot__col a:hover { color: var(--text); }

.foot__base {
  margin-top: var(--s-8); padding-top: var(--s-6);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: var(--s-4);
  font-family: var(--font-mono); font-size: var(--t-small);
  letter-spacing: 0; color: var(--text-muted);
}

@media (max-width: 720px) {
  .foot__signup { grid-template-columns: 1fr; }
  .foot__base   { flex-direction: column; gap: var(--s-2); }
}

@media (max-width: 1040px) {
  .foot__cols  { flex-direction: column; gap: var(--s-9); }
  .foot__brand { width: auto; max-width: var(--w-text); }
  .foot__links { gap: var(--s-8); flex-wrap: wrap; }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
  @keyframes card { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

  .rise { animation: rise var(--rise) both; }
  .card-in { animation: card var(--e-card) both; }

  .d1 { animation-delay: calc(var(--stagger) * 1); }
  .d2 { animation-delay: calc(var(--stagger) * 2); }
  .d3 { animation-delay: calc(var(--stagger) * 3); }
  .d4 { animation-delay: calc(var(--stagger) * 4); }
}

.page--product,
.page--research,
.page--changelog,
.page--about,
.page--faq {
  background-repeat: no-repeat;
}

.page--product {
  background-image:
    radial-gradient(400px 280px at 50% 160px,
      rgba(154, 170, 255, 0.18), rgba(154, 170, 255, 0) 100%);
}

.page--research {
  background-image:
    radial-gradient(450px at calc(50% + 490px) 130px,
      rgba(154, 170, 255, 0.12), rgba(154, 170, 255, 0) 100%),
    radial-gradient(320px at calc(50% - 640px) 80px,
      rgba(154, 170, 255, 0.05), rgba(154, 170, 255, 0) 100%),
    radial-gradient(380px at calc(50% - 600px) 1940px,
      rgba(154, 170, 255, 0.05), rgba(154, 170, 255, 0) 100%);
}

.page--changelog {
  background-image:
    radial-gradient(440px at calc(50% + 500px) 100px,
      rgba(154, 170, 255, 0.12), rgba(154, 170, 255, 0) 100%),
    radial-gradient(320px at calc(50% - 640px) 80px,
      rgba(154, 170, 255, 0.05), rgba(154, 170, 255, 0) 100%),
    radial-gradient(380px at calc(50% + 520px) 1580px,
      rgba(154, 170, 255, 0.05), rgba(154, 170, 255, 0) 100%);
}

.page--about {
  background-image:
    radial-gradient(450px at calc(50% + 490px) 130px,
      rgba(154, 170, 255, 0.12), rgba(154, 170, 255, 0) 100%),
    radial-gradient(320px at calc(50% - 640px) 80px,
      rgba(154, 170, 255, 0.05), rgba(154, 170, 255, 0) 100%),
    radial-gradient(550px 260px at 50% 1560px,
      rgba(154, 170, 255, 0.07), rgba(154, 170, 255, 0) 100%);
}

.page--faq {
  background-image:
    radial-gradient(500px 410px at 50% -50px,
      rgba(154, 170, 255, 0.15), rgba(154, 170, 255, 0) 100%);
}

.page--thanks,
.page--confirm {
  background-image:
    linear-gradient(180deg,
      rgba(7, 8, 10, 0) 0, rgba(7, 8, 10, 0) 540px, var(--page) 668px),
    radial-gradient(450px 300px at 50% 340px,
      rgba(154, 170, 255, 0.20), rgba(154, 170, 255, 0.05) 60%, rgba(154, 170, 255, 0) 100%),
    repeating-linear-gradient(128deg,
      rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.012) 30px,
      rgba(154, 170, 255, 0.045) 56px, rgba(255, 255, 255, 0.085) 63px,
      rgba(255, 255, 255, 0.015) 68px, rgba(255, 255, 255, 0) 104px);
  background-repeat: no-repeat, no-repeat, repeat;
}

.prose { max-width: var(--w-text); }
.prose > * + * { margin-top: var(--s-5); }
.prose h1 { font-size: var(--t-h2); line-height: var(--lh-h2); letter-spacing: 0; }
.prose h2 {
  margin-top: var(--s-11);
  font-size: var(--t-h3); line-height: var(--lh-h3);
  font-weight: var(--w-medium); letter-spacing: 0;
}
.prose p, .prose li {
  font-size: var(--t-lg); line-height: 26px;
  font-weight: var(--w-regular); color: var(--text-body);
}
.prose strong { color: var(--text); font-weight: var(--w-medium); }
.prose ul { margin-top: var(--s-4); padding-left: var(--s-5); }
.prose li + li { margin-top: var(--s-3); }
.prose li::marker { color: var(--text-muted); }
.prose a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--text-muted); }
.prose__meta {
  margin-top: var(--s-4);
  font-family: var(--font-mono); font-size: var(--t-small);
  letter-spacing: 0; color: var(--text-muted);
}
.prose__lead { font-size: var(--t-lede) !important; line-height: var(--lh-lede) !important; color: var(--text) !important; }
.prose__note {
  margin-top: var(--s-9); padding: var(--s-5);
  border: 1px solid var(--line); border-radius: var(--r-4);
  background: var(--fill-faint);
}
.prose__note p { font-size: var(--t-body); line-height: var(--lh-body); }

@media (max-width: 720px) {
  .prose p, .prose li { font-size: var(--t-body); line-height: var(--lh-body); }
}

.foot__col a,
.pr-hero__link,
.rs-posts__more, .rs-hero__more,
.cl-entry__more, .cl-hero__more,
.ab-cmp__arrow, .ab-hero__mail,
.rules__more, .cta__arrow,
.fq-legal__more, .fq-questions__mail,
.pc-faq__more, .tk-panel__mail,
.prose p > a:only-child {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.signup-soon {
  padding: var(--s-4) var(--s-5);
  border: 1px dashed var(--line-bright);
  border-radius: var(--r-3);
  color: var(--text-body);
  font-size: var(--t-body);
}
