/*
Theme Name: RCX - ResearchConnectX
Theme URI: https://researchconnectx.com
Author: RCX
Author URI: https://researchconnectx.com
Description: Custom landing page theme for ResearchConnectX - Where research finds its people.
Version: 1.1.4
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rcx
Tags: custom-landing, research, ai, collaboration
*/

/* â”€â”€ tokens â”€â”€ */
:root {
  /* Colors - Base Blue */
  --blue: #3171B5;
  --blue-bright: #5A9AD5;
  --blue-deep: #1B4A7A;
  --blue-glow: rgba(49, 113, 181, 0.35);
  --blue-subtle: rgba(49, 113, 181, 0.08);

  /* Semantic Theme Variables (Defaults to Light) */
  --bg: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-nav: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-input: #F1F5F9;
  --text: #0F172A;
  --text-mid: #475569;
  --text-soft: #64748B;
  --border: rgba(49, 113, 181, 0.12);
  --line: rgba(0, 0, 0, 0.06);
  --line-strong: rgba(0, 0, 0, 0.1);
  --nav-scrolled: rgba(255, 255, 255, 0.92);
  --home-nav-bg: var(--bg-nav);
  --home-nav-scrolled: var(--nav-scrolled);
  --home-nav-link: var(--text-mid);
  --home-nav-link-hover: var(--blue);
  --hero-text: #0F172A;
  --hero-sub: #475569;
  --modal-bg: #FFFFFF;
  --modal-text: #111111;
  --modal-overlay: rgba(255, 255, 255, 0.75);

  --white: #ffffff;
  --black: #000000;
  /* Back-compat tokens used by older templates/Elementor styles */
  --dark: #071420;
  --dark-surface: #0B1C2E;
  --dark-nav: #0A1A29;
  --dark-card: #112840;
  --dark-border: rgba(49, 113, 181, 0.18);
  --surface: #FAFBFF;
  --off-white: #F5F7FC;
  --ink: var(--text);
  --ink-mid: var(--text-mid);
  --ink-soft: var(--text-soft);

  /* Spacing & Radii */
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;

  /* Shadows */
  --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 8px 32px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 60px rgba(49, 113, 181, 0.15);

  /* Typography */
  --font-sans: "Space Grotesk", system-ui, sans-serif;
  --font-serif: "IBM Plex Serif", Georgia, serif;
  --font-mono: "IBM Plex Mono", monospace;

  --max-w: 1200px;
  --prose-width: 680px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #071420;
  --bg-surface: #0B1C2E;
  --bg-nav: #0A1A29;
  --bg-card: #112840;
  --bg-input: rgba(255, 255, 255, 0.05);
  --text: rgba(255, 255, 255, 0.95);
  --text-mid: rgba(255, 255, 255, 0.7);
  --text-soft: rgba(255, 255, 255, 0.5);
  --border: rgba(49, 113, 181, 0.18);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --surface: #102236;
  --off-white: #0B1B2B;
  --nav-scrolled: rgba(10, 26, 41, 0.95);
  --home-nav-scrolled: rgba(10, 26, 41, 0.95);
  --home-nav-bg: #0A1A29;
  --home-nav-link: rgba(255, 255, 255, 0.68);
  --home-nav-link-hover: #FFFFFF;
  --hero-text: #FFFFFF;
  --hero-sub: rgba(255, 255, 255, 0.7);
  --modal-bg: #112840;
  --modal-text: #FFFFFF;
  --modal-overlay: rgba(0, 0, 0, 0.85);
  color-scheme: dark;
}

/* â”€â”€ reset â”€â”€ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-sans); color: var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; background: var(--bg); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; object-fit: contain; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--blue);
  z-index: 2000;
  transition: width 0.1s ease-out;
}

.global-canvas-container {

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background: var(--bg);
}

#network-canvas {
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

ul { list-style: none; margin: 0; padding: 0; }

/* â”€â”€ typography â”€â”€ */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); color: var(--text); }
h1 { font-size: clamp(2.4rem, 10vw, 5rem); line-height: 1.02; letter-spacing: -0.025em; font-weight: 500; }
h2 { font-size: clamp(1.6rem, 6vw, 2.8rem); line-height: 1.08; letter-spacing: -0.02em; font-weight: 500; }
h3 { font-size: clamp(1.05rem, 3vw, 1.25rem); line-height: 1.25; font-weight: 600; }
p { line-height: 1.7; font-size: 1rem; }
.text-soft { color: var(--text-soft); }
.text-sm { font-size: 0.88rem; }

.label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--blue);
}

.label--light { color: var(--blue-bright); }

/* â”€â”€ helper classes â”€â”€ */
.text-white { color: #ffffff !important; }
.bg-off-white { background: var(--off-white) !important; color: var(--text) !important; }
.centered { text-align: center; }

.label {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue-bright);
  margin-bottom: 12px;
}

.label--blue {
  color: var(--blue);
}
.section-header { margin-bottom: clamp(40px, 8vw, 60px); }
.section-header.centered { margin: 0 auto clamp(40px, 8vw, 60px); max-width: 100%; }

/* â”€â”€ layout â”€â”€ */
.wrap {
  width: min(calc(100% - 40px), var(--max-w));
  margin: 0 auto;
}

/* â”€â”€ buttons â”€â”€ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 220ms ease;
  border: 1px solid transparent;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 32px rgba(49, 113, 181, 0.3);
}
.btn--primary:hover { box-shadow: 0 16px 40px rgba(49, 113, 181, 0.4); background: var(--blue-bright); }

.btn--outline {
  border-color: var(--blue);
  color: var(--blue);
  background: transparent;
}
.btn--outline:hover { border-color: var(--blue-bright); color: var(--blue-bright); background: var(--blue-subtle); }

/* Dark theme button outline */
.page-standard .btn--outline {
  border-color: var(--blue);
  color: var(--blue);
  background: transparent;
}

.page-standard .btn--outline:hover {
  border-color: var(--blue-bright);
  color: var(--blue-bright);
  background: var(--blue-subtle);
}

.btn--ghost {
  color: var(--blue);
  padding: 14px 8px;
}
.btn--ghost:hover { color: var(--blue-deep); }

.btn--ghost::after {
  content: "\2192";
  transition: transform 220ms ease;
}
.btn--ghost:hover::after { transform: translateX(4px); }

