/* XBrain site. Palette, gradients and type follow branding/brand-tokens.json.
   Dark only: the brand is shown on midnight with violet ambient light, as in the brand board. */
@font-face {
  font-family: 'Outfit';
  src: url('/assets/fonts/Outfit-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --midnight: #0c0a17;
  --plum: #19112c;
  --plum-raised: #2a1b45;
  --violet: #7543e8;
  --violet-bright: #9a6bf7;
  --violet-night: #6a3ee6;
  --lilac: #b48bf4;
  --champagne: #f1b993;
  --moonlight: #f5f1f8;
  --mist: #b8adc9;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --hairline: rgba(180, 139, 244, 0.18);
  --hairline-soft: rgba(245, 241, 248, 0.08);
  --font:
    'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Display', 'Segoe UI', Roboto,
    sans-serif;
  font-family: var(--font);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--midnight);
}
body > * {
  position: relative;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--moonlight);
  line-height: 1.6;
  overflow-x: hidden;
}
/* Ambient light, fixed to the screen so it never ends partway down a long page. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(70% 55% at 50% 12%, rgba(117, 67, 232, 0.34), transparent 70%),
    radial-gradient(32% 26% at 82% 6%, rgba(241, 185, 147, 0.11), transparent 72%),
    radial-gradient(45% 40% at 6% 58%, rgba(117, 67, 232, 0.14), transparent 70%),
    radial-gradient(40% 35% at 96% 88%, rgba(154, 107, 247, 0.12), transparent 70%),
    linear-gradient(180deg, #0c0a17 0%, #120c22 45%, #0c0a17 100%);
}
/* A soft star-dust layer: tiny radial points, no images. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(245, 241, 248, 0.5), transparent 60%),
    radial-gradient(1px 1px at 28% 72%, rgba(245, 241, 248, 0.35), transparent 60%),
    radial-gradient(1px 1px at 46% 12%, rgba(241, 185, 147, 0.45), transparent 60%),
    radial-gradient(1px 1px at 63% 48%, rgba(245, 241, 248, 0.3), transparent 60%),
    radial-gradient(1px 1px at 78% 30%, rgba(180, 139, 244, 0.5), transparent 60%),
    radial-gradient(1px 1px at 88% 66%, rgba(245, 241, 248, 0.35), transparent 60%),
    radial-gradient(1px 1px at 8% 90%, rgba(180, 139, 244, 0.4), transparent 60%),
    radial-gradient(1px 1px at 55% 92%, rgba(245, 241, 248, 0.3), transparent 60%);
}
a {
  color: var(--lilac);
  text-underline-offset: 0.22em;
  text-decoration-color: rgba(180, 139, 244, 0.45);
}
a:hover {
  color: #cfb2fa;
  text-decoration-color: currentColor;
}
a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 4px;
  border-radius: 8px;
}
::selection {
  background: var(--violet);
  color: #fff;
}
strong {
  color: var(--moonlight);
  font-weight: 650;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--moonlight);
  color: var(--midnight);
  font-weight: 650;
}
.skip-link:focus {
  top: 16px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Layout ---------- */
.page {
  position: relative;
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 96px;
}
.brand {
  display: inline-flex;
  color: var(--moonlight);
  text-decoration: none;
}
.brand svg {
  display: block;
  height: 34px;
  width: auto;
}
.header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--moonlight);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.header-link:hover {
  border-color: rgba(180, 139, 244, 0.45);
  color: var(--moonlight);
}

