@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Mono:wght@300;400;500&family=Instrument+Serif:ital@0;1&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080C10;
  --bg2: #0D1219;
  --bg3: #131B24;
  --surface: #1A2433;
  --surface2: #1F2D3F;
  --border: rgba(100,160,220,0.12);
  --border2: rgba(100,160,220,0.22);
  --accent: #3B82F6;
  --accent2: #60A5FA;
  --accent3: #93C5FD;
  --green: #10B981;
  --amber: #F59E0B;
  --red: #EF4444;
  --text: #E8EDF4;
  --text2: #8FA3BC;
  --text3: #5A7290;
  --mono: 'DM Mono', monospace;
  --serif: 'Instrument Serif', serif;
  --sans: 'Syne', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(15px, 0.25vw + 14px, 16px);
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

/* Stop page + footer painting through the overlay (fixes overlap glitches on mobile) */
body.nav-open .page-wrap,
body.nav-open footer {
  visibility: hidden;
}

img, video, canvas {
  max-width: 100%;
  height: auto;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 5000;
  background: rgba(8,12,16,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(0.75rem, 3vw, 2rem);
  padding-top: env(safe-area-inset-top, 0);
  min-height: 64px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  isolation: isolate;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.nav-logo {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 1;
}

.nav-logo-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Full site name in header on small screens (avoid "Longtime Solutio…") */
@media (max-width: 900px) {
  nav > .nav-logo {
    position: relative;
    z-index: 3;
  }

  nav > .nav-logo .nav-logo-text {
    /* keep single-line to preserve 64px nav height */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.15;
    max-width: calc(100vw - 7.5rem);
    font-size: 0.95rem;
  }
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  background: transparent;
  border: 1px solid var(--border2);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
  padding: 0;
  margin-left: auto;
  transition: border-color 0.2s, background 0.2s;
}

.nav-toggle:hover {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.08);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Drawer wraps .nav-links on all breakpoints (avoid display:contents compositing bugs) */
.nav-drawer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-drawer .nav-links {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-logo-mark {
  width: 28px; height: 28px;
  background: var(--accent);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  color: #fff;
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  list-style: none;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--accent2) !important; color: var(--bg) !important; }

/* GRID OVERLAY BG */
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* SECTIONS */
section { position: relative; z-index: 1; }
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
}
.page-wrap {
  padding-top: 64px;
  padding-top: calc(64px + env(safe-area-inset-top, 0));
  min-width: 0;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent3); background: rgba(59,130,246,0.06); }

.btn-ghost {
  background: transparent;
  color: var(--accent2);
  padding-left: 0;
}
.btn-ghost:hover { color: var(--text); }

/* TAGS/BADGES */
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid;
}

.tag-blue { color: var(--accent2); border-color: rgba(59,130,246,0.3); background: rgba(59,130,246,0.08); }
.tag-green { color: #34D399; border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.08); }
.tag-amber { color: #FCD34D; border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.08); }

/* CARDS */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--border2); transform: translateY(-2px); }

/* SECTION LABELS */
.section-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px; height: 1px;
  background: var(--accent);
}

/* HEADINGS */
h1, h2, h3, h4 { font-family: var(--sans); }
.display-1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.display-2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.italic-serif { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* STAT BLOCKS */
.stat-block { text-align: center; }
.stat-num {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  display: block;
}
.stat-label { font-size: 0.78rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--mono); margin-top: 4px; }

/* DIVIDERS */
.h-rule { height: 1px; background: var(--border); margin: 3rem 0; }

/* FOOTER */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem) calc(2rem + env(safe-area-inset-bottom, 0));
  position: relative; z-index: 1;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand p { color: var(--text2); font-size: 0.88rem; margin-top: 1rem; line-height: 1.7; max-width: 280px; }

.footer-col h4 {
  font-size: 0.72rem;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: var(--text2); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--text); }

.footer-bottom {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text3);
  font-family: var(--mono);
}

