:root {
  --bg: #000000;
  --bg-soft: #0a0d0c;
  --ink: #eef5f2;
  --muted: #93aca3;
  --faint: rgba(255, 255, 255, 0.08);
  /* AllCampSpots brand colors */
  --orange: #f6921c;
  --green: #8bc53d;
  --red: #ec1c23;
  --blue: #1a74bb;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(900px 520px at 50% 30%, rgba(139, 197, 61, 0.05), transparent 70%),
    radial-gradient(700px 400px at 85% 90%, rgba(246, 146, 28, 0.04), transparent 70%),
    var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* faint star specks, like a night sky over a campsite */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,0.35), transparent 100%),
    radial-gradient(1px 1px at 78% 12%, rgba(255,255,255,0.28), transparent 100%),
    radial-gradient(1.5px 1.5px at 55% 8%, rgba(255,255,255,0.22), transparent 100%),
    radial-gradient(1px 1px at 30% 55%, rgba(255,255,255,0.18), transparent 100%),
    radial-gradient(1px 1px at 90% 45%, rgba(255,255,255,0.22), transparent 100%),
    radial-gradient(1.5px 1.5px at 8% 80%, rgba(255,255,255,0.16), transparent 100%),
    radial-gradient(1px 1px at 65% 85%, rgba(255,255,255,0.2), transparent 100%);
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

/* ---------- nav ---------- */

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}

.brand-dot { color: var(--orange); }

.nav-cta {
  color: var(--ink);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  transition: border-color 0.25s, background 0.25s;
}

.nav-cta:hover {
  border-color: var(--orange);
  background: rgba(246, 146, 28, 0.1);
}

/* ---------- hero ---------- */

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px 8px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.hero .hl {
  color: var(--orange);
  /* dotted underline cycling through the four brand colors */
  background-image:
    radial-gradient(circle 2.5px at 2.5px 50%, var(--red) 2.4px, transparent 2.6px),
    radial-gradient(circle 2.5px at 13.5px 50%, var(--blue) 2.4px, transparent 2.6px),
    radial-gradient(circle 2.5px at 24.5px 50%, var(--orange) 2.4px, transparent 2.6px),
    radial-gradient(circle 2.5px at 35.5px 50%, var(--green) 2.4px, transparent 2.6px);
  background-size: 44px 5px;
  background-position: 2px bottom;
  background-repeat: repeat-x;
  padding-bottom: 10px;
}

.hero .sub {
  margin: 18px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.13rem);
  font-weight: 300;
}

/* ---------- constellation stage ---------- */

.stage {
  position: relative;
  margin: 8px auto 0;
  width: min(100%, 880px);
  height: clamp(430px, 60vh, 580px);
}

#net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 148px;
  height: 148px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background:
    radial-gradient(circle at 50% 32%, rgba(139, 197, 61, 0.14), rgba(255, 255, 255, 0.02) 65%),
    rgba(4, 7, 6, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 70px rgba(139, 197, 61, 0.15), 0 18px 50px rgba(0, 0, 0, 0.45);
  z-index: 3;
}

.hub img { width: 56px; height: 56px; }

.hub span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #cfe6dd;
}

.hub::before,
.hub::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(139, 197, 61, 0.4);
  animation: hub-ring 3.6s ease-out infinite;
  pointer-events: none;
}

.hub::after {
  border-color: rgba(246, 146, 28, 0.35);
  animation-delay: 1.8s;
}

@keyframes hub-ring {
  0%   { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* partner chips (injected by script.js) */

.chip {
  position: absolute;
  left: 0;
  top: 0;
  width: 128px;
  display: block;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: center;
  color: var(--ink);
  text-decoration: none;
  font-family: inherit;
  will-change: transform;
  opacity: 0;
  animation: chip-in 0.7s ease forwards;
  animation-delay: var(--d, 0s);
  z-index: 2;
}

@keyframes chip-in { to { opacity: 1; } }

.chip-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.chip-avatar img {
  width: 62%;
  height: 62%;
  object-fit: contain;
}

/* transparent glyph logos sit on a white chip for contrast */
.chip-avatar.pad {
  background: #f5f7f6;
}

.chip-avatar.pad img {
  width: 68%;
  height: 68%;
}

/* full-bleed app icons fill the whole circle */
.chip-avatar.cover {
  overflow: hidden;
}

.chip-avatar.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.chip-avatar.mono {
  font-size: 25px;
  font-weight: 600;
  color: var(--pc, var(--ink));
}

.chip-label {
  display: block;
  margin-top: 9px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.2px;
  transition: color 0.25s;
}

.chip:hover, .chip.active { z-index: 4; }

.chip:hover .chip-avatar,
.chip.active .chip-avatar,
.chip:focus-visible .chip-avatar {
  transform: scale(1.14);
  border-color: color-mix(in srgb, var(--pc, #fff) 65%, transparent);
  box-shadow: 0 0 26px color-mix(in srgb, var(--pc, #fff) 32%, transparent),
              0 12px 30px rgba(0, 0, 0, 0.4);
}

.chip:hover .chip-label,
.chip.active .chip-label { color: var(--ink); }

.chip:focus-visible { outline: none; }

/* ---------- how it works ---------- */

.how {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 90px 24px 20px;
}

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

.card {
  padding: 30px 28px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--faint);
  border-radius: 18px;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  padding: 11px;
  border-radius: 13px;
  background: rgba(139, 197, 61, 0.12);
  color: var(--green);
}

.card:nth-child(2) .card-icon { background: rgba(26, 116, 187, 0.16); color: #5ea9e0; }
.card:nth-child(3) .card-icon { background: rgba(246, 146, 28, 0.12); color: var(--orange); }

.card-icon svg { width: 100%; height: 100%; }

.card h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  font-size: 14.5px;
  color: var(--muted);
  font-weight: 300;
}

/* ---------- cta ---------- */

.cta {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 70px 24px 90px;
}

.cta-box {
  text-align: center;
  padding: 64px 32px;
  border-radius: 24px;
  background:
    radial-gradient(500px 220px at 50% 0%, rgba(246, 146, 28, 0.08), transparent 70%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid var(--faint);
}

.cta-box h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cta-box p {
  margin: 12px auto 28px;
  max-width: 440px;
  color: var(--muted);
  font-weight: 300;
}

.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 999px;
  background: var(--orange);
  color: #221605;
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(246, 146, 28, 0.3);
}

/* ---------- footer ---------- */

footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 24px 34px;
  border-top: 1px solid var(--faint);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

footer .foot-brand { justify-self: start; }
footer .foot-link { justify-self: center; }
footer .foot-note { justify-self: end; text-align: right; }

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 500;
}

.foot-brand img { width: 22px; height: 22px; opacity: 0.85; }

.foot-link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s;
}

.foot-link:hover {
  color: var(--ink);
  text-decoration: underline;
}

.foot-note {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 300;
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .hero { padding-top: 28px; }
  .stage { height: 400px; }
  .hub { width: 108px; height: 108px; }
  .hub img { width: 38px; height: 38px; }
  .hub span { font-size: 9px; }
  .chip { width: 92px; }
  .chip-avatar { width: 48px; height: 48px; }
  .chip-avatar.mono { font-size: 19px; }
  .chip-label { font-size: 11px; margin-top: 6px; }
  .how { padding-top: 60px; }
  .how-grid { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; gap: 12px; }
  footer .foot-brand,
  footer .foot-link,
  footer .foot-note { justify-self: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hub::before, .hub::after { animation: none; opacity: 0; }
  .chip { animation-duration: 0.01s; }
  html { scroll-behavior: auto; }
}
