/* ---- Self-hosted Raleway (variable, latin subset) ---- */
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/fonts/raleway-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2212;
}

/* ---- Palette (RiseUp brand: deep blue "Rise" -> green "Up", gradient swirl) ---- */
:root {
  --bg: #f6f8f7;
  --fg: #16233a;
  --muted: #5b6675;

  --blue: #1b3e72;
  --blue-bright: #2a7ec4;
  --green: #2faa4b;

  --blue-soft: rgba(27, 62, 114, 0.13);
  --green-soft: rgba(47, 170, 75, 0.16);

  --radius: 0.625rem;
  --font-heading: "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Stage ---- */
.stage {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem 5rem;
  overflow: hidden;
}

/* Radial vignette keeps text crisp over the motif and adds a teal glow */
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      55% 50% at 42% 40%,
      var(--blue-soft) 0%,
      transparent 60%
    ),
    radial-gradient(
      55% 50% at 60% 46%,
      var(--green-soft) 0%,
      transparent 60%
    ),
    radial-gradient(
      75% 70% at 50% 45%,
      var(--bg) 0%,
      rgba(246, 248, 247, 0.72) 38%,
      transparent 72%
    );
  z-index: 1;
  pointer-events: none;
}

/* ---- Node-graph motif ---- */
.graph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.6;
}

.graph__edges line {
  stroke: var(--blue);
  stroke-width: 1.25;
  opacity: 0.32;
}

.graph__nodes circle {
  fill: var(--green);
}

.graph__node--accent {
  fill: var(--blue-bright);
}

.graph__node--pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: node-pulse 4.5s ease-in-out infinite;
}

@keyframes node-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.35);
  }
}

/* ---- Content ---- */
.content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 46rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--blue-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.badge strong {
  color: var(--blue);
  font-weight: 700;
}

.badge__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 var(--green-soft);
  animation: dot-pulse 2.4s ease-out infinite;
}

@keyframes dot-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(47, 170, 75, 0.4);
  }
  70% {
    box-shadow: 0 0 0 0.5rem rgba(47, 170, 75, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(47, 170, 75, 0);
  }
}

.wordmark {
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1;
}

.wordmark__name {
  font-size: clamp(3.25rem, 13vw, 6.5rem);
  letter-spacing: -0.035em;
  color: var(--blue);
}

.wordmark__up {
  color: var(--green);
}

.wordmark__sub {
  font-size: clamp(0.85rem, 3.1vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  color: var(--green);
}

.tagline {
  margin: 1.5rem auto 0;
  max-width: 32rem;
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 3.4vw, 1.6rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.blurb {
  margin: 1.15rem auto 0;
  max-width: 34rem;
  font-size: clamp(1rem, 2.6vw, 1.1rem);
  line-height: 1.6;
  color: var(--muted);
}

/* ---- Footer ---- */
.footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.75rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0 1.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer__sep {
  color: var(--green);
}

/* ---- Motion preferences ---- */
@media (prefers-reduced-motion: reduce) {
  .graph__node--pulse,
  .badge__dot {
    animation: none;
  }
}
