:root {
  --ink: #10172a;
  --muted: #526078;
  --brand: #3478ff;
  --navy: #04101f;
  --line: #e2e8f3;
  --soft: #f7f9fd;
  --panel: #ffffff;
  --shadow: 0 14px 32px rgba(15, 23, 42, .08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font: 15px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

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

.event-nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 max(24px, 6vw);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.1rem;
}

.nav-cta,
.event-nav > a:last-child {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.events-hero {
  padding: 96px max(24px, 12vw);
  background: linear-gradient(135deg, #071734, #143b86);
  color: #fff;
}

.events-hero h1 {
  max-width: 900px;
  font-size: 4rem;
  line-height: 1.06;
  margin: .3rem 0 1rem;
  letter-spacing: 0;
}

.events-hero > p:not(.eyebrow) {
  max-width: 720px;
  font-size: 1.15rem;
  color: #dbe6fb;
}

.eyebrow {
  font-size: .75rem;
  letter-spacing: .12em;
  font-weight: 800;
  color: #86dcb8;
  text-transform: uppercase;
}

.button {
  display: inline-block;
  margin-top: 1.25rem;
  background: #fff;
  color: #102e6b;
  padding: .8rem 1.15rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}

.events-list,
.live-events {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 24px;
}

.events-list h2,
.live-events h2 {
  font-size: 2.7rem;
  line-height: 1.1;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.event-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(24, 39, 75, .04);
}

.event-card h3 {
  margin: .55rem 0;
  font-size: 1.3rem;
}

.event-card span {
  font-weight: 800;
  font-size: .68rem;
  letter-spacing: .1em;
  color: #168657;
}

.event-card a {
  font-weight: 800;
  color: var(--brand);
  text-decoration: none;
}

.event-card button {
  border: 0;
  background: #e5e9f0;
  color: #718096;
  padding: .65rem .85rem;
  border-radius: 7px;
  font-weight: 700;
}

.event-card.disabled {
  opacity: .58;
  filter: saturate(.7);
}

.invite-page {
  background: #fff;
  color: #0d1730;
}

.invite-page h1,
.invite-page h2,
.invite-page h3,
.invite-page p {
  margin-top: 0;
}

.invite-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 66px;
  color: #fff;
  background: rgba(3, 13, 29, .94);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(18px);
}

.invite-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 1.28rem;
  font-weight: 850;
  white-space: nowrap;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: .82rem;
  font-weight: 900;
  background: linear-gradient(135deg, #5de1ff, #2266ff 48%, #7847ff);
  border-radius: 7px;
  transform: rotate(45deg);
}

.brand-mark::first-letter {
  transform: rotate(-45deg);
}

.invite-nav nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  flex: 1;
}

.invite-nav nav a {
  color: #f6f8ff;
  font-size: .92rem;
  text-decoration: none;
}

.invite-nav nav a:first-child {
  color: #4f8dff;
}

.nav-button,
.primary-button,
.center-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, #5d6cff, #1489ff);
  box-shadow: 0 10px 22px rgba(52, 120, 255, .26);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.invite-hero {
  min-height: 610px;
  display: flex;
  align-items: stretch;
  color: #fff;
  background-position: center;
  background-size: cover;
}

.hero-inner {
  width: min(1240px, calc(100% - 88px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 590px) minmax(300px, 410px);
  align-items: end;
  gap: 48px;
  padding: 44px 0 42px;
}

.hero-copy {
  padding-top: 46px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 18px;
  border: 1px solid #1f9bff;
  border-radius: 999px;
  color: #a9d5ff;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 590px;
  margin: 22px 0 6px;
  font-size: 4.35rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy h1::first-line {
  color: #fff;
}

.hero-copy h1 {
  color: #4d7cff;
}

.hero-copy h2 {
  margin-bottom: 16px;
  color: #fff;
  font-size: 1.42rem;
  line-height: 1.3;
}

.hero-copy > p:not(.hero-pill) {
  max-width: 520px;
  color: #d8e4f6;
  font-size: 1rem;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 30px 0 36px;
}

.hero-meta div {
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 12px;
  align-items: start;
  border-right: 1px solid rgba(255, 255, 255, .22);
}

.hero-meta div:last-child {
  border-right: 0;
}

.meta-icon,
.metric-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 2px solid var(--brand);
  border-radius: 7px;
  color: #72a3ff;
  font-size: .78rem;
  font-weight: 900;
}

.hero-meta strong,
.hero-meta small {
  display: block;
}

.hero-meta strong {
  color: #fff;
  font-size: .94rem;
  line-height: 1.35;
}

.hero-meta small {
  color: #d0dbed;
  font-size: .86rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.outline-button,
.outline-small,
.inline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid currentColor;
  border-radius: 7px;
  color: #fff;
  background: transparent;
  font-weight: 800;
  text-decoration: none;
}

.countdown-card {
  width: 100%;
  align-self: end;
  margin-bottom: 28px;
  padding: 24px 26px 25px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(9, 25, 52, .88);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
}

.countdown-card h3 {
  margin-bottom: 15px;
  text-align: center;
  font-size: 1.02rem;
}

.count-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.count-grid span {
  min-height: 86px;
  display: grid;
  place-items: center;
  padding: 8px 5px;
  border-radius: 8px;
  background: #09172e;
}

.count-grid strong {
  font-size: 2.28rem;
  line-height: 1;
}

.count-grid small {
  color: #d7e3f8;
  font-size: .82rem;
}

.invite-section {
  width: min(1240px, calc(100% - 72px));
  margin: 0 auto;
  padding: 36px 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 22px;
  padding-top: 38px;
}

.white-panel,
.agenda-panel,
.speaker-card,
.sponsor-logo,
.faq-grid details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.white-panel {
  padding: 30px;
}

.about-panel h2,
.venue-panel h2,
.register-panel h2 {
  margin-bottom: 14px;
  font-size: 1.55rem;
}

.about-panel h2::after,
.venue-panel h2::after,
.section-heading h2::after {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  margin-top: 12px;
  background: var(--brand);
  border-radius: 999px;
}

.about-panel p,
.venue-panel p,
.register-panel p {
  color: #334155;
}

.metrics-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: center;
}

.metric {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.metric-icon {
  width: 42px;
  height: 42px;
  border: 0;
  color: var(--brand);
  background: #eef4ff;
  font-size: .95rem;
}

.metric strong {
  font-size: 2rem;
  line-height: 1;
}

.metric small {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
}

.section-heading {
  display: grid;
  justify-items: center;
  margin-bottom: 24px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.2;
}

.section-heading h2::after {
  margin: 12px auto 0;
}

.agenda-panel {
  padding: 30px 40px;
  background: linear-gradient(135deg, #fff, #f4f8ff);
}

.agenda-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 66px;
  row-gap: 0;
}

.agenda-item {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  min-height: 82px;
  padding-left: 28px;
}

.agenda-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
}

.agenda-item::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 20px;
  bottom: 0;
  width: 2px;
  background: #9bbcff;
}

