/* ==========================================================================
   Champ Olympiads — Stylesheet
   ========================================================================== */

/* --- Design Tokens ------------------------------------------------------- */
:root {
  --primary: #1e40af;
  --primary-dark: #1e3a8a;
  --primary-light: #3b82f6;
  --accent: #0ea5e9;
  --accent-light: #38bdf8;
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --silver: #94a3b8;
  --bronze: #d97706;
  --rose: #f43f5e;
  --emerald: #10b981;

  --bg: #f8fafc;
  --bg-alt: #ffffff;
  --bg-section: #f1f5f9;
  --bg-dark: #0f172a;

  --text: #0f172a;
  --text-muted: #475569;
  --text-soft: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.14);
  --shadow-glow: 0 12px 40px rgba(14, 165, 233, 0.25);

  --gradient-primary: linear-gradient(135deg, #1e40af 0%, #0ea5e9 100%);
  --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #f43f5e 100%);
  --gradient-cool: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --container: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p {
  color: var(--text-muted);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  z-index: 1000;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; color: #fff; }

/* --- Layout helpers ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(64px, 9vw, 110px) 0;
}

.section--alt {
  background: var(--bg-section);
}

.section-header {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-header .eyebrow {
  display: inline-block;
  background: rgba(14, 165, 233, 0.12);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-header h2 {
  margin-bottom: 14px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-soft);
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
  letter-spacing: 0.01em;
}

.btn--primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(14, 165, 233, 0.4);
  color: #fff;
}

.btn--secondary {
  background: var(--bg-alt);
  color: var(--primary);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* --- Navigation --------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 24px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.nav__logo {
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.nav__logo img {
  height: 100%;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

.nav__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
}

.nav__subtitle {
  font-size: 0.72rem;
  color: var(--text-soft);
  letter-spacing: 0.05em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav__link {
  display: inline-block;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-radius: 8px;
  transition: all var(--transition);
  position: relative;
}

.nav__link:hover {
  color: var(--primary);
  background: rgba(30, 64, 175, 0.06);
}

.nav__link.active {
  color: var(--primary);
}
.nav__link.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 3px;
  border-radius: 3px;
  background: var(--gradient-primary);
}

.nav__cta {
  margin-left: 8px;
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-section);
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.nav__toggle svg { width: 24px; height: 24px; }

@media (max-width: 880px) {
  .nav__links,
  .nav__cta {
    display: none;
  }
  .nav__toggle { display: inline-flex; }
  .nav.open .nav__links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav.open .nav__cta {
    display: flex;
    margin: 12px 24px 24px;
    position: absolute;
    top: calc(100% + 240px);
  }
  .nav.open .nav__link {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  .nav.open .nav__link.active::after { display: none; }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(560px, 86vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 80px 0 100px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.05);
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 64, 175, 0.78) 50%, rgba(14, 165, 233, 0.62) 100%);
}

.hero__content {
  max-width: 760px;
  color: #fff;
  position: relative;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.hero__badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70%  { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.hero h1 {
  color: #fff;
  margin-bottom: 16px;
}
.hero h1 .accent {
  background: linear-gradient(90deg, #fbbf24, #f59e0b 60%, #f43f5e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 32px;
  max-width: 620px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 48px;
  color: rgba(255, 255, 255, 0.92);
}
.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero__meta-item .label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
}
.hero__meta-item .value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

/* Page hero (sub-pages) */
.page-hero {
  position: relative;
  padding: clamp(96px, 14vw, 160px) 0 clamp(64px, 9vw, 110px);
  background: var(--gradient-primary);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 400px at 100% 0%, rgba(255,255,255,0.18), transparent 70%),
    radial-gradient(700px 300px at 0% 100%, rgba(245, 158, 11, 0.2), transparent 60%);
  z-index: -1;
}
.page-hero__inner {
  max-width: 800px;
}
.page-hero h1 {
  color: #fff;
  margin-bottom: 14px;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  max-width: 640px;
}
.page-hero .eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
}