/* FORM ELEMENTS */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.78rem; font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text2); margin-bottom: 6px; }
.form-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text3); }

textarea.form-input { resize: vertical; min-height: 120px; }
select.form-input { cursor: pointer; }

.form-input.is-invalid { border-color: rgba(239,68,68,0.8); }
.form-error {
  margin-top: 8px;
  font-size: 0.78rem;
  color: #FCA5A5;
  font-family: var(--mono);
}
.form-status {
  display: none;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg3);
  font-size: 0.86rem;
  color: var(--text2);
}
.form-status.is-success {
  display: block;
  border-color: rgba(16,185,129,0.35);
  background: rgba(16,185,129,0.08);
  color: #A7F3D0;
}
.form-status.is-error {
  display: block;
  border-color: rgba(239,68,68,0.35);
  background: rgba(239,68,68,0.08);
  color: #FECACA;
}

/* RESPONSIVE — navigation & footer (nav drawer ≤900px) */
@media (max-width: 900px) {
  nav {
    height: 64px;
    overflow: visible;
  }

  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 3;
  }

  .nav-drawer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex: 0 0 auto;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    height: calc(100dvh - 64px - env(safe-area-inset-top, 0));
    padding: 1.25rem clamp(1rem, 4vw, 2rem) 2rem;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0));
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    z-index: 2;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .nav-drawer.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  /* Avoid flex-shrink quirks hiding menu items */
  .nav-drawer .nav-links {
    flex: 0 0 auto;
    min-height: 0;
    align-self: stretch;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    flex-wrap: nowrap;
  }

  .nav-links li {
    border-bottom: 1px solid var(--border);
  }

  #primaryNav .nav-links a {
    display: block;
    padding: 1rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text2);
  }

  #primaryNav .nav-links a:hover,
  #primaryNav .nav-links a.active {
    color: var(--text);
  }

  .nav-links a.nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    padding: 12px 18px;
    border-radius: 8px;
    border: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero::before {
    width: min(420px, 92vw);
    height: min(420px, 92vw);
    right: -30%;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand p {
    max-width: none;
  }
}

/* === index === */

/* HERO */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(5.5rem, 14vw, 8rem) 0 clamp(2.5rem, 6vw, 4rem);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* Give the hero extra left breathing room on wide screens */
@media (min-width: 1100px) {
  .hero .container {
    padding-left: clamp(2rem, 6vw, 5.5rem);
  }
}

.hero-heading {
  max-width: 820px;
}

.hero-sub {
  max-width: 620px;
}

.hero-ctas {
  justify-content: flex-start;
}

.hero-data-row {
  margin-left: 0;
  margin-right: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-heading { max-width: 780px; margin-bottom: 1.5rem; }
.hero-heading .accent { color: var(--accent2); }

.hero-sub {
  font-size: 1.15rem;
  color: var(--text2);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 4rem; }

.hero-data-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  max-width: 700px;
}

.hero-stat {
  background: var(--bg2);
  padding: 1.25rem 1.5rem;
}

.hero-stat .num {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text);
  display: block;
}

.hero-stat .lbl {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

/* SECTION: WHAT WE DO */
.what-section { padding: 6rem 0; }

.what-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.what-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.what-card:hover { border-color: var(--border2); transform: translateY(-3px); }

.what-card-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text3);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.what-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}

.what-icon svg { width: 22px; height: 22px; stroke: var(--accent2); fill: none; stroke-width: 1.5; }

.what-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.what-card p { font-size: 0.88rem; color: var(--text2); line-height: 1.7; }