/* â”€â”€ nav â”€â”€ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 84px;
  padding: 0;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--line);
  transition: all 300ms ease;
}

.home .nav {
  background: var(--home-nav-bg);
  border-bottom: none;
  color: var(--text);
}

.nav.is-scrolled {
  background: var(--nav-scrolled);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.home .nav.is-scrolled {
  background: var(--home-nav-scrolled);
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}

.nav__logo img { height: 52px; width: auto; }

.nav__links {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  flex: 1;
}

.nav__links ul {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: nowrap;
}

.nav__links li {
  list-style: none;
}

.nav__links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  opacity: 1;
  transition: color 200ms;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.nav__links a:hover { color: var(--ink); }

.nav__links li {
  position: relative;
}

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-nav);
  border: 1px solid var(--line);
  border-top: none;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 240ms ease;
  display: flex !important;
  flex-direction: column;
  gap: 0 !important;
  padding: 12px 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.nav__links li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu li {
  width: 100%;
}

.sub-menu a {
  padding: 10px 24px;
  display: block;
  white-space: nowrap;
  font-size: 0.75rem !important;
  opacity: 0.8;
}

.sub-menu a:hover {
  background: var(--blue-subtle);
  opacity: 1;
  color: var(--blue-bright);
}

.home .nav .nav__links a { color: var(--home-nav-link); }
.home .nav .nav__links a:hover { color: var(--home-nav-link-hover); }

.home .nav .nav__toggle {
  border-color: var(--line-strong);
  color: var(--text-mid);
}

.home .theme-toggle {
  border-color: var(--line-strong);
  color: var(--text-mid);
}

.home .theme-toggle:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.nav__cta { display: none; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-soft);
  padding: 0;
  transition: all 200ms ease;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--bg-input);
}

.theme-toggle__icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-subtle);
}

.theme-toggle__label {
  display: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav__toggle {
  display: flex;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav__toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: 0 auto;
}

.nav-panel {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
}

.nav-panel-open .nav-panel {
  pointer-events: auto;
}

.nav-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}

.nav-panel__inner {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(260px, 80vw, 340px);
  height: 100%;
  background: var(--bg-nav);
  transform: translateX(100%);
  transition: transform 260ms ease;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nav-panel__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-panel__links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nav-panel__links li {
  margin: 0;
}

.nav-panel__links a {
  font-weight: 500;
  color: var(--text-mid);
}

.nav-panel__cta {
  align-self: flex-start;
}

.nav-panel__close {
  align-self: flex-end;
  background: transparent;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.nav-panel-open .nav-panel__backdrop {
  pointer-events: auto;
  opacity: 1;
}

.nav-panel-open .nav-panel__inner {
  transform: translateX(0);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
}

/* â”€â”€ expanded footer â”€â”€ */
.footer--expanded {
  padding: 60px 0 24px;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg) 100%);
  color: var(--text-mid);
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer__brand img {
  max-height: 36px;
}

.footer__tagline {
  margin: 12px 0 18px;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social-link {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer__column h3,
.footer__newsletter h3 {
  margin-bottom: 12px;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer__menu ul,
.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__menu a,
.footer__list a {
  color: var(--text-soft);
}

.footer__newsletter {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  align-self: stretch;
}

.footer__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__form input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg-input);
  color: var(--text);
}

.footer__bottom {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.footer__bottom-inner {
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.footer__links a {
  color: var(--text-soft);
  margin-left: 0;
}

.footer__links a:hover {
  color: var(--text);
}

.post-category-links a {
  color: inherit;
  border-bottom: 1px solid transparent;
}

.post-category-links a:hover {
  border-bottom-color: currentColor;
}

/* â”€â”€ feature image refinements â”€â”€ */
.feature__visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow), 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s ease;
}
.feature:hover .feature__visual img { transform: scale(1.02); }

/* â”€â”€ subscribe section â”€â”€ */
.subscribe-banner {
  padding: 80px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.subscribe-banner::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--blue-glow), transparent 70%);
  pointer-events: none;
}

.subscribe-banner__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.subscribe-banner__form {
  display: flex;
  gap: 12px;
}

.subscribe-banner__form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-input);
  color: var(--text);
}

.subscribe-banner__form input:focus {
  outline: none;
  border-color: var(--blue-bright);
  background: var(--bg-input);
}

.subscribe-sub {
  color: var(--text-mid);
  margin-top: 16px;
  font-size: 1.05rem;
}

.subscribe-notice {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.waitlist {
  padding: 100px 0;
  background: var(--bg);
}

.waitlist__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 991px) {
  .waitlist__wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.waitlist__content h2 {
  margin: 12px 0 20px;
}

.waitlist__content p {
  margin-bottom: 32px;
  color: var(--text-mid);
  font-size: 1.1rem;
}

.waitlist__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-surface);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.waitlist__form input {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: var(--bg-input);
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.waitlist__form input:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--bg-surface);
  box-shadow: 0 0 0 4px var(--blue-subtle);
}

.waitlist__form .btn {
  margin-top: 8px;
  justify-content: center;
}

/* â”€â”€ contact page â”€â”€ */
.contact-hero {
  padding-bottom: 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  align-items: stretch;
}

