:root {
  --ground: #fbfaf7;
  --band: #f4f1ea;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --hairline: rgba(29, 29, 31, 0.12);
  --plum: #1a1522;
  --violet: #7d5fe0;
  --grad: linear-gradient(92deg, #f43f8e 0%, #8b3bef 50%, #1f8ff0 100%);
  --gradflow: linear-gradient(92deg, #f43f8e, #b23bef, #8b3bef, #2f7cf0, #1f8ff0, #8b3bef, #f43f8e);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Helvetica, Arial, sans-serif;
}
@keyframes gradflow { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
.grad {
  background-image: var(--gradflow);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradflow 7s linear infinite;
}
.link { color: var(--violet); font-weight: 500; }
.link::after { content: " \203A"; }
.w { max-width: 980px; margin: 0 auto; padding: 0 24px; }
.wn { max-width: 660px; margin: 0 auto; padding: 0 24px; }

/* Nav */
nav.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.8);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
nav.top .in {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
nav.top .brand { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
nav.top .links { display: flex; gap: 24px; }
nav.top .links a { color: rgba(29, 29, 31, 0.7); font-size: 0.78rem; }
nav.top .links a[aria-current="page"] { color: #1d1d1f; font-weight: 600; }

/* Buttons */
.btn {
  display: inline-block;
  background-image: var(--gradflow);
  background-size: 300% 100%;
  animation: gradflow 7s linear infinite;
  box-shadow: 0 10px 30px -12px rgba(180, 60, 200, 0.6);
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 30px;
  border-radius: 999px;
  border: none;
  font-family: var(--sans);
  cursor: pointer;
}
.btn.ghost {
  background: none;
  animation: none;
  box-shadow: none;
  color: var(--violet);
  border: 1px solid var(--violet);
}
.btnnote { font-size: 0.82rem; color: var(--muted); margin-top: 12px; }

/* Hero */
.hero { padding: 130px 0 120px; text-align: center; }
.herofull { min-height: calc(100vh - 48px); display: flex; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.hero .eyebrow { font-size: 1.02rem; font-weight: 600; margin-bottom: 16px; }
.hero h1 {
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.03;
  text-wrap: balance;
}
.herohead { filter: drop-shadow(0 2px 22px rgba(255,255,255,0.65)); opacity: 0; }
.herohead.ready { opacity: 1; }
.hero .w > h1.herohead { animation: gradflow 7s linear infinite; }
.herohead .hw { display: inline-block; opacity: 0; transform: translateY(0.55em); transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1); }
.herohead .hw.in { opacity: 1; transform: none; }

/* Once-a-day quick loading splash: just the text, large and soft */
#bremo-splash { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--ground); transition: opacity 0.7s ease; }
html.splash-done #bremo-splash { display: none; }
#bremo-splash.hide { opacity: 0; pointer-events: none; }
#bremo-splash .sw { font-weight: 800; font-size: min(29vw, 58vh); letter-spacing: -0.05em; white-space: nowrap; line-height: 1; animation: gradflow 8s linear infinite; }
#bremo-splash .sw span { display: inline-block; opacity: 0; transform: translateY(0.3em); animation: letterin 1.15s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: calc(var(--i) * 0.13s + 0.15s); }
@keyframes letterin { to { opacity: 1; transform: none; } }
.hero .sub {
  margin: 26px auto 0;
  max-width: 580px;
  color: var(--muted);
  font-size: clamp(1.12rem, 2.4vw, 1.4rem);
  text-wrap: balance;
}
.hero .actions {
  margin-top: 38px;
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Monument */
.monument {
  background: var(--band);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 120px 0 110px;
  text-align: center;
}
.monument .figure {
  font-weight: 700;
  font-size: clamp(3.6rem, 13vw, 9rem);
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.monument .cap {
  margin: 24px auto 0;
  max-width: 500px;
  color: var(--muted);
  font-size: 1.16rem;
  text-wrap: balance;
}
.monument .row {
  margin: 64px auto 0;
  max-width: 760px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.monument .row > div { padding: 4px 16px; }
.monument .row > div + div { border-left: 1px solid var(--hairline); }
.monument .row b { display: block; font-size: 1.8rem; font-weight: 700; letter-spacing: -0.02em; }
.monument .row span { color: var(--muted); font-size: 0.85rem; }

/* Live proof band */
.proofband { padding: 100px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--band); text-align: center; }
.proofgrid { margin: 48px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; max-width: 880px; }
.pcard { background: #ffffff; border: 1px solid var(--hairline); border-radius: 22px; padding: 32px 26px; box-shadow: 0 30px 60px -46px rgba(120, 90, 170, 0.5); }
.pcard .pk { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pcard .pv { font-family: var(--mono); font-weight: 700; font-size: clamp(1.5rem, 4.4vw, 1.85rem); letter-spacing: -0.03em; margin: 12px 0 8px; font-variant-numeric: tabular-nums; }
.pcard .pn { font-size: 0.82rem; color: var(--muted); display: flex; gap: 7px; align-items: center; justify-content: center; }
.hbdot { width: 8px; height: 8px; border-radius: 50%; background: #b9b3bd; display: inline-block; flex-shrink: 0; }
.hbdot.on { background: #1e9e5a; box-shadow: 0 0 0 0 rgba(30,158,90,0.5); animation: hbpulse 1.8s infinite; }
@keyframes hbpulse { 0% { box-shadow: 0 0 0 0 rgba(30,158,90,0.4); } 70% { box-shadow: 0 0 0 7px rgba(30,158,90,0); } 100% { box-shadow: 0 0 0 0 rgba(30,158,90,0); } }

/* Footer verify + heartbeat (injected on every page) */
.footverify { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.footverify a { color: var(--violet); font-size: 0.82rem; font-weight: 500; }
.foothb { display: inline-flex; gap: 7px; align-items: center; font-size: 0.8rem; color: var(--muted); font-family: var(--mono); }

/* Sections */
section { padding: 110px 0; }
.sectionhead {
  text-align: center;
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.sectionlead {
  text-align: center;
  color: var(--muted);
  margin: 16px auto 0;
  max-width: 560px;
  font-size: 1.08rem;
  text-wrap: balance;
}

/* Principles: typographic 2x2 */
.principles {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
.principle {
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 44px 38px;
}
.principle .no {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  display: block;
  margin-bottom: 18px;
}
.principle h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.principle h3 span { display: block; }
.principle p { color: var(--muted); margin-top: 12px; font-size: 0.97rem; }

/* Manifesto pull-quote */
.manifesto { max-width: 760px; margin: 0 auto; padding: 116px 24px; text-align: center; }
.manifesto p {
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.32;
  text-wrap: balance;
}
.manifesto p .grad { font-weight: 700; }
.manifesto cite { display: block; margin-top: 22px; font-style: normal; color: var(--muted); font-size: 0.95rem; }

/* Dark specs band */
.specsband { background: var(--plum); color: #f5f2fa; padding: 116px 0; }
.specsband .sectionhead { color: #f5f2fa; }
.specsband .sectionlead { color: rgba(245, 242, 250, 0.55); }
.specrows { max-width: 700px; margin: 64px auto 0; }
.specrow {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 17px 4px;
  border-bottom: 1px solid rgba(245, 242, 250, 0.14);
  font-size: 0.97rem;
  flex-wrap: wrap;
}
.specrow:first-child { border-top: 1px solid rgba(245, 242, 250, 0.14); }
.specrow {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.specrow.in { opacity: 1; transform: none; }
.specrow .k { color: rgba(245, 242, 250, 0.55); }
.specrow .v { font-family: var(--mono); font-size: 0.87rem; text-align: right; }

/* Own list */
.ownlist { max-width: 700px; margin: 64px auto 0; }
.ownitem {
  display: flex;
  gap: 30px;
  padding: 34px 4px;
  border-bottom: 1px solid var(--hairline);
  align-items: flex-start;
}
.ownitem:first-child { border-top: 1px solid var(--hairline); }
.ownitem .n {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.1;
  min-width: 42px;
}
.ownitem h3 { font-size: 1.16rem; font-weight: 700; letter-spacing: -0.01em; }
.ownitem p { color: var(--muted); margin-top: 6px; font-size: 0.97rem; }

/* Get started split */
.startgrid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.startcol h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
.startcol p { color: var(--muted); font-size: 0.95rem; margin-top: 10px; }
.startcol .btn { margin-top: 18px; }
pre {
  background: var(--band);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink);
  overflow-x: auto;
  margin-top: 16px;
  white-space: pre;
  line-height: 1.75;
}
.mmstatus { margin-top: 14px; font-size: 0.88rem; color: var(--violet); min-height: 1.2em; }
.qrblock { display: flex; gap: 20px; align-items: center; margin-top: 22px; flex-wrap: wrap; }
.qrblock img { width: 140px; height: 140px; border-radius: 14px; border: 1px solid var(--hairline); background: #fff; padding: 8px; }
.qrblock .qrtitle { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.qrblock p { color: var(--muted); font-size: 0.86rem; max-width: 300px; margin: 0; }

/* Bridge band */
.bridgeband { background: var(--band); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.bridgeband .wn p { color: var(--muted); margin-top: 18px; font-size: 1.02rem; }
.bridgeband .wn p b { color: var(--ink); }

/* Downloads */
.dlrows { max-width: 700px; margin: 64px auto 0; }
.dlrow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 19px 4px;
  border-bottom: 1px solid var(--hairline);
  flex-wrap: wrap;
}
.dlrow:first-child { border-top: 1px solid var(--hairline); }
.dlrow .f { font-family: var(--mono); font-size: 0.92rem; font-weight: 500; }
.dlrow .d { color: var(--muted); font-size: 0.85rem; }
.dlrow .get { color: var(--violet); font-size: 0.9rem; white-space: nowrap; }
.dlrow .get::after { content: " \2193"; }

/* Status */
.statuscols {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 56px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.statuscols h3 { font-size: 1.16rem; margin-bottom: 14px; }
.statuscols li { list-style: none; padding: 8px 0 8px 22px; position: relative; color: var(--muted); font-size: 0.95rem; }
.statuscols li::before { content: ""; position: absolute; left: 0; top: 15px; width: 8px; height: 8px; border-radius: 50%; }
.statuscols .on li::before { background: var(--grad); }
.statuscols .off li::before { background: var(--hairline); }

.finenote {
  max-width: 640px;
  margin: 56px auto 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 0 24px;
}

/* Whitepaper body */
.paper h3 { margin: 36px 0 8px; font-size: 1.2rem; letter-spacing: -0.01em; }
.paper p { color: var(--muted); font-size: 1.02rem; }
.paper p + p { margin-top: 12px; }
.paper p b { color: var(--ink); }

/* Footer */
footer { padding: 46px 0 76px; border-top: 1px solid var(--hairline); }
footer .w { display: flex; flex-direction: column; gap: 6px; }
footer .brand { font-weight: 700; font-size: 1rem; }
footer div { color: var(--muted); font-size: 0.78rem; }

/* Magical hero aura + parallax */
.hero { position: relative; overflow: hidden; }
.hero > .w { position: relative; z-index: 2; }
.heroaura { position: absolute; inset: -12%; z-index: 0; pointer-events: none; will-change: transform; }
.heroaura .glow {
  position: absolute; left: 50%; top: 44%;
  width: 78vw; height: 78vw; max-width: 900px; max-height: 900px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.5), rgba(255,255,255,0) 62%);
  filter: blur(38px);
  animation: glowpulse 6s ease-in-out infinite;
}
@keyframes glowpulse {
  0%, 100% { opacity: 0.3; transform: translate(-50%,-50%) scale(0.92); }
  50% { opacity: 0.6; transform: translate(-50%,-50%) scale(1.14); }
}
.heroaura .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.92; }
.heroaura .b1 { width: 56vw; height: 56vw; left: -12%; top: -18%; background: radial-gradient(circle at 35% 35%, #ff2f86, transparent 66%); animation: drift1 7s ease-in-out infinite; }
.heroaura .b2 { width: 52vw; height: 52vw; right: -14%; top: -14%; background: radial-gradient(circle at 60% 40%, #9a2ff0, transparent 66%); animation: drift2 8.5s ease-in-out infinite; }
.heroaura .b3 { width: 60vw; height: 60vw; left: 8%; bottom: -32%; background: radial-gradient(circle at 50% 50%, #1f8ff5, transparent 66%); animation: drift3 9.5s ease-in-out infinite; }
.heroaura .b4 { width: 48vw; height: 48vw; right: 2%; bottom: -24%; background: radial-gradient(circle at 45% 55%, #ff8a2f, transparent 66%); animation: drift4 8s ease-in-out infinite; }
.herosparkle { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(38%,26%) scale(1.4); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1.12); } 50% { transform: translate(-36%,30%) scale(0.76); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30%,-32%) scale(1.36); } }
@keyframes drift4 { 0%,100% { transform: translate(0,0) scale(1.24); } 50% { transform: translate(-38%,-24%) scale(0.86); } }

/* Reveal: Apple-like rise, settle, and focus */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* Hero entrance on load */
@keyframes heroin {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
.hero .w > * { animation: heroin 1s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero .w > *:nth-child(1) { animation-delay: 0.05s; }
.hero .w > *:nth-child(2) { animation-delay: 0.16s; }
.hero .w > *:nth-child(3) { animation-delay: 0.3s; }
.hero .w > *:nth-child(4) { animation-delay: 0.44s; }
.hero .w > *:nth-child(5) { animation-delay: 0.56s; }

/* Nav elevates once scrolling begins */
nav.top { transition: box-shadow 0.4s ease, background 0.4s ease; }
nav.top.scrolled {
  background: rgba(251, 250, 247, 0.92);
  box-shadow: 0 1px 0 var(--hairline), 0 12px 30px -18px rgba(120, 90, 170, 0.35);
}

@media (max-width: 740px) {
  nav.top .links { display: none; }
  .hero { padding: 84px 0 90px; }
  .principle { padding: 34px 26px; }
  .monument .row > div + div { border-left: none; }
  .monument .row { gap: 26px; }
}
@media (max-width: 560px) {
  .principles { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .hero .w > * { animation: none; }
  .heroaura .blob { animation: none; }
  .heroaura .glow { animation: none; }
  .herosparkle { display: none; }
  .grad, .rule, .btn { animation: none; background-position: 0 50%; }
  .specrow { opacity: 1; transform: none; filter: none; transition: none; }
  .herohead { opacity: 1; }
  .herohead .hw { opacity: 1; transform: none; transition: none; }
  #bremo-splash { display: none; }
}
