﻿/*
  apex-custom.css
  Dark finance theme for Apex Trading.
  Overrides the HTML5UP Landed base. All colors run through CSS variables below.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Variables */
:root {
  --bg:          #07090f;
  --bg2:         #0c1018;
  --bg3:         #111827;
  --surface:     rgba(255, 255, 255, 0.035);
  --surface-2:   rgba(255, 255, 255, 0.065);
  --border:      rgba(255, 255, 255, 0.08);
  --border-gold: rgba(255, 85, 0, 0.45);

  --gold:        #FF5500;
  --gold-2:      #FF7A1A;
  --gold-dark:   #E04A00;
  --gold-glow:   rgba(255, 85, 0, 0.15);

  --green:       #22c55e;
  --red:         #ef4444;

  --t1:          #f8fafc;
  --t2:          #cbd5e1;
  --t3:          #64748b;

  --font:        'Inter', 'Roboto', sans-serif;
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --r:           12px;
  --r-lg:        18px;
}

/* Base Reset & Typography */
html, body {
  background: var(--bg) !important;
  font-family: var(--font) !important;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

body, input, select, textarea {
  color: var(--t2) !important;
  font-family: var(--font) !important;
  font-weight: 400;
  font-size: 15px !important;
  line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--t1) !important;
  font-family: var(--font) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.025em;
  margin: 0 0 0.8em 0 !important;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem) !important; font-weight: 900 !important; }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem) !important; font-weight: 700 !important; }
h3 { font-size: 1.15rem !important; font-weight: 600 !important; }
h4 { font-size: 1rem !important; font-weight: 600 !important; }

p { color: var(--t2) !important; margin: 0 0 1.4em 0 !important; }
strong, b { color: var(--t1) !important; font-weight: 600 !important; }

a {
  color: var(--gold) !important;
  text-decoration: none !important;
  border: none !important;
  transition: color 0.2s var(--ease) !important;
}
a:hover { color: var(--gold-2) !important; border-bottom-color: transparent !important; }

hr {
  border: none !important;
  border-top: 1px solid var(--border) !important;
  margin: 3em 0 !important;
}

/* Page wrapper */
#page-wrapper { padding-top: 0 !important; }

/* Preload / Overlay */
body.landing:after { background: var(--bg) !important; }
body.is-preload:after { background: var(--bg) !important; }

/* Ticker Bar */
#apex-ticker {
  background: linear-gradient(180deg, #060810 0%, var(--bg2) 100%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 85, 0, 0.2), 0 4px 24px rgba(0,0,0,0.5);
  height: 46px;
  overflow: hidden;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  user-select: none;
}

#apex-ticker::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 80px;
  background: linear-gradient(to left, #0a0c12, transparent);
  pointer-events: none;
  z-index: 3;
}

.ticker-live-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 100%;
  padding: 0 18px;
  background: rgba(200, 65, 0, 0.75);
  border-right: 1px solid rgba(200, 65, 0, 0.85);
  font-size: 10.5px;
  font-weight: 800;
  color: #d94800 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font);
  white-space: nowrap;
  z-index: 4;
}

.ticker-live-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #d94800;
  box-shadow: 0 0 8px rgba(217, 72, 0, 0.7);
  animation: badge-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(1.6); }
}

.ticker-track {
  display: flex;
  animation: ticker-scroll 38s linear infinite;
  white-space: nowrap;
  will-change: transform;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 22px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font);
  color: var(--t2);
  border-right: 1px solid rgba(255,255,255,0.055);
  flex-shrink: 0;
}

.ticker-item .t-sym {
  color: var(--t1);
  font-weight: 800;
  letter-spacing: 0.05em;
  font-size: 11.5px;
}

.ticker-item .t-price { color: var(--t1); font-weight: 600; }