.contact-panel {
  background: rgba(7, 20, 34, 0.85);
  padding: 32px;
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.contact-panel__notice {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(49, 113, 181, 0.15);
}

.contact-panel__details {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
}

.contact-panel__details strong {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 12px 14px;
  background: var(--bg-input);
  color: var(--text);
}

.contact-form textarea {
  min-height: 130px;
}

.contact-calendar {
  background: rgba(7, 20, 34, 0.5);
  margin-top: 40px;
}

.contact-calendar__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.contact-calendar__iframe iframe {
  width: 100%;
  min-height: 400px;
  border: none;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* â”€â”€ blog layout â”€â”€ */
.section--blog {
  padding: 80px 0;
}

.blog-header {
  width: 100%;
  margin-bottom: 40px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}

.post-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.post-card__image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.post-card__body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-card__meta {
  font-size: 0.8rem;
  color: var(--text-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* â”€â”€ single post â”€â”€ */
body.single-post {
  padding: 0;
}

.single-post__article {
  background: var(--bg-card);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.single-post__image img {
  border-radius: 20px;
  width: 100%;
  height: auto;
}

.single-post__meta {
  display: flex;
  gap: 12px;
  color: var(--text-soft);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.single-post h1 {
  margin-bottom: 18px;
}

.single-post__content {
  line-height: 1.8;
  margin-bottom: 24px;
}

.post-share {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.post-share a {
  color: var(--blue);
  font-weight: 600;
}

.post-sidebar {
  margin-top: 32px;
}

.post-sidebar__cta {
  background: rgba(7, 20, 34, 0.9);
  color: #fff;
  padding: 24px;
  border-radius: 24px;
  width: 100%;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.related-posts {
  margin-top: 60px;
}

/* â”€â”€ mobile CTA bar â”€â”€ */
.rcx-mobile-cta {
  position: sticky;
  bottom: 16px;
  z-index: 99;
  width: calc(100% - 40px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-nav);
  padding: 16px;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.rcx-mobile-cta a {
  color: white;
  font-size: 0.9rem;
}


/* â”€â”€ hero (dark) â”€â”€ */
.hero {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero-variant {
  min-height: auto;
  padding: 140px 0 100px;
  background: var(--bg-card);
  color: var(--text);
}

.hero-variant h1 { color: var(--hero-text); }

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__canvas canvas {
  width: 100%;
  height: 100%;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(49, 113, 181, 0.12), transparent),
    radial-gradient(circle at 20% 30%, rgba(49, 113, 181, 0.08), transparent 50%);
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
}

.hero__grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
}

.hero__text { width: 100%; }

.hero__text h1 {
  color: var(--hero-text);
}

.hero__text h1 em {
  font-style: normal;
  color: var(--blue-bright);
}

.hero__sub {
  margin-top: 24px;
  font-size: 1.1rem;
  color: var(--hero-sub);
  max-width: 44ch;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
  align-self: stretch;
}

.hero__actions .btn {
  justify-content: center;
}

.hero__actions .btn--outline {
  border-color: var(--line-strong);
  color: var(--hero-text);
  background: transparent;
}
.hero__actions .btn--outline:hover {
  border-color: var(--blue-bright);
  color: var(--blue-bright);
}

/* hero visual: floating match cards */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 440px;
}

.hero-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(12px);
  animation: float 6s ease-in-out infinite;
  min-width: 260px;
}

.hero-card--1 {
  top: 0; left: 0;
  animation-delay: 0s;
}
.hero-card--2 {
  top: 40%; right: 0;
  animation-delay: -2s;
}
.hero-card--3 {
  bottom: 0; left: 15%;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-card__type {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--blue-bright);
  margin-bottom: 8px;
}

.hero-card__title {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.hero-card__desc {
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.5;
}

.hero-card__score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(49, 113, 181, 0.15);
  border: 1px solid rgba(49, 113, 181, 0.25);
  color: var(--blue-bright);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-card__score::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 8px var(--blue-glow);
}

/* hero signals strip */
.hero__signals {
  position: relative;
  z-index: 2;
  padding: 32px 0 48px;
  border-top: 0;
}

.hero__signals-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero__signals-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}

.hero__signals-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.signal-tag {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-surface);
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 300ms ease;
}

.signal-tag:hover {
  border-color: var(--blue);
  color: var(--blue-bright);
  background: var(--blue-subtle);
}

/* â”€â”€ section spacing â”€â”€ */
.section { padding: 80px 0; }
.section--tight { padding: 60px 0; }

/* â”€â”€ how-it-works (3 steps) â”€â”€ */
.steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  padding: 48px 36px;
  position: relative;
}

.step__number {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 500;
  color: var(--blue);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 20px;
}

.step h3 { margin-bottom: 12px; }

.step p { color: var(--text-soft); font-size: 0.92rem; }

.step::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 600ms ease;
}

.step:hover::after {
  transform: scaleX(1);
}

/* profile source pills inside step 01 */
.profile-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.profile-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-deep);
  transition: all 250ms ease;
}

.profile-source svg { color: var(--blue); flex-shrink: 0; }

.profile-source:hover {
  border-color: var(--blue);
  background: var(--blue-subtle);
  transform: translateY(-1px);
}

/* â”€â”€ connect section (horizontal scroll cards) â”€â”€ */
.connect__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
}

.connect__header p {
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 48ch;
}

.connect__track {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.connect-card {
  position: relative;
  padding: 36px 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--bg-card);
  transition: all 350ms ease;
  overflow: hidden;
}

.connect-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  opacity: 0;
  transition: opacity 300ms ease;
}

.connect-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.connect-card:hover::before { opacity: 1; }

.connect-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--blue-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.4rem;
}

.connect-card h3 { margin-bottom: 10px; }
.connect-card p { color: var(--text-soft); font-size: 0.88rem; }

.connect-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}

.connect-card__tags span {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--off-white);
  color: var(--text-mid);
  font-size: 0.76rem;
  font-weight: 500;
}

/* â”€â”€ audience strip â”€â”€ */
.audience {
  padding: 40px 0;
}

.audience__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.audience__tag {
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: all 250ms ease;
}

.audience__tag:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-subtle);
}

/* â”€â”€ features (alternating) â”€â”€ */
.feature {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
  padding: 60px 0;
}

.feature__text .label { margin-bottom: 16px; }
.feature__text h2 { margin-bottom: 20px; }
.feature__text p { color: var(--text-soft); max-width: 80ch; }

.feature__list {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.feature__list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-mid);
}

.feature__list-item::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--blue-subtle);
  border: 2px solid var(--blue);
}

.feature__visual {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 32px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.feature__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(49, 113, 181, 0.06), transparent 60%);
  pointer-events: none;
}

/* feature visual: mock UI elements */
.mock-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--line);
  margin-bottom: 8px;
}
.mock-bar--short { width: 60%; }
.mock-bar--medium { width: 80%; }
.mock-bar--fill { background: linear-gradient(90deg, var(--blue), var(--blue-bright)); }

.mock-card {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-card);
  margin-bottom: 12px;
}

.mock-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-subtle);
  border: 2px solid var(--blue);
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mock-text {
  flex: 1;
}

.mock-score {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--blue-subtle);
  color: var(--blue-deep);
  font-size: 0.8rem;
  font-weight: 700;
}

.mock-kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mock-kanban-col {
  border-radius: var(--radius-sm);
  background: var(--off-white);
  padding: 12px;
  min-height: 120px;
}

.mock-kanban-col-header {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
}

.mock-kanban-item {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--text-mid);
  margin-bottom: 6px;
}

/* survey builder mock */
.mock-survey {
  display: grid;
  gap: 14px;
}

.mock-question {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.mock-question-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.mock-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.mock-option::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  flex-shrink: 0;
}

.mock-option.is-selected::before {
  background: var(--blue);
  border-color: var(--blue);
}

.mock-progress-ring {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
}

.mock-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid var(--line);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-ring::after {
  content: attr(data-label);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue-deep);
}

/* â”€â”€ mission strip â”€â”€ */
.mission {
  background: var(--bg);
  color: var(--text);
  padding: 80px 0;
  text-align: center;
}

