/* ===== Coaster Actus — Linktree ===== */

:root {
  --blue-1: #0c1a8f;
  --blue-2: #1636c9;
  --blue-3: #2f56f2;
  --orange-1: #ff8f2e;
  --orange-2: #e0691a;
  --orange-glow: rgba(255, 143, 46, 0.55);
  --ink: #0b1440;
  --paper: #ffffff;
  --paper-dim: #eef1fb;
  --max-w: 560px;
  --max-w-wide: 560px;
}

@media (min-width: 720px) {
  :root { --max-w-wide: 760px; }
}
@media (min-width: 1024px) {
  :root { --max-w-wide: 1040px; }
}

* { box-sizing: border-box; }

/* ---------- Scroll progress bar ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--orange-2), var(--orange-1));
  z-index: 100;
  box-shadow: 0 0 8px 0 var(--orange-glow);
}

/* ---------- Confetti (spawned on share) ---------- */

.confetti-piece {
  position: fixed;
  top: 0;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 100;
  animation: confetti-burst 0.9s ease-out forwards;
}
@keyframes confetti-burst {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) rotate(var(--rot)); opacity: 0; }
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--paper);
  background: linear-gradient(150deg, var(--blue-1) 0%, var(--blue-2) 55%, var(--blue-3) 100%);
  background-size: 200% 200%;
  animation: bgshift 18s ease-in-out infinite alternate;
  position: relative;
  line-height: 1.5;
}

@keyframes bgshift {
  0%   { background-position: 0% 0%; }
  100% { background-position: 100% 60%; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Progressive-enhancement reveal ----------
   Content is visible by default. JS (if it runs) adds
   .js-ready, which is what actually enables the hidden-
   then-fade-in scroll animation. If the script is ever
   blocked, nothing on the page disappears. */

.reveal { opacity: 1; transform: none; }
.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .js-ready .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Decorative background layer ---------- */

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.dot-grid {
  position: absolute;
  inset: -10%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1.4px, transparent 1.6px);
  background-size: 26px 26px;
  opacity: 0.4;
  animation: driftdots 40s linear infinite;
}
@keyframes driftdots {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-26px, -26px, 0); }
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}
.glow-1 { width: 460px; height: 460px; top: -160px; right: -140px; background: radial-gradient(circle, var(--orange-glow), transparent 70%); }
.glow-2 { width: 420px; height: 420px; bottom: -180px; left: -140px; background: radial-gradient(circle, rgba(47, 86, 242, 0.55), transparent 70%); }

/* ---------- Shooting stars: occasional, not a loop you'd notice ticking ---------- */

.shooting-star {
  position: absolute;
  left: -8%;
  width: 3px;
  height: 3px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.9);
}
.shooting-star::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 100%;
  width: 110px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85));
  transform: translateY(-50%);
}

.star1 { top: 14%; animation: shoot1 26s linear infinite; }
.star2 { top: 34%; animation: shoot2 34s linear infinite; animation-delay: -11s; }
.star3 { top: 6%;  animation: shoot3 40s linear infinite; animation-delay: -22s; }

@keyframes shoot1 {
  0%   { opacity: 0; transform: translate(0, 0); }
  1%   { opacity: 1; }
  8%   { opacity: 0; transform: translate(140vw, 65px); }
  100% { opacity: 0; transform: translate(140vw, 65px); }
}
@keyframes shoot2 {
  0%   { opacity: 0; transform: translate(0, 0); }
  1%   { opacity: 1; }
  6%   { opacity: 0; transform: translate(140vw, 45px); }
  100% { opacity: 0; transform: translate(140vw, 45px); }
}
@keyframes shoot3 {
  0%   { opacity: 0; transform: translate(0, 0); }
  1%   { opacity: 1; }
  10%  { opacity: 0; transform: translate(140vw, 90px); }
  100% { opacity: 0; transform: translate(140vw, 90px); }
}

/* ---------- Layout ---------- */

main, header, footer {
  position: relative;
  z-index: 1;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 20px;
}