/* SECTION: UPCOMING EVENTS */
.events-section { padding: 6rem 0; background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.events-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.event-row {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
  text-decoration: none;
  color: inherit;
}
.event-row:hover { border-color: var(--accent); }

.event-date-block { text-align: center; }
.event-month { font-family: var(--mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent2); }
.event-day { font-size: 1.8rem; font-weight: 800; color: var(--text); line-height: 1; margin: 2px 0; }
.event-year { font-family: var(--mono); font-size: 0.65rem; color: var(--text3); }

.event-info h4 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.event-info p { font-size: 0.82rem; color: var(--text2); font-family: var(--mono); }

.event-type { font-size: 0.78rem; }
.event-cta .btn { padding: 8px 18px; font-size: 0.78rem; }

/* SECTION: ABOUT / STATS */
.about-section { padding: 6rem 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

.about-stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.about-stat-card .num { font-size: 2.5rem; font-weight: 800; color: var(--accent2); letter-spacing: -0.03em; display: block; }
.about-stat-card .desc { font-size: 0.82rem; color: var(--text2); margin-top: 4px; }

/* SECTION: PLANS TEASER */
.plans-teaser { padding: 6rem 0; background: var(--bg2); border-top: 1px solid var(--border); }

.plans-teaser-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.plan-card:hover { transform: translateY(-3px); border-color: var(--border2); }
.plan-card.featured { border-color: var(--accent); background: linear-gradient(135deg, rgba(59,130,246,0.08), var(--surface)); }

.plan-badge { margin-bottom: 1rem; }
.plan-name { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.5rem; }
.plan-desc { font-size: 0.85rem; color: var(--text2); margin-bottom: 1.5rem; line-height: 1.6; }
.plan-divider { height: 1px; background: var(--border); margin-bottom: 1.5rem; }

.plan-features { list-style: none; flex: 1; }
.plan-features li {
  font-size: 0.85rem;
  color: var(--text2);
  padding: 5px 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.plan-features li::before { content: '→'; color: var(--accent2); flex-shrink: 0; margin-top: 1px; }

.plan-cta { margin-top: 2rem; }

/* SECTION: NEWSLETTER */
.newsletter-section {
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.1), transparent 70%);
  pointer-events: none;
}
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 2rem auto 0;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
  outline: none;
}
.newsletter-input:focus { border-color: var(--accent); }
.newsletter-input::placeholder { color: var(--text3); }

@media (max-width: 900px) {
  .what-grid, .plans-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .hero-data-row { grid-template-columns: repeat(2, 1fr); }
  .event-row { grid-template-columns: 60px 1fr; }
  .event-type, .event-cta { display: none; }
  .plans-teaser-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .events-header {
    align-items: flex-start;
  }
  .events-header .btn {
    width: 100%;
    justify-content: center;
  }
  .newsletter-form {
    flex-direction: column;
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .newsletter-form .newsletter-input,
  .newsletter-form .btn {
    width: 100%;
    justify-content: center;
  }
  .what-section,
  .events-section,
  .about-section,
  .plans-teaser,
  .newsletter-section {
    padding-top: clamp(3.5rem, 10vw, 6rem);
    padding-bottom: clamp(3.5rem, 10vw, 6rem);
  }
}

/* === services === */

.page-hero { padding: 6rem 0 4rem; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; max-width: 600px; margin-bottom: 1rem; }
.page-hero p { color: var(--text2); max-width: 520px; font-size: 1rem; line-height: 1.75; }

/* Center page hero on wide screens (like the homepage hero) */
.page-hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.page-hero h1,
.page-hero p {
  margin-left: 0;
  margin-right: 0;
}

/* On smaller screens, center-align hero content for better balance */
@media (max-width: 900px) {
  .hero .container,
  .page-hero .container {
    align-items: center;
    text-align: center;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-data-row {
    margin-left: auto;
    margin-right: auto;
  }

  .page-hero h1,
  .page-hero p {
    margin-left: auto;
    margin-right: auto;
  }
}

/* PLANS FULL */
.plans-section { padding: 2rem 0 5rem; }

.billing-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  font-family: var(--mono);
  font-size: 0.82rem;
}
.toggle-btn {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 6px 14px;
  color: var(--text2);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.2s;
}
.toggle-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.save-badge { color: var(--green); font-size: 0.72rem; }

.plans-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.plan-full-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.plan-full-card.featured { border-color: var(--accent); background: linear-gradient(160deg, rgba(59,130,246,0.1), var(--bg2) 60%); }

.plan-tier { font-family: var(--mono); font-size: 0.72rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.5rem; }
.plan-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.75rem; }
.plan-price { margin-bottom: 1.5rem; }
.plan-price .amount { font-size: 2.75rem; font-weight: 800; color: var(--text); letter-spacing: -0.03em; }
.plan-price .period { font-family: var(--mono); font-size: 0.8rem; color: var(--text3); }
.plan-desc { font-size: 0.88rem; color: var(--text2); line-height: 1.7; margin-bottom: 1.5rem; flex: 0; }