.mission p {
  color: var(--text-mid);
  max-width: 80ch;
  margin: 24px auto 0;
  font-size: 1.05rem;
}

/* â”€â”€ CTA â”€â”€ */
.cta {
  text-align: center;
  padding: 100px 0 120px;
}

.cta h2 { margin-bottom: 16px; }

.cta p {
  color: var(--text-soft);
  max-width: 48ch;
  margin: 0 auto 36px;
}

.cta--banner {
  padding: 100px 0;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  color: var(--text);
  text-align: center;
}

.cta-sub {
  margin: 20px 0 32px;
  opacity: 0.9;
  font-size: 1.1rem;
}

/* â”€â”€ footer â”€â”€ */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 0.82rem;
  color: var(--text-soft);
  transition: color 200ms;
}
.footer__links a:hover { color: var(--blue); }

/* â”€â”€ services â”€â”€ */
.services-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 32px;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  border-color: var(--blue);
  box-shadow: 0 24px 80px rgba(49, 113, 181, 0.2);
  transform: translateY(-4px);
  background: rgba(17, 40, 64, 0.8);
}

.service-card__icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  background: var(--blue-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.service-card__icon img {
  width: 100%;
  height: auto;
}

.service-card h3 {
  margin-bottom: 16px;
  font-size: clamp(1.2rem, 3vw, 1.4rem);
}

.service-card p {
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.service-card h3 {
  color: var(--text);
}

.service-card__list {
  margin-top: 24px;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.service-card__list li {
  font-size: 0.92rem;
  color: var(--text-mid);
  padding-left: 24px;
  position: relative;
}

.service-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 2px;
  background: var(--blue-bright);
}

/* â”€â”€ insights hub â”€â”€ */
.insights-grid {
  display: grid;
  gap: 32px;
}

.insight-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.insight-card:hover {
  border-color: var(--blue);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.insight-card__visual {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.insight-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.insight-card:hover .insight-card__visual img {
  transform: scale(1.05);
}

.insight-card__content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.insight-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge {
  color: var(--blue-bright);
}

.read-time {
  color: var(--text-soft);
}

.insight-card h2, .insight-card h3 {
  color: var(--text);
  line-height: 1.2;
}

.insight-card h2 a, .insight-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 200ms;
}

.insight-card h2 a:hover, .insight-card h3 a:hover {
  color: var(--blue-bright);
}

.insight-card h2 { font-size: 1.75rem; }
.insight-card h3 { font-size: 1.4rem; }

.insight-card p {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.6;
}

.insight-card--feature .insight-card__visual {
  height: 380px;
}

.btn-text {
  margin-top: auto;
  color: var(--blue-bright);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-text::after {
  content: "\2192";
  transition: transform 200ms;
}

.insight-card:hover .btn-text::after {
  transform: translateX(4px);
}

.insight-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 16px 0;
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.insight-card__stats .stat .value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-serif);
}

.insight-card__stats .stat .label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
}

/* â”€â”€ briefs â”€â”€ */
.briefs-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brief-item {
  background: var(--bg-nav);
  border: 1px solid var(--line);
  padding: 24px 32px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 300ms ease;
}

.brief-item:hover {
  background: var(--bg-card);
  border-color: var(--blue-glow);
  transform: translateX(8px);
}

.brief-item__date {
  font-size: 0.75rem;
  color: var(--blue-bright);
  font-weight: 600;
}

.brief-item h4 {
  color: var(--text);
  font-weight: 500;
  font-size: 1.1rem;
}

/* â”€â”€ animations â”€â”€ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }

/* Force visibility inside Elementor Editor */
.elementor-editor-active .reveal {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* â”€â”€ responsive â”€â”€ */

/* â”€â”€ Desktop Enhancements (min-width: 992px) â”€â”€ */
@media (min-width: 992px) {
  .nav__toggle { display: none; }
  .nav__links { display: flex; }
  .nav__cta { display: flex; }
  .theme-toggle { width: auto; padding: 0 14px; }
  .theme-toggle__label { display: inline; }
  .rcx-mobile-cta { display: none; }
  
  .section { padding: 120px 0; }
  
  .hero__grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(40px, 6vw, 120px);
    align-items: center;
  }
  
  .steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--line);
    border-radius: var(--radius-xl);
    overflow: hidden;
  }
  
  .connect__track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(16px, 2vw, 32px);
  }
  
  .feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(60px, 10vw, 180px);
    align-items: center;
  }
  
  .feature:nth-child(even) .feature__visual { order: -1; }

  .services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  .service-card {
    flex-direction: row;
    gap: 48px;
    align-items: flex-start;
  }
  
  .insight-card {
    flex-direction: row;
    align-items: stretch;
    min-height: 500px;
  }
  
  .insight-card:nth-child(even) {
    flex-direction: row-reverse;
  }
  
  .insight-card__visual {
    width: 50%;
    height: auto;
  }
  
  .insight-card__content {
    width: 50%;
    justify-content: center;
    padding: clamp(32px, 5vw, 80px);
  }
  
  .insight-card--feature {
    grid-column: span 1;
  }
  
  .briefs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  
  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
    gap: 36px;
    align-items: flex-start;
  }
  
  .waitlist__wrap {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }
  
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero__actions {
    flex-direction: row;
    align-self: flex-start;
  }
}

/* â”€â”€ Tablet Refinements (min-width: 768px) and (max-width: 991px) â”€â”€ */
@media (min-width: 768px) and (max-width: 991px) {
  .connect__track {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .footer__newsletter {
    grid-column: 1 / -1;
  }
}

/* â”€â”€ Page Standard - Dark Theme â”€â”€ */
.page-standard {
  background: var(--bg);
  color: var(--text);
}

.page-hero {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--blue-subtle) 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero__inner {
  width: 100%;
}

.page-hero__label {
  display: block;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--blue-bright);
  margin-bottom: 16px;
}

.page-hero h1 {
  color: var(--text);
  margin-bottom: 24px;
}

.page-hero__summary {
  font-size: 1.1rem;
  color: var(--text-mid);
  line-height: 1.8;
  max-width: 80ch;
}

.page-standard__content {
  padding: 80px 0;
}

.page-fallback {
  max-width: 900px;
}

.page-fallback__intro {
  font-size: 1.15rem;
  color: var(--text-mid);
  margin-bottom: 60px;
  line-height: 1.8;
}

.page-standard__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 80px;
}

.page-standard__card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.page-standard__card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(49, 113, 181, 0.15);
}

.page-standard__card h3 {
  color: var(--text);
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.page-standard__card p {
  color: var(--text-mid);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.page-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-bottom: 80px;
}

.page-media-card {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}

.page-media-card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(49, 113, 181, 0.15);
}

