:root {
  --bg: #000000;
  --fg: #ffffff;
  --muted: #8a8a8f;
  --gold: #f5aa1c;
  --gold-soft: rgba(245, 170, 28, 0.14);
  --card: rgba(255, 255, 255, 0.035);
  --card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --maxw: 640px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#hero-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: block;
}

main { position: relative; z-index: 1; }

/* ---------- fixed brand logo ---------- */
.site-header {
  position: fixed;
  top: 22px;
  left: 26px;
  z-index: 5;
}
.site-logo {
  display: block;
  width: 52px;
  height: 52px;
  transition: transform 0.25s ease, filter 0.25s ease;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6));
}
.site-logo img { width: 100%; height: 100%; object-fit: contain; }
.site-logo:hover { transform: scale(1.06); }

@media (max-width: 560px) {
  .site-header { top: 16px; left: 18px; }
  .site-logo { width: 42px; height: 42px; }
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 0 24px 96px;
  position: relative;
  /* keep text readable over the animation */
  background: radial-gradient(
    ellipse 80% 55% at 50% 42%,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.55) 78%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

.hero-inner {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  animation: rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: var(--muted);
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
}

.headline {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.headline .accent { color: var(--gold); }

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  padding: 9px 18px 9px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  font-weight: 600;
  font-size: 15px;
  color: #d8d8dc;
}

.brand-mark {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 7px;
}
.scroll-cue span {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--gold);
  animation: scrolldot 1.6s ease-in-out infinite;
}

/* ---------- LINKS ---------- */
.links {
  position: relative;
  background: var(--bg);
  padding: 64px 24px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.card {
  width: 100%;
  max-width: var(--maxw);
  text-decoration: none;
  color: var(--fg);
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 20px;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-3px);
  background: var(--card-hover);
  border-color: rgba(255, 255, 255, 0.18);
}

/* Featured Nexify card */
.card--featured {
  padding: 26px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.card--featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 0% 0%, var(--gold-soft), transparent 55%);
  pointer-events: none;
}
.card--featured:hover { border-color: rgba(245, 170, 28, 0.45); }

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.card__logo { height: 46px; width: auto; }
.card__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
  border: 1px solid rgba(245, 170, 28, 0.4);
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.card__desc {
  font-size: 15px;
  line-height: 1.6;
  color: #c7c7cc;
}
.card__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 15px;
  color: var(--gold);
}
.card__cta svg { transition: transform 0.25s ease; }
.card--featured:hover .card__cta svg { transform: translate(3px, -3px); }

/* Social grid */
.grid {
  width: 100%;
  max-width: var(--maxw);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card--mini {
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
}
.icon--yt { background: #ff0033; }
.icon--ig { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }
.icon--in { background: #0a66c2; }

.card__label { font-weight: 700; font-size: 15px; }
.card__handle { font-size: 12.5px; color: var(--muted); word-break: break-all; }

.footer {
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- animations ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrolldot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.3; }
}

/* ---------- responsive ---------- */
@media (max-width: 560px) {
  .hero { padding-bottom: 72px; }
  .grid { grid-template-columns: 1fr; }
  .card--mini { flex-direction: row; justify-content: flex-start; text-align: left; gap: 16px; }
  .card__top { flex-direction: column; align-items: flex-start; gap: 12px; }
  .card__tag { align-self: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-inner, .scroll-cue span { animation: none; }
  html { scroll-behavior: auto; }
}
