/* ============================================================
   Engage Online — design system aligned with engagebyelevate.com
   Bg #08080a · Orange #E8612A · Type: Noto Sans (display + body)
   ============================================================ */

:root {
  --black: #000000;
  --bg: #08080a;
  --bg-card: #121215;
  --bg-elevated: #1a1a1f;
  --bg-surface: #0f0f12;
  --white: #FFFFFF;
  --ink: #FFFFFF;
  --ink-soft: #a0a0a8;
  --ink-muted: #5a5a65;
  --orange: #E8612A;
  --orange-hover: #d4551f;
  --orange-light: #FF7A3D;
  --orange-dim: rgba(232, 97, 42, 0.08);
  --orange-glow: rgba(232, 97, 42, 0.20);
  --success: #00d26a;
  --danger: #ff3b3b;
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.12);

  --font-display: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 6px;
  --radius-sm: 4px;
  --radius-xs: 2px;
  --radius-full: 9999px;

  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lift: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-orange: 0 6px 28px rgba(232, 97, 42, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--orange); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.05;
}

.bg-grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.045 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.brand img {
  height: 32px;
  width: auto;
  display: block;
}
@media (max-width: 480px) {
  .brand img { height: 28px; }
}

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 16px 24px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  border-radius: var(--radius);
  width: 100%;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover { background: var(--orange-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary svg { width: 18px; height: 18px; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  padding: 8px 16px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }

.gate-body { overflow-x: hidden; }

.gate {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: calc(100vh - 60px);
  position: relative;
  z-index: 2;
}

.gate-left {
  padding: 48px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(ellipse at top left, var(--orange-dim), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-surface) 100%);
  border-right: 1px solid var(--line);
  position: relative;
}

.gate-left::after {
  content: '';
  position: absolute;
  top: 0; right: -1px; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--orange) 30%, var(--orange) 70%, transparent);
  opacity: 0.4;
}

.gate-eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--orange);
  margin-top: 80px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.gate-eyebrow::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--orange);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.gate-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  color: var(--ink);
}
.accent { color: var(--orange); }

.gate-lede {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 48px;
}

.gate-meta {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.gate-meta li {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}
.gate-meta li span {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 4px;
  text-transform: none;
}

.gate-right {
  padding: 48px 64px;
  display: flex;
  align-items: center;
  background: var(--bg);
}

.gate-form {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.gate-form-eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.gate-form-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.field { display: block; margin-bottom: 20px; }
.field-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.field-opt {
  color: var(--ink-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}
.field input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--bg-elevated);
}
.field.is-invalid input {
  border-color: var(--danger);
}
.field-error {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  color: var(--danger);
  font-weight: 500;
}
.field.is-invalid .field-error { display: block; }

.gate-fineprint {
  margin-top: 20px;
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.55;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
  background: rgba(8, 8, 10, 0.95);
  backdrop-filter: blur(8px);
}
.topbar-right { display: flex; align-items: center; gap: 16px; }
.viewer-name {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.programme {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 48px;
  position: relative;
  z-index: 2;
}

.programme-hero { margin-bottom: 56px; max-width: 880px; }

.programme-eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--orange);
  margin-bottom: 20px;
}

.programme-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.programme-lede {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 560px;
  margin-bottom: 40px;
}

.day-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.day-tab {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 10px 18px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.day-tab:hover { color: var(--ink); border-color: var(--ink); }
.day-tab.is-active {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.meetings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.meeting-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.meeting-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.meeting-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.meeting-card:hover::before { transform: scaleX(1); }

.meeting-card.is-live {
  border-color: var(--orange);
  background: linear-gradient(180deg, var(--orange-dim), var(--bg-card));
  box-shadow: var(--shadow-orange);
}
.meeting-card.is-live::before { transform: scaleX(1); }

.meeting-time {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-body);
}
.meeting-day {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink-muted);
}
.meeting-hour {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.meeting-tz {
  font-size: 11px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.meeting-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-left: auto;
}
.meeting-status.live {
  background: var(--orange);
  color: var(--white);
}
.meeting-status.live::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--white);
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}
.meeting-status.upcoming {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.meeting-status.ended {
  background: transparent;
  color: var(--ink-muted);
  border: 1px solid var(--line);
}

.meeting-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.meeting-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.meeting-speakers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.meeting-speaker {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: var(--radius);
  font-weight: 500;
}

.meeting-actions { margin-top: 4px; }

.btn-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 12px 18px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  cursor: pointer;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-orange);
}
.btn-join:hover { background: var(--orange-hover); color: var(--white); }
.btn-join svg { width: 14px; height: 14px; }

.btn-join.disabled {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-muted);
  pointer-events: none;
  border: 1px solid var(--line);
  box-shadow: none;
}

.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--ink-muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.footer {
  display: flex;
  justify-content: space-between;
  padding: 24px 48px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-muted);
  position: relative;
  z-index: 2;
  background: var(--bg);
}
.footer a { color: var(--ink-muted); }
.footer a:hover { color: var(--orange); }

.chat-status {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
.chat-status:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-dim);
}
.chat-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(0, 210, 106, 0.7);
  animation: chat-pulse 2s ease-out infinite;
}
@keyframes chat-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 210, 106, 0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(0, 210, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 210, 106, 0); }
}
@media (max-width: 480px) {
  .chat-status-text { display: none; }
  .chat-status::after {
    content: 'Chat';
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
  }
  .chat-status { padding: 8px 12px; }
}

.tz-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.tz-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink-muted);
  margin-right: 4px;
}
.tz-pill {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 6px 12px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all 0.2s;
}
.tz-pill:hover { color: var(--ink); border-color: var(--ink); }
.tz-pill.active {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  font-weight: 600;
}

.meeting-cal {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.meeting-cal-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink-muted);
  margin-right: auto;
}
.meeting-cal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.meeting-cal-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-dim);
}
.meeting-cal-btn svg { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .gate { grid-template-columns: 1fr; }
  .gate-left, .gate-right { padding: 40px 28px; }
  .gate-left { border-right: none; border-bottom: 1px solid var(--line); }
  .gate-left::after { display: none; }
  .gate-eyebrow { margin-top: 24px; }
  .gate-meta { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .topbar { padding: 16px 20px; }
  .programme { padding: 40px 20px; }
  .footer { padding: 20px; flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
  .gate-title { font-size: 2.2rem; }
  .meetings-grid { grid-template-columns: 1fr; }
  .brand img { height: 34px; }
  .topbar .brand img { height: 28px; }
}