.agenda-item:nth-last-child(-n+2)::after {
  bottom: 22px;
}

.agenda-item time {
  color: #1e6cff;
  font-size: .9rem;
  font-weight: 850;
}

.agenda-item h3 {
  margin: 0 0 5px;
  font-size: .95rem;
}

.agenda-item p {
  margin: 0;
  color: #475569;
  font-size: .88rem;
}

.center-button {
  width: fit-content;
  margin: 24px auto 0;
  min-height: 40px;
  padding: 0 22px;
}

.speaker-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
}

.speaker-card {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.speaker-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1.22 / 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 34%, #f0d1bd 0 14%, transparent 15%),
    linear-gradient(160deg, #1b2535 0 38%, #eef2f7 39% 100%);
}

.speaker-media::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 86px;
  height: 82px;
  border-radius: 42px 42px 12px 12px;
  background: linear-gradient(180deg, #1e293b, #0f172a);
  transform: translateX(-50%);
}

.speaker-media span {
  position: absolute;
  left: 50%;
  top: 38%;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: none;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #334155, #0f172a);
  font-weight: 850;
  transform: translate(-50%, -50%);
}

.speaker-media.is-fallback span {
  display: grid;
}

.speaker-media img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #dbe4f0;
}

.speaker-card div {
  min-height: 92px;
  padding: 18px 12px;
}