.ticker-item .t-chg { font-weight: 700; font-size: 11.5px; }
.ticker-item .t-chg.up   { color: var(--green); }
.ticker-item .t-chg.down { color: var(--red); }
.ticker-item .t-chg.up::before   { content: '▲ '; font-size: 9px; }
.ticker-item .t-chg.down::before { content: '▼ '; font-size: 9px; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Header / Navigation */
#header {
  background: rgba(7, 9, 15, 0.9) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5) !important;
  height: 62px !important;
  padding: 0 2em !important;
  top: 46px !important;
  transition: background 0.3s var(--ease), top 0.3s var(--ease) !important;
  position: fixed !important;
  left: 0 !important; right: 0 !important;
  z-index: 1500 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

#header.show {
  background: rgba(7, 9, 15, 0.98) !important;
}

#logo {
  position: static !important;
  height: auto !important;
  left: auto !important;
  top: auto !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
}

#logo a {
  color: var(--t1) !important;
  font-weight: 800 !important;
  font-size: 1.2rem !important;
  letter-spacing: -0.02em !important;
  border: none !important;
  font-family: var(--font) !important;
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
}

.header-logo-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

#logo a .apex-accent { color: var(--gold) !important; }

#nav {
  position: static !important;
  right: auto !important;
  top: auto !important;
}

#nav > ul {
  display: flex !important;
  align-items: center;
  gap: 0.15em;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#nav > ul > li {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  margin-left: 0 !important;
  padding: 0 !important;
}

#nav > ul > li > a {
  color: var(--t2) !important;
  font-weight: 500 !important;
  font-size: 0.88rem !important;
  padding: 0.5em 0.85em !important;
  border-radius: 8px !important;
  border: 1.5px solid transparent !important;
  height: auto !important;
  line-height: normal !important;
  transition: all 0.2s var(--ease) !important;
  font-family: var(--font) !important;
}

#nav > ul > li > a:hover {
  color: var(--t1) !important;
  background: var(--surface) !important;
}

/* orange outline on the currently active page link */
#nav > ul > li.current > a,
#nav > ul > li.active > a {
  color: var(--gold) !important;
  border-color: rgba(255, 85, 0, 0.55) !important;
  background: rgba(255, 85, 0, 0.06) !important;
}

/* Dropotron dropdown */
.dropotron {
  background: rgba(6, 8, 14, 0.98) !important;
  border: 1px solid rgba(255, 85, 0, 0.22) !important;
  border-top: 2px solid var(--gold) !important;
  border-radius: 0 0 12px 12px !important;
  box-shadow: 0 28px 64px rgba(0,0,0,0.95), 0 0 40px rgba(255,85,0,0.06) !important;
  min-width: 210px !important;
  padding: 0.85em 0 0.55em !important;
  backdrop-filter: blur(32px) !important;
  -webkit-backdrop-filter: blur(32px) !important;
  overflow: hidden !important;
}

/* removes the default triangle arrow, dropdown attaches flat to the nav */
.dropotron.level-0::before {
  display: none !important;
}

.dropotron > li {
  border-top: none !important;
  display: block !important;
  position: relative !important;
}

/* a little extra room for the first item so it doesn't sit right on the border */
.dropotron > li:first-child > a,
.dropotron > li:first-child > span {
  padding-top: 0.9em !important;
}

/* Thin divider between items */
.dropotron > li + li {
  border-top: 1px solid rgba(255,255,255,0.04) !important;
}

.dropotron > li > a,
.dropotron > li > span {
  display: block !important;
  color: rgba(255,255,255,0.58) !important;
  font-size: 0.78rem !important;
  font-family: var(--font) !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 0.78em 1.4em 0.78em 1.5em !important;
  border: none !important;
  border-left: 2px solid transparent !important;
  transition: color 0.15s ease, background 0.15s ease, border-left-color 0.15s ease, padding-left 0.15s ease !important;
}

.dropotron > li > a:hover,
.dropotron > li.active > a {
  color: var(--gold) !important;
  background: rgba(255, 85, 0, 0.07) !important;
  border-left-color: var(--gold) !important;
  padding-left: 1.8em !important;
}

/* Remove any stray ::before dot pseudo-elements */
.dropotron > li > a::before {
  display: none !important;
}

/* Buttons */
.button, a.button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  border-radius: 10px !important;
  font-family: var(--font) !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  padding: 0.65em 1.5em !important;
  border: 1.5px solid var(--border) !important;
  background: transparent !important;
  color: var(--t1) !important;
  cursor: pointer !important;
  transition: all 0.25s var(--ease) !important;
  text-decoration: none !important;
  letter-spacing: 0.01em !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  touch-action: manipulation !important;
}