.page-media-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-media-card figcaption {
  padding: 20px;
  color: var(--text-mid);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.6;
}

.page-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
  padding: 40px;
  background: rgba(49, 113, 181, 0.08);
  border: 1px solid rgba(49, 113, 181, 0.15);
  border-radius: 20px;
}

.page-stat {
  text-align: center;
}

.page-stat__value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--blue-bright);
  margin: 0 0 8px 0;
  font-family: var(--font-serif);
}

.page-stat__label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin: 0;
  font-weight: 500;
}

.page-fallback__actions {
  display: flex;
  gap: 16px;
  margin: 60px 0;
  flex-wrap: wrap;
}

.page-fallback__actions .btn {
  flex: 1;
  min-width: 200px;
  text-align: center;
  justify-content: center;
}

.page-fallback__closing {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

/* Apply dark theme to nav on non-homepage */
body:not(.home) .nav {
  background: var(--bg-nav);
  border-bottom-color: var(--line);
}

body:not(.home) .nav__links a {
  color: var(--ink-soft);
}

body:not(.home) .nav__links a:hover {
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; }
  .hero-card { animation: none; }
  .btn, .chip, .connect-card, .signal-tag, .audience__tag { transition: none; }
  * { animation: none !important; }
}

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--blue-bright);
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* Prose Wrapper */
.wrap--prose {
  max-width: var(--prose-width);
  margin: 0 auto;
  width: 90%;
}

.post-content {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  line-height: 1.75;
  color: var(--text);
}

.post-content p {
  margin-bottom: 1.8em;
}

.post-content h2, .post-content h3 {
  margin: 2em 0 1em;
  color: var(--text);
}

/* Post Hero */
.post-hero-standard {
  position: relative;
  padding: 140px 0 80px;
  background: var(--bg-nav);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.post-hero__bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  filter: grayscale(1) contrast(1.2);
}

.post-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.post-hero__content h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin-top: 24px;
}

/* Meta Premium */
.post-meta-premium {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--blue);
}

.post-author__info {
  display: flex;
  flex-direction: column;
}

.post-author__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.post-author__role {
  font-size: 0.75rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-meta__details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 4px;
}

/* Blog Landing Hero */
.blog-hero {
  position: relative;
  padding: 180px 0 120px;
  background: var(--bg);
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 20, 34, 0.35) 0%, rgba(7, 20, 34, 0.55) 100%);
  pointer-events: none;
}

.blog-hero__bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
}

.blog-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.blog-hero__content h1 {
  font-size: clamp(2.5rem, 8vw, 4.8rem);
  margin: 20px 0;
}

.blog-hero__content p {
  font-size: 1.25rem;
  color: var(--text-mid);
  margin-bottom: 32px;
}

/* Blog Nav / Categories */
.blog-nav {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.blog-categories {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.blog-categories::-webkit-scrollbar { display: none; }

.blog-categories a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
}

.blog-categories a:hover,
.blog-categories a.is-active {
  color: var(--blue-bright);
}

/* Post Cards Enhancement */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 32px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-8px);
  border-color: var(--blue-glow);
  box-shadow: var(--shadow-glow);
}

.post-card__image {
  display: block;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--bg-surface) 0%, var(--bg-input) 100%);
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.post-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-soft);
}

.post-card:hover .post-card__image img {
  transform: scale(1.05);
}

.post-card__body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.post-card__meta time {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.post-card__title {
  font-size: 1.4rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.post-card__excerpt {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 24px;
  line-height: 1.6;
}

.btn-text {
  font-weight: 600;
  color: var(--blue-bright);
  font-size: 0.9rem;
  margin-top: auto;
}

/* Responsive Blog Adjustments */
@media (max-width: 768px) {
  .subscribe-banner {
    padding: 60px 0;
  }

  .subscribe-banner__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .subscribe-banner__form {
    flex-direction: column;
    align-items: stretch;
  }

  .subscribe-banner__form input {
    border-radius: 16px;
  }

  .subscribe-banner__form .btn {
    width: 100%;
    justify-content: center;
  }

  .post-meta-premium {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .post-meta__details {
    align-items: flex-start;
    text-align: left;
  }

  .theme-toggle {
    width: 38px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer__links {
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .blog-hero {
    min-height: 50vh;
    padding: 140px 0 80px;
  }

  .blog-hero__content p {
    font-size: 1rem;
  }
}


.footer__social-mini { display: inline-flex; gap: 12px; margin-left: 20px; align-items: center; vertical-align: middle; }
.footer__social-mini a { color: var(--text-soft); transition: color 0.2s; }
.footer__social-mini a:hover { color: var(--blue); }

/* -- blog landing refinements -- */
.blog-hero { position: relative; min-height: 70vh; display: flex; align-items: center; overflow: hidden; background: var(--bg-card); color: var(--text); }
.blog-hero__bg { position: absolute; inset: 0; z-index: 0; opacity: 0.4; }
.blog-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.blog-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, var(--bg-card) 20%, transparent 80%); z-index: 1; }
.blog-hero__content { position: relative; z-index: 2; max-width: 600px; }
.blog-hero h1 { margin: 16px 0 24px; font-size: clamp(2rem, 5vw, 3.5rem); color: var(--hero-text); }
.blog-hero p { font-size: 1.2rem; opacity: 0.8; margin-bottom: 32px; color: var(--hero-sub); }

.submission-banner { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 60px; border-radius: 30px; background: var(--bg-input); border: 1px solid var(--line); }
.submission-banner h2 { color: var(--text); margin: 12px 0 16px; }
.submission-banner p { color: var(--text-mid); margin-bottom: 24px; }
.submission-banner__form { background: var(--bg-surface); padding: 40px; border-radius: 20px; color: var(--text); }

.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 40px; }
.post-card { background: var(--bg-surface); border-radius: 24px; overflow: hidden; border: 1px solid var(--line); transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); }
.post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-glow); border-color: var(--blue-bright); }
.post-card__image { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-input); }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.post-card:hover .post-card__image img { transform: scale(1.08); }
.post-card__body { padding: 32px; }
.post-card__meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 0.85rem; }
.post-card__title { font-size: 1.5rem; line-height: 1.3; margin-bottom: 16px; font-family: var(--font-serif); }
.post-card__excerpt { font-size: 0.95rem; color: var(--text-mid); margin-bottom: 24px; line-height: 1.6; }
.btn-text { font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem; }

