/* NeoPod teaser — the launch splash rebuilt as a live page.
 *
 * Every size, position and colour below was measured off the 1280x1280 source
 * artwork (design/reference.jpg) and is expressed as a percentage of it via
 * --u ("one canvas percent"), so the composition holds its exact proportions
 * at any viewport size instead of being a fixed-size image.
 *
 * Type is Nunito Sans (the brand's display face, self-hosted in fonts/).
 */

@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('fonts/nunito-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('fonts/nunito-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #070a10;
  --mint: #00e7a2;          /* brand green, the logo's front face */
  --teal: #00b79c;          /* brand teal, the logo's inner face */
  --white: #fbfcfd;
  --muted: #8d99a3;
  --ink: #08131a;           /* text inside the date pill */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* The artwork is square, so cap the design width by height as well. The cap is 88vh
     rather than 96vh because the Discord CTA below the footline makes the composition
     ~108u tall: 108.3u must fit 100vh, so --w <= 92.3vh. 88vh leaves headroom. */
  --w: min(94vw, 62rem, 88vh);
  /* one percent of the artwork: purely proportional, so the composition can
     never outgrow its container (phones scale it up, see the end of the file) */
  --u: calc(var(--w) / 100);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--white);
  font-family: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  overflow-x: hidden;
}

/* ── background stack ───────────────────────────────────────────── */

/* hexagon mesh + teal haze + corner vignette */
.mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(115% 80% at 50% 26%, rgba(0, 231, 162, 0.07), transparent 60%),
    radial-gradient(74% 74% at 50% 42%, transparent 65%, rgba(0, 0, 0, 0.45)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='259.8' viewBox='0 0 150 259.8'%3E%3Cg fill='none' stroke='%2300e7a2' stroke-opacity='.045' stroke-width='1.2'%3E%3Cpolygon points='0,-86.6 -75,-43.3 -75,43.3 0,86.6 75,43.3 75,-43.3'/%3E%3Cpolygon points='150,-86.6 75,-43.3 75,43.3 150,86.6 225,43.3 225,-43.3'/%3E%3Cpolygon points='0,173.2 -75,216.5 -75,303.1 0,346.4 75,303.1 75,216.5'/%3E%3Cpolygon points='150,173.2 75,216.5 75,303.1 150,346.4 225,303.1 225,216.5'/%3E%3Cpolygon points='75,43.3 0,86.6 0,173.2 75,216.5 150,173.2 150,86.6'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat, repeat;
  /* hexagons measure 130px across on the 1280 artwork (circumradius 75), so the
     tile is 130x225 there and scales with --u */
  background-size: cover, cover, calc(var(--u) * 10.16) calc(var(--u) * 17.58);
}

/* hairlines radiating from behind the headline. sized to the composition —
   not the viewport — so the convergence stays behind OPENS at any aspect
   ratio; overflow lets the lines run out past the edges */
.rays {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: calc(var(--u) * 100);
  height: calc(var(--u) * 100);
  transform: translate(-50%, -50%);
  overflow: visible;
  pointer-events: none;
}