.button:hover, a.button:hover {
  border-color: var(--gold) !important;
  color: var(--gold) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px var(--gold-glow) !important;
}

.button.primary, a.button.primary {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: #000 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 20px var(--gold-glow) !important;
}

.button.primary:hover, a.button.primary:hover {
  background: var(--gold-2) !important;
  border-color: var(--gold-2) !important;
  color: #000 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 35px rgba(255, 85, 0, 0.35) !important;
}

.button.large, a.button.large {
  padding: 0.9em 2.2em !important;
  font-size: 0.95rem !important;
  border-radius: 12px !important;
}

/* Hero action buttons */
.btn-main {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--gold);
  color: #000 !important;
  font-family: var(--font) !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9em 2.2em;
  border-radius: 12px;
  border: none !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  box-shadow: 0 4px 30px rgba(255, 85, 0, 0.3);
  letter-spacing: 0.01em;
  white-space: nowrap;
  touch-action: manipulation;
}

.btn-main:hover {
  background: var(--gold-2) !important;
  color: #000 !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(255, 85, 0, 0.4);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent !important;
  color: var(--t1) !important;
  font-family: var(--font) !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9em 2.2em;
  border-radius: 12px;
  border: 1.5px solid var(--border) !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  letter-spacing: 0.01em;
  white-space: nowrap;
  touch-action: manipulation;
}

.btn-ghost:hover {
  border-color: var(--gold) !important;
  color: var(--gold) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--gold-glow);
}

/* Apex Badge */
.apex-badge {
  display: inline-block;
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  color: var(--gold) !important;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35em 1em;
  border-radius: 100px;
  margin-bottom: 1.2em;
  font-family: var(--font);
}

/* Gold Gradient Text */
.gold-text {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 60%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Apex Container */
.apex-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2em;
}

/* Section Shared */
.apex-section { padding: 7em 0; position: relative; }
.apex-section.alt { background: var(--bg2) !important; }

#apex-features {
  background-image: url('../../images/banner.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  isolation: isolate;
}

#apex-features::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 15, 0.82);
  z-index: 0;
}

#apex-features .apex-container {
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 4em;
}
.section-header h2 { margin-top: 0.3em; }
.section-header p {
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0.8em auto 0 !important;
  color: var(--t3) !important;
}

/* Hero Section */
#apex-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
  padding: 108px 2em 160px;
}

#hero-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.45;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 55px 55px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black, transparent);
  mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black, transparent);
}

.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255,85,0,0.1) 0%, transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: pulse-glow 5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: translate(-50%,-50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%,-50%) scale(1.12); }
}

.hero-logo-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: min(88%, 780px);
  pointer-events: none;
  z-index: 5;
  opacity: 0.175;
  filter: blur(0.5px);
  mix-blend-mode: screen;
}
.hero-logo-watermark img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 820px;
  width: 100%;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.8rem) !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  margin-bottom: 0.45em !important;
  letter-spacing: -0.035em;
}

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.15rem) !important;
  color: var(--t2) !important;
  max-width: 560px;
  margin: 0 auto 2.5em !important;
  line-height: 1.8;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1em;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5em;
}