.speaker-card h3 {
  margin: 0 0 4px;
  font-size: .98rem;
}

.speaker-card p,
.speaker-card small {
  display: block;
  margin: 0;
  color: #475569;
  font-size: .8rem;
}

.in-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: #fff;
  background: rgba(10, 20, 38, .52);
  font-size: .76rem;
  font-weight: 800;
}

.outline-small {
  min-height: 38px;
  border-color: var(--brand);
  color: var(--brand);
  background: #fff;
  box-shadow: none;
  font-size: .86rem;
}

.venue-register {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.venue-panel {
  position: relative;
  min-height: 300px;
  padding-right: 250px;
}

.venue-panel h3 {
  max-width: 380px;
  margin-bottom: 18px;
  font-size: 1rem;
}

.venue-panel p {
  max-width: 330px;
}

.inline-button {
  min-height: 38px;
  margin-top: 6px;
  border-color: var(--brand);
  color: var(--brand);
  background: #fff;
  box-shadow: none;
  font-size: .86rem;
}

.map-preview {
  position: absolute;
  right: 30px;
  top: 58px;
  width: 180px;
  height: 210px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(30deg, transparent 42%, rgba(244, 169, 62, .55) 43%, transparent 45%),
    linear-gradient(120deg, transparent 35%, rgba(65, 145, 255, .35) 36%, transparent 39%),
    linear-gradient(10deg, transparent 52%, rgba(65, 145, 255, .32) 53%, transparent 55%),
    #e9f0e6;
}

.map-preview span {
  position: absolute;
  left: 82px;
  top: 94px;
  width: 24px;
  height: 24px;
  border-radius: 50% 50% 50% 0;
  background: #f14137;
  transform: rotate(-45deg);
  box-shadow: 0 4px 14px rgba(241, 65, 55, .35);
}

.map-preview span::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #fff;
}

.register-panel {
  padding: 28px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #5a69ff, #157dff);
  box-shadow: 0 18px 40px rgba(37, 99, 235, .24);
}

.register-panel h2 {
  margin-bottom: 3px;
}

.register-panel p {
  color: #e9f1ff;
}

.register-panel form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.register-panel input,
.register-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 6px;
  padding: 0 14px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  font: inherit;
}

.register-panel input::placeholder {
  color: #e6efff;
}

.register-panel select,
.register-panel button {
  grid-column: 1 / -1;
}

.register-panel button {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  color: #1f64f2;
  background: #fff;
  font-weight: 850;
  cursor: pointer;
}

.sponsors-section {
  padding-top: 8px;
}

.sponsor-groups {
  display: grid;
  grid-template-columns: 1.25fr .85fr .85fr;
  gap: 26px;
}

.sponsor-tier h3 {
  margin-bottom: 12px;
  font-size: .95rem;
}

.sponsor-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.sponsor-logo {
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 12px;
  font-size: 1.05rem;
  font-weight: 850;
  color: #1f2937;
  text-align: center;
}

