/* ============================================================
   FIFI 2026 — Vibrant Redesign
   Palette: Navy · Teal · Coral · Gold · Off-white
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --navy:    #0b1d3a;
  --navy2:   #112347;
  --teal:    #00d4c8;
  --teal2:   #00a99e;
  --coral:   #ff6b6b;
  --gold:    #f7c948;
  --offwhite:#f8fafc;
  --muted:   #94a3b8;
  --card-bg: #ffffff;
  --text:    #1e293b;
  --radius:  14px;
  --shadow:  0 4px 24px rgba(0,0,0,0.10);
}

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

html { scroll-behavior:smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--offwhite);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

/* ── NAV ─────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 29, 58, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  border-bottom: 1px solid rgba(0,212,200,0.15);
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.5px;
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

nav ul li a {
  color: rgba(255,255,255,0.80);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

nav ul li a:hover,
nav ul li a.active {
  background: rgba(0,212,200,0.15);
  color: var(--teal);
}

/* ── HERO (index only) ───────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 60px;
  background: linear-gradient(135deg, #080f22 0%, #0b1d3a 45%, #0d2d45 100%);
  overflow: hidden;
}

/* Animated background grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,200,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,200,0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridDrift 20s linear infinite;
}

@keyframes gridDrift {
  from { background-position: 0 0; }
  to   { background-position: 48px 48px; }
}

/* Glowing blobs */
.hero::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,200,0.12) 0%, transparent 70%);
  top: -100px; right: -150px;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,107,0.10) 0%, transparent 70%);
  bottom: -100px; left: -100px;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; max-width: 860px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,212,200,0.12);
  border: 1px solid rgba(0,212,200,0.30);
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5.5vw, 62px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--teal), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Animated title cards — the signature element */
.title-cards {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
}

.tc {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 18px 24px;
  max-width: 240px;
  text-align: left;
  animation: tcFloat 4s ease-in-out infinite;
}

.tc:nth-child(2) { animation-delay: 1.3s; }
.tc:nth-child(3) { animation-delay: 2.6s; }

@keyframes tcFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.tc-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tc-label.technical  { color: var(--teal); }
.tc-label.accessible { color: var(--gold); }
.tc-label.catchy     { color: var(--coral); }

.tc p { font-size: 13px; color: rgba(255,255,255,0.80); line-height: 1.5; }

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--teal);
  color: var(--navy);
  box-shadow: 0 0 24px rgba(0,212,200,0.35);
}

.btn-primary:hover { box-shadow: 0 0 36px rgba(0,212,200,0.55); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.30);
}

.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

/* ── STATS STRIP ─────────────────────────────────────────── */
.stats-strip {
  background: var(--navy);
  padding: 32px 40px;
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(0,212,200,0.15);
}

.stat { text-align: center; }

.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ── INNER PAGE HERO ─────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #080f22 0%, #0b1d3a 100%);
  padding: 64px 40px 48px;
  text-align: center;
  border-bottom: 1px solid rgba(0,212,200,0.15);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,200,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,200,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.page-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  position: relative;
}

.page-hero h1 .accent { color: var(--teal); }

.page-hero p {
  color: rgba(255,255,255,0.60);
  margin-top: 12px;
  font-size: 16px;
  position: relative;
}

/* ── CONTENT ─────────────────────────────────────────────── */
.content {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.content h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 28px;
  letter-spacing: -0.5px;
  display: none; /* shown via page-hero */
}

.content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 4px solid var(--teal);
}

.content p {
  color: #374151;
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.8;
}

.content ul {
  margin-left: 0;
  list-style: none;
  margin-bottom: 20px;
}

.content ul li {
  padding: 12px 16px 12px 48px;
  position: relative;
  background: white;
  border-radius: 10px;
  margin-bottom: 10px;
  border: 1px solid #e5e7eb;
  font-size: 15px;
  color: #374151;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.content ul li::before {
  content: '✦';
  position: absolute;
  left: 16px;
  color: var(--teal);
  font-size: 14px;
}

