/* ==========================================================================
   OpenSummit.AI — V2 Components
   Button · Nav · Card · Badge · Pill · Divider · Ticker
   ========================================================================== */

/* ── BADGES & EYEBROWS — Sentry-style labels ────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-family: var(--ff-display);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--fog-1);
  background: var(--ink-3);
  border: 1px solid var(--line-2);
  box-shadow: 0 1px 0 rgba(255,245,230,.04) inset;
}
.badge--live {
  color: var(--teal);
  background: rgba(0, 229, 204, .06);
  border-color: rgba(0, 229, 204, .25);
}
.badge--live .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
  animation: pulse 1.8s ease-in-out infinite;
}
.badge--hot {
  color: var(--red); background: rgba(255, 77, 77, .08); border-color: rgba(255, 77, 77, .3);
}
.badge--ghost { background: transparent; border-color: var(--line-2); color: var(--fog-2); }

@keyframes pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:.55;transform:scale(.85);} }

/* ── BUTTONS — Sentry inset + Mastercard pill ───────────────────────────── */
.btn {
  --bg: var(--red);
  --fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-med);
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .005em;
  color: var(--fg);
  background: var(--bg);
  box-shadow: var(--sh-button);
  transition: transform var(--d-fast) var(--e-out),
              box-shadow var(--d-fast) var(--e-out),
              filter var(--d-fast) var(--e-out);
  will-change: transform;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: translateY(0); filter: brightness(.96); }

.btn--primary {
  background: #e84242;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 14px;
  border: none;
  box-shadow: none;
}
.btn--primary:hover {
  background: #d63636;
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.08);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 14px;
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
  color: #fff;
}
.btn--team-hero {
  background: rgba(20, 20, 30, 0.85);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 14px;
  border-radius: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--team-hero:hover {
  background: rgba(20, 20, 30, 0.95);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  color: #fff;
}
.btn--lg { padding: 16px 40px; font-size: 15px; border-radius: 14px; letter-spacing: 0.04em; }
.btn--pill { border-radius: var(--r-pill); }
.btn--sharp { border-radius: var(--r-sharp); }

.btn .arrow {
  display: inline-block;
  transition: transform var(--d-fast) var(--e-out);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ── NAV — Floating pill on dark (Mastercard+Sentry hybrid) ─────────────── */
.nav {
  position: fixed;
  top: 20px; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 20px;
}
.nav__shell {
  pointer-events: auto;
  display: flex;
  align-items: stretch;
  gap: 20px;
  padding: 8px 8px 8px 20px;
  border-radius: 20px;
  background: rgba(13, 11, 20, .85);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  max-width: 1100px;
  width: 100%;
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ff-display); font-weight: 700; font-size: 15px;
  letter-spacing: -.01em;
  color: var(--fog-0);
  margin-right: auto;
}
.nav__brand .claw {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red) 0%, #c41e1e 100%);
  display: grid; place-items: center;
  font-size: 15px;
  box-shadow: 0 0 20px -4px rgba(255, 77, 77, .55), 0 1px 0 rgba(0,0,0,.1) inset;
}
.nav__links {
  display: flex; align-items: center; gap: 24px;
  font-size: 13.5px; font-weight: 500; color: var(--fog-2);
}
.nav__links a { transition: color var(--d-fast); position: relative; color: rgba(255,255,255,.95); font-weight: 500; }
.nav__links a:hover { color: #fff; }
.nav__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0 24px;
  border-radius: 12px;
  background: #e84242;
  color: #fff;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(255,77,77,0.4), 0 0 60px rgba(255,77,77,0.15);
  white-space: nowrap;
  transition: all 0.2s ease;
}
.nav__cta:hover {
  background: #ff4545;
  box-shadow: 0 0 30px rgba(255,77,77,0.6), 0 0 80px rgba(255,77,77,0.25);
}

