/* ───── VARIABLES ───── */
:root {
  --cream: #F2F6FC;
  --warm-white: #FFFFFF;
  --sand: #E5ECF6;
  --clay: #CAD7E8;
  --stone: #7C8AA0;
  --forest: #1E3A5F;
  --forest-light: #2C5A8F;
  --terracotta: #2563EB;
  --terracotta-soft: #9DC1ED;
  --ink: #1B2638;
  --ink-light: #45526A;
  --ink-muted: #76849B;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Outfit', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--forest); color: var(--cream); }

/* ───── NAV ───── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(242, 246, 252, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--sand);
  transition: transform 0.4s var(--ease-out);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
}
.nav-logo {
  font-family: var(--serif); font-size: 1.15rem; color: var(--forest);
  text-decoration: none; letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--ink-light); font-size: 0.85rem;
  font-weight: 500; letter-spacing: 0.04em; text-transform: none;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--forest); }
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 20px; position: relative;
}
.hamburger span {
  display: block; width: 100%; height: 2px; background: var(--ink);
  position: absolute; left: 0; transition: all 0.3s var(--ease-out);
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

/* ───── HERO ───── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 8rem 2rem 6rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -20%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: -10%; left: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(30, 58, 95, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 380px; gap: 4rem;
  align-items: center;
}
.hero-text { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: none; color: var(--terracotta);
  margin-bottom: 2rem;
  opacity: 0; animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}
.hero-badge::before {
  content: ''; width: 32px; height: 2px; background: var(--terracotta);
}
.hero h1 {
  font-family: var(--serif); font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  line-height: 1.12; letter-spacing: -0.02em; color: var(--ink);
  margin-bottom: 1.5rem; font-weight: 700;
  opacity: 0; animation: fadeUp 0.8s var(--ease-out) 0.35s forwards;
}
.hero h1 em {
  font-style: italic; color: var(--terracotta); font-weight: 600;
}
.hero-sub {
  font-size: 1.15rem; color: var(--ink-light); max-width: 520px;
  line-height: 1.75; font-weight: 300;
  opacity: 0; animation: fadeUp 0.8s var(--ease-out) 0.5s forwards;
}
.hero-cta {
  display: flex; gap: 1rem; margin-top: 2.5rem;
  opacity: 0; animation: fadeUp 0.8s var(--ease-out) 0.65s forwards;
}

/* ───── BUTTONS ───── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 2rem; font-family: var(--sans);
  font-size: 0.88rem; font-weight: 500; letter-spacing: 0.03em;
  border-radius: 6px; text-decoration: none;
  transition: all 0.3s var(--ease-out); cursor: pointer; border: none;
}
.btn-primary {
  background: var(--forest); color: var(--cream);
}
.btn-primary:hover { background: var(--forest-light); transform: translateY(-2px); }
.btn-register {
  background: var(--terracotta); color: var(--cream);
}
.btn-register:hover { background: #1D4ED8; transform: translateY(-2px); }
.btn-secondary {
  background: transparent; color: var(--forest);
  border: 1.5px solid var(--forest);
}
.btn-secondary:hover { background: var(--forest); color: var(--cream); }

/* ───── HERO CARD ───── */
.hero-card {
  background: var(--warm-white);
  border: 1px solid var(--sand);
  border-radius: 12px; padding: 2.5rem 2rem;
  position: relative; z-index: 1;
  opacity: 0; animation: fadeUp 0.8s var(--ease-out) 0.5s forwards;
}
.hero-card-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: none; color: var(--stone); margin-bottom: 1.5rem;
}
.hero-detail {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 0.8rem 0; border-top: 1px solid var(--sand);
}
.hero-detail:first-of-type { border-top: none; }
.hero-detail-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--sand); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; color: var(--forest);
}
.hero-detail-text h4 {
  font-size: 0.82rem; font-weight: 600; color: var(--ink);
  margin-bottom: 0.1rem;
}
.hero-detail-text p {
  font-size: 0.82rem; color: var(--ink-muted); font-weight: 300;
}

/* ───── SECTIONS (shared) ───── */
section { padding: 6rem 2rem; }
.section-inner { max-width: 1000px; margin: 0 auto; }
.section-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: none; color: var(--terracotta); margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.2; letter-spacing: -0.01em; color: var(--ink);
  margin-bottom: 1.5rem; font-weight: 700;
}
.section-desc {
  font-size: 1.05rem; color: var(--ink-light); max-width: 680px;
  line-height: 1.8; font-weight: 300;
}