/* --- Stat / highlight strip --------------------------------------------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  margin-top: -60px;
  position: relative;
  z-index: 5;
  border: 1px solid var(--border);
}
.stat-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 16px;
}
.stat-card .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-card .label {
  font-size: 0.85rem;
  color: var(--text-soft);
  font-weight: 600;
}

/* --- Cards / grids ------------------------------------------------------ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: -1;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent);
  margin-bottom: 18px;
  transition: all var(--transition);
}
.feature-card:hover .feature-card__icon {
  background: var(--gradient-primary);
  color: #fff;
  transform: scale(1.06);
}
.feature-card__icon svg { width: 26px; height: 26px; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--text-soft); }

/* --- Theme spotlight ---------------------------------------------------- */
.theme-spotlight {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 880px) { .theme-spotlight { grid-template-columns: 1fr; } }

.theme-spotlight__media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16/10;
  box-shadow: var(--shadow-lg);
  background: var(--bg-section);
}
.theme-spotlight__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.theme-spotlight:hover .theme-spotlight__media img { transform: scale(1.04); }
.theme-spotlight__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,64,175,0.0) 50%, rgba(14,165,233,0.18) 100%);
}

.theme-spotlight__chip {
  position: absolute;
  top: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.theme-spotlight__content .eyebrow {
  display: inline-block;
  background: rgba(245, 158, 11, 0.12);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.theme-spotlight__content h2 { margin-bottom: 16px; }
.theme-spotlight__content p { font-size: 1.05rem; margin-bottom: 24px; }
.theme-spotlight__list {
  list-style: none;
  display: grid;
  gap: 10px;
}
.theme-spotlight__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.97rem;
  color: var(--text-muted);
}
.theme-spotlight__list svg {
  width: 22px; height: 22px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Timeline ----------------------------------------------------------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
@media (max-width: 880px) { .timeline { grid-template-columns: 1fr; } }
.timeline::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 8%;
  right: 8%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--gold));
  border-radius: 4px;
  opacity: 0.5;
}
@media (max-width: 880px) { .timeline::before { display: none; } }

.timeline__item {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  border: 1px solid var(--border);
  position: relative;
  text-align: center;
  transition: all var(--transition);
}
.timeline__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.timeline__dot {
  width: 56px; height: 56px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  background: var(--gradient-primary);
  box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.15);
}
.timeline__item--final .timeline__dot {
  background: var(--gradient-warm);
  box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.18);
}
.timeline__label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 700;
  margin-bottom: 4px;
}
.timeline__date {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 6px;
}
.timeline__desc {
  font-size: 0.92rem;
  color: var(--text-soft);
}

/* --- Info list (eligibility / requirements) ---------------------------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.info-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.info-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.info-card__num {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.info-card__body h4 { margin-bottom: 6px; }
.info-card__body p { color: var(--text-soft); font-size: 0.95rem; }

.bullet-list {
  list-style: none;
  display: grid;
  gap: 14px;
}
.bullet-list li {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 18px 22px;
  border-radius: var(--radius);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all var(--transition);
}
.bullet-list li:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}
.bullet-list svg {
  flex-shrink: 0;
  width: 22px; height: 22px;
  color: var(--accent);
  margin-top: 2px;
}
.bullet-list li > span { color: var(--text-muted); }

/* --- Criteria with weights --------------------------------------------- */
.criteria-list {
  display: grid;
  gap: 16px;
}
.criteria-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  transition: all var(--transition);
}
.criteria-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.criteria-item__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.criteria-item__head h4 { font-size: 1.1rem; }
.criteria-item__weight-pill {
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.criteria-item p {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin: 0;
}
.criteria-item__bar {
  width: 110px;
  text-align: right;
}
.criteria-item__bar-track {
  width: 110px;
  height: 8px;
  background: var(--bg-section);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 6px;
}
.criteria-item__bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 99px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.criteria-item__bar-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary);
}
@media (max-width: 600px) {
  .criteria-item { grid-template-columns: 1fr; }
  .criteria-item__bar { width: 100%; text-align: left; }
  .criteria-item__bar-track { width: 100%; }
}

