/* ===========================================================
   FUN, eventos no Roblox
   Design tokens
=========================================================== */
:root{
  --pink: #F41971;
  --cyan: #00C3F7;
  --lime: #A6EF18;
  --teal: #1AE8CF;
  --yellow: #FFE000;
  --orange: #FFAF00;

  --ink: #17123A;
  --ink-soft: #423C68;
  --paper: #FFFFFF;
  --paper-wash: #FBF9FF;

  --font-display: "Fredoka", "Nunito", sans-serif;
  --font-body: "Nunito", sans-serif;

  --radius-blob: 34px;
  --shadow-card: 0 14px 0 rgba(23,18,58,0.08);
  --container: 1120px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }

a{ color: inherit; text-decoration: none; }

h1, h2, h3, h4{
  font-family: var(--font-display);
  margin: 0 0 .5em;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p{ margin: 0 0 1em; }

.wrap{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow-word{
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--pink);
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 4px 5px 0 var(--ink);
}
.btn:hover{ transform: translate(-2px,-2px); box-shadow: 6px 7px 0 var(--ink); }
.btn:active{ transform: translate(1px,2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:focus-visible{ outline: 3px solid var(--cyan); outline-offset: 3px; }

.btn-primary{ background: var(--pink); color: #fff; }
.btn-secondary{ background: var(--paper); color: var(--ink); }
.btn-dark{ background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-lime{ background: var(--lime); color: var(--ink); }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--ink);
}
.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 18px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
}
.brand img{ height: 40px; width: auto; }

.main-nav{
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--paper-wash);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 5px;
}
.main-nav a{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--ink-soft);
}
.main-nav a:hover{ color: var(--ink); }
.main-nav a.active{ background: var(--ink); color: #fff; }

.header-cta{ display: flex; align-items: center; gap: 10px; }
.header-cta .btn{ padding: 11px 20px; font-size: 14px; box-shadow: 3px 4px 0 var(--ink); }

.nav-toggle{
  display: none;
  border: 2px solid var(--ink);
  background: var(--paper);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  overflow: hidden;
  padding: 76px 0 96px;
  background: var(--paper-wash);
  border-bottom: 3px solid var(--ink);
}
.hero .wrap{
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 40px;
}
.hero h1{ font-size: clamp(40px, 5.4vw, 64px); }
.hero .lede{ font-size: 19px; color: var(--ink-soft); max-width: 46ch; }
.hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.stud-field{
  position: relative;
  height: 380px;
}
.stud{
  position: absolute;
  border-radius: 50%;
  border: 3px solid var(--ink);
  animation: float 6s ease-in-out infinite;
}
@keyframes float{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce){
  .stud{ animation: none; }
}

/* ---------- Sections ---------- */
section{ padding: 88px 0; }
.section-tight{ padding: 64px 0; }
.section-head{ max-width: 640px; margin-bottom: 48px; }
.section-head h2{ font-size: clamp(30px, 3.6vw, 42px); }
.section-head p{ color: var(--ink-soft); font-size: 18px; }

.bg-wash{ background: var(--paper-wash); }
.bg-ink{ background: var(--ink); color: #fff; }
.bg-ink h2, .bg-ink h3{ color: #fff; }
.bg-ink p{ color: rgba(255,255,255,0.78); }

/* ---------- Blob cards (event types) ---------- */
.card-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.blob-card{
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius-blob) var(--radius-blob) var(--radius-blob) 8px;
  padding: 30px;
  box-shadow: var(--shadow-card);
}
.blob-card .icon-block{
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 3px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.blob-card h3{ font-size: 21px; }
.blob-card p{ color: var(--ink-soft); font-size: 15.5px; margin-bottom: 0; }

/* ---------- Steps ---------- */
.steps{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.step{
  border: 3px solid var(--ink);
  border-radius: 24px;
  padding: 26px 22px;
  background: var(--paper);
  position: relative;
}
.step .num{
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: var(--yellow);
}
.step h4{ font-size: 17px; margin-bottom: 6px; }
.step p{ font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* ---------- Stat strip ---------- */
.stat-strip{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 3px solid var(--ink);
  border-radius: 24px;
  overflow: hidden;
}
.stat-strip > div{
  padding: 30px 20px;
  text-align: center;
  border-right: 3px solid var(--ink);
}
.stat-strip > div:last-child{ border-right: none; }
.stat-strip strong{
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
}
.stat-strip span{ font-size: 14px; color: var(--ink-soft); }

/* ---------- CTA banner ---------- */
.cta-banner{
  border: 3px solid var(--ink);
  border-radius: 32px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2{ font-size: clamp(26px, 3vw, 36px); margin-bottom: 6px; }
.cta-banner p{ margin: 0; color: var(--ink-soft); }

/* ---------- Discord strip ---------- */
.discord-strip{
  display: flex;
  align-items: center;
  gap: 20px;
  border: 3px solid var(--ink);
  border-radius: 24px;
  padding: 26px 30px;
  background: var(--paper);
}
.discord-strip .icon-block{ flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer{
  position: relative;
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  padding: 72px 0 34px;
  overflow: hidden;
  border-top: 3px solid var(--ink);
}
.footer-watermark{
  position: absolute;
  right: -40px;
  bottom: -30px;
  width: 460px;
  opacity: 0.16;
  filter: brightness(0) invert(1);
  pointer-events: none;
  user-select: none;
}
.footer-grid{
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.16);
}
.footer-brand{ display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img{ height: 34px; }
.footer-brand span{ font-family: var(--font-display); font-weight: 600; font-size: 20px; color: #fff; }
.site-footer p{ font-size: 14.5px; color: rgba(255,255,255,0.68); max-width: 32ch; }
.footer-col h5{
  font-family: var(--font-display);
  font-size: 14px;
  color: #fff;
  margin-bottom: 14px;
}
.footer-col a{
  display: block;
  font-size: 14.5px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
}
.footer-col a:hover{ color: #fff; }
.footer-bottom{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-managed{
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-managed img{
  height: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero{
  padding: 64px 0 60px;
  border-bottom: 3px solid var(--ink);
}
.page-hero .tag{
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  margin-bottom: 18px;
}
.page-hero h1{ font-size: clamp(34px, 4.6vw, 52px); max-width: 18ch; }
.page-hero p{ font-size: 18px; color: var(--ink-soft); max-width: 56ch; }

/* ---------- Two column ---------- */
.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split img, .split .art{ border-radius: var(--radius-blob); border: 3px solid var(--ink); }

.art{
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.art .stud{ position: absolute; }

/* ---------- Team-ish value list ---------- */
.value-list{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.value-item{
  display: flex;
  gap: 16px;
  padding: 22px;
  border: 3px solid var(--ink);
  border-radius: 20px;
  background: var(--paper);
}
.value-item .icon-block{ flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; }
.value-item h4{ font-size: 16.5px; margin-bottom: 4px; }
.value-item p{ font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* ---------- Partner banner ---------- */
.partner-banner{
  display: flex;
  align-items: center;
  gap: 24px;
  border: 3px solid var(--ink);
  border-radius: 24px;
  padding: 30px 34px;
  background: var(--paper-wash);
}
.partner-banner img{ height: 30px; }
.partner-banner .divider{ width: 2px; align-self: stretch; background: var(--ink); opacity: .15; }

/* ---------- Apoie page ---------- */
.apoie-hero{
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.apoie-card{
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  padding: 54px 44px;
  border: 3px solid var(--ink);
  border-radius: var(--radius-blob);
  background: var(--paper);
  box-shadow: var(--shadow-card);
}
.apoie-card h1{ font-size: clamp(32px, 4.6vw, 44px); }
.redirect-note{
  margin-top: 22px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.redirect-note strong{ color: var(--pink); }
.progress-track{
  margin: 18px auto 0;
  width: 220px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  overflow: hidden;
  background: var(--paper-wash);
}
.progress-fill{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--pink), var(--orange));
  animation: fillbar 4s linear forwards;
}
@keyframes fillbar{ to{ width: 100%; } }
@media (prefers-reduced-motion: reduce){
  .progress-fill{ animation: none; width: 100%; }
}

/* ---------- Utilities ---------- */
.text-center{ text-align: center; }
.mt-lg{ margin-top: 48px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .hero .wrap{ grid-template-columns: 1fr; }
  .stud-field{ height: 220px; }
  .card-grid{ grid-template-columns: 1fr 1fr; }
  .steps{ grid-template-columns: 1fr 1fr; }
  .stat-strip{ grid-template-columns: 1fr 1fr; }
  .stat-strip > div:nth-child(2){ border-right: none; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .split{ grid-template-columns: 1fr; }
  .value-list{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  .main-nav, .header-cta .btn span.long{ display: none; }
  .nav-toggle{ display: flex; }
  .card-grid{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .stat-strip{ grid-template-columns: 1fr; }
  .stat-strip > div{ border-right: none; border-bottom: 3px solid var(--ink); }
  .stat-strip > div:last-child{ border-bottom: none; }
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-bottom{ flex-direction: column; align-items: flex-start; }
  .cta-banner{ flex-direction: column; align-items: flex-start; }
  .partner-banner{ flex-direction: column; align-items: flex-start; }
}