/* Nav countdown — label above, numbers below */
.nav__countdown { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.nav__countdown--center { flex: 1; justify-content: center; }
.nav__countdown-label {
  font-size: 11px;
  font-weight: 800;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1;
  white-space: nowrap;
  background: #fbbf24;
  padding: 5px 10px;
  border-radius: 6px;
}
.nav__countdown .cd { gap: 4px; }
.nav__countdown .cd__cell {
  min-width: auto;
  padding: 6px 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px;
}
.nav__countdown .cd__num { font-size: 15px; color: #fff; font-weight: 800; letter-spacing: -0.02em; }
.nav__countdown .cd__lbl { font-size: 7px; color: rgba(255,255,255,.55); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.nav__countdown .cd__sep { font-size: 14px; padding-bottom: 8px; color: rgba(255,255,255,.35); font-weight: 700; }
.nav__event-date {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.55);
  white-space: nowrap;
  padding-left: 8px;
  border-left: 1px solid rgba(255,255,255,.15);
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav { padding: 0 10px; top: 8px; }
  .nav__shell {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding: 6px 6px 6px 12px;
    max-width: 100%;
    border-radius: 16px;
    gap: 8px;
  }
  .nav__brand { flex-shrink: 0; margin-right: 0; }
  .nav__brand img { height: 44px !important; width: auto !important; min-width: 116px; }
  .nav__countdown {
    flex: 1;
    justify-content: center;
    gap: 6px;
    min-width: 0;
  }
  .nav__countdown-label { font-size: 8px; padding: 3px 6px; letter-spacing: 0.8px; border-radius: 4px; }
  .nav__countdown .cd__num { font-size: 11px; }
  .nav__countdown .cd__lbl { display: block; font-size: 6px; }
  .nav__countdown .cd__cell { padding: 3px 4px; border-radius: 5px; }
  .nav__countdown .cd__sep { font-size: 9px; padding-bottom: 0; }
  .nav__countdown .cd { gap: 2px; }
  .nav__cta { padding: 0 16px; font-size: 12px; white-space: nowrap; flex-shrink: 0; border-radius: 12px; display: inline-flex; align-items: center; }
}

/* ── CARDS — Frosted glass islands ─────────────────────────────────────── */
.card {
  position: relative;
  padding: 32px;
  border-radius: var(--r-med);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .03) 0%, rgba(0, 0, 0, .01) 100%),
    rgba(20, 17, 29, .6);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--sh-card);
  overflow: hidden;
}
.card--raised {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .04) 0%, rgba(0, 0, 0, .015) 100%),
    rgba(28, 24, 40, .7);
  box-shadow: var(--sh-floating);
}
.card--red {
  background:
    linear-gradient(180deg, rgba(255, 77, 77, .08) 0%, rgba(255, 77, 77, .02) 100%),
    rgba(30, 12, 18, .75);
  border-color: rgba(255, 77, 77, .28);
}
.card--sharp { border-radius: var(--r-sharp); }
.card--lg { padding: 48px; border-radius: var(--r-lg); }

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 0, 0, .03), transparent 60%);
}

/* ── PILLS — tag/topic chips ───────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, .03);
  border: 1px solid var(--line-2);
  font-size: 13px; font-weight: 500;
  color: var(--fog-1);
}
.pill--hot { background: rgba(255, 77, 77, .08); border-color: rgba(255, 77, 77, .3); color: var(--red-deep); }
.pill--teal { background: rgba(0, 229, 204, .08); border-color: rgba(0, 229, 204, .3); color: #0a8a7a; }

/* ── DIVIDER ──────────────────────────────────────────────────────────── */
.hr {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent);
  border: 0;
}

/* ── Ghost watermark (Mastercard) ─────────────────────────────────────── */
.ghost-mark {
  position: absolute;
  pointer-events: none;
  user-select: none;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(240px, 26vw, 440px);
  letter-spacing: -.05em;
  color: rgba(0, 0, 0, .03);
  line-height: .8;
  white-space: nowrap;
  z-index: 0;
}

/* ── Frame — section header pattern ───────────────────────────────────── */
.section {
  position: relative;
  padding: var(--s-7) 0;
}
.section--tight { padding: var(--s-6) 0; }
.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  max-width: 820px;
  margin-bottom: var(--s-6);
}
.section-head--centered { text-align: center; margin-inline: auto; align-items: center; }

/* ── Glow chip — used for stats/callouts ──────────────────────────────── */
.glow-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, rgba(255,77,77,.12), rgba(247,185,85,.08));
  border: 1px solid rgba(255,77,77,.3);
  font-family: var(--ff-display);
  font-size: 13px; font-weight: 600;
  color: #ffd2b0;
  letter-spacing: .02em;
  box-shadow: 0 0 40px -10px rgba(255,77,77,.35);
}

/* ── Hover lift utility ────────────────────────────────────────────────── */
.hover-lift {
  transition: transform var(--d-med) var(--e-out), box-shadow var(--d-med) var(--e-out);
}
.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-floating);
}

/* ── Speaker topic preview (visible without click) ────────────────── */
.sp-tile__topic-preview {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-3);
  padding: 12px 16px 8px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Sticky Mobile CTA ─────────────────────────────────────────────────── */
.sticky-mobile-cta {
  display: none;
}
@media (max-width: 768px) {
  .sticky-mobile-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(10, 10, 12, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.08);
    animation: slideUp 0.3s ease-out;
  }
  @keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
}