/* -- Premium Modal & Form Overhaul -- */
.modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; visibility: hidden; opacity: 0; transition: all 0.4s ease; }
.modal.is-active { visibility: visible; opacity: 1; }
.modal__overlay { position: absolute; inset: 0; background: var(--modal-overlay); backdrop-filter: blur(8px); }
.modal__container { position: relative; width: 100%; max-width: 800px; max-height: 90vh; background: var(--modal-bg); backdrop-filter: blur(20px); border: 1px solid var(--line-strong); border-radius: 30px; overflow-y: auto; padding: 60px; box-shadow: 0 40px 100px rgba(0,0,0,0.2); transform: translateY(40px); transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); color: var(--modal-text); }
.modal.is-active .modal__container { transform: translateY(0); }
.modal__close { position: absolute; top: 30px; right: 30px; background: none; border: none; color: var(--modal-text); font-size: 2.5rem; cursor: pointer; opacity: 0.5; transition: opacity 0.2s; }
.modal__close:hover { opacity: 1; }
.modal__header { margin-bottom: 40px; text-align: center; }
.modal__header h2 { font-size: 2.5rem; color: var(--modal-text); margin: 12px 0; }
.modal__header p { color: var(--text-mid); }

/* User Submitted Posts Form Premium Styling */
#usp_form, .usp-form { color: var(--modal-text); }
.usp-form label { display: block; margin-bottom: 10px; font-weight: 600; color: var(--modal-text); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }
.usp-form input[type="text"], .usp-form input[type="url"], .usp-form textarea, .usp-form select { width: 100%; padding: 16px 20px; background: var(--bg-input); border: 1px solid var(--line); border-radius: 12px; color: var(--modal-text); font-size: 1rem; margin-bottom: 24px; transition: all 0.3s; }
.usp-form input:focus, .usp-form textarea:focus { border-color: var(--blue-bright); outline: none; box-shadow: 0 0 0 4px rgba(0,210,255,0.1); }
.usp-form textarea { min-height: 150px; }
.usp-form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; background-size: 18px; }
.usp-form .usp-submit { width: 100%; padding: 18px; background: var(--blue-bright); border: none; border-radius: 12px; color: #000; font-weight: 700; font-size: 1.1rem; cursor: pointer; transition: transform 0.2s, background 0.2s; }
.usp-form .usp-submit:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }

/* Force Premium Form Styling */
.modal__content #usp_form input, .modal__content #usp_form textarea, .modal__content #usp_form select { background: var(--bg-input) !important; border: 1px solid var(--line) !important; color: var(--modal-text) !important; padding: 15px !important; border-radius: 10px !important; margin-bottom: 20px !important; width: 100% !important; }
.modal__content #usp_form label { color: var(--modal-text) !important; font-weight: 600 !important; display: block !important; margin-bottom: 8px !important; }
.modal__content #usp_form .usp-submit { background: var(--blue-bright) !important; color: #000 !important; font-weight: 700 !important; border: none !important; padding: 18px !important; border-radius: 10px !important; cursor: pointer !important; width: 100% !important; transition: all 0.3s !important; }
.modal__content #usp_form .usp-submit:hover { background: var(--blue) !important; color: #fff !important; transform: translateY(-2px) !important; }

/* ── ANNOUNCEMENT BAR ── */
.announcement-bar {
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-bright) 100%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
  z-index: 200;
}
.announcement-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  position: relative;
}
.announcement-bar__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}
.announcement-bar p {
  margin: 0;
  color: rgba(255,255,255,0.9);
}
.announcement-bar a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.announcement-bar__close {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}
.announcement-bar__close:hover { color: #fff; }

/* ── STATS TRUST BAR ── */
.stats-bar-section {
  padding: 60px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-surface);
}
.stats-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 20px 0;
}
.stat-item .stat-num {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--blue-bright);
  line-height: 1;
  font-family: var(--font-body);
}
.stat-item .stat-suffix {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--blue-bright);
}
.stat-item p {
  font-size: 0.82rem;
  color: var(--text-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 8px 0 0;
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--line);
}
@media (max-width: 768px) {
  .stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .stat-divider { display: none; }
  .stat-item { padding: 24px 16px; border-bottom: 1px solid var(--line); }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--line); }
}

/* ── TESTIMONIALS ── */
.testimonials-section {
  background: var(--bg);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 60px;
}
.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 4rem;
  color: var(--blue-bright);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.testimonial-card__quote {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-mid);
  font-style: italic;
  flex: 1;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-subtle);
  border: 2px solid var(--blue);
  color: var(--blue-bright);
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-card__author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 2px;
}
.testimonial-card__author span {
  font-size: 0.78rem;
  color: var(--text-soft);
}
@media (max-width: 991px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ── FAQ SECTION ── */
.faq-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--line);
}
.faq-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  align-items: start;
}
.faq-header {
  position: sticky;
  top: 100px;
}
.faq-header h2 {
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 16px;
  font-family: var(--font-serif);
}
.faq-sub {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
}
.faq-sub a {
  color: var(--blue-bright);
  text-decoration: underline;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--blue-bright); }
.faq-chevron {
  flex-shrink: 0;
  color: var(--text-soft);
  transition: transform 0.3s ease;
}
.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: var(--blue-bright);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-answer.is-open {
  max-height: 400px;
  padding-bottom: 24px;
}
.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.8;
  margin: 0;
}
@media (max-width: 768px) {
  .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .faq-header { position: static; }
}



/* ── CONTACT PAGE SOCIAL ICON LINKS ── */
.contact-social-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.contact-social-links .sep {
  color: var(--line-strong);
}

/* ── BACK TO TOP BUTTON ── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(49,113,181,0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--blue-bright);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(49,113,181,0.5);
}

/* ── MOBILE ALIGNMENT FIXES ── */
@media (max-width: 767px) {
  .about-team .post-card__body {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .about-team .post-card__body div[style*="width: 80px"] {
    margin-left: auto;
    margin-right: auto;
  }

  /* Force visibility for reveal elements in grid on mobile */
  .posts-grid.reveal, .posts-grid .reveal {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }

  /* Fix posts grid overflow on mobile */
  .posts-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Show sub-menus in mobile menu */
  .nav-panel__links .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 8px 0 0 16px !important;
    display: flex !important;
    flex-direction: column;
    gap: 8px !important;
  }
  .nav-panel__links .sub-menu a {
    font-size: 0.85rem !important;
    opacity: 0.8;
  }
}


/* --- Contact Form Notices --- */
.rcx-notice {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.rcx-notice svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.rcx-notice strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.rcx-notice p {
  margin: 0;
  opacity: 0.85;
}

.rcx-notice--success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #16a34a;
}

