:root {
  --brand-blue: #2a9d8f;
  --brand-cyan: #81f3fd;
  --brand-purple: #6b3fa0;
  --brand-teal: #1aa8a8;
  --brand-orange: #e87d1e;
  --hero-teal: #7dd3d3;
  --brand-dark: #292e35;
  --brand-darker: #1e2228;
  --text: #545454;
  --text-heading: #292e35;
  --bg-light: #f5f7fa;
  --white: #ffffff;
  --max-width: 1200px;
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  line-height: 1.25;
  margin: 0 0 0.75em;
}

a { color: var(--brand-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(41, 46, 53, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.logo img { height: 44px; width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

.main-nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  text-decoration: none;
  border-bottom-color: var(--brand-cyan);
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--brand-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 400px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .main-nav ul { flex-direction: column; gap: 0; padding: 1rem; }
  .main-nav a { display: block; padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
}

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(29,119,239,0.88), rgba(129,243,253,0.75));
}

.hero-inner {
  position: relative;
  z-index: 1;
  color: var(--white);
  text-align: center;
  padding: 4rem 1rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.hero .subhead {
  font-size: clamp(1rem, 2vw, 1.5rem);
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

.hero .meta,
.hero .pre-title {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.hero-poster {
  position: relative;
  min-height: auto;
  padding: 0;
  overflow: hidden;
  background: var(--hero-bg) center/cover no-repeat;
}

.hero-poster::before,
.hero-poster::after { display: none; }

.hero-poster .hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem 2.5rem;
}

.hero-poster-overlay {
  display: block;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 1.5rem;
}

.hero-poster-overlay img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-poster .hero-actions { margin: 0; }

.hero-poster .btn-primary {
  background: var(--white);
  color: var(--brand-teal);
}

.hero-poster .btn-light {
  background: rgba(0,0,0,0.25);
  border-color: rgba(255,255,255,0.35);
}

@media (max-width: 700px) {
  .hero-poster-overlay {
    max-width: 100%;
    margin-bottom: 1rem;
  }
  .hero-poster .hero-content { padding: 1rem 1rem 2rem; }
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

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

.btn-primary {
  background: var(--white);
  color: var(--brand-blue);
}

.btn-light {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}

.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  padding: 5rem 1rem 4rem;
  color: var(--white);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: var(--white);
  margin-bottom: 0.25rem;
}

.page-hero .subhead {
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.9;
}

.section {
  padding: 4rem 1rem;
}

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

.section-dark {
  background: var(--brand-dark);
  color: rgba(255,255,255,0.85);
}

.section-dark h2 { color: var(--white); }

.section-title {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

.section-title h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0.5rem;
}

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

.stats {
  position: relative;
  background: var(--brand-dark);
  color: var(--white);
  padding: 5rem 1rem;
  text-align: center;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(29, 119, 239, 0.12);
}

.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-item .number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item .label {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr; }
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.countdown-item {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 1rem;
}

.countdown-item .value {
  font-size: 2rem;
  font-weight: 800;
  display: block;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.countdown-item .unit {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .intro-grid { grid-template-columns: 1fr; }
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  text-align: center;
  transition: transform 0.2s;
}

.feature-card:hover { transform: translateY(-4px); }

.feature-card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.feature-card .icon svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 768px) {
  .feature-cards { grid-template-columns: 1fr; }
}

.speaker-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1100px) {
  .speaker-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .speaker-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

.speaker-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--brand-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.speaker-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.14);
}

.speaker-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.speaker-card:hover img { transform: scale(1.04); }

.speaker-card figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: var(--white);
}

.speaker-card h3 {
  font-size: 0.95rem;
  color: var(--white);
  margin: 0;
  line-height: 1.3;
}

.speaker-card p {
  font-size: 0.8rem;
  margin: 0.35rem 0 0;
  opacity: 0.9;
  line-height: 1.4;
}

.sponsor-tiers {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.sponsor-tier h3 {
  text-align: center;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.sponsor-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.sponsor-row img {
  max-height: 72px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  transition: transform 0.2s, filter 0.2s, opacity 0.2s;
}

.sponsor-row a:hover img {
  transform: scale(1.05);
}

.section-sponsors {
  background: var(--white);
}

.section-sponsors .sponsor-tier h3 {
  color: var(--text-heading);
}

.sponsor-row img[src*="unifed-white.png"],
.sponsor-row img[src*="galaxy-white.png"] {
  filter: invert(1);
}

.sponsor-row img[src*="unifed-white.png"]:hover,
.sponsor-row img[src*="galaxy-white.png"]:hover {
  filter: invert(0);
}

.info-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.info-box {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s, background 0.2s;
}

.info-box:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.1);
}

.info-box h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.section-title.light h2,
.section-title.light p { color: var(--white); }
.section-title.light p { opacity: 0.85; }

@media (max-width: 768px) {
  .info-boxes { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .info-boxes { grid-template-columns: repeat(2, 1fr); }
}

.event-list {
  display: grid;
  gap: 1.5rem;
}

.event-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.event-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card .body { padding: 1.5rem; }

.event-card h3 { font-size: 1.35rem; margin-bottom: 0.25rem; }

.event-card .date {
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 700px) {
  .event-card { grid-template-columns: 1fr; }
  .event-card img { height: 200px; }
}

.video-grid {
  display: grid;
  gap: 1.5rem;
}

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

.video-featured {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--brand-dark);
}

/* YouTube modal */
.yt-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.yt-modal.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.yt-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.yt-modal-content {
  position: relative;
  z-index: 1;
  width: 90vw;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

.yt-modal-content iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.yt-modal-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.yt-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .yt-modal-content {
    width: 95vw;
  }
  .yt-modal-close {
    top: -2rem;
    width: 2rem;
    height: 2rem;
    font-size: 1.25rem;
  }
}

.video-featured .video-wrap {
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

.video-featured iframe,
.video-thumb iframe,
.youtube-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.youtube-placeholder {
  cursor: pointer;
  background: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.youtube-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.2s, transform 0.2s;
}

.youtube-placeholder:hover img {
  opacity: 1;
  transform: scale(1.03);
}

.youtube-placeholder .youtube-play {
  position: relative;
  z-index: 1;
  transition: transform 0.2s;
}

.youtube-placeholder:hover .youtube-play {
  transform: scale(1.1);
}

.video-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.video-thumb .video-wrap {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.video-thumb p {
  margin: 0.5rem 0 0;
  font-weight: 500;
  color: var(--text-heading);
}

@media (max-width: 768px) {
  .video-row { grid-template-columns: 1fr; }
}

.content-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.lead { font-size: 1.15rem; color: var(--text); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
}

.contact-info {
  font-size: 1rem;
}

.contact-info h2,
.contact-info h3 {
  margin-top: 0;
}

.contact-info h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.contact-info p {
  margin-bottom: 1.25rem;
}

.contact-form-wrap h3 {
  margin-top: 0;
  font-size: 1.25rem;
}

.contact-form-wrap > p {
  margin-bottom: 1rem;
}

.contact-form {
  background: var(--white);
  border: 1px solid #e5e9ef;
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  margin-top: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.4rem;
}

.form-group .optional {
  font-weight: 400;
  color: var(--text);
  opacity: 0.7;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #d0d7de;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-heading);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.15);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9aa3ac;
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.bot-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-notice {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.form-notice-warning {
  background: #fff8e6;
  border: 1px solid #f0d67a;
  color: #7a5c00;
}

.form-notice-success {
  background: #e6f7f2;
  border: 1px solid #7dd3c3;
  color: #0f5c4a;
}

.form-notice-warning code {
  background: rgba(0,0,0,0.06);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-size: 0.85em;
}

.form-status {
  display: none;
  margin: 1rem 0 0;
  font-weight: 500;
  text-align: center;
  min-height: 1.5rem;
}

.form-status.visible {
  display: block;
}

.form-status.success { color: #13795b; }
.form-status.error { color: #c0392b; }

.contact-form .btn-primary {
  background: var(--brand-blue);
  color: var(--white);
  width: 100%;
  border: none;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-form .btn-primary:hover {
  background: #238b7f;
}

.contact-form .btn-primary:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.btn-spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  margin-left: 0.6rem;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.contact-form .btn-primary.loading .btn-text {
  opacity: 0.85;
}

.contact-form .btn-primary.loading .btn-spinner {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  height: 420px;
  background: var(--bg-light);
  margin-top: 3rem;
}

@media (max-width: 900px) {
  .map-wrap { height: 360px; margin-top: 2rem; }
}

@media (max-width: 600px) {
  .map-wrap { height: 300px; }
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.site-footer {
  background: var(--brand-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 1rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand img { height: 50px; margin-bottom: 1rem; }

.footer-brand p { font-size: 0.9rem; line-height: 1.6; }

.footer-links h4 {
  color: var(--white);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

.subfooter {
  background: var(--brand-darker);
  color: rgba(255,255,255,0.5);
  padding: 1rem;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.prose { max-width: 760px; margin: 0 auto; }
.prose p { margin-bottom: 1.25rem; }
.prose img { margin: 1.5rem 0; border-radius: var(--radius); }

.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.5rem;
}

.breadcrumb a { color: rgba(255,255,255,0.9); }