/* Hero scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 175px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--t3) !important;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  animation: bounce-fade 2.5s ease-in-out infinite;
  text-decoration: none !important;
  border: none !important;
  z-index: 10;
}
.hero-scroll i { font-size: 0.9rem; }

@keyframes bounce-fade {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 1;   transform: translateX(-50%) translateY(5px); }
}

/* Hero Stats Bar */
.hero-stats-bar {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  background: rgba(10, 14, 22, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  z-index: 10;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1100px;
  margin: 0 auto;
}

.hero-stat {
  text-align: center;
  padding: 1.6em 1.5em;
  border-right: 1px solid var(--border);
  transition: background 0.2s var(--ease);
}
.hero-stat:last-child { border-right: none; }
.hero-stat:hover { background: var(--surface); }

.hero-stat-num {
  font-family: var(--font);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: var(--t1);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.3em;
}
.hero-stat-num .accent { color: var(--gold); }

.hero-stat-label {
  font-size: 0.72rem;
  color: var(--t3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4em;
}

/* Apex Card (Glass) */
.apex-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2em 1.8em;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.apex-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.apex-card:hover {
  background: var(--surface-2);
  border-color: rgba(255, 85, 0, 0.18);
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 85, 0, 0.08);
}

.apex-card:hover::before { opacity: 1; }

.apex-card .card-icon {
  width: 50px;
  height: 50px;
  background: var(--gold-glow);
  border: 1px solid rgba(255, 85, 0, 0.3);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--gold) !important;
  margin-bottom: 1.2em;
}

.apex-card h3 {
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.55em !important;
  color: var(--t1) !important;
  letter-spacing: -0.01em;
}

.apex-card p {
  font-size: 0.88rem !important;
  color: var(--t3) !important;
  margin: 0 !important;
  line-height: 1.7;
}

/* About / "The Edge" Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5em;
  align-items: center;
}

.about-content {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-content .button {
  align-self: flex-start;
  margin-top: 0.25em;
}

.about-visual {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg3);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.about-chart-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.about-label {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(10, 14, 22, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4em 0.8em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold) !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font);
}

.check-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 1.5em 0 2em !important;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0.5em 0;
  font-size: 0.93rem;
  color: var(--t2) !important;
  border: none !important;
}

.check-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  min-width: 21px;
  background: var(--gold-glow);
  border: 1px solid rgba(255, 85, 0, 0.35);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 800;
  margin-top: 2px;
}

/* CTA Section */
.cta-inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-inner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem) !important;
  margin-bottom: 0.5em !important;
}

.cta-inner p {
  font-size: 1.05rem !important;
  color: var(--t2) !important;
  margin-bottom: 2em !important;
}

.cta-glow-bg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(255,85,0,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-btns {
  display: flex;
  gap: 1em;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sub-page Hero */
#page-hero {
  padding: 7.5em 2em 4.5em;
  text-align: center;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  margin-top: 108px;
}

#page-hero .pg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 55px 55px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 90% 100% at 50% 60%, black 30%, transparent);
  mask-image: radial-gradient(ellipse 90% 100% at 50% 60%, black 30%, transparent);
}

#page-hero .pg-glow {
  position: absolute;
  width: 500px; height: 400px;
  background: radial-gradient(ellipse, rgba(255,85,0,0.07) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

#page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem) !important;
  font-weight: 800 !important;
  margin-bottom: 0.4em !important;
  position: relative; z-index: 2;
}

#page-hero p {
  font-size: 1.05rem !important;
  color: var(--t2) !important;
  max-width: 500px;
  margin: 0 auto !important;
  position: relative; z-index: 2;
}

/* Page Content Wrapper */
#page-content {
  padding: 5em 0;
  background: var(--bg);
}

/* Team Cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5em;
  margin-bottom: 3em;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.8em 2.5em;
  text-align: center;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), var(--gold), var(--gold-dark), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.team-card:hover {
  border-color: rgba(255,85,0,0.2);
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}

.team-card:hover::before { opacity: 1; }

.team-avatar {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--gold-glow);
  border: 2px solid rgba(255,85,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.4em;
  font-size: 2.2rem;
  color: var(--gold) !important;
  overflow: hidden;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.team-card h3 {
  font-size: 1.3rem !important;
  margin-bottom: 0.15em !important;
  letter-spacing: -0.02em;
}

.team-role {
  color: var(--gold) !important;
  font-size: 0.72rem !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.3em !important;
  font-family: var(--font);
}

.team-card p {
  font-size: 0.88rem !important;
  color: var(--t3) !important;
  line-height: 1.7;
  margin: 0 !important;
}

/* Mission card */
.mission-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 3em;
  text-align: center;
  margin-bottom: 1.5em;
}

.mission-card .mission-icon {
  font-size: 2.2rem;
  color: var(--gold) !important;
  margin-bottom: 0.8em;
  display: block;
}