/* ── STYLE LABEL PILLS ───────────────────────────────────── */
.label-pill {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pill-technical  { background: rgba(0,212,200,0.12); color: var(--teal2); border: 1px solid rgba(0,212,200,0.3); }
.pill-accessible { background: rgba(247,201,72,0.12); color: #b07d00;    border: 1px solid rgba(247,201,72,0.4); }
.pill-catchy     { background: rgba(255,107,107,0.10); color: #c0392b;   border: 1px solid rgba(255,107,107,0.3); }

/* ── STYLE CARDS (overview page) ─────────────────────────── */
.style-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.style-card {
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s;
}

.style-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.style-card.technical  { background: linear-gradient(135deg,#e8fffe,#d0faf8); border-color: rgba(0,212,200,0.3); }
.style-card.accessible { background: linear-gradient(135deg,#fffbea,#fff3c4); border-color: rgba(247,201,72,0.4); }
.style-card.catchy     { background: linear-gradient(135deg,#fff1f1,#ffdcdc); border-color: rgba(255,107,107,0.3); }

.style-card .sc-icon { font-size: 32px; margin-bottom: 12px; }
.style-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--navy);
}
.style-card p { font-size: 14px; color: #555; margin: 0; }

/* ── SUBTASK CARDS (task page) ───────────────────────────── */
.subtask-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.subtask-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid #e5e7eb;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.subtask-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}

.subtask-card.find::before  { background: linear-gradient(90deg, var(--teal), #00a99e); }
.subtask-card.fix::before   { background: linear-gradient(90deg, var(--coral), #ff9f4a); }

.subtask-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
}

.find .subtask-num { color: var(--teal); }
.fix  .subtask-num { color: var(--coral); }

.subtask-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 12px 0;
  padding: 0;
  border: none;
}

.subtask-card p { font-size: 14.5px; color: #555; margin: 0; }

/* ── EVALUATION CARDS ────────────────────────────────────── */
.eval-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.eval-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid #e5e7eb;
  box-shadow: var(--shadow);
  text-align: center;
}

.eval-card .metric {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.eval-card.st1 .metric { color: var(--teal); }
.eval-card.st2a .metric { color: var(--coral); }

.eval-card p { font-size: 14px; color: #666; }

/* ── DATES TABLE ─────────────────────────────────────────── */
.dates-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 28px;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #e5e7eb;
}

.dates-table th {
  background: var(--navy);
  color: var(--teal);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 18px 24px;
  text-align: left;
}

.dates-table td {
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
}

.dates-table tr:last-child td { border-bottom: none; }
.dates-table tr:hover td { background: #f8faff; }

.dates-table td:first-child { font-weight: 500; color: var(--navy); }
.dates-table td:last-child  {
  color: var(--teal2);
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
}

/* ── ORGANIZERS GRID ─────────────────────────────────────── */
.organizers-outer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.organizers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 8px;
}

.organizer-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 20px 24px;
  text-align: center;
  border: 1px solid #e5e7eb;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.organizer-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

.organizer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.13);
}

.organizer-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 16px;
  border: 3px solid var(--teal);
  box-shadow: 0 0 0 4px rgba(0,212,200,0.12);
}

.organizer-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.organizer-card .role {
  font-size: 13px;
  color: var(--teal2);
  font-weight: 600;
  margin-bottom: 4px;
}

.organizer-card .org {
  font-size: 12.5px;
  color: #888;
  line-height: 1.4;
}

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-box {
  background: white;
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid #e5e7eb;
  box-shadow: var(--shadow);
  margin-top: 16px;
}

.contact-box a {
  color: var(--teal2);
  font-weight: 600;
  text-decoration: none;
}

.contact-box a:hover { text-decoration: underline; }

.email-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: var(--teal);
  padding: 12px 24px;
  border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin: 16px 0 24px;
  letter-spacing: -0.3px;
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 28px 20px;
  font-size: 14px;
  border-top: 1px solid rgba(0,212,200,0.15);
}

footer span { color: var(--teal); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 0 20px; flex-direction: column; height: auto; padding: 12px 20px; }
  nav ul { gap: 2px; margin-top: 8px; justify-content: center; }
  .organizers-grid { grid-template-columns: repeat(2, 1fr); }
  .style-cards { grid-template-columns: 1fr; }
  .subtask-grid { grid-template-columns: 1fr; }
  .eval-grid { grid-template-columns: 1fr; }
  .stats-strip { gap: 32px; }
}

@media (max-width: 600px) {
  .organizers-grid { grid-template-columns: 1fr; }
  .title-cards { flex-direction: column; align-items: center; }
  .tc { max-width: 100%; }
}