.plan-h-rule { height: 1px; background: var(--border); margin: 0 0 1.5rem; }

.plan-feature-group { margin-bottom: 1.25rem; }
.plan-feature-group-label { font-family: var(--mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text3); margin-bottom: 0.6rem; }
.plan-feature-list { list-style: none; }
.plan-feature-list li {
  font-size: 0.85rem;
  color: var(--text2);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 0;
}
.plan-feature-list li .check {
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 13px;
}
.plan-feature-list li.na { opacity: 0.35; }
.plan-feature-list li.na .check { color: var(--text3); }

.plan-spacer { flex: 1; }
.plan-action { margin-top: 2rem; }

/* COMPARE TABLE */
.compare-section { padding: 2rem 0 5rem; }
.compare-table-wrap { overflow-x: auto; margin-top: 2rem; }
table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
table.compare th, table.compare td {
  padding: clamp(8px, 2vw, 12px) clamp(10px, 2.5vw, 16px);
  text-align: left;
  border-bottom: 1px solid var(--border);
  word-break: break-word;
  hyphens: auto;
}
table.compare thead th {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text3);
  background: var(--bg2);
}
table.compare thead th:first-child { color: var(--text2); }
table.compare thead th.featured-col { color: var(--accent2); }
table.compare tbody tr:hover td { background: rgba(59,130,246,0.03); }
table.compare tbody td:first-child { color: var(--text2); }
table.compare .yes { color: var(--green); font-weight: 600; }
table.compare .no { color: var(--text3); }
table.compare .partial { color: var(--amber); }
table.compare .cat-row td { background: var(--bg3); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text3); padding: 8px 16px; }

/* HOW IT WORKS */
.how-section { padding: 4rem 0 6rem; background: var(--bg2); border-top: 1px solid var(--border); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 3rem;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: var(--border2);
  z-index: 0;
}
.step {
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent2);
  margin: 0 auto 1.25rem;
}
.step h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; }
.step p { font-size: 0.82rem; color: var(--text2); line-height: 1.6; }

/* FAQ */
.faq-section { padding: 5rem 0; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
.faq-item { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; }
.faq-item h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.75rem; }
.faq-item p { font-size: 0.85rem; color: var(--text2); line-height: 1.7; }

@media (max-width: 900px) {
  .plans-full-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .billing-toggle {
    flex-wrap: wrap;
    row-gap: 0.75rem;
  }
}

/* === events === */

.page-hero { padding: 6rem 0 3rem; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; max-width: 600px; margin-bottom: 1rem; }
.page-hero p { color: var(--text2); max-width: 520px; font-size: 1rem; line-height: 1.75; }

/* FILTER BAR */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}
.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 16px;
  color: var(--text2);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* FEATURED EVENT */
.featured-event {
  background: var(--bg2);
  border: 1px solid var(--accent);
  border-radius: 16px;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}
