/* The public landing page: a mostly dark sheet that turns slowly to green toward one corner, under a light grain
   and a few stars; centred type and the pixel reveal. */
* { box-sizing: border-box; }
:root {
  /* A soft frost inside the letters. Frequency 0.45, four octaves, contrast only slightly lifted. */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.45' numOctaves='4' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/><feComponentTransfer><feFuncR type='linear' slope='1.35' intercept='-0.18'/><feFuncG type='linear' slope='1.35' intercept='-0.18'/><feFuncB type='linear' slope='1.35' intercept='-0.18'/></feComponentTransfer></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  /* Sparse white specks. Only the brightest peaks of the noise are kept, so the sheet stays dark. */
  --grain-field: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 4.2 0 0 0 -3.15'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
html, body { height: 100%; }
body.landing {
  position: relative;
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #ffffff;
  background-color: #0b100e;
  background-image:
    radial-gradient(85% 75% at 112% 116%, rgba(170, 226, 196, 0.38) 0%, rgba(100, 190, 146, 0.2) 30%, transparent 78%),
    radial-gradient(85% 70% at 80% 108%, rgba(0, 150, 82, 0.4) 0%, rgba(0, 104, 60, 0.2) 45%, transparent 85%),
    radial-gradient(80% 65% at 12% 118%, rgba(6, 92, 58, 0.45) 0%, rgba(4, 60, 40, 0.22) 50%, transparent 88%),
    radial-gradient(70% 75% at 114% 50%, rgba(14, 82, 76, 0.32) 0%, rgba(10, 54, 50, 0.14) 50%, transparent 88%),
    linear-gradient(150deg, #070a09 0%, #070a09 46%, #08140f 66%, #0a2219 84%, #0c2e22 100%);
  overflow-x: hidden;
}
body.landing::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image: var(--grain-field);
  background-size: 220px 220px;
  opacity: 0.34;
  mix-blend-mode: normal;
}

.landing-bar, .landing-hero, .landing-foot { position: relative; z-index: 2; }

/* The type is filled with the same grain, so the words are frosted like the sheet instead of smooth and bright. */
.landing-title, .landing-sub, .rotor-word, .investor-login, .landing-foot p, .landing-foot a {
  background-image: var(--grain), linear-gradient(currentColor, currentColor);
  background-size: 280px 280px, auto;
  background-attachment: fixed;
  background-blend-mode: overlay, normal;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-bar { display: flex; justify-content: flex-end; padding: 26px 34px; }
.investor-login {
  color: rgba(236, 242, 239, 0.88);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.landing-hero {
  align-self: center;
  justify-self: center;
  width: min(920px, calc(100% - 48px));
  margin-top: -10vh;
  text-align: center;
}
.landing-title {
  margin: 0;
  font-size: clamp(42px, 5.6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: rgba(236, 242, 239, 0.92);
}
.landing-sub {
  margin: 20px auto 0;
  max-width: 36em;
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 400;
  line-height: 1.45;
  color: rgba(236, 242, 239, 0.66);
}
/* The rotating kind of investment: its own frosted fill (a moving word does not take its line's fill), in the
   sheet's green, a little darker than the glow in the corner. */
.rotor {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  white-space: nowrap;
  text-align: left;
  transition: width 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}
.rotor-word {
  display: inline-block;
  width: max-content;
  color: rgba(84, 170, 126, 0.96);
  font-weight: 500;
}

.landing-foot { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 18px 24px 22px; }
.landing-foot p, .landing-foot a { margin: 0; color: rgba(236, 242, 239, 0.45); font-size: 14px; text-decoration: none; }

.reveal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  overflow: hidden;
  pointer-events: none;
}
.stars {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.stars i {
  position: absolute;
  border-radius: 50%;
  background: #ffffff;
}

.reveal span {
  width: 100%;
  height: 100%;
  will-change: transform, opacity;
  background-image: var(--grain-field);
  background-size: 220px 220px;
  background-blend-mode: screen;
}

@media (max-width: 640px) {
  .landing-bar { padding: 20px; }
}
