@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=Playfair+Display:ital,wght@1,700;1,800&display=swap');

:root {
  --navy-950: #020810;
  --navy-900: #040c1f;
  --navy-800: #071224;
  --navy-700: #0a1628;
  --navy-600: #0d1f38;
  --blue-500: #0070d1;
  --blue-400: #1a90ff;
  --blue-300: #4db0ff;
  --teal: #00c8e0;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--navy-900); }
::-webkit-scrollbar-thumb { background: var(--blue-500); border-radius: 3px; }

/* ── Page fade-in ──────────────────────────────────────── */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-wrapper { animation: pageFadeIn 0.55s var(--ease-out-expo) both; }

/* ── Keyframes ─────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,112,209,.5); }
  50%       { box-shadow: 0 0 0 16px rgba(0,112,209,0); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes dotPing {
  0%    { transform: scale(1); opacity: 1; }
  100%  { transform: scale(2.5); opacity: 0; }
}
@keyframes confettiFall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(105vh) rotate(720deg); opacity: 0; }
}
@keyframes checkDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes scaleIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* ── Scroll-reveal ─────────────────────────────────────── */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity .7s var(--ease-out-expo), transform .7s var(--ease-out-expo);
}
.reveal       { transform: translateY(36px); }
.reveal-left  { transform: translateX(-36px); }
.reveal-right { transform: translateX(36px); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1; transform: none;
}

/* ── Scroll progress ───────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 300;
  background: linear-gradient(90deg, var(--blue-500), var(--teal));
  width: 0%; transition: width .1s linear;
  border-radius: 0 2px 2px 0;
}

/* ── Navbar ────────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  transition: background .35s ease, border-color .35s ease, padding .35s ease;
}
.site-nav.scrolled {
  background: rgba(4,12,31,.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 14px 40px;
}
.site-nav.light-page {
  background: rgba(4,12,31,.97);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.nav-link {
  color: rgba(255,255,255,.55);
  font-size: .875rem; font-weight: 500;
  text-decoration: none;
  transition: color .2s ease;
  position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--blue-400);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: #fff; }

/* Mobile menu */
#mobile-menu {
  display: none; position: fixed; top: 68px; left: 0; right: 0; z-index: 190;
  background: rgba(4,12,31,.97); backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 20px 24px;
  animation: pageFadeIn .25s ease both;
}
#mobile-menu.open { display: block; }

/* ── Buttons ───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-500); color: #fff;
  padding: 13px 26px; border-radius: 8px;
  font-weight: 600; font-size: .9rem; letter-spacing: .01em;
  text-decoration: none; border: none; cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.12);
  transform: translateX(-110%) skewX(-20deg);
  transition: transform .4s ease;
}
.btn-primary:hover::before { transform: translateX(110%) skewX(-20deg); }
.btn-primary:hover {
  background: #0062b8;
  box-shadow: 0 8px 32px rgba(0,112,209,.45);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #fff;
  padding: 13px 26px; border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,.28);
  font-weight: 600; font-size: .9rem;
  text-decoration: none; cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.btn-outline:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.55);
  transform: translateY(-2px);
}

/* ── Glass card (dark bg) ──────────────────────────────── */
.glass-card {
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.glass-card:hover {
  border-color: rgba(0,112,209,.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,112,209,.15);
}

/* ── Badge ─────────────────────────────────────────────── */
.event-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,112,209,.14);
  border: 1px solid rgba(0,112,209,.32);
  color: var(--blue-300);
  font-size: .68rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue-300); flex-shrink: 0;
  position: relative;
}
.badge-dot::after {
  content: ''; position: absolute; inset: -3px;
  border-radius: 50%; background: var(--blue-300);
  animation: dotPing 1.8s ease-out infinite;
  opacity: .5;
}

/* ── Glow orbs ─────────────────────────────────────────── */
.glow-orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); pointer-events: none;
}

/* ── Hero grid bg ──────────────────────────────────────── */
.hero-grid-bg {
  background-image:
    linear-gradient(rgba(0,112,209,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,112,209,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ── Gradient text ─────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--blue-400) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Topic cards (landing) ─────────────────────────────── */
.topic-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px; padding: 28px;
  transition: all .35s var(--ease-out-expo);
  position: relative; overflow: hidden;
}
.topic-card::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue-500), var(--teal));
  transition: width .4s var(--ease-out-expo);
}
.topic-card:hover {
  background: rgba(0,112,209,.08);
  border-color: rgba(0,112,209,.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,112,209,.18);
}
.topic-card:hover::after { width: 100%; }
.topic-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(0,112,209,.18);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: background .3s ease;
}
.topic-card:hover .topic-icon { background: rgba(0,112,209,.3); }

/* ── Stat card ─────────────────────────────────────────── */
.stat-number {
  font-size: 3rem; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--blue-400), var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
}

/* ── Section label ─────────────────────────────────────── */
.section-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue-300);
  display: block; margin-bottom: 12px;
}

