/* The home page. One bold thing — the dune field with the trail coming apart
 * into pixels — and everything around it built out of real surfaces: filled
 * chips, lit panels, a ticker, numbers that look like numbers. */

.hero {
  position: relative;
  min-height: min(94vh, 900px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid rgba(120, 101, 253, 0.26);
}

.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* If WebGL is unavailable the canvas stays black, so the page keeps a sky. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 70% at 68% 92%, rgba(107, 87, 168, 0.7), transparent 62%),
    linear-gradient(to bottom, #05040a 8%, #1b1336 66%, #3a2c66 100%);
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 4, 10, 0.96) 0%, rgba(5, 4, 10, 0.42) 36%, transparent 64%),
    linear-gradient(to right, rgba(5, 4, 10, 0.72) 0%, transparent 52%);
  pointer-events: none;
}

.hero-in {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 60px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.hero h1 {
  max-width: 13ch;
  text-shadow: 0 0 44px rgba(120, 101, 253, 0.4);
}

.hero h1 em {
  font-style: normal;
  color: var(--violet-hot);
}

.hero .lede {
  margin-top: 24px;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  max-width: 52ch;
  color: var(--sand-2);
}

.hero-act {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ----------------------------------------------------------- the counters */

.ticker {
  border-bottom: 1px solid rgba(120, 101, 253, 0.2);
  background: rgba(10, 7, 20, 0.86);
}

.ticker-in {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tick {
  padding: 26px 0 28px;
  border-left: 1px solid rgba(120, 101, 253, 0.16);
  padding-left: 24px;
  position: relative;
}

.tick:first-child {
  border-left: 0;
  padding-left: 0;
}

.tick .v {
  font-family: var(--pixel);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.1vw, 2.5rem);
  line-height: 1.1;
  color: var(--sand);
}

.tick .k {
  font-family: var(--pixel);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--sand-3);
  margin-top: 8px;
}

/* ------------------------------------------------------------- three ideas */

.ideas {
  padding: 96px 0 20px;
}

.sechead {
  display: flex;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.sechead h2 {
  max-width: 18ch;
}

.sechead p {
  margin: 0 0 4px;
  max-width: 44ch;
  color: var(--sand-3);
}

.idea-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.idea {
  background: linear-gradient(to bottom, rgba(24, 17, 40, 0.95), rgba(14, 10, 24, 0.95));
  border: 1px solid rgba(120, 101, 253, 0.22);
  border-radius: 14px;
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.idea::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(157, 140, 255, 0.7), transparent);
}

.idea:hover {
  transform: translateY(-3px);
  border-color: rgba(120, 101, 253, 0.5);
  box-shadow: var(--glow);
}


.idea h3 {
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.idea p {
  color: var(--sand-2);
  font-size: 0.95rem;
  margin-bottom: 0.9em;
}

.idea code {
  display: block;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.65;
  color: var(--violet-hot);
  white-space: pre;
  overflow-x: auto;
  max-width: 100%;
  padding: 14px 16px;
  margin-top: auto;
  background: rgba(5, 4, 10, 0.85);
  border: 1px solid rgba(120, 101, 253, 0.2);
  border-radius: 8px;
}

/* --------------------------------------------------------------- the crowd */

.wind {
  padding: 92px 0;
}

.wind-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 58px;
  align-items: center;
}

.crowd-box {
  background: linear-gradient(to bottom, rgba(24, 17, 40, 0.95), rgba(14, 10, 24, 0.95));
  border: 1px solid rgba(120, 101, 253, 0.22);
  border-radius: 14px;
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.crowd-box::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(157, 140, 255, 0.7), transparent);
}

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

/* Square, like the pixels the wind takes. */
.crowd i {
  aspect-ratio: 1;
  background: var(--dune-lo);
  display: block;
  transition: background 0.45s ease, box-shadow 0.45s ease;
}

.crowd i.on {
  background: var(--violet-hot);
  box-shadow: 0 0 12px rgba(157, 140, 255, 0.9);
}

.crowd-note {
  margin: 20px 0 0;
  color: var(--sand-3);
  font-size: 0.93rem;
  max-width: none;
}

.crowd-note b {
  color: var(--violet-hot);
  font-weight: 600;
}

/* ----------------------------------------------------------------- proofs */

.proofs {
  padding: 10px 0 92px;
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.proof {
  background: rgba(14, 10, 24, 0.8);
  border: 1px solid rgba(120, 101, 253, 0.2);
  border-left: 2px solid var(--violet);
  border-radius: 12px;
  padding: 24px 22px;
  transition: border-color 0.16s, background 0.16s;
}

.proof:hover {
  background: rgba(24, 17, 40, 0.92);
  border-left-color: var(--violet-hot);
}

.proof h3 {
  margin-bottom: 9px;
}

.proof p {
  margin: 0;
  color: var(--sand-3);
  font-size: 0.94rem;
}

/* ------------------------------------------------------------------- walk */

.walk {
  border-top: 1px solid rgba(120, 101, 253, 0.2);
  padding: 84px 0 24px;
  text-align: center;
}

.walk h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0 auto;
  max-width: 16ch;
}

.walk p {
  margin: 20px auto 0;
  font-size: 1.05rem;
}

.walk .hero-act {
  justify-content: center;
}

@media (max-width: 1040px) {
  .idea-grid,
  .proof-row {
    grid-template-columns: 1fr;
  }

  .wind-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .ticker-in {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tick:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .tick:nth-child(n + 3) {
    border-top: 1px solid rgba(120, 101, 253, 0.16);
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 82vh;
  }

  .hero-in {
    padding-bottom: 40px;
  }

  .crowd {
    grid-template-columns: repeat(14, 1fr);
  }
}