/* ───── ABOUT ───── */
#about { background: var(--warm-white); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  margin-top: 3rem;
}
.about-block {
  background: var(--cream); border-radius: 10px;
  padding: 2rem; border: 1px solid var(--sand);
  transition: transform 0.3s var(--ease-out);
}
.about-block:hover { transform: translateY(-4px); }
.about-block h3 {
  font-family: var(--serif); font-size: 1.2rem; margin-bottom: 0.6rem;
  color: var(--forest); font-weight: 600;
}
.about-block p {
  font-size: 0.92rem; color: var(--ink-light); line-height: 1.75;
}

/* ───── PROGRAMME ───── */
#programme { background: var(--cream); }
.timeline { margin-top: 3rem; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 23px; top: 0; bottom: 0;
  width: 2px; background: var(--sand);
}
.tl-item {
  display: flex; gap: 2rem; margin-bottom: 2.5rem;
  position: relative;
}
.tl-dot {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--warm-white); border: 2px solid var(--forest);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-family: var(--mono); font-size: 0.72rem;
  color: var(--forest); font-weight: 700; z-index: 1;
}
.tl-content {
  background: var(--warm-white); border: 1px solid var(--sand);
  border-radius: 10px; padding: 1.8rem 2rem; flex: 1;
  transition: transform 0.3s var(--ease-out);
}
.tl-content:hover { transform: translateX(4px); }
.tl-content h3 {
  font-family: var(--serif); font-size: 1.15rem; color: var(--ink);
  margin-bottom: 0.2rem;
}
.tl-duration {
  font-size: 0.78rem; color: var(--terracotta); font-weight: 500;
  margin-bottom: 0.6rem;
}
.tl-content p {
  font-size: 0.9rem; color: var(--ink-light); line-height: 1.75;
}

/* ───── GOALS ───── */
#goals { background: var(--forest); color: var(--cream); }
#goals .section-label { color: var(--terracotta-soft); }
#goals .section-title { color: var(--cream); }
#goals .section-desc { color: rgba(242, 246, 252, 0.7); }
.goals-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-top: 3rem;
}
.goal-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 2rem;
  transition: all 0.3s var(--ease-out);
}
.goal-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}
.goal-num {
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--terracotta-soft); margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
.goal-card h3 {
  font-family: var(--serif); font-size: 1.1rem; color: var(--cream);
  margin-bottom: 0.6rem; line-height: 1.3;
}
.goal-card p {
  font-size: 0.85rem; color: rgba(242, 246, 252, 0.65); line-height: 1.7;
}

/* ───── AUDIENCE ───── */
#audience { background: var(--warm-white); }
.audience-list {
  margin-top: 2.5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
}
.audience-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.5rem; background: var(--cream);
  border: 1px solid var(--sand); border-radius: 10px;
  transition: transform 0.3s var(--ease-out);
}
.audience-item:hover { transform: translateY(-3px); }
.audience-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--forest); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.audience-item h4 {
  font-size: 0.95rem; font-weight: 600; color: var(--ink);
  margin-bottom: 0.2rem;
}
.audience-item p {
  font-size: 0.85rem; color: var(--ink-muted); line-height: 1.65;
}

/* ───── SUBMIT / PARTICIPATE ───── */
#submit { background: var(--sand); }
#submit .section-desc em { font-style: italic; color: var(--terracotta); font-weight: 400; }
.submit-grid {
  display: grid; grid-template-columns: 1fr 340px; gap: 3rem;
  margin-top: 3rem; align-items: start;
}
.submit-specs {
  display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.25rem;
}
.submit-spec {
  flex: 1; min-width: 140px;
  background: var(--warm-white); border: 1px solid var(--clay);
  border-radius: 10px; padding: 1.1rem 1.3rem;
}
.submit-spec-k {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: none; color: var(--stone); margin-bottom: 0.3rem;
}
.submit-spec-v {
  font-family: var(--serif); font-size: 1.05rem; color: var(--ink); font-weight: 600;
}
.submit-spec-v a { color: var(--terracotta); text-decoration: none; font-weight: 600; }
.submit-spec-v a:hover { text-decoration: underline; }
.submit-h3 {
  font-family: var(--serif); font-size: 1.2rem; color: var(--forest);
  font-weight: 600; margin-bottom: 1.25rem;
}
.submit-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.submit-list li {
  background: var(--warm-white); border: 1px solid var(--sand);
  border-left: 3px solid var(--forest); border-radius: 0 10px 10px 0;
  padding: 1.1rem 1.4rem; font-size: 0.92rem; color: var(--ink-light);
  line-height: 1.7;
}
.submit-list-tag {
  display: block; font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: none;
  color: var(--terracotta); margin-bottom: 0.3rem;
}
.submit-card {
  background: var(--forest); color: var(--cream);
  border-radius: 12px; padding: 2.25rem 2rem;
  position: sticky; top: 6rem;
}
.submit-card-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: none; color: var(--terracotta-soft); margin-bottom: 1.25rem;
}
.submit-deadline {
  padding-bottom: 1.25rem; margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.submit-deadline-date {
  font-family: var(--serif); font-size: 2rem; font-weight: 700;
  color: var(--cream); line-height: 1.1;
}
.submit-deadline-note {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em;
  text-transform: none; color: var(--terracotta-soft); margin-top: 0.3rem;
}
.submit-card-note {
  font-size: 0.88rem; color: rgba(242, 246, 252, 0.75);
  line-height: 1.7; font-weight: 300; margin-bottom: 1.5rem;
}
.submit-btn { width: 100%; justify-content: center; }
.submit-card-fine {
  font-size: 0.76rem; color: rgba(242, 246, 252, 0.5);
  line-height: 1.6; margin-top: 1rem; text-align: center;
}

/* ───── DATES ───── */
#dates { background: var(--cream); }
.dates-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
  margin-top: 3rem;
}
.date-card {
  padding: 1.8rem; border-left: 3px solid var(--terracotta);
  background: var(--warm-white); border-radius: 0 10px 10px 0;
}
.date-card-date {
  font-family: var(--mono); font-size: 0.78rem;
  color: var(--terracotta); margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}