/* Events Page */
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5em;
  margin-bottom: 3em;
}

.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.2em 2em;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.event-card:hover {
  border-color: rgba(255,85,0,0.22);
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}

.event-card:hover::before { opacity: 1; }

.event-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green) !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75em;
}

.event-dot::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.3); }
}

.event-time {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold) !important;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.5em;
  display: block;
  font-family: var(--font);
}

.event-card h3 {
  font-size: 1.1rem !important;
  margin-bottom: 0.6em !important;
  letter-spacing: -0.01em;
}

.event-card p {
  font-size: 0.88rem !important;
  color: var(--t3) !important;
  margin-bottom: 1.5em !important;
  line-height: 1.65;
}

/* Join Page */
.join-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4em;
  margin-bottom: 3em;
}

.join-cta-box {
  background: var(--surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--r-lg);
  padding: 3.5em 3em;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.join-cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.join-cta-box h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
  margin-bottom: 0.5em !important;
}

.join-cta-box p {
  font-size: 1rem !important;
  color: var(--t2) !important;
  max-width: 480px;
  margin: 0 auto 2em !important;
}

.launchpass-btns {
  display: flex;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
#footer {
  background: var(--bg2) !important;
  border-top: 1px solid var(--border) !important;
  padding: 3em 2em !important;
  text-align: center !important;
  min-height: unset !important;
  display: block !important;
}

#footer ul.icons {
  list-style: none !important;
  padding: 0 0 2.5em !important;
  margin: 0 !important;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65em;
}

#footer ul.icons li { border: none !important; }

#footer ul.icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border) !important;
  color: var(--t3) !important;
  font-size: 1.05rem !important;
  transition: all 0.2s var(--ease) !important;
  flex-shrink: 0;
}

@media screen and (max-width: 480px) {
  #footer ul.icons {
    gap: 0.45em;
  }
  #footer ul.icons a {
    width: 38px !important;
    height: 38px !important;
    font-size: 0.92rem !important;
    border-radius: 8px;
  }
}

@media screen and (max-width: 360px) {
  #footer ul.icons a {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.82rem !important;
    border-radius: 7px;
  }
}

/* SVG icons (e.g. Substack) inside social buttons */
#footer ul.icons a svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
  display: block;
}

#footer ul.icons a:hover {
  color: var(--gold) !important;
  border-color: rgba(255,85,0,0.3) !important;
  background: var(--gold-glow) !important;
  transform: translateY(-2px);
}

#footer ul.copyright {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block;
  text-align: center;
}

#footer ul.copyright li {
  color: var(--t3) !important;
  font-size: 0.8rem !important;
  border: none !important;
}

#footer ul.copyright li a {
  color: var(--t3) !important;
  font-size: 0.8rem !important;
}

#footer ul.copyright li a:hover { color: var(--gold) !important; }

/* Legacy Overrides */
/* hide the old banner section, replaced by apex-hero */
#banner { display: none !important; }

/* Transparent legacy sections */
#main.container, section#main, section.container {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

.wrapper.style1, .wrapper.style2, .wrapper.style3, .wrapper.style4 {
  background: var(--bg) !important;
}
.wrapper.style1.special { background: var(--bg2) !important; }

#four { background: var(--bg2) !important; }

.box, .box.special {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r-lg) !important;
  padding: 2.5em !important;
  box-shadow: none !important;
}

/* Legacy icon override */
span.icon.solid.alt.major, span.icon.solid.major, .icon.solid.major, .icon.major {
  background: var(--gold-glow) !important;
  border: 1px solid rgba(255,85,0,0.3) !important;
  border-radius: 13px !important;
  color: var(--gold) !important;
  width: 50px !important;
  height: 50px !important;
  line-height: 50px !important;
  font-size: 1.2rem !important;
  display: inline-block !important;
  text-align: center !important;
  margin-bottom: 1em !important;
  box-shadow: none !important;
}

span.icon.solid.alt.major:before, .icon.solid.major:before, .icon.major:before {
  color: var(--gold) !important;
  font-size: 1.1rem !important;
}