.narrow {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.hero {
  text-align: center;
  padding: 44px 20px 8px;
}

.logo-badge {
  display: inline-flex;
  padding: 8px;
  background: var(--paper);
  border-radius: 28px;
  box-shadow: 0 12px 30px rgba(6, 12, 60, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.08);
  animation: float 5s ease-in-out infinite;
}
.logo-badge img {
  width: 104px;
  height: 104px;
  border-radius: 20px;
  object-fit: cover;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: clamp(1.7rem, 7vw, 2.3rem);
  margin: 16px 0 0;
  color: var(--paper);
}
.brand-accent {
  color: var(--orange-1);
  display: inline-block;
  animation: neon-flicker 1.6s ease-in-out 0.4s 1 both;
}
@keyframes neon-flicker {
  0%   { opacity: 0.2; text-shadow: none; }
  4%   { opacity: 1;   text-shadow: 0 0 8px var(--orange-glow), 0 0 18px var(--orange-glow); }
  8%   { opacity: 0.3; text-shadow: none; }
  13%  { opacity: 1;   text-shadow: 0 0 8px var(--orange-glow); }
  21%  { opacity: 0.4; text-shadow: none; }
  27%  { opacity: 1;   text-shadow: 0 0 10px var(--orange-glow), 0 0 20px var(--orange-glow); }
  39%  { opacity: 0.6; text-shadow: 0 0 4px var(--orange-glow); }
  47%  { opacity: 1;   text-shadow: 0 0 10px var(--orange-glow), 0 0 22px var(--orange-glow); }
  100% { opacity: 1;   text-shadow: 0 0 10px var(--orange-glow), 0 0 22px var(--orange-glow); }
}

.tagline {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin: 8px 0 0;
}

.hero-stat {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 10px 0 0;
}
.hero-stat strong { color: var(--orange-1); font-family: 'Poppins', sans-serif; }

/* ---------- Live feed (Instagram + Facebook) ---------- */

.live-feed { padding: 30px 20px 8px; }

.live-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: fit-content;
  margin: 0 auto 16px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  box-shadow: 0 8px 20px rgba(6, 12, 60, 0.35);
}

.live-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-btn--live {
  border: 2px solid var(--orange-1);
  box-shadow: 0 8px 20px rgba(6, 12, 60, 0.28), 0 0 14px 1px var(--orange-glow);
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  padding: 10px 18px;
  width: 100%;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.share-btn:hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-2px); }
.share-btn svg { width: 18px; height: 18px; }

/* ---------- Link buttons ---------- */

.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 20px 8px;
}

.mini-title {
  display: block;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.link-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 8px 20px rgba(6, 12, 60, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4d4d;
  animation: livepulse 1.7s ease-in-out infinite;
}
@keyframes livepulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.55); }
  50%      { box-shadow: 0 0 0 5px rgba(255, 77, 77, 0); }
}
.link-btn:hover, .link-btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(6, 12, 60, 0.32), 0 0 0 3px var(--orange-glow);
}
.link-btn:active { transform: translateY(-1px) scale(0.99); }

.link-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--orange-1), var(--orange-2));
  color: #fff;
}
.link-icon svg { width: 20px; height: 20px; }

.link-text { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.link-text strong { font-family: 'Poppins', sans-serif; font-size: 0.98rem; font-weight: 700; color: var(--ink); }
.link-text small { color: #5b63a0; font-size: 0.8rem; }

.link-arrow {
  font-size: 1.5rem;
  color: #c9cdea;
  transition: transform 0.18s ease, color 0.18s ease;
}
.link-btn:hover .link-arrow { transform: translateX(3px); color: var(--orange-1); }

/* ---------- Instagram feed ---------- */

.insta-feed { padding: 34px 20px 40px; text-align: center; }

.section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(1.3rem, 5vw, 1.7rem);
  margin: 14px 0 0;
  color: #fff;
}
.brand-accent2 { color: var(--orange-1); }

.insta-grid {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 26px;
  margin-top: 20px;
}

.insta-card {
  width: 100%;
  max-width: 500px;
  display: flex;
  justify-content: center;
}
.insta-card iframe { border-radius: 14px !important; }

@media (min-width: 900px) {
  .insta-grid { grid-template-columns: repeat(2, minmax(0, 500px)); }
}
@media (min-width: 1300px) {
  .insta-grid { grid-template-columns: repeat(3, minmax(0, 380px)); }
  .insta-card { max-width: 380px; }
}

.see-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.18s ease, transform 0.18s ease;
}
.see-more:hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-2px); }

/* ---------- Footer ---------- */

.site-footer {
  text-align: center;
  padding: 8px 20px 48px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}
.site-footer a { color: rgba(255, 255, 255, 0.92); font-weight: 700; }
.site-footer a:hover { color: var(--orange-1); }
.fine-print { margin-top: 6px; color: rgba(255, 255, 255, 0.45); font-size: 0.78rem; }

.footer-rule {
  width: 56px;
  height: 4px;
  margin: 0 auto 18px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--orange-2), var(--orange-1));
}