.rays line {
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.fan {
  animation: sway 44s var(--ease) infinite alternate;
}

/* film grain */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── composition ────────────────────────────────────────────────── */

.pod {
  position: relative;
  z-index: 2;
  width: var(--w);
  min-height: 100dvh;
  margin-inline: auto;
  /* artwork has 67px of air above the logo and 84px below the footline */
  padding-block: calc(var(--u) * 5.186) calc(var(--u) * 6.43);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* logo lockup: brand mark + brand wordmark, both as outlines */
.lockup {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 3.67);
  animation: rise 1.2s var(--ease) both;
}

.mark {
  display: block;
  height: calc(var(--u) * 7.85);
  width: auto;
  filter: drop-shadow(0 calc(var(--u) * 0.25) calc(var(--u) * 0.9) rgba(0, 0, 0, 0.5));
}

.wordmark {
  display: block;
  height: calc(var(--u) * 2.854);
  width: auto;
  filter: drop-shadow(0 calc(var(--u) * 0.16) calc(var(--u) * 0.6) rgba(0, 0, 0, 0.45));
}

/* LAUNCHING ON NEO */
.eyebrow {
  margin-top: calc(var(--u) * 2.524);
  font-size: calc(var(--u) * 1.71);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  /* text-indent matches letter-spacing so the ink, not the trailing
     space, is what ends up centred */
  letter-spacing: 0.3622em;
  text-indent: 0.3622em;
  color: var(--mint);
  animation: rise 1.2s var(--ease) 0.08s both;
}

/* THE POD / OPENS */
.headline {
  margin-top: calc(var(--u) * 2.146);
  display: flex;
  flex-direction: column;
  font-size: calc(var(--u) * 9.95);
  font-weight: 900;
  line-height: 1.024;
  text-transform: uppercase;
  text-shadow: 0 calc(var(--u) * 0.2) calc(var(--u) * 0.7) rgba(0, 0, 0, 0.5);
  animation: rise 1.3s var(--ease) 0.16s both;
}

/* tracked per line so both lines match the artwork's widths exactly */
.headline .thepod {
  letter-spacing: 0.0135em;
  text-indent: 0.0135em;
}

.headline .opens {
  letter-spacing: 0.018em;
  text-indent: 0.018em;
  color: var(--mint);
  /* no green bloom: in the artwork the counters of the O read as pure
     background, so the mint stays flat */
  text-shadow: 0 calc(var(--u) * 0.2) calc(var(--u) * 0.7) rgba(0, 0, 0, 0.45);
}

/* date pill */
.date {
  margin-top: calc(var(--u) * 1.876);
  padding: calc(var(--u) * 1.93) calc(var(--u) * 5.39) calc(var(--u) * 1.58);
  border-radius: 999px;
  /* brightest through the middle, deepening towards both ends */
  background: linear-gradient(90deg, var(--teal) 0%, var(--mint) 50%, var(--teal) 100%);
  color: var(--ink);
  font-size: calc(var(--u) * 2.66);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.1em;
  text-indent: 0.1em;
  text-transform: uppercase;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 calc(var(--u) * 0.5) calc(var(--u) * 2.2) rgba(0, 0, 0, 0.4),
    0 0 calc(var(--u) * 1.1) rgba(0, 231, 162, 0.42);
  animation: rise 1.3s var(--ease) 0.24s both, pulse 4.5s ease-in-out 2s infinite;
}

/* Quest. Earn. Own. Repeat. */
.promise {
  margin-top: calc(var(--u) * 3.302);
  font-size: calc(var(--u) * 2.98);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.0939em;
  text-indent: 0.0939em;
  text-shadow: 0 calc(var(--u) * 0.16) calc(var(--u) * 0.6) rgba(0, 0, 0, 0.45);
  animation: rise 1.3s var(--ease) 0.32s both;
}

.sub {
  margin-top: calc(var(--u) * 1.668);
  font-size: calc(var(--u) * 1.7);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.0721em;
  text-indent: 0.0721em;
  color: var(--muted);
  animation: rise 1.3s var(--ease) 0.4s both;
}

/* four-step rail */
.rail {
  margin-top: calc(var(--u) * 8.15);
  width: min(100%, calc(var(--u) * 65));
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  list-style: none;
}

.rail li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--u) * 1.208);
  animation: rise 1.2s var(--ease) both;
  animation-delay: calc(0.5s + var(--i) * 0.09s);
}

.tile {
  width: calc(var(--u) * 6.72);
  height: calc(var(--u) * 6.72);
  display: grid;
  place-items: center;
  border: max(1.5px, calc(var(--u) * 0.2)) solid rgba(0, 231, 162, 0.9);
  border-radius: calc(var(--u) * 1.15);
  color: var(--mint);
  background: rgba(0, 231, 162, 0.03);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), transform 0.4s var(--ease);
}

.tile svg {
  width: 60%;
  height: 60%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rail li:hover .tile {
  background: rgba(0, 231, 162, 0.1);
  transform: translateY(calc(var(--u) * -0.3));
}

.label {
  font-size: calc(var(--u) * 1.28);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.235em;
  text-indent: 0.235em;
  color: var(--mint);
}

/* FULL DETAILS DROPPING SOON */
.soon {
  margin-top: calc(var(--u) * 5.05);
  font-size: calc(var(--u) * 2.02);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.0956em;
  text-indent: 0.0956em;
  color: var(--mint);
  animation: rise 1.3s var(--ease) 0.86s both;
}

/* hairline above the footline: neutral, not mint */
.rule {
  margin-top: calc(var(--u) * 6.84);
  width: 84%;
  height: max(1px, calc(var(--u) * 0.16));
  border: 0;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.085) 1.5%,
    rgba(255, 255, 255, 0.085) 98.5%,
    transparent);
  animation: fadeIn 1.6s var(--ease) 0.95s both;
}

/* ENGAGE | EARN | GROW — separators are 2x24px bars in the artwork, not
   pipe glyphs, so they're drawn as elements and the words are flex items */
