/* MESOSky landing — shared brand tokens, font face, reset.
 *
 * Imported by index.html (picker), a/, b/, c/, and press/.
 * Each concept layers its own CSS on top of this; nothing here
 * is concept-specific. Brand cyan-blue, nasalization font face,
 * baseline typography. Mobile-first via `--bp-md` and `--bp-lg`
 * breakpoints declared as custom properties for consistent
 * media-query thresholds across concepts.
 */

@font-face {
  font-family: "Nasalization";
  src: url("/shared/fonts/Nasalization.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: block; /* Avoid the FOUT on the brand mark — the
                          MESOSKY logo simply cannot flash a
                          fallback font; the brand IS the
                          typography. block = blank for up to 3s,
                          then swap. */
}

:root {
  /* Brand */
  --brand-cyan: rgb(13, 199, 242);     /* MESO SKY accent — matches iOS Color(0.05, 0.78, 0.95) */
  --brand-cyan-soft: rgba(13, 199, 242, 0.5);
  --brand-cyan-dim:  rgba(13, 199, 242, 0.15);

  /* Surface */
  --bg-deep:   rgb(2, 4, 8);            /* page bg — slightly cooler than #000 to play nice with cyan */
  --bg-rise:   rgb(10, 14, 22);         /* lifted card / panel bg */
  --bg-rule:   rgba(255, 255, 255, 0.08);
  --bg-rule-strong: rgba(255, 255, 255, 0.18);

  /* Text */
  --fg:        rgb(245, 247, 250);
  --fg-mute:   rgba(245, 247, 250, 0.62);
  --fg-fade:   rgba(245, 247, 250, 0.35);

  /* Type */
  --font-brand: "Nasalization", "Helvetica Neue", Arial, sans-serif;
  --font-mono:  ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-body:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);  /* iOS-ish ease */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Reset — Andy Bell minimalist + a few of our own choices. */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Hard horizontal lock at the document root. Combined with the
   * body rule below, this prevents any transformed/translated
   * descendant (the mobile parallax phones, in particular) from
   * pushing the viewport to scroll sideways. `overflow-x: clip`
   * is the right primitive — unlike `hidden`, it doesn't create
   * a new scroll container, just visually clips off-canvas
   * descendants. Hidden is used as a fallback for older Safari. */
  overflow-x: hidden;
  overflow-x: clip;
}
body {
  background: var(--bg-deep);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  /* Belt-and-suspenders against horizontal drift; html rule above
   * is the primary defense, body repeats it for older iOS. */
  overflow-x: hidden;
  overflow-x: clip;
  /* `position: relative` + max-width on body fixes a stale iOS
   * Safari bug where transformed off-canvas children could still
   * push the document width. Cheap insurance. */
  position: relative;
  max-width: 100vw;
}
img, picture, svg, video, canvas { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* The brand mark — used by every page. `meso` white, `sky`
 * cyan, both in nasalization. Inline so descendants can size
 * it via a single `font-size` setter on the parent.
 */
.brand {
  font-family: var(--font-brand);
  letter-spacing: -0.01em;
  line-height: 0.95;
}
.brand .meso { color: var(--fg); }
.brand .sky  { color: var(--brand-cyan); }

/* Reusable mono caption — section labels, instrument numbers,
 * data tags. Matches the in-app "CLOUD CONTROLS" aesthetic.
 */
.mono-cap {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  font-weight: 600;
}

/* Email-capture form — shared by all three concepts.
 * Markup:
 *   <form class="notify" data-source="a">
 *     <input type="email" required placeholder="you@email">
 *     <button type="submit">Notify me</button>
 *     <p class="notify__msg" aria-live="polite"></p>
 *   </form>
 */
.notify {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  max-width: 480px;
}
.notify input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bg-rule-strong);
  border-radius: 6px;
  color: var(--fg);
  font-size: 15px;
  outline: none;
  transition: border-color 180ms var(--ease-out), background 180ms var(--ease-out);
}
.notify input[type="email"]:focus {
  border-color: var(--brand-cyan);
  background: rgba(13, 199, 242, 0.04);
}
.notify button {
  padding: 14px 22px;
  background: var(--brand-cyan);
  color: var(--bg-deep);
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 120ms var(--ease-out), background 180ms var(--ease-out);
}
.notify button:hover  { transform: translateY(-1px); background: rgb(40, 215, 255); }
.notify button:active { transform: translateY(0); }
.notify button[disabled] { opacity: 0.5; cursor: progress; }
.notify__msg {
  flex-basis: 100%;
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--fg-mute);
  min-height: 18px;
  margin-top: 4px;
}
.notify__msg[data-state="ok"]    { color: var(--brand-cyan); }
.notify__msg[data-state="error"] { color: rgb(255, 110, 110); }

/* Coming-soon badge — shared chrome element. Used on all three
 * concepts above or alongside the brand mark.
 */
.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--brand-cyan-soft);
  border-radius: 999px;
  background: var(--brand-cyan-dim);
  color: var(--brand-cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.coming-soon::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 8px var(--brand-cyan);
  animation: pulse 1.6s var(--ease-in-out) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

/* Container — generic max-width wrapper used inside concepts. */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Footer — shared minimal foot on every page. */
.foot {
  padding: 60px 24px 40px;
  text-align: center;
  color: var(--fg-fade);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.foot a { color: var(--fg-mute); border-bottom: 1px dotted var(--fg-fade); padding-bottom: 1px; }
.foot a:hover { color: var(--brand-cyan); border-bottom-color: var(--brand-cyan); }

/* Reduced motion — kill the obvious animations for users who've
 * asked the OS to chill. Doesn't touch WebGL scenes; those concept-
 * specific bits respect prefers-reduced-motion in their own JS.
 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