.featured-event::before {
  content: '';
  position: absolute;
  top: -50%; right: -5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(59,130,246,0.1), transparent 70%);
  pointer-events: none;
}
.featured-label { font-family: var(--mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent2); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 8px; }
.featured-event h2 { font-size: 1.6rem; font-weight: 800; line-height: 1.2; margin-bottom: 1rem; max-width: 500px; }
.featured-event .meta { font-family: var(--mono); font-size: 0.78rem; color: var(--text2); display: flex; gap: 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.featured-event .meta span { display: flex; align-items: center; gap: 6px; }
.featured-event p.desc { font-size: 0.9rem; color: var(--text2); line-height: 1.7; max-width: 500px; margin-bottom: 1.5rem; }
.featured-ctas { display: flex; gap: 1rem; }

.featured-date-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 2rem 2.5rem;
  text-align: center;
  min-width: 140px;
}
.fdc-month { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent2); margin-bottom: 4px; }
.fdc-day { font-size: 3.5rem; font-weight: 800; line-height: 1; color: var(--text); }
.fdc-year { font-family: var(--mono); font-size: 0.72rem; color: var(--text3); margin-top: 4px; }
.fdc-time { font-family: var(--mono); font-size: 0.78rem; color: var(--text2); margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px; }

/* EVENT LIST */
.events-section { padding: 0 0 5rem; }
.events-heading { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--text2); font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; }

.event-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1rem;
  transition: border-color 0.2s, transform 0.15s;
}
.event-card:hover { border-color: var(--border2); transform: translateX(3px); }

.event-card-date {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
}
.ecd-month { font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; color: var(--accent2); letter-spacing: 0.1em; }
.ecd-day { font-size: 1.75rem; font-weight: 800; color: var(--text); line-height: 1.1; }
.ecd-dow { font-family: var(--mono); font-size: 0.6rem; color: var(--text3); margin-top: 2px; }

.event-card-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.35; }
.event-card-body .emeta { font-family: var(--mono); font-size: 0.72rem; color: var(--text3); margin-bottom: 0.75rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.event-card-body p { font-size: 0.84rem; color: var(--text2); line-height: 1.6; }
.event-card-body .etags { display: flex; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }

.event-card-action { display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem; white-space: nowrap; }
.event-seats { font-family: var(--mono); font-size: 0.65rem; color: var(--amber); text-transform: uppercase; letter-spacing: 0.08em; }

/* PAST EVENTS */
.past-section { padding: 3rem 0 5rem; background: var(--bg2); border-top: 1px solid var(--border); }
.past-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }

.past-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.past-card:hover { opacity: 1; }
.past-card .pdate { font-family: var(--mono); font-size: 0.65rem; color: var(--text3); margin-bottom: 0.5rem; }
.past-card h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.5rem; line-height: 1.4; }
.past-card p { font-size: 0.8rem; color: var(--text2); }
.past-card .watch-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--accent2); margin-top: 1rem; text-decoration: none; font-family: var(--mono); }
.past-card .watch-link:hover { color: var(--text); }

/* NEWSLETTER BOX */
.events-newsletter { padding: 4rem 0; text-align: center; }
.events-nl-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 3rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}
.events-nl-box h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.75rem; }
.events-nl-box p { color: var(--text2); font-size: 0.9rem; margin-bottom: 1.5rem; }

@media (max-width: 900px) {
  .featured-event { grid-template-columns: 1fr; }
  .featured-date-card { max-width: 200px; margin: 0 auto 0 0; }
  .event-card { grid-template-columns: 70px 1fr; }
  .event-card-action { display: none; }
  .past-grid { grid-template-columns: 1fr 1fr; }
  .featured-event h2 {
    font-size: clamp(1.25rem, 4.5vw, 1.6rem);
  }
  .featured-ctas {
    flex-wrap: wrap;
  }
  .featured-ctas .btn {
    flex: 1 1 auto;
    min-width: min(100%, 160px);
    justify-content: center;
  }
}

/* === contact === */

.page-hero { padding: 6rem 0 3rem; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.1; max-width: 560px; margin-bottom: 1rem; letter-spacing: -0.02em; }
.page-hero p { color: var(--text2); max-width: 480px; font-size: 1rem; line-height: 1.75; }