[data-theme="dark"] .rcx-notice--success {
  background: rgba(34, 197, 94, 0.08);
  color: #4ade80;
}

.rcx-notice--error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #dc2626;
}

[data-theme="dark"] .rcx-notice--error {
  background: rgba(239, 68, 68, 0.08);
  color: #f87171;
}

/* Styled select to match theme inputs */
.rcx-select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  transition: border-color 200ms, box-shadow 200ms;
}

.rcx-select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-subtle);
}


/* --- About Page Story Section (Alternating Blocks) --- */
.about-story {
  padding: clamp(60px, 10vw, 100px) 0;
  background: var(--bg);
}

/* Vertical timeline */
.story-timeline {
  position: relative;
  margin-top: clamp(40px, 6vw, 64px);
}

/* The spine: static track + animated progress fill driven by scroll */
.story-timeline__track,
.story-timeline__progress {
  position: absolute;
  top: 6px;
  left: 8px;
  width: 2px;
  border-radius: 2px;
}

.story-timeline__track {
  bottom: 6px;
  background: var(--border, rgba(15, 23, 42, 0.12));
}

.story-timeline__progress {
  height: 0;
  background: var(--blue);
  box-shadow: 0 0 12px rgba(49, 113, 181, 0.5);
  transition: height 120ms linear;
}

@media (min-width: 768px) {
  .story-timeline__track,
  .story-timeline__progress {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Each event sits beside the spine (mobile: left rail) */
.story-block {
  position: relative;
  padding-left: 40px;
  padding-bottom: clamp(36px, 6vw, 56px);
}

.story-block:last-child {
  padding-bottom: 0;
}

/* Marker dot on the spine — lights up as the block reveals */
.story-block__marker {
  position: absolute;
  top: 4px;
  left: 8px;
  width: 16px;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--border, rgba(15, 23, 42, 0.2));
  z-index: 2;
  transition: border-color 400ms ease, background 400ms ease, box-shadow 400ms ease;
}

.story-block.is-visible .story-block__marker {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 0 6px rgba(49, 113, 181, 0.15);
}

/* Desktop: alternate sides of a centred spine */
@media (min-width: 768px) {
  .story-block {
    width: 50%;
    padding-left: 0;
    padding-right: 48px;
    text-align: right;
  }

  .story-block__marker {
    left: auto;
    right: -8px;
    transform: none;
  }

  .story-block--reverse {
    margin-left: 50%;
    padding-left: 48px;
    padding-right: 0;
    text-align: left;
  }

  .story-block--reverse .story-block__marker {
    left: -8px;
    right: auto;
  }

  /* Directional slide-in to match the alternating layout */
  .story-block.reveal {
    transform: translateX(-40px);
  }

  .story-block--reverse.reveal {
    transform: translateX(40px);
  }

  .story-block.reveal.is-visible {
    transform: translateX(0);
  }
}

/* Text panel */
.story-block__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 768px) {
  .story-block__text {
    align-items: flex-end;
  }

  .story-block--reverse .story-block__text {
    align-items: flex-start;
  }
}

.story-block__date-badge {
  align-self: flex-start;
  background: var(--blue-subtle, rgba(49, 113, 181, 0.1));
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

@media (min-width: 768px) {
  .story-block__date-badge {
    align-self: flex-end;
  }

  .story-block--reverse .story-block__date-badge {
    align-self: flex-start;
  }
}

.story-block__text h3 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--text);
  line-height: 1.2;
}

.story-block__text p {
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 46ch;
}

/* --- Team Member Photos --- */
.team-member__photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 24px;
  border: 3px solid var(--blue-subtle);
  box-shadow: var(--shadow-card);
  background: var(--bg-input);
}

.team-member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card:hover .team-member__photo {
  border-color: var(--blue-bright);
  transition: border-color 0.3s ease;
}


.form-glass-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-soft);
}

.contact-form-container {
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 20px;
    background: var(--bg-surface);
    box-shadow: var(--shadow-soft);
    margin-top: 40px;
}

/* Social Share Buttons */
.share-buttons {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.share-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.share-btn:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

.share-btn.whatsapp { background-color: #25D366; }
.share-btn.telegram { background-color: #0088cc; }
.share-btn.linkedin { background-color: #0077b5; }
.share-btn.twitter { background-color: #1DA1F2; }

.share-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* User Submitted Posts Cleanup */
.usp-url {
  display: none !important;
}

#user-submitted-posts fieldset {
  margin-bottom: 20px;
  border: none;
  padding: 0;
}

#user-submitted-posts label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--blue-dark);
}

#user-submitted-posts .usp-input,
#user-submitted-posts .usp-textarea,
#user-submitted-posts .usp-select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: inherit;
}

#user-submitted-posts .usp-submit {
  background: var(--blue);
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

#user-submitted-posts .usp-submit:hover {
  background: var(--blue-bright);
}

/* ── INSTITUTION LOGOS MARQUEE ── */
.section--logos {
  padding: 80px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.section--logos .section-header {
  margin-bottom: 40px;
}
.logo-marquee-container {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 10px 0;
}
.logo-marquee-container::before,
.logo-marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.logo-marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-surface) 0%, transparent 100%);
}
.logo-marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-surface) 0%, transparent 100%);
}
.logo-marquee-track {
  display: flex;
  width: max-content;
  animation: logo-marquee-scroll 35s linear infinite;
}
.logo-marquee-track:hover {
  animation-play-state: paused;
}
.logo-marquee-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 45px;
  height: 50px;
}
.logo-marquee-slide img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}
:root[data-theme="dark"] .logo-marquee-slide img {
  filter: grayscale(100%) brightness(2.2);
  opacity: 0.4;
}
.logo-marquee-slide:hover img {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
  transform: scale(1.08);
}
:root[data-theme="dark"] .logo-marquee-slide:hover img {
  filter: grayscale(0%) brightness(1.2);
  opacity: 1;
  transform: scale(1.08);
}
@keyframes logo-marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Landing early access refresh ── */
.landing-redesign .hero {
  min-height: auto;
}

.landing-redesign .hero__content {
  flex: 0 0 auto;
  align-items: flex-start;
}

.landing-redesign .hero__sub {
  max-width: 50ch;
}

.landing-redesign .hero__text > .label {
  font-size: 0.82rem;
}

.landing-redesign .hero-card--1 {
  top: 0;
  left: 0;
}

.landing-redesign .hero-card--2 {
  top: 32%;
  right: -28px;
}

.landing-redesign .hero-card--3 {
  bottom: 0;
  left: 24%;
}

