/* =========================================================
   NOVA — styles
   1. Tokens   2. Base   3. Layout   4. Components
   5. Sections   6. Responsive
   ========================================================= */

/* 1. Tokens ------------------------------------------------ */
:root {
  --ink: #140d2e;
  --muted: #6a6486;
  --line: #e6e2f3;
  --accent: #5b2de0;
  --glow: #a66bff;
  --soft: #f4f1fc;
  --night: #110a2b;
  --night-text: #b4adcf;

  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --radius: 20px;
  --section-space: clamp(64px, 10vw, 112px);
  --header-h: 68px;
}

/* 2. Base -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 17px/1.65 var(--font-body);
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; max-width: 16ch; }
h3 { font-size: 22px; }

p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* 3. Layout ------------------------------------------------ */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-space) 0; }
.section--soft { background: var(--soft); }
.section--center { text-align: center; }
.section--center h2,
.section--center .muted { margin-left: auto; margin-right: auto; }
.section--center h2 { margin-bottom: 16px; max-width: 18ch; }
.section--center .muted { max-width: 44ch; margin-bottom: 32px; }

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split h2 { margin-bottom: 20px; max-width: 14ch; }

/* 4. Components -------------------------------------------- */
.muted { color: var(--muted); }

.eyebrow {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--glow { color: var(--glow); }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 99px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn--sm { padding: 9px 20px; font-size: 14px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #4a20c4; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--accent); }
.btn--ghost { border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--outline { border-color: var(--line); color: var(--accent); white-space: nowrap; }
.btn--outline:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.icon {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--lg { width: 34px; height: 34px; stroke: var(--glow); }

/* 5. Sections ---------------------------------------------- */

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 800 19px var(--font-head);
  letter-spacing: 0.16em;
  text-decoration: none;
}
.brand img { height: 36px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--accent); }

.nav-toggle { display: none; }

/* Hero */
.hero { padding-top: 64px; text-align: center; }
.hero__logo { width: min(400px, 78vw); margin: 0 auto; }
.hero .eyebrow { margin: 28px 0 12px; }
.hero__text { max-width: 560px; margin: 0 auto 32px; color: var(--muted); font-size: 19px; }
.hero__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }

.pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 64px;
  border-top: 1px solid var(--line);
}
.pillars li {
  padding: 26px 8px;
  border-left: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.pillars li:first-child { border-left: 0; }
.pillars .icon { display: block; margin: 0 auto 10px; }

/* Dark section */
.section--dark {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: #fff;
}
.section--dark::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -140px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(130, 80, 255, 0.35), transparent 65%);
  pointer-events: none;
}
.section__intro { max-width: 46ch; margin: 16px 0 48px; color: var(--night-text); }

.cards {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.card {
  grid-column: span 2;
  min-height: 220px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s, background 0.2s;
}
.card--wide { grid-column: span 3; }
.card:hover { border-color: var(--glow); background: rgba(166, 107, 255, 0.08); }
.card .icon { margin-bottom: auto; }
.card h3 { font-size: 24px; margin: 28px 0 8px; }
.card p { color: var(--night-text); font-size: 15.5px; }

/* Events */
.events { border-top: 1px solid var(--line); }
.event {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.event__date { font: 700 38px/1 var(--font-head); color: var(--accent); }
.event__date small {
  display: block;
  margin-top: 6px;
  font: 500 12px var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.event h3 { margin-bottom: 4px; }
.event p { color: var(--muted); font-size: 15.5px; }

/* UEMF */
.location {
  padding: 34px;
  font-style: normal;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.location .eyebrow { display: block; margin-bottom: 0; }
.location h3 { margin: 12px 0 8px; font-size: 26px; }
.location p { color: var(--muted); }

/* Footer */
.site-footer { padding: 34px 0; background: var(--night); color: #a7a0c4; font-size: 14px; }
.site-footer__bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer strong { color: #fff; font-family: var(--font-head); letter-spacing: 0.16em; }

/* 6. Responsive -------------------------------------------- */
@media (max-width: 800px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform 0.2s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 10px 0; }
  .nav .btn { text-align: center; margin-top: 8px; }

  .pillars { grid-template-columns: repeat(3, 1fr); border-top: 0; }
  .pillars li { border-top: 1px solid var(--line); }
  .pillars li:nth-child(4) { border-left: 0; }

  .cards { grid-template-columns: 1fr; }
  .card, .card--wide { grid-column: auto; min-height: 0; }

  .event { grid-template-columns: 80px 1fr; }
  .event .btn { grid-column: 2; justify-self: start; }

  .split { grid-template-columns: 1fr; gap: 32px; }
}