/* Header major line */
header.major:after {
  background: linear-gradient(90deg, transparent, var(--gold), transparent) !important;
  height: 1px !important;
}

/* Dark-mode classes (always dark) */
body.dark-mode { background: var(--bg) !important; }
body { background: var(--bg) !important; }

/* Mobile nav panel */
#navPanel {
  background: var(--bg2) !important;
  border-right: 1px solid var(--border) !important;
}

#navPanel nav a {
  color: var(--t2) !important;
  border-bottom: 1px solid var(--border) !important;
  font-family: var(--font) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  padding: 0 1.5em !important;
  min-height: 50px !important;
  display: flex !important;
  align-items: center !important;
  touch-action: manipulation !important;
}

#navPanel nav a:hover,
#navPanel nav a:active { color: var(--gold) !important; }

/* Highlight the current section link in the mobile panel */
#navPanel nav a.current,
#navPanel nav a[href="index.html"].current {
  color: var(--gold) !important;
  border-left: 3px solid var(--gold) !important;
  background: var(--gold-glow) !important;
  padding-left: calc(1.5em - 3px) !important;
}

#titleBar {
  background: rgba(7, 9, 15, 0.97) !important;
  border-bottom: 1px solid var(--border) !important;
  backdrop-filter: blur(20px) !important;
  top: 46px !important;
}

/* main.js injects #logo's inner HTML — show logo img, center the whole thing */
#titleBar .title {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-family: var(--font) !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  height: 44px !important;
  /* equal padding both sides so content is truly centered */
  padding-left: 54px !important;
  padding-right: 54px !important;
}

#titleBar .title img {
  width: 22px !important;
  height: 22px !important;
  object-fit: contain !important;
  display: block !important;
  flex-shrink: 0 !important;
}

#titleBar .title a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #fff !important;
}
#titleBar .title a .apex-accent { color: var(--gold) !important; }

/* Move the hamburger to the right side */
#titleBar .toggle {
  left: auto !important;
  right: 0 !important;
}

#titleBar .toggle:before {
  background: rgba(255, 85, 0, 0.12) !important;
  color: #fff !important;
  left: auto !important;
  right: 0 !important;
}

/* Responsive breakpoints */

/* Tablet landscape — 2-col grids, stack about section */
@media screen and (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid    { grid-template-columns: 1fr; gap: 3em; }
  .about-visual  { aspect-ratio: 16/7; }
}

/* Hide desktop header on mobile — main.css uses display:none but our display:flex !important overrides it */
@media screen and (max-width: 736px) {
  #header { display: none !important; }
}

/* Tablet portrait — reduce spacing, single col cards */
@media screen and (max-width: 768px) {
  .apex-section  { padding: 4.5em 0; }
  .section-header { margin-bottom: 2.5em; }

  #apex-hero { padding: 96px 1.5em 155px; }

  .hero-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stat { padding: 1.2em 1em; }
  .hero-stat:nth-child(2) { border-right: none; }
  .hero-stat:nth-child(3),
  .hero-stat:nth-child(4) { border-top: 1px solid var(--border); }

  .events-grid,
  .team-grid,
  .join-grid { grid-template-columns: 1fr; }

  .team-card  { padding: 2em 1.8em; }
  .event-card { padding: 1.8em 1.6em; }

  #page-hero  { margin-top: 108px; padding: 5em 1.5em 3em; }
  #page-content { padding: 3.5em 0; }

  .join-cta-box { padding: 2.5em 2em; }
  .mission-card { padding: 2.2em 1.8em; }

  .cta-btns { flex-direction: column; align-items: center; }
  .cta-btns .button,
  .cta-btns .button.large { width: 100%; max-width: 340px; justify-content: center; }
}