.sticky-early-access {
  position: fixed;
  top: 86px;
  right: clamp(20px, 5vw, 72px);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  margin: 0;
  padding: 10px 12px 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text-mid);
  box-shadow: 0 16px 40px rgba(49, 113, 181, 0.32);
  font-weight: 700;
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 220ms ease, transform 220ms ease, background 220ms ease;
}

.sticky-early-access.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sticky-early-access a {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
}

.sticky-early-access:hover a {
  background: var(--blue-bright);
}

.sticky-early-access:hover {
  transform: translateY(-2px);
}

.landing-redesign .section--logos {
  background:
    radial-gradient(circle at 15% 20%, rgba(90, 154, 213, 0.14), transparent 34%),
    var(--bg-surface);
  border-top: 0;
  border-bottom: 0;
  padding-top: clamp(48px, 6vw, 74px);
  padding-bottom: clamp(42px, 6vw, 68px);
}

.landing-redesign .section--logos .section-header {
  margin-bottom: 24px;
}

.landing-redesign .logo-marquee-container {
  padding: 12px 0;
  background: transparent;
}

.landing-redesign .logo-marquee-container::before,
.landing-redesign .logo-marquee-container::after {
  display: none;
}

.landing-redesign .logo-marquee-slide {
  height: 86px;
  padding: 0 54px;
}

.landing-redesign .logo-marquee-slide img {
  filter: none;
  opacity: 1;
}

:root[data-theme="dark"] .landing-redesign .logo-marquee-slide img {
  filter: none;
  opacity: 1;
}

.institution-cta {
  max-width: 780px;
  margin: 26px auto 0;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.institution-cta summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px 16px 24px;
  cursor: pointer;
  list-style: none;
}

.institution-cta summary::-webkit-details-marker {
  display: none;
}

.institution-cta summary span {
  color: var(--text-mid);
  font-weight: 600;
}

.institution-cta summary strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.9rem;
}

.institution-form {
  display: grid;
  gap: 12px;
  padding: 0 20px 20px;
}

.institution-form label {
  display: grid;
  gap: 6px;
  color: var(--text-mid);
  font-size: 0.78rem;
  font-weight: 700;
}

.institution-form input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-input);
  color: var(--text);
  padding: 12px 16px;
  font: inherit;
}

.institution-form input:focus {
  outline: 2px solid var(--blue-subtle);
  border-color: var(--blue);
}

.landing-redesign .section {
  padding-top: clamp(52px, 7vw, 86px);
  padding-bottom: clamp(52px, 7vw, 86px);
}

.compact-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
}

.compact-section-header.centered {
  justify-content: center;
  text-align: center;
}

.compact-section-header h2 {
  max-width: 720px;
}

.compact-section-header p {
  max-width: 430px;
  color: var(--text-soft);
  font-size: 0.96rem;
}

.feature-card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(220px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-snap-type: x proximity;
}

.feature-tile {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  scroll-snap-align: start;
  padding: 20px;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.feature-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(49, 113, 181, 0.36);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  display: flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue-subtle), rgba(90, 154, 213, 0.18));
  color: var(--blue);
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-tile h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  margin-bottom: 8px;
}

.feature-tile p {
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.5;
}

.launch-countdown {
  color: var(--white);
  text-align: center;
  background:
    radial-gradient(circle at 50% -10%, var(--blue-bright), transparent 55%),
    linear-gradient(155deg, var(--blue) 0%, var(--blue-deep) 70%, var(--dark) 100%);
}

.launch-countdown__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(22px, 4vw, 34px);
  max-width: 720px;
  margin: 0 auto;
}

.launch-countdown .label--light {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0;
}

.launch-countdown__title {
  color: var(--white);
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 1.05;
  margin: 0;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 3vw, 28px);
  width: 100%;
  max-width: 560px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.countdown-unit__value {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 9vw, 4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}

.countdown-unit__label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: clamp(0.62rem, 1.6vw, 0.74rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
}

.launch-countdown__lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  line-height: 1.55;
  max-width: 52ch;
  margin: 0;
}

.launch-countdown__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.btn--invert {
  background: var(--white);
  color: var(--blue-deep);
  font-weight: 700;
  padding: 18px 40px;
  font-size: 1.02rem;
  box-shadow: 0 16px 40px rgba(7, 20, 32, 0.25);
}
.btn--invert:hover {
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 20px 52px rgba(7, 20, 32, 0.32);
}

.launch-countdown__skip {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  transition: color 200ms ease;
}
.launch-countdown__skip:hover {
  color: var(--white);
  text-decoration: underline;
}

.launch-countdown__social {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.launch-countdown__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.85);
  transition: all 200ms ease;
}
.launch-countdown__social a:hover {
  background: var(--white);
  color: var(--blue-deep);
  border-color: var(--white);
  transform: translateY(-2px);
}
.launch-countdown__social svg {
  width: 20px;
  height: 20px;
}

.launch-countdown__date {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  margin: 0;
}

.newsletter-form {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.newsletter-section {
  background: linear-gradient(180deg, var(--bg), var(--bg-surface));
}

.newsletter-section__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.newsletter-section p:not(.label) {
  color: var(--text-soft);
  max-width: 58ch;
  margin-top: 18px;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.newsletter-form label {
  display: grid;
  gap: 8px;
  color: var(--text-mid);
  font-size: 0.82rem;
  font-weight: 700;
}

.newsletter-form input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-input);
  color: var(--text);
  padding: 14px 18px;
  font: inherit;
}

.newsletter-form input:focus {
  outline: 2px solid var(--blue-subtle);
  border-color: var(--blue);
}

.newsletter-form .btn {
  justify-content: center;
}

@media (min-width: 768px) {
  .newsletter-section__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .institution-form {
    grid-template-columns: 1fr 1.2fr 1fr auto;
    align-items: end;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 992px) {
  .landing-redesign .hero__grid {
    gap: clamp(28px, 4.2vw, 84px);
  }

  .landing-redesign .hero__visual {
    min-height: 380px;
  }

  .landing-redesign .hero-card {
    min-width: 235px;
    padding: 20px;
  }

  .feature-card-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    overflow: visible;
  }

}

@media (max-width: 767px) {
  .sticky-early-access {
    inset: auto 16px 16px auto;
    max-width: calc(100vw - 32px);
  }

  .landing-redesign .logo-marquee-slide {
    height: 64px;
    padding: 0 30px;
  }

  .institution-cta summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .compact-section-header {
    display: block;
  }

  .compact-section-header p {
    margin-top: 12px;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
    max-width: 320px;
  }
}