.engage {
  margin-top: calc(var(--u) * 2.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(var(--u) * 1.88);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  color: var(--mint);
  animation: rise 1.4s var(--ease) 1.02s both;
}

/* negative margin cancels the trailing letter-space so each word's box is
   exactly its ink width and the bar gaps below are literal */
.engage span {
  letter-spacing: 0.2295em;
  margin-right: -0.2295em;
}

.engage i {
  flex: none;
  width: max(1px, calc(var(--u) * 0.16));
  height: calc(var(--u) * 1.875);
  margin-inline: calc(var(--u) * 1.797);
  background: rgba(0, 231, 162, 0.75);
}

/* ── Join our Discord ───────────────────────────────────────────── */

/* The two brands meet in the hairline and the hover wash, not under the label:
   white on near-black is 19.3:1, whereas white on a blurple fill is only 4.48:1
   and white over a blurple-to-mint sweep falls to 1.58:1 at the mint end. An
   outline pill also keeps this subordinate to the date pill, which is the hero. */
.discord {
  position: relative;
  margin-top: calc(var(--u) * 4.2);
  display: inline-flex;
  align-items: center;
  gap: calc(var(--u) * 1.05);
  padding: calc(var(--u) * 1.35) calc(var(--u) * 3);
  border-radius: 999px;
  background: rgba(88, 101, 242, 0.07);
  color: var(--white);
  font-size: calc(var(--u) * 1.6);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    transform 0.4s var(--ease);
  animation: rise 1.4s var(--ease) 1.12s both;
}

/* gradient hairline: Discord blurple travelling into NeoPod mint. Drawn as a
   masked ring so it can follow the pill's radius, which border-image cannot. */
.discord::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: max(1px, calc(var(--u) * 0.12));
  background: linear-gradient(100deg, #5865f2, #00e7a2);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.discord-mark {
  flex: none;
  width: calc(var(--u) * 1.95);
  height: auto;
  fill: #5865f2;
  transition: fill 0.4s var(--ease);
}

.discord:hover {
  background: rgba(88, 101, 242, 0.16);
  box-shadow: 0 0 calc(var(--u) * 1.7) rgba(88, 101, 242, 0.32);
  transform: translateY(calc(var(--u) * -0.25));
}

.discord:hover .discord-mark { fill: #7b86ff; }

.discord:active { transform: translateY(0); }

.discord:focus-visible {
  outline: max(2px, calc(var(--u) * 0.16)) solid var(--mint);
  outline-offset: calc(var(--u) * 0.3);
}

/* ── motion ─────────────────────────────────────────────────────── */

@keyframes rise {
  from { opacity: 0; transform: translateY(calc(var(--u) * 1.4)); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 calc(var(--u) * 0.5) calc(var(--u) * 2.2) rgba(0, 0, 0, 0.4),
    0 0 calc(var(--u) * 1.1) rgba(0, 231, 162, 0.42); }
  50% { box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 calc(var(--u) * 0.5) calc(var(--u) * 2.2) rgba(0, 0, 0, 0.4),
    0 0 calc(var(--u) * 2.2) rgba(0, 231, 162, 0.52); }
}

@keyframes sway {
  from { transform: rotate(-2.5deg); }
  to   { transform: rotate(2.5deg); }
}

@media (prefers-reduced-motion: reduce) {
  .lockup, .eyebrow, .headline, .date, .promise, .sub,
  .rail li, .soon, .rule, .engage, .discord, .fan {
    animation: none;
  }
  /* keep the colour feedback on the CTA, drop the movement */
  .discord { transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease); }
  .discord:hover, .discord:active { transform: none; }
}

/* ── phones ─────────────────────────────────────────────────────── */

/* A square composition scaled to a phone's width would leave the type far too
   small, so the artwork is enlarged ~60% relative to the viewport and the two
   widest pieces (the rail and the rule) are relaxed to fit. Everything else
   keeps the artwork's proportions. */
@media (max-width: 34rem) {
  :root { --u: calc(var(--w) / 62); }

  .rail { width: 100%; }
  .rule { width: 96%; }
  /* labels are the smallest type in the design; hold a legible floor */
  .label { font-size: max(8.5px, calc(var(--u) * 1.28)); }
  /* proportional height would be ~25px here, below the 44px touch minimum */
  .discord {
    min-height: 44px;
    padding-inline: calc(var(--u) * 3.4);
    font-size: max(13px, calc(var(--u) * 1.6));
  }
}