/* Large phone / landscape — tighten everything further */
@media screen and (max-width: 640px) {
  .apex-section   { padding: 3.5em 0; }
  .apex-container { padding: 0 1.25em; }
  .section-header { margin-bottom: 1.8em; }

  .features-grid { grid-template-columns: 1fr; }
  .apex-card { padding: 1.6em 1.4em; }

  .hero-actions { flex-direction: column; align-items: center; }
  .btn-main, .btn-ghost {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  #apex-hero { padding-bottom: 150px; }
  .hero-scroll { display: none; }

  .about-grid   { gap: 2em; }
  .about-visual { aspect-ratio: 16/7; }

  .team-card  { padding: 1.8em 1.5em; }
  .event-card { padding: 1.6em 1.3em; }

  .join-cta-box { padding: 2em 1.4em; }
  .mission-card { padding: 2em 1.4em; }

  #page-hero { padding: 4em 1.25em 2.5em; }
}

/* Phone portrait — ticker gone, titleBar takes over at top */
@media screen and (max-width: 480px) {
  #apex-ticker  { display: none; }
  #titleBar     { top: 0 !important; }

  .apex-section   { padding: 3em 0; }
  .apex-container { padding: 0 1em; }

  #apex-hero { padding: 68px 1em 140px; }
  .hero-content h1 { letter-spacing: -0.025em; }
  .hero-sub { font-size: 0.92rem !important; }

  .hero-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stat { padding: 0.9em 0.6em; }
  .hero-stat:nth-child(3),
  .hero-stat:nth-child(4) { border-top: 1px solid var(--border); }
  .hero-stat-label { font-size: 0.63rem; letter-spacing: 0.05em; }

  #page-hero { margin-top: 62px; padding: 3.5em 1em 2em; }
  #page-content { padding: 2.5em 0; }

  .team-card  { padding: 1.6em 1.2em; }
  .event-card { padding: 1.4em 1.1em; }

  .join-cta-box { padding: 1.8em 1.2em; }
  .mission-card { padding: 1.8em 1.2em; }

  h2 { font-size: clamp(1.3rem, 5.5vw, 2rem) !important; }

  #footer { padding: 2em 1em !important; }
}

/* Small phones (≤380px) */
@media screen and (max-width: 380px) {
  .hero-stat-num { font-size: 1.35rem; }
  .btn-main, .btn-ghost { font-size: 0.92rem; padding: 0.85em 1.4em; }
  .apex-card { padding: 1.4em 1.1em; }
  .section-header p { font-size: 0.9rem !important; }
}

/* Touch devices — kill transform hover lifts so cards don't stay
   stuck in a raised state after a tap on iOS/Android */
@media (hover: none) {
  .btn-main:hover,
  .btn-ghost:hover { transform: none; }

  .button:hover, a.button:hover { transform: none !important; }
  .button.primary:hover, a.button.primary:hover { transform: none !important; }

  .apex-card:hover  { transform: none; }
  .team-card:hover  { transform: none; }
  .event-card:hover { transform: none; }

  #footer ul.icons a:hover { transform: none; }
}

/* ── Welcome Popup ───────────────────────────────────────────────────────── */
@keyframes awp-pulse-ring {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}
@keyframes awp-slide-up {
  from { opacity: 0; transform: translate(-50%, -42%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

#apex-welcome-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 10, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9000;
  opacity: 0;
  transition: opacity 0.32s var(--ease);
}
#apex-welcome-overlay.active {
  display: block;
  opacity: 1;
}

#apex-welcome-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%);
  z-index: 9001;
  background: linear-gradient(155deg, #13171f 0%, #0c1018 60%, #0f1117 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 3.2em 3.4em 2.8em;
  width: min(600px, calc(100vw - 2rem));
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 85, 0, 0.12),
    0 24px 80px rgba(0, 0, 0, 0.7),
    0 4px 24px rgba(255, 85, 0, 0.06);
  opacity: 0;
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}
#apex-welcome-popup.active {
  animation: awp-slide-up 0.38s var(--ease) forwards;
}

/* Radial glow in top-right */
.awp-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,85,0,0.18) 0%, transparent 70%);
  pointer-events: none;
}

#apex-welcome-close {
  position: absolute;
  top: 1em;
  right: 1em;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--t3);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.3em 0.55em;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  z-index: 1;
}
#apex-welcome-close:hover {
  color: var(--t1);
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.18);
}

/* Live badge */
.awp-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t2);
  margin-bottom: 1.1em;
}

.awp-pulse {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.awp-pulse::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gold);
  animation: awp-pulse-ring 1.6s ease-out infinite;
}