.contact-section { padding: 1rem 0 6rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 4rem; align-items: start; }

.contact-info h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.contact-info p { font-size: 0.88rem; color: var(--text2); line-height: 1.7; margin-bottom: 2rem; }

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-detail-item:first-of-type { border-top: 1px solid var(--border); }

.cdi-icon {
  width: 36px; height: 36px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cdi-icon svg { width: 16px; height: 16px; stroke: var(--accent2); fill: none; stroke-width: 1.5; }

.cdi-label { font-family: var(--mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text3); margin-bottom: 2px; }
.cdi-value { font-size: 0.9rem; color: var(--text); }

.contact-form-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.5rem;
}
.contact-form-box h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.contact-form-box p { font-size: 0.85rem; color: var(--text2); margin-bottom: 2rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

.form-note { font-size: 0.75rem; color: var(--text3); text-align: center; margin-top: 1rem; font-family: var(--mono); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* === legal pages === */

.legal-page { padding: 7rem 0 6rem; }
.legal-wrap { max-width: 780px; }
.legal-header { margin-bottom: 3rem; }
.legal-header h1 {
  font-size: clamp(1.65rem, 5.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}
.legal-header .meta { font-family: var(--mono); font-size: 0.78rem; color: var(--text3); }
.legal-nav { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.legal-nav a { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text2); text-decoration: none; padding: 6px 12px; border: 1px solid var(--border); border-radius: 6px; transition: all 0.2s; }
.legal-nav a:hover, .legal-nav a.active { color: var(--accent2); border-color: rgba(59,130,246,0.3); background: rgba(59,130,246,0.06); }
.legal-body h2 { font-size: 1.15rem; font-weight: 700; margin: 2.5rem 0 0.75rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.legal-body h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.legal-body p { font-size: 0.9rem; color: var(--text2); line-height: 1.8; margin-bottom: 1rem; }
.legal-body ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.legal-body ul li { font-size: 0.9rem; color: var(--text2); line-height: 1.8; margin-bottom: 0.4rem; }
.legal-body a { color: var(--accent2); }
.disclaimer-box {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.disclaimer-box p { color: #FCD34D; font-size: 0.85rem; margin: 0; }
.highlight-box { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.25); border-radius: 10px; padding: 1.25rem 1.5rem; margin: 2rem 0; }
.highlight-box p { color: #34D399; font-size: 0.88rem; margin: 0; }

/* === global responsive refinements === */
@media (max-width: 900px) {
  .page-hero {
    padding-top: clamp(4.25rem, 11vw, 6rem);
    padding-bottom: clamp(2rem, 5vw, 4rem);
  }
}

@media (max-width: 768px) {
  .legal-page {
    padding-top: clamp(4.5rem, 14vw, 7rem);
    padding-bottom: 4rem;
  }

  .legal-wrap {
    width: 100%;
    min-width: 0;
  }

  .legal-body h2 {
    font-size: clamp(1rem, 3.5vw, 1.15rem);
  }
}

@media (max-width: 640px) {
  .hero-data-row {
    grid-template-columns: 1fr;
  }

  .past-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .hero-stat {
    padding: 1rem 1.15rem;
  }
}

@media (max-width: 480px) {
  .contact-form-box {
    padding: 1.5rem 1.15rem;
  }

  .featured-event {
    padding: 1.5rem 1.15rem;
  }

  .events-nl-box {
    padding: 2rem 1.15rem;
  }

  .plan-price .amount {
    font-size: clamp(2rem, 11vw, 2.75rem);
  }

  .event-card {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }

  .event-card-date {
    margin: 0 auto;
    max-width: 110px;
  }

  .event-card-body .emeta {
    justify-content: center;
  }

  .event-card-body .etags {
    justify-content: center;
  }

  .filter-bar {
    gap: 0.5rem;
  }

  .filter-btn {
    flex: 1 1 auto;
    min-width: calc(50% - 0.25rem);
    text-align: center;
  }
}
