/* =========================
   BRAND COLORS (preserved)
   ========================= */
:root {
  --purple: #5b3a8e;
  --purple-light: #7b5ab0;
  --purple-dark: #3d2560;
  --blue: #1f4e9e;
  --blue-light: #2d6fd4;
  --yellow: #ffcd00;
  --black: #1b1b1b;
  --white: #ffffff;
  --gray-50: #f8f7fa;
  --gray-100: #efedf3;
  --gray-400: #999;
  --gray-600: #555;
  --max-width: 960px;

  /* Section accent colors */
  --activity-accent: #e8903a;
  --demo-accent: #1f4e9e;
  --datasets-accent: #2a8a5e;
  --slides-accent: #5b3a8e;
}

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

body {
  background: var(--white);
  color: var(--black);
  font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* subtle grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* =========================
   HEADER
   ========================= */
.header {
  position: relative;
  padding: 64px 0 0;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -60px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(91,58,142,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.header::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -30px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(31,78,158,0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* =========================
   TITLE
   ========================= */
.page-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--purple);
  margin-bottom: 6px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

.subtitle {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: clamp(15px, 2.2vw, 18px);
  font-weight: 600;
  color: var(--blue);
  margin-top: 6px;
  letter-spacing: -0.2px;
}

/* =========================
   PRESENTER STRIP
   ========================= */
.presenter-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.08s forwards;
}

.presenter-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-right: 4px;
}

.presenter-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-600);
}

.presenter-dot {
  width: 4px;
  height: 4px;
  background: var(--yellow);
  border-radius: 50%;
  flex-shrink: 0;
}

/* =========================
   DIVIDER
   ========================= */
.blue-rule {
  height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--purple-light), transparent);
  margin: 28px 0;
  opacity: 0.3;
}

/* =========================
   LOGOS
   ========================= */
.logo-row {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  padding: 8px 0 4px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.15s forwards;
}

a.logo-item {
  text-decoration: none;
}

a.logo-item:hover {
  text-decoration: none;
}

.logo-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  transition: all 0.25s ease;
}

.logo-item:hover {
  background: var(--white);
  border-color: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(31,78,158,0.08);
}

.logo-item img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

/* =========================
   WELCOME
   ========================= */
.welcome {
  padding: 32px 0 8px;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.25s forwards;
}

.welcome-text {
  font-size: 17px;
  color: #444;
  max-width: 680px;
  line-height: 1.75;
  margin-bottom: 12px;
}

.welcome-text strong {
  font-size: 20px;
  color: var(--purple);
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
}

.welcome-sub {
  font-size: 15.5px;
  color: var(--gray-600);
  max-width: 600px;
  line-height: 1.6;
}

/* =========================
   SECTION GRID — 3 columns
   ========================= */
.section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}

/* =========================
   SECTION BLOCKS
   ========================= */
.block {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
}

/* Staggered animation for grid blocks */
.block--activity  { animation-delay: 0.35s; }
.block--demo      { animation-delay: 0.45s; }
.block--datasets  { animation-delay: 0.55s; }
.block--slides    { animation-delay: 0.65s; }
.block--contact   { animation-delay: 0.75s; }

/* Colored top bar per section */
.block--activity::before  { background: var(--activity-accent); }
.block--demo::before      { background: var(--demo-accent); }
.block--datasets::before  { background: var(--datasets-accent); }
.block--slides::before    { background: var(--slides-accent); }
.block--contact::before   { background: linear-gradient(90deg, var(--purple), var(--blue)); }

.block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 16px 16px 0 0;
}

.block:hover {
  border-color: transparent;
  box-shadow: 0 8px 32px rgba(91,58,142,0.10), 0 1px 6px rgba(0,0,0,0.03);
  transform: translateY(-3px);
}

/* Contact block spans full width */
.block--contact {
  margin-top: 0;
}

/* =========================
   BLOCK ICON
   ========================= */
.block-icon {
  font-size: 28px;
  margin-bottom: 10px;
  line-height: 1;
}

/* =========================
   BLOCK HEADINGS
   ========================= */
.block h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--purple);
  margin-bottom: 10px;
}

.block--activity h2  { color: var(--activity-accent); }
.block--demo h2      { color: var(--demo-accent); }
.block--datasets h2  { color: var(--datasets-accent); }
.block--slides h2    { color: var(--slides-accent); }
.block--contact h2   { color: var(--purple); }

.desc {
  color: var(--gray-600);
  font-size: 15px;
  margin-bottom: 18px;
  line-height: 1.65;
}

/* =========================
   BLOCK NOTE (small helper text)
   ========================= */
.block-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--gray-400);
  font-style: italic;
  line-height: 1.5;
}

/* =========================
   BUTTONS
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--black);
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 800;
  font-size: 14.5px;
  padding: 10px 22px;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(255,205,0,0.2);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,205,0,0.3);
  text-decoration: none;
}

.btn::after {
  content: '\2192';
  transition: transform 0.2s ease;
}

.btn:hover::after {
  transform: translateX(3px);
}

/* Button group for multiple buttons */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn--sm {
  font-size: 13.5px;
  padding: 8px 16px;
}

/* Demo button gets a special blue style to stand out */
.btn--demo {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(31,78,158,0.2);
}

.btn--demo:hover {
  background: var(--blue-light);
  box-shadow: 0 6px 20px rgba(31,78,158,0.3);
}

/* =========================
   HELP NOTE
   ========================= */
.help-note {
  font-size: 16px;
  color: var(--purple-light);
  font-style: italic;
  padding: 4px 0 8px;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.7s forwards;
}

/* =========================
   CONTACT CARDS
   ========================= */
.contact-card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.contact-card {
  padding: 16px 18px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  transition: all 0.25s ease;
}

.contact-card:hover {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 3px 10px rgba(31,78,158,0.06);
}

.contact-name {
  font-weight: 700;
  font-size: 15.5px;
  color: var(--black);
  margin-bottom: 4px;
}

.contact-card a {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  word-break: break-all;
}

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

.contact-card .linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--purple) !important;
  word-break: normal;
}

.contact-card .linkedin-link:hover {
  color: var(--purple-dark) !important;
}

.linkedin-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* =========================
   LINKS
   ========================= */
a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========================
   FOOTER
   ========================= */
.footer {
  margin-top: 48px;
  padding: 24px 0;
  border-top: 1px solid var(--gray-100);
  color: var(--gray-400);
  font-size: 14px;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.8s forwards;
}

.footer strong {
  color: var(--gray-600);
}

/* =========================
   ANIMATIONS
   ========================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 768px) {
  .section-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .header { padding: 40px 0 0; }
  .logo-row { gap: 12px; }
  .block { padding: 22px; }
  .contact-card-row { grid-template-columns: 1fr; }
  .presenter-strip { gap: 6px 10px; }
}