.microsoft { color: #5e5e5e; }
.google-cloud { color: #4285f4; }
.aws { color: #ff9900; }
.nvidia { color: #76b900; }
.ibm { color: #3b6cff; }
.dell-technologies { color: #0076ce; }
.intel { color: #0068b5; }
.cisco { color: #049fd9; }
.red-hat { color: #cc0000; }

.faq-section {
  padding-top: 14px;
  padding-bottom: 42px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 46px;
}

.faq-grid details {
  min-height: 48px;
  padding: 0 18px;
  box-shadow: none;
}

.faq-grid summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #111827;
  font-weight: 700;
  cursor: pointer;
}

.faq-grid summary::after {
  content: "+";
  font-size: 1.3rem;
  line-height: 1;
}

.faq-grid details[open] summary::after {
  content: "-";
}

.faq-grid summary::-webkit-details-marker {
  display: none;
}

.faq-grid p {
  margin: 0 0 16px;
  color: #475569;
}

.invite-footer {
  display: grid;
  grid-template-columns: 1.25fr .7fr .95fr .9fr;
  gap: 58px;
  padding: 42px max(44px, calc((100vw - 1240px) / 2 + 44px)) 0;
  color: #d9e7ff;
  background: linear-gradient(135deg, #061529, #03101f);
}

.invite-footer .invite-brand {
  margin-bottom: 18px;
}

.invite-footer h3 {
  margin-bottom: 15px;
  color: #fff;
  font-size: 1rem;
}

.invite-footer p,
.invite-footer a {
  display: block;
  margin: 0 0 8px;
  color: #c8d8ef;
  text-decoration: none;
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social-row span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .18);
  font-size: .75rem;
  font-weight: 800;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  margin-top: 22px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #dce8fa;
  font-size: .9rem;
}

@media (max-width: 1100px) {
  .invite-nav {
    padding: 0 28px;
  }

  .invite-nav nav {
    gap: 18px;
  }

  .hero-inner,
  .split-section,
  .venue-register,
  .sponsor-groups {
    grid-template-columns: 1fr;
  }

  .speaker-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .invite-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .event-nav {
    padding: 0 20px;
  }

  .events-hero {
    padding: 70px 24px;
  }

  .events-hero h1,
  .hero-copy h1 {
    font-size: 2.55rem;
  }

  .events-list,
  .live-events {
    padding: 48px 20px;
  }

  .invite-nav {
    position: relative;
    min-height: auto;
    flex-wrap: wrap;
    padding: 16px 22px;
  }

  .invite-nav nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-button {
    min-height: 38px;
    padding: 0 14px;
  }

  .invite-hero {
    min-height: auto;
  }

  .hero-inner,
  .invite-section {
    width: min(100% - 36px, 1240px);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 34px 0;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero-meta,
  .metrics-panel,
  .agenda-grid,
  .faq-grid,
  .register-panel form {
    grid-template-columns: 1fr;
  }

  .hero-meta div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
    padding-bottom: 12px;
  }

  .count-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .agenda-panel {
    padding: 28px 20px;
  }

  .agenda-item {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .speaker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .venue-panel {
    padding-right: 30px;
    padding-bottom: 250px;
  }

  .map-preview {
    top: auto;
    left: 30px;
    right: 30px;
    bottom: 26px;
    width: auto;
    height: 205px;
  }

  .invite-footer,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: grid;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .hero-copy h1 {
    font-size: 2.25rem;
  }

  .speaker-grid {
    grid-template-columns: 1fr;
  }

  .white-panel,
  .register-panel {
    padding: 22px;
  }
}

/* ── Registration enhancements ── */
.seats-left {
  background: rgba(52, 120, 255, .08);
  border: 1px solid rgba(52, 120, 255, .18);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: .85rem;
  color: var(--brand);
  text-align: center;
  margin-bottom: 6px;
}

.seats-left strong {
  font-size: 1.15rem;
}

#reg-msg {
  border-radius: 8px;
  padding: 10px 14px;
  background: #fef2f2;
}

#reg-success h3 {
  color: var(--ink);
  font-size: 1.2rem;
}

#reg-btn:disabled {
  opacity: .65;
  cursor: wait;
}
