/* M8RIC team form — the dashboard's dark theme, type and logo.
   A copy of the public pages' pages.css (8 Oct 2026), so this site stands on
   its own; form.css adds the form itself on top. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/plex-mono-500-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-latin.woff2") format("woff2");
}

:root {
  --bg: #04080F;
  /* The dashboard's three violets as overlapping soft glows that run into one
     another (a diagonal drift from top-right to bottom-left), plus a gentle
     bloom of light behind the card. Wide, slow falloffs so nothing has an edge. */
  --bg-accent: radial-gradient(ellipse 46% 60% at 50% 46%, rgba(168, 123, 240, .16), transparent 100%),
               radial-gradient(ellipse 70% 62% at 88% 6%, rgba(124, 31, 212, .46), rgba(124, 31, 212, .16) 48%, transparent 100%),
               radial-gradient(ellipse 66% 58% at 62% 98%, rgba(140, 90, 235, .30), rgba(140, 90, 235, .10) 52%, transparent 100%),
               radial-gradient(ellipse 62% 66% at 6% 62%, rgba(168, 123, 240, .30), rgba(168, 123, 240, .09) 55%, transparent 100%);
  --surface: rgba(18, 19, 24, .92);
  --surface-2: #16171D;
  --border: #24262C;
  --text: #E9EFF9;
  --muted: #97A9C4;
  --subtle: #8DA0BE;
  --brand: #A87BF0;
  --brand-strong: #BC98F5;
  --on-brand: #241046;
  --down-fg: #F07A9A;
  --down-bg: rgba(221, 75, 115, .14);
  --down-line: rgba(221, 75, 115, .30);
  --font-display: "Fraunces", Georgia, serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;
  --font-body: "Geist", "Segoe UI", -apple-system, Roboto, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 24px;
  background-color: var(--bg);
  background-image: var(--bg-accent);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 44px 48px 40px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .28), 0 12px 32px rgba(0, 0, 0, .34);
}
.card--wide { max-width: 680px; }

/* Card header: the lockup and its caption on the left, the globe on the
   right, and a hairline under them before the content starts. */
.brand {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 24px;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.brand__row { display: contents; }
.brand img { display: block; grid-column: 1; grid-row: 1; width: 172px; height: auto; }
/* The dot-matrix globe (drawn by js/globe.js). */
.globe {
  display: block;
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 76px;
  height: 76px;
  filter: drop-shadow(0 0 10px rgba(124, 31, 212, .55));
}
.brand > span {
  display: block;
  grid-column: 1; grid-row: 2;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--subtle);
}

h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.012em;
}
h2 {
  margin: 24px 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--subtle);
}
p { margin: 0 0 30px; color: var(--muted); }
a { color: var(--brand-strong); }

/* The dashboard's credit pill (29 Sep 2026): a near-black pill with a violet
   edge and glow, and a violet streak that sweeps across it every 4 seconds. */
.btn {
  --by-bg:     #07060B;
  --by-edge:   rgba(168, 123, 240, .55);
  --by-glow:   0 0 0 3px rgba(168, 123, 240, .08), 0 8px 24px -8px rgba(124, 31, 212, .80);
  --by-streak: rgba(188, 152, 245, .40);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center;
  height: 46px; padding: 0 28px;
  border: 1px solid var(--by-edge);
  border-radius: 999px;
  background: var(--by-bg);
  box-shadow: var(--by-glow);
  color: rgba(255, 255, 255, .86);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%;
  background: linear-gradient(90deg, transparent, var(--by-streak), transparent);
  transform: translateX(-120%) skewX(-20deg);
  animation: by-sweep 4s ease-in-out infinite;
}
@keyframes by-sweep {
  0%        { transform: translateX(-120%) skewX(-20deg); }
  45%, 100% { transform: translateX(300%) skewX(-20deg); }
}
.btn:hover {
  --by-edge: rgba(188, 152, 245, .85);
  color: #fff;
}
.btn:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 3px; }
/* The sweep is kept for people whose PC reports reduced motion, as on the
   dashboard: one slow pass every 4 seconds on a small pill. */
@media (prefers-reduced-motion: reduce) {
  .btn::before { animation: by-sweep 4s ease-in-out infinite !important; }
}

.foot {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--subtle);
}
.foot a { color: var(--brand-strong); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

@media (max-width: 520px) {
  body { padding: 20px 16px; }
  .card { padding: 30px 24px 28px; }
  .brand { margin-bottom: 28px; padding-bottom: 22px; }
  .brand img { width: 140px; }
  .globe { width: 64px; height: 64px; }
  h1 { font-size: 27px; }
}
