/* Spark! Hub — link-in-bio landing page.
   Tokens and values come from the design handoff; see README.md.

   Hover states live here as real CSS rules. The handoff prototype used a
   `style-hover` attribute, which is specific to its own preview tool and is not a
   web feature — recreating it as inline styles would have meant shipping JS to do
   what :hover does for free. */

:root {
  --ink: #1a1a1a;
  --page: #f7f7f5;
  --card: #ffffff;
  --border: #e4e4e4;
  --teal: #3d8c84;
  --teal-dark: #2d6e67;
  --teal-bright: #06b1a2; /* hologram + the "!" only */
  --text-2: #6b6b6b;
  --muted: #999999;
  /* Configurable per the handoff: 4–20s, default 9s. */
  --spin-duration: 9s;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--ink);
}

a { color: var(--teal-dark); text-decoration: none; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 64px;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  width: 100%;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 52px 24px 46px;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 460px;
  background: radial-gradient(ellipse at 50% 40%, rgba(6, 177, 162, 0.18), transparent 68%);
  pointer-events: none;
}
.holo-float { perspective: 900px; position: relative; animation: holoFloat 5s ease-in-out infinite; }
.holo-flicker { animation: holoFlicker 7s linear infinite; }
.holo-img {
  width: 150px;
  height: 150px;
  display: block;
  transform-style: preserve-3d;
  animation: holoSpin var(--spin-duration) linear infinite;
  filter: drop-shadow(0 0 16px rgba(6, 177, 162, 0.65))
          drop-shadow(0 0 52px rgba(6, 177, 162, 0.3))
          brightness(1.15);
}
.holo-floor {
  width: 210px;
  height: 20px;
  margin-top: -6px;
  background: radial-gradient(ellipse at center, rgba(6, 177, 162, 0.5), rgba(6, 177, 162, 0.12) 55%, transparent 72%);
  filter: blur(4px);
}
.wordmark {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 40px;
  letter-spacing: 2px;
  color: #fff;
  margin-top: 20px;
}
.wordmark .bang { color: var(--teal-bright); }
.tagline {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 6px;
  text-align: center;
  max-width: 480px;
  line-height: 1.6;
}

@keyframes holoSpin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
@keyframes holoFlicker {
  0%, 88%, 100% { opacity: 1; }
  90% { opacity: 0.55; }
  91% { opacity: 1; }
  95% { opacity: 0.75; }
  96% { opacity: 1; }
}
@keyframes holoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Required by the handoff. Three separate animations on nested elements, so all
   three have to be stopped — killing only the spin leaves it bobbing and blinking. */
@media (prefers-reduced-motion: reduce) {
  .holo-float, .holo-flicker, .holo-img { animation: none !important; }
}

/* ── Links grid ───────────────────────────────────────────────────────────── */
.groups {
  width: 100%;
  max-width: 880px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
  margin-top: 40px;
  padding: 0 24px;
}
.group { display: flex; flex-direction: column; gap: 12px; }
.group-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 1.5px;
  padding-left: 2px;
  text-transform: uppercase;
}

.card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 16px 18px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.card:hover,
.card:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 4px 16px rgba(61, 140, 132, 0.12);
  outline: none;
}
.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: rgba(61, 140, 132, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--teal-dark);
}
.card-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.card-title { font-weight: 700; font-size: 15px; }
.card-desc { font-size: 12px; color: var(--text-2); font-weight: 500; }
.card-arrow { color: var(--teal); font-weight: 700; font-size: 14px; }

/* The one emphasized card. */
.card.is-featured {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  box-shadow: 0 4px 16px rgba(61, 140, 132, 0.25);
}
.card.is-featured:hover,
.card.is-featured:focus-visible { background: var(--teal-dark); border-color: var(--teal-dark); }
.card.is-featured .card-icon { background: rgba(255, 255, 255, 0.15); color: #fff; }
.card.is-featured .card-desc { color: rgba(255, 255, 255, 0.75); }
.card.is-featured .card-arrow { color: #fff; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.socials {
  display: flex;
  gap: 26px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 24px;
}
.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  transition: color 150ms ease;
}
.social:hover, .social:focus-visible { color: var(--teal); outline: none; }
.byline { font-size: 12px; color: var(--muted); margin-top: 20px; text-align: center; padding: 0 24px; }

@media (max-width: 640px) {
  .groups { grid-template-columns: 1fr; }
}

/* One line under each section heading. Sits between the heading and its links,
   so it is sized to read as a caption, not a second heading. */
.group-blurb {
  margin: -2px 0 14px;
  max-width: 46ch;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
}