/* ── ───────────────────────────── AGENDA PAGE ─────────── */
.agenda-body { background: #f4f6fa; }

/* Timeline wrapper */
.timeline-wrapper {
  position: relative;
}
.timeline-track {
  position: absolute; left: 92px; top: 8px; bottom: 8px; width: 2px;
  background: #e2e8f5; border-radius: 2px; overflow: hidden;
}
.timeline-progress {
  position: absolute; top: 0; left: 0; width: 100%; height: 0%;
  background: linear-gradient(to bottom, var(--blue-500), var(--teal));
  border-radius: 2px;
  transition: height 1.8s var(--ease-out-expo);
}
.timeline-progress.animated { height: 100%; }

.timeline-item {
  display: grid;
  grid-template-columns: 80px 44px 1fr;
  gap: 0 8px;
  align-items: start;
  margin-bottom: 20px;
  position: relative;
}
.timeline-time {
  text-align: right; padding-top: 16px;
  font-size: .8rem; font-weight: 700; color: var(--blue-500);
  letter-spacing: .01em;
}
.timeline-dot-col {
  display: flex; justify-content: center; padding-top: 20px;
  position: relative; z-index: 1;
}
.t-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--blue-500);
  border: 2.5px solid #f4f6fa;
  box-shadow: 0 0 0 3px rgba(0,112,209,.2);
  flex-shrink: 0;
}
.t-dot.break-dot {
  background: #c5d0e0;
  box-shadow: 0 0 0 3px rgba(197,208,224,.2);
}
.t-dot.dinner-dot {
  background: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(10,22,40,.2);
}

/* Agenda cards — always open */
.agenda-card {
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 12px; padding: 18px 20px;
  cursor: default;
}
.agenda-card.break-card {
  background: #f9fafb;
  border: 1px dashed #d1d9e8;
  color: #8fa0b8;
}

/* Dinner block */
.dinner-block {
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-600) 100%);
  border: 1px solid rgba(0,112,209,.25);
  border-radius: 12px; padding: 22px;
  color: #fff;
}

/* ── ─────────────────────────── REGISTRATION PAGE ─────── */
.reg-body { background: #f4f6fa; }

/* Form inputs */
.form-label {
  display: block;
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em;
  color: #4a5a72; margin-bottom: 7px;
}
.form-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #d2dae8;
  border-radius: 8px;
  font-size: .9rem; font-family: 'Inter', sans-serif;
  color: #1a1f2e; background: #fff; outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  appearance: none;
}
.form-input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(0,112,209,.12);
}
.form-input.is-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}
.form-input.is-success {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16,185,129,.1);
}
select.form-input { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%234a5a72' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 42px; }
.form-error {
  font-size: .78rem; color: #ef4444;
  margin-top: 5px; display: none;
}
.form-error.visible { display: block; }

/* Event summary card */
.event-summary {
  background: linear-gradient(160deg, var(--navy-700) 0%, var(--navy-600) 100%);
  border: 1px solid rgba(0,112,209,.2);
  border-radius: 16px; padding: 30px;
  color: #fff;
  position: sticky; top: 100px;
}
.summary-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07);
}
.summary-row:last-child { border-bottom: none; padding-bottom: 0; }
.summary-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(0,112,209,.25);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Success overlay */
.success-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(4,12,31,.75); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.success-overlay.active { opacity: 1; pointer-events: all; }
.success-modal {
  background: #fff; border-radius: 20px;
  padding: 48px 40px; max-width: 440px; width: 90%;
  text-align: center;
  transform: scale(.88);
  transition: transform .45s cubic-bezier(.34,1.56,.64,1);
}
.success-overlay.active .success-modal { transform: scale(1); }

.check-circle {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), #0055a5);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 12px 40px rgba(0,112,209,.4);
}
.check-path {
  stroke-dasharray: 36; stroke-dashoffset: 36;
  animation: checkDraw .5s ease forwards .3s;
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 28px 40px;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 16px;
}
.site-footer-light {
  background: #fff;
  border-top: 1px solid #e8edf5;
  padding: 24px 40px;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 16px;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — mobile-first
   ══════════════════════════════════════════════════════════ */

/* ── Nav ── */
@media (max-width: 767px) {
  .site-nav { padding: 14px 18px; }
  .site-nav.scrolled { padding: 11px 18px; }
  #mobile-menu { top: 60px; padding: 18px 18px 22px; }
}

/* ── Footer ── */
@media (max-width: 767px) {
  .site-footer,
  .site-footer-light {
    padding: 20px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ── Glass card — remove hover lift on touch ── */
@media (hover: none) {
  .glass-card:hover { transform: none; }
  .topic-card:hover { transform: none; }
  .btn-primary:hover { transform: none; }
  .btn-outline:hover { transform: none; }
}

/* ── Topic cards — 2 col on small ── */
@media (max-width: 479px) {
  .topic-card { padding: 22px 18px; }
}

/* ── Stat numbers — smaller on mobile ── */
@media (max-width: 479px) {
  .stat-number { font-size: 2.2rem; }
}

/* ── Timeline — tablet ── */
@media (max-width: 768px) {
  .timeline-item { grid-template-columns: 60px 36px 1fr; gap: 0 6px; }
  .timeline-track { left: 70px; }
  .timeline-time { font-size: .75rem; padding-top: 14px; }
  .timeline-dot-col { padding-top: 17px; }
}

/* ── Timeline — small phones ── */
@media (max-width: 420px) {
  .timeline-item { grid-template-columns: 50px 30px 1fr; gap: 0 5px; }
  .timeline-track { left: 60px; }
  .timeline-time { font-size: .68rem; }
  .agenda-card { padding: 14px 14px; }
}

/* ── Registration: event summary — not sticky on mobile ── */
@media (max-width: 1023px) {
  .event-summary {
    position: static !important;
    top: auto !important;
  }
}

/* ── Success modal — full width on small screens ── */
@media (max-width: 480px) {
  .success-modal { padding: 36px 24px; border-radius: 16px; }
  .check-circle { width: 68px; height: 68px; }
}

/* ── Hero section tweaks ── */
@media (max-width: 640px) {
  /* Event badge wraps gracefully */
  .event-badge { font-size: .62rem; padding: 5px 11px; }
  /* CTA buttons go full-width on small screens */
  .hero-cta-group { flex-direction: column; align-items: stretch; }
  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-outline { justify-content: center; }
}