.date-card h4 {
  font-size: 0.95rem; font-weight: 600; color: var(--ink);
  margin-bottom: 0.3rem;
}
.date-card p {
  font-size: 0.85rem; color: var(--ink-muted); line-height: 1.65;
}

/* ───── PARTNERS ───── */
#partners { background: var(--warm-white); }
.partners-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  margin-top: 3rem;
}
.partner-card {
  text-align: center; padding: 2rem 1.5rem;
  background: var(--cream); border: 1px solid var(--sand);
  border-radius: 10px;
  transition: transform 0.3s var(--ease-out);
}
.partner-card:hover { transform: translateY(-4px); }
.partner-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--forest); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; font-family: var(--serif); font-size: 1.1rem;
}
.partner-card h4 {
  font-size: 0.9rem; font-weight: 600; color: var(--ink);
  margin-bottom: 0.15rem;
}
.partner-card p {
  font-size: 0.78rem; color: var(--ink-muted);
}
.partner-card .partner-country {
  font-size: 0.72rem; color: var(--stone); font-weight: 500;
  letter-spacing: 0.05em; text-transform: none; margin-top: 0.3rem;
}

/* ───── CTA ───── */
.cta-section {
  background: var(--ink); color: var(--cream); padding: 5rem 2rem;
  text-align: center;
}
.cta-section .section-title { color: var(--cream); margin-bottom: 0.8rem; }
.cta-section p {
  color: rgba(242, 246, 252, 0.65); font-size: 1.05rem; max-width: 560px;
  margin: 0 auto 2rem; font-weight: 300; line-height: 1.75;
}
.cta-buttons {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}
.btn-cta-secondary {
  font-size: 1rem; padding: 1rem 2.5rem;
  border-color: rgba(242, 246, 252, 0.4); color: var(--cream);
}

/* ───── FOOTER ───── */
footer {
  background: var(--ink); color: var(--stone); padding: 2.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}
footer a { color: var(--terracotta-soft); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer p { font-size: 0.8rem; }

/* ───── ANIMATIONS ───── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ───── RESPONSIVE ───── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { margin-top: 2rem; }
  .about-grid, .audience-list, .dates-grid { grid-template-columns: 1fr; }
  .submit-grid { grid-template-columns: 1fr; gap: 2rem; }
  .submit-card { position: static; }
  .goals-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  nav.menu-open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(242, 246, 252, 0.97); backdrop-filter: blur(16px);
    padding: 1.5rem 2rem; gap: 1rem;
    border-bottom: 1px solid var(--sand);
  }
  .hero { padding-top: 7rem; min-height: auto; }
  section { padding: 4rem 1.5rem; }
}
@media (max-width: 600px) {
  .partners-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

/* ───── MULTI-PAGE ───── */
.nav-links a.active { color: var(--forest); font-weight: 600; }
body.subpage section:first-of-type { padding-top: 8rem; }
.hero-detail-icon, .hero-detail-text h4 { transition: all 0.3s var(--ease-out); }
a.hero-detail { text-decoration: none; color: inherit; cursor: pointer; }
a.hero-detail:hover .hero-detail-text h4 { color: var(--terracotta); }
a.hero-detail:hover .hero-detail-icon { background: var(--terracotta); color: #fff; }
@media (max-width: 900px) {
  body.subpage section:first-of-type { padding-top: 6.5rem; }
}