/* ---------- Type ---------- */
.eyebrow {
  margin: 0 0 18px;
  color: var(--champagne);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
h2 {
  font-size: clamp(30px, 4vw, 44px);
}
h3 {
  font-size: 19px;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
  color: var(--mist);
}
.gradient-text {
  background: linear-gradient(100deg, #f4c4a2 0%, #c9a6f7 38%, #9a6bf7 70%, #b48bf4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 0 96px;
  overflow-x: clip;
}
.hero-mark {
  position: relative;
  width: clamp(210px, 30vw, 360px);
  margin-bottom: 18px;
}
.hero-mark svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(117, 67, 232, 0.55))
    drop-shadow(0 0 22px rgba(180, 139, 244, 0.28));
  animation: float 9s ease-in-out infinite;
}
/* The light pool the mark stands in. */
.hero-mark::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 46%;
  width: 260%;
  aspect-ratio: 1.6;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(
      closest-side,
      rgba(154, 107, 247, 0.42),
      rgba(117, 67, 232, 0.16) 55%,
      transparent
    ),
    radial-gradient(closest-side at 64% 40%, rgba(241, 185, 147, 0.16), transparent 70%);
  filter: blur(18px);
  animation: breathe 9s ease-in-out infinite;
}
.hero-mark::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -26px;
  width: 120%;
  height: 34px;
  transform: translateX(-50%);
  background: radial-gradient(
    closest-side,
    rgba(180, 139, 244, 0.55),
    rgba(241, 185, 147, 0.12) 60%,
    transparent
  );
  filter: blur(10px);
}
.hero h1 {
  margin: 0;
  line-height: 1;
}
.hero h1 svg {
  display: block;
  width: clamp(240px, 46vw, 520px);
  height: auto;
  filter: drop-shadow(0 10px 40px rgba(117, 67, 232, 0.35));
}
.tagline {
  margin: 22px 0 0;
  color: var(--moonlight);
  opacity: 0.86;
  font-size: clamp(13px, 1.6vw, 19px);
  font-weight: 400;
  letter-spacing: 0.2em;
}
.lede {
  max-width: 640px;
  margin-top: 44px;
}
.lede h2 {
  font-size: clamp(26px, 3.4vw, 36px);
}
.intro {
  max-width: 600px;
  margin: 18px auto 0;
  font-size: 17px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #9a6bf7 0%, #7543e8 55%, #6a3ee6 100%);
  box-shadow:
    0 14px 36px rgba(117, 67, 232, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.button-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow:
    0 18px 44px rgba(117, 67, 232, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.button-secondary {
  color: var(--moonlight);
  border: 1px solid var(--hairline);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.button-secondary:hover {
  color: var(--moonlight);
  border-color: rgba(241, 185, 147, 0.5);
}
.download-caption {
  margin-top: 16px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* ---------- Glass panels ---------- */
.glass {
  position: relative;
  border-radius: 28px;
  border: 1px solid var(--hairline-soft);
  background: linear-gradient(180deg, var(--glass-strong), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
/* Hairline that warms from lilac to champagne along the top edge. */
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    120deg,
    rgba(180, 139, 244, 0.45),
    transparent 35%,
    transparent 65%,
    rgba(241, 185, 147, 0.35)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.pillars {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.privacy-card {
  padding: 44px;
  overflow: hidden;
}
.privacy-card::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(117, 67, 232, 0.35), transparent);
  pointer-events: none;
}
.privacy-symbol {
  width: 44px;
  margin-bottom: 28px;
}
.privacy-symbol svg {
  display: block;
  width: 100%;
  height: auto;
}
.privacy-card h2 {
  margin-bottom: 20px;
}
.privacy-footnote {
  margin-top: 18px;
  font-size: 14px;
  color: var(--champagne);
  opacity: 0.85;
}
.facts {
  display: grid;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.fact {
  padding: 26px 28px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
}
.fact-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(154, 107, 247, 0.32), rgba(106, 62, 230, 0.12));
  border: 1px solid var(--hairline);
  color: var(--lilac);
}
.fact-icon svg {
  width: 22px;
  height: 22px;
}
.fact h3 {
  margin-bottom: 6px;
}
.fact p {
  font-size: 15px;
}

/* ---------- Steps ---------- */
.section {
  padding: 110px 0 0;
}
.section-heading {
  text-align: center;
  margin-bottom: 44px;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.steps li {
  padding: 34px 30px 32px;
}
.step-number {
  display: block;
  margin-bottom: 22px;
  font-size: 42px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.03em;
}
.steps h3 {
  margin-bottom: 10px;
}
.steps p {
  font-size: 15px;
}

/* ---------- Release ---------- */
.release-note {
  margin-top: 110px;
  padding: 48px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  overflow: hidden;
}
.release-note::after {
  content: '';
  position: absolute;
  left: -160px;
  bottom: -200px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(241, 185, 147, 0.12), transparent);
  pointer-events: none;
}
.release-details {
  display: grid;
  gap: 16px;
  align-content: start;
}
.text-link {
  display: inline-flex;
  gap: 8px;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 110px;
  padding: 34px 0 48px;
  border-top: 1px solid var(--hairline-soft);
  font-size: 14px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--moonlight);
  font-weight: 650;
}
.footer-brand svg {
  width: 26px;
  height: 26px;
}
.site-footer a {
  color: var(--mist);
}

/* ---------- QR and iPhone pages ---------- */
.qr-main {
  display: flex;
  justify-content: center;
}
.qr-main section {
  width: min(560px, 100%);
  padding: 34px 0 0;
  text-align: center;
}
.qr-main h1 {
  font-size: clamp(42px, 7vw, 64px);
  margin-bottom: 20px;
}
.qr-main .intro {
  margin-bottom: 34px;
}
.qr-figure {
  margin: 0 auto 30px;
  max-width: 410px;
  padding: 18px;
}
.qr-frame {
  padding: 18px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 0 60px rgba(117, 67, 232, 0.35);
}
.qr-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.qr-figure figcaption {
  margin-top: 16px;
  color: var(--mist);
  font-size: 14px;
}
.qr-help {
  margin: 26px 0 0;
  font-size: 15px;
}
.qr-release {
  text-align: left;
  padding: 26px 28px;
  margin-top: 28px;
}
.qr-release h2 {
  font-size: 20px;
  margin-bottom: 10px;
}
.qr-release p + p {
  margin-top: 12px;
}
.qr-release .text-link {
  margin-top: 14px;
}

/* ---------- Motion ---------- */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes breathe {
  0%,
  100% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mark svg,
  .hero-mark::before {
    animation: none;
  }
  .button {
    transition: none;
  }
}

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .page {
    width: calc(100% - 32px);
  }
  .pillars,
  .release-note {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .release-note {
    padding: 32px 26px;
    gap: 20px;
  }
  .privacy-card {
    padding: 32px 26px;
  }
  .section,
  .release-note {
    margin-top: 0;
  }
  .section {
    padding-top: 80px;
  }
  .release-note {
    margin-top: 80px;
  }
}
@media (max-width: 520px) {
  .site-header {
    min-height: 76px;
  }
  .brand svg {
    height: 26px;
  }
  .header-link {
    padding: 8px 14px;
    font-size: 13px;
  }
  .hero {
    padding: 24px 0 64px;
  }
  .tagline {
    letter-spacing: 0.2em;
  }
  .actions {
    flex-direction: column;
    align-self: stretch;
  }
  .button {
    width: 100%;
  }
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
