/* ============================================================
   Expert Judgement – IMGL Landing Page
   Color palette:
     Orange  : rgb(255, 69, 0)
     Green   : rgb(34, 197, 94)
     Blue    : rgb(59, 130, 246)
   ============================================================ */

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

:root {
  --orange : rgb(255, 69,  0);
  --orange2: rgb(255,130, 60);
  --green  : rgb( 34,197, 94);
  --green2 : rgb( 16,185,129);
  --blue   : rgb( 59,130,246);
  --blue2  : rgb( 99,102,241);
  --dark   : #0a0e1a;
  --darker : #060910;
  --surface: rgba(255,255,255,0.04);
  --border : rgba(255,255,255,0.08);
  --text   : #e8edf5;
  --muted  : rgba(232,237,245,0.55);
  --radius : 18px;
  --gutter : 2rem;
}

/* ---------- BASE ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--darker);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
}

/* ---------- CANVAS PARTICLES ---------- */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---------- DECORATIVE ORBS ---------- */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  animation: drift 14s ease-in-out infinite alternate;
}
.orb-1 {
  width: 520px; height: 520px;
  background: var(--orange);
  top: -160px; left: -160px;
  animation-delay: 0s;
}
.orb-2 {
  width: 400px; height: 400px;
  background: var(--green);
  bottom: -120px; right: -100px;
  animation-delay: -5s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: var(--blue);
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -9s;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 40px) scale(1.08); }
}

/* ---------- WRAPPER ---------- */
.wrapper {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 3rem var(--gutter) 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  animation: fadeUp .8s ease both;
}

/* --- Logo row --- */
.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  opacity: 0;
  animation: popIn .7s cubic-bezier(.34,1.56,.64,1) both;
}
#logo-unja  { animation-delay: .1s; }
#logo-um    { animation-delay: .25s; }

.logo-frame {
  width: 110px; height: 110px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,69,0,.12), rgba(59,130,246,.12));
  border: 2px solid rgba(255,255,255,0.1);
  padding: 10px;
  box-shadow:
    0 0 30px rgba(255,69,0,.15),
    0 0 60px rgba(59,130,246,.10);
  transition: box-shadow .35s, transform .35s;
}
.logo-frame:hover {
  transform: scale(1.06);
  box-shadow:
    0 0 50px rgba(255,69,0,.3),
    0 0 80px rgba(59,130,246,.2);
}
.logo-frame svg { width: 80px; height: 80px; }

.logo-label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Crown divider --- */
.divider-crown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
  animation: fadeIn .6s ease .4s both;
}
.crown-line {
  width: 2px;
  height: 32px;
  background: linear-gradient(to bottom, var(--orange), transparent);
}
.crown-line:last-child {
  background: linear-gradient(to top, var(--blue), transparent);
}

/* --- Header text --- */
.header-text {
  text-align: center;
  opacity: 0;
  animation: fadeUp .7s ease .35s both;
}
.header-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange2);
  background: rgba(255,69,0,.1);
  border: 1px solid rgba(255,69,0,.25);
  border-radius: 999px;
  padding: .28em 1.1em;
  margin-bottom: 1rem;
}
.header-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,.4);
}
.accent-orange { color: var(--orange); }
.accent-green  { color: var(--green); }
.accent-blue   { color: var(--blue); }
.conjunction   { color: var(--muted); font-weight: 700; }

/* --- Stripe --- */
.header-stripe {
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--orange), var(--green), var(--blue));
  opacity: 0;
  animation: scaleX .8s ease .6s both;
  transform-origin: left;
}
@keyframes scaleX {
  from { opacity: 0; transform: scaleX(0); }
  to   { opacity: 1; transform: scaleX(1); }
}

/* ============================================================
   MAIN
   ============================================================ */
.site-main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

/* --- Research card --- */
.research-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  opacity: 0;
  animation: fadeUp .75s ease .55s both;
  box-shadow: 0 8px 48px rgba(0,0,0,.35);
}
.research-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255,69,0,.06) 0%,
    transparent 40%,
    rgba(34,197,94,.05) 70%,
    rgba(59,130,246,.07) 100%
  );
  pointer-events: none;
}
/* animated border shimmer */
.research-card::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(120deg, var(--orange), var(--green), var(--blue), var(--orange));
  background-size: 300% 300%;
  z-index: -1;
  animation: borderSpin 6s linear infinite;
  opacity: .4;
}
@keyframes borderSpin {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.card-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.25);
  border-radius: 999px;
  padding: .25em 1em;
  margin-bottom: 1.2rem;
}

.research-intro {
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .06em;
  margin-bottom: .4rem;
}

.research-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-weight: 700;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 2.4rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.research-title em  { color: var(--orange2); font-style: italic; }
.research-title strong { color: #fff; font-weight: 800; }

/* --- Buttons --- */
.btn-group {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .85rem 2rem;
  border-radius: 12px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
  letter-spacing: .02em;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .3s;
}
.btn:hover { transform: translateY(-3px) scale(1.03); }
.btn:active { transform: translateY(0) scale(.98); }

/* Primary – Orange */
.btn-primary {
  background: linear-gradient(135deg, var(--orange), #ff6a2a);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255,69,0,.4);
}
.btn-primary::before { background: rgba(255,255,255,.15); }
.btn-primary:hover {
  box-shadow: 0 8px 36px rgba(255,69,0,.55);
}
.btn-primary:hover::before { opacity: 1; }

/* Secondary – Green→Blue */
.btn-secondary {
  background: linear-gradient(135deg, var(--green2), var(--blue));
  color: #fff;
  box-shadow: 0 4px 20px rgba(34,197,94,.3);
}
.btn-secondary::before { background: rgba(255,255,255,.12); }
.btn-secondary:hover {
  box-shadow: 0 8px 36px rgba(59,130,246,.45);
}
.btn-secondary:hover::before { opacity: 1; }

.btn-icon { display: flex; flex-shrink: 0; }
.btn-arrow {
  font-size: 1.1rem;
  transition: transform .25s;
  margin-left: .15rem;
}
.btn:hover .btn-arrow { transform: translate(2px, -2px); }

/* --- Pillars --- */
.pillars {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  width: 100%;
  opacity: 0;
  animation: fadeUp .7s ease .9s both;
}

.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem 1.6rem;
  flex: 1 1 140px;
  max-width: 170px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: transform .3s, border-color .3s, box-shadow .3s;
  animation: popIn .6s cubic-bezier(.34,1.56,.64,1) both;
  animation-delay: var(--delay, 0s);
}
.pillar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color, var(--orange));
  border-radius: 0 0 14px 14px;
}
.pillar:hover {
  transform: translateY(-5px);
  border-color: var(--color, var(--orange));
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.pillar-icon { font-size: 1.8rem; line-height: 1; }
.pillar-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  width: 100%;
  text-align: center;
  padding: 1rem 0 .5rem;
  font-size: .78rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  opacity: 0;
  animation: fadeIn .6s ease 1.1s both;
  letter-spacing: .04em;
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(.7); }
  to   { opacity: 1; transform: scale(1); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 680px) {
  .wrapper { padding: 2rem 1.2rem 1.5rem; gap: 2rem; }
  .research-card { padding: 2rem 1.5rem; }
  .btn { padding: .75rem 1.4rem; font-size: .9rem; }
  .logo-row { gap: 1.5rem; }
  .logo-frame { width: 88px; height: 88px; }
  .logo-frame svg { width: 64px; height: 64px; }
  .pillar { flex: 1 1 120px; padding: 1rem 1rem; }
}