/* Heading */
#apex-welcome-popup h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--t1);
  line-height: 1.25;
  margin: 0 0 0.7em;
  letter-spacing: -0.02em;
}

#apex-welcome-popup p {
  font-size: 0.95rem;
  color: var(--t2);
  line-height: 1.75;
  margin: 0 0 1.8em;
}

/* Stats row */
.awp-stats {
  display: flex;
  align-items: flex-start;
  gap: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 1.5em 1.6em;
  margin-bottom: 1.8em;
}

.awp-stat {
  flex: 1;
  text-align: center;
}

.awp-stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.awp-stat-plus {
  font-size: 1em;
  font-weight: 800;
}

.awp-stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--t3);
  line-height: 1.45;
  margin-top: 0.35em;
}

.awp-stat-div {
  width: 1px;
  height: 2.8em;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}

/* CTA button */
.awp-cta-btn {
  display: inline-block;
  background: var(--gold);
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85em 2em;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 4px 20px rgba(255,85,0,0.35);
  letter-spacing: 0.01em;
}
.awp-cta-btn:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(255,85,0,0.45);
}

.awp-cta { display: inline-block; }
.awp-actions { display: flex; gap: 0.75em; flex-wrap: wrap; }

/* ── Eventbrite Modal Overrides ──────────────────────────────────────────── */
/* The backdrop div is injected directly into <body> by EB's script          */
[id^="eventbrite-widget-modal-overlay"],
.eventbrite-widget-modal-overlay,
[class*="eventbrite"][class*="overlay"],
[class*="ebn-overlay"],
[id^="eb-checkout-modal-overlay"] {
  background: rgba(0, 0, 0, 0.82) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}

/* Suppress the white box-shadow on the modal frame itself                   */
[id^="eventbrite-widget-container"],
[id*="eb-checkout-modal"] {
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.75) !important;
}

/* ── Agenda Timeline ─────────────────────────────────────────────────────── */
.agenda-timeline {
  max-width: 760px;
  margin: 0 auto 3em;
}

.agenda-row {
  display: grid;
  grid-template-columns: 130px 26px 1fr;
  align-items: stretch;
}

.agenda-time-col {
  padding-top: 0.22em;
  text-align: right;
}

.agenda-time {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  white-space: nowrap;
  line-height: 1.5;
}

.agenda-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.agenda-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(255, 85, 0, 0.45);
  flex-shrink: 0;
  margin-top: 0.3em;
}

.agenda-dot.dim {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.agenda-line {
  width: 1px;
  flex: 1;
  min-height: 1.5em;
  margin-top: 5px;
  background: linear-gradient(to bottom, rgba(255, 85, 0, 0.35) 0%, rgba(255, 85, 0, 0.06) 100%);
}

.agenda-row:last-child .agenda-line { display: none; }

.agenda-body {
  padding: 0 0 2.4em 1.4em;
}

.agenda-label {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3em;
}

.agenda-label.dim { color: rgba(255, 255, 255, 0.28); }

.agenda-body h3 {
  font-size: 0.985rem;
  font-weight: 600;
  color: var(--t1);
  margin: 0.1em 0 0.45em;
  line-height: 1.4;
}

.agenda-body p {
  font-size: 0.865rem;
  color: var(--t2);
  line-height: 1.65;
  margin: 0 0 0.4em;
}

.agenda-meta {
  font-size: 0.75rem;
  color: var(--t3);
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.1em;
}

.agenda-meta::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--t3);
}

.agenda-break-note {
  display: block;
  font-size: 0.73rem;
  color: var(--t3);
  margin-top: 0.65em;
  font-style: italic;
}

.agenda-divider {
  display: flex;
  align-items: center;
  gap: 1em;
  margin: 0.5em 0 1.8em 158px;
}

.agenda-divider::before,
.agenda-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}

.agenda-divider span {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.22);
}

@media (max-width: 640px) {
  .agenda-row { grid-template-columns: 24px 1fr; }
  .agenda-time-col { display: none; }
  .agenda-body { padding-left: 0.9em; }
  .agenda-divider { margin-left: 34px; }
}