/* --- Awards ------------------------------------------------------------- */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 760px) { .awards-grid { grid-template-columns: 1fr; } }
.award {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.award::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--accent);
}
.award--gold::before   { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.award--silver::before { background: linear-gradient(90deg, #cbd5e1, #94a3b8); }
.award--bronze::before { background: linear-gradient(90deg, #fdba74, #d97706); }
.award:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.award__place {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 4px;
}
.award--gold   .award__place { color: #d97706; }
.award--silver .award__place { color: #64748b; }
.award--bronze .award__place { color: #92400e; }
.award__prize { font-weight: 700; color: var(--text); margin-bottom: 6px; }
.award__perk  { font-size: 0.9rem; color: var(--text-soft); }

/* --- Winners ------------------------------------------------------------ */
.winners-podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 22px;
  align-items: end;
  margin-top: 40px;
}
@media (max-width: 880px) {
  .winners-podium {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}
.winner-card {
  background: var(--bg-alt);
  border-radius: var(--radius-xl);
  padding: 36px 28px 32px;
  text-align: center;
  border: 1px solid var(--border);
  position: relative;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.winner-card--first  { border-top: 6px solid var(--gold); transform: translateY(-12px); }
.winner-card--second { border-top: 6px solid var(--silver); }
.winner-card--third  { border-top: 6px solid var(--bronze); }
@media (max-width: 880px) { .winner-card--first { transform: none; } }

.winner-card:hover {
  transform: translateY(-18px);
  box-shadow: var(--shadow-lg);
}
.winner-card--first:hover { transform: translateY(-22px); }

.winner-medal {
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.15));
}
.winner-place {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.winner-card--first  .winner-place { background: linear-gradient(90deg, #d97706, #fbbf24); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.winner-card--second .winner-place { background: linear-gradient(90deg, #475569, #94a3b8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.winner-card--third  .winner-place { background: linear-gradient(90deg, #92400e, #d97706); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.winner-name { font-size: 1.4rem; }
.winner-program {
  font-size: 0.85rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.winner-project {
  font-weight: 600;
  color: var(--text);
  font-size: 1.05rem;
  padding: 12px 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  margin: 4px 0;
}
.winner-desc {
  font-size: 0.92rem;
  color: var(--text-soft);
  flex: 1;
}
.winner-link {
  margin-top: 8px;
}

.winners-empty {
  text-align: center;
  padding: 56px 24px;
  background: var(--bg-alt);
  border: 2px dashed var(--border);
  border-radius: var(--radius-xl);
}
.winners-empty__icon {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  animation: float 3s ease-in-out infinite;
}
.winners-empty__icon svg { width: 36px; height: 36px; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.winners-empty h3 { margin-bottom: 8px; }
.winners-empty p { max-width: 480px; margin: 0 auto; }

/* --- About / professor -------------------------------------------------- */
.profile {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 880px) { .profile { grid-template-columns: 1fr; gap: 32px; } }

.profile__photo-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 1/1;
  box-shadow: var(--shadow-lg);
  background: var(--gradient-primary);
}
.profile__photo-wrap::before {
  content: "";
  position: absolute;
  inset: -10px;
  background: var(--gradient-primary);
  filter: blur(40px);
  opacity: 0.35;
  z-index: -1;
  border-radius: var(--radius-xl);
}
.profile__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile__content h2 { margin-bottom: 6px; }
.profile__title {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 24px;
  font-size: 1.05rem;
}
.profile__paragraph { margin-bottom: 16px; line-height: 1.75; }

.profile__contact {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  transition: all var(--transition);
  text-decoration: none;
}
.contact-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.contact-pill svg { width: 18px; height: 18px; }

/* --- CTA section -------------------------------------------------------- */
.cta-banner {
  background: var(--gradient-primary);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 64px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 400px at 100% 0%, rgba(255,255,255,0.18), transparent 70%),
    radial-gradient(700px 300px at 0% 100%, rgba(245, 158, 11, 0.25), transparent 60%);
  z-index: -1;
}
.cta-banner h2 {
  color: #fff;
  margin-bottom: 12px;
}
.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin: 0 auto 32px;
}
.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* --- Footer ------------------------------------------------------------- */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 28px;
  margin-top: 0;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr; } }

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer__logo {
  height: 48px;
  display: flex;
  align-items: center;
  background: #fff;
  padding: 4px 8px;
  border-radius: 8px;
}
.footer__logo img {
  height: 100%;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}
.footer__title {
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}
.footer__about { color: rgba(255, 255, 255, 0.65); max-width: 380px; font-size: 0.95rem; }
.footer h5 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}
.footer a:hover { color: var(--accent-light); }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* --- Reveal animations -------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --- Tiny utilities ----------------------------------------------------- */
.muted { color: var(--text-soft); }
.center { text-align: center; }
.flex { display: flex; }
.gap-2 { gap: 8px; }
.mt-0 { margin-top: 0; }
