/* ============================================================
   NEXFORUM — Global Stylesheet
   Design system: midnight navy + electric indigo + warm white
   Fonts: Clash Display (headings) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

/* ── CSS Variables ───────────────────────────────────────── */
:root {
  --navy-950: #06091a;
  --navy-900: #0a0e24;
  --navy-800: #0f1535;
  --navy-700: #161d4a;
  --navy-600: #1e2761;

  --indigo-500: #5b5ef4;
  --indigo-400: #7577f7;
  --indigo-300: #9899fa;
  --indigo-200: #c4c5fd;
  --indigo-glow: rgba(91,94,244,0.35);

  --teal-400: #2dd4bf;
  --teal-300: #5eead4;
  --amber-400: #fbbf24;

  --white: #ffffff;
  --gray-50: #f8f9ff;
  --gray-100: #eef0fb;
  --gray-200: #d9dcf5;
  --gray-400: #8b90b8;
  --gray-500: #6168a0;
  --gray-600: #474d7a;

  --text-primary: #e8eaf6;
  --text-secondary: #9195be;
  --text-muted: #5d6191;

  --surface-1: #0d1130;
  --surface-2: #111640;
  --surface-3: #16194d;
  --surface-border: rgba(91,94,244,0.18);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-glow: 0 0 40px rgba(91,94,244,0.25);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.35), 0 1px 3px rgba(0,0,0,0.4);
  --shadow-btn: 0 4px 20px rgba(91,94,244,0.45);

  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.45s cubic-bezier(0.4,0,0.2,1);

  --font-display: 'DM Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;

  --nav-h: 68px;

  /* Light mode overrides (applied via [data-theme="light"]) */
}

[data-theme="light"] {
  --navy-950: #f0f2ff;
  --navy-900: #eaecfb;
  --navy-800: #dde0f8;
  --surface-1: #ffffff;
  --surface-2: #f4f5fe;
  --surface-3: #eaecfb;
  --surface-border: rgba(91,94,244,0.15);
  --text-primary: #1a1d3d;
  --text-secondary: #4b4f7a;
  --text-muted: #7b7fa8;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--navy-950);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--indigo-300); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--white); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Typography Scale ────────────────────────────────────── */
.display-1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.display-2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.heading-xl {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.heading-lg {
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
}
.heading-md {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
}
.body-lg { font-size: 1.125rem; line-height: 1.7; }
.body-sm { font-size: 0.9rem; line-height: 1.6; }
.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mono { font-family: var(--font-mono); }

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, var(--indigo-300) 0%, var(--teal-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-warm {
  background: linear-gradient(135deg, #a78bfa 0%, var(--indigo-400) 50%, var(--teal-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Utility ─────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.section-pad { padding: 6rem 0; }
.section-pad-sm { padding: 4rem 0; }

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: rgba(91,94,244,0.12);
  border: 1px solid rgba(91,94,244,0.3);
  color: var(--indigo-300);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tag-pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal-400);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.72rem 1.6rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition);
}
.btn:hover::after { background: rgba(255,255,255,0.07); }

.btn-primary {
  background: var(--indigo-500);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  background: var(--indigo-400);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(91,94,244,0.55);
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: rgba(91,94,244,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--indigo-300);
  border: 1.5px solid var(--indigo-500);
}
.btn-outline:hover {
  background: var(--indigo-500);
  color: #fff;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}
.btn-xl {
  padding: 1rem 2.4rem;
  font-size: 1.1rem;
  border-radius: var(--radius-full);
}

/* Arrow icon in buttons */
.btn-arrow {
  transition: transform var(--transition);
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ── Navigation ──────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  transition: background var(--transition-slow), box-shadow var(--transition-slow);
}
#navbar.scrolled {
  background: rgba(6,9,26,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(91,94,244,0.15);
}
[data-theme="light"] #navbar.scrolled {
  background: rgba(240,242,255,0.85);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--white);
  text-decoration: none;
}
.nav-logo:hover { color: var(--white); }
.nav-logo-icon {
  width: 34px; height: 34px;
  background: var(--indigo-500);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(91,94,244,0.5);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--surface-border);
  transition: all var(--transition);
}
.nav-toggle:hover { background: rgba(255,255,255,0.06); }
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}
.theme-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.theme-btn:hover { color: var(--white); background: rgba(255,255,255,0.1); }

/* Mobile nav */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--navy-900);
    border-bottom: 1px solid var(--surface-border);
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.25rem;
    align-items: stretch;
  }
  .nav-mobile-open .nav-links a {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
  }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 3rem) 0 5rem;
}

/* Mesh gradient background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg-grad {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  pointer-events: none;
}
.hero-bg-grad-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(91,94,244,0.6) 0%, transparent 70%);
  top: -200px; left: -150px;
  animation: float-blob 12s ease-in-out infinite alternate;
}
.hero-bg-grad-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(45,212,191,0.35) 0%, transparent 70%);
  top: 100px; right: -100px;
  animation: float-blob 16s ease-in-out infinite alternate-reverse;
}
.hero-bg-grad-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(167,139,250,0.25) 0%, transparent 70%);
  bottom: -100px; left: 40%;
  animation: float-blob 20s ease-in-out infinite alternate;
}
@keyframes float-blob {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, 30px) scale(1.08); }
}

/* Grid texture overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(91,94,244,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,94,244,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.hero-tag {
  margin-bottom: 1.5rem;
  animation: fade-up 0.6s ease both;
}
.hero-title {
  margin-bottom: 1.5rem;
  animation: fade-up 0.6s 0.1s ease both;
}
.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  animation: fade-up 0.6s 0.2s ease both;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fade-up 0.6s 0.3s ease both;
}
.hero-trust {
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  animation: fade-up 0.6s 0.4s ease both;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-trust-item svg { color: var(--teal-400); }

/* Hero window mockup */
.hero-visual {
  position: relative;
  z-index: 1;
  margin-top: 4rem;
  animation: fade-up 0.8s 0.5s ease both;
}
.hero-window {
  background: var(--surface-2);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    var(--shadow-glow),
    0 30px 80px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.06);
  max-width: 900px;
  margin: 0 auto;
}
.hero-window-bar {
  background: var(--surface-3);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--surface-border);
}
.window-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.window-dot-red { background: #ff5f57; }
.window-dot-yellow { background: #ffbd2e; }
.window-dot-green { background: #28c840; }
.window-url-bar {
  flex: 1;
  margin: 0 12px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.hero-window-body { padding: 0; }

/* Forum preview inside window */
.forum-preview {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 340px;
}
.forum-sidebar {
  background: rgba(0,0,0,0.2);
  border-right: 1px solid var(--surface-border);
  padding: 1rem;
}
.forum-sidebar-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: rgba(91,94,244,0.15);
  margin-bottom: 1rem;
}
.forum-avatar {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--indigo-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.forum-name { font-size: 0.85rem; font-weight: 600; }
.forum-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 2px;
  cursor: default;
}
.forum-nav-item.active {
  background: rgba(91,94,244,0.2);
  color: var(--indigo-300);
}
.forum-nav-item svg { opacity: 0.7; flex-shrink: 0; }
.forum-main { padding: 1.25rem; }
.forum-category {
  margin-bottom: 1rem;
}
.forum-cat-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  padding-left: 2px;
}
.forum-thread {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--surface-border);
  margin-bottom: 6px;
  transition: background var(--transition);
}
.forum-thread:hover { background: rgba(255,255,255,0.06); }
.thread-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: rgba(91,94,244,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.thread-info { flex: 1; min-width: 0; }
.thread-title { font-size: 0.82rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-meta { font-size: 0.72rem; color: var(--text-muted); }
.thread-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(45,212,191,0.15);
  color: var(--teal-400);
  flex-shrink: 0;
}
.thread-badge.hot { background: rgba(251,191,36,0.12); color: var(--amber-400); }

/* Fade-up animation */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.anim-fade-up { animation: fade-up 0.6s ease both; }

/* ── Section Headers ──────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}
.section-header .tag-pill { margin-bottom: 1rem; }
.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: 0.75rem;
  line-height: 1.7;
}

/* ── Stats Bar ───────────────────────────────────────────── */
.stats-bar {
  padding: 2.5rem 0;
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
  background: var(--surface-1);
}
.stats-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  flex: 1;
  min-width: 160px;
  text-align: center;
  padding: 1rem 1.5rem;
  position: relative;
}
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0; top: 25%; bottom: 25%;
  width: 1px;
  background: var(--surface-border);
}
.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, var(--white), var(--gray-200));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

/* ── Benefits / Features ─────────────────────────────────── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.benefit-card {
  background: var(--surface-1);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.benefit-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--indigo-500), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.benefit-card:hover {
  border-color: rgba(91,94,244,0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card), 0 0 30px rgba(91,94,244,0.1);
}
.benefit-card:hover::before { opacity: 1; }
.benefit-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: rgba(91,94,244,0.15);
  border: 1px solid rgba(91,94,244,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}
.benefit-card:hover .benefit-icon {
  background: rgba(91,94,244,0.25);
  box-shadow: 0 0 20px rgba(91,94,244,0.3);
}
.benefit-icon svg { color: var(--indigo-300); }
.benefit-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.benefit-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── How It Works ────────────────────────────────────────── */
.how-it-works { background: var(--surface-1); }
.steps-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  position: relative;
}
.steps-wrapper::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--surface-border), var(--indigo-500), var(--surface-border), transparent);
}
@media (max-width: 768px) { .steps-wrapper::before { display: none; } }
.step-card {
  text-align: center;
  position: relative;
}
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy-900);
  border: 2px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--indigo-300);
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}
.step-card:hover .step-num {
  background: var(--indigo-500);
  border-color: var(--indigo-500);
  color: white;
  box-shadow: 0 0 24px rgba(91,94,244,0.5);
}
.step-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.88rem; color: var(--text-secondary); }

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.pricing-card {
  background: var(--surface-1);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  position: relative;
  transition: all var(--transition);
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.pricing-card.featured {
  border-color: var(--indigo-500);
  background: linear-gradient(160deg, rgba(91,94,244,0.08) 0%, var(--surface-1) 100%);
  box-shadow: 0 0 0 1px var(--indigo-500), var(--shadow-glow);
}
.pricing-card.featured:hover { transform: translateY(-6px); }
.pricing-popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--indigo-500);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(91,94,244,0.4);
}
.pricing-tier { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.5rem; }
.pricing-name { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 1rem 0;
}
.price-amount { font-size: 2.8rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.price-period { font-size: 0.9rem; color: var(--text-muted); }
.pricing-desc { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 1.5rem; }
.pricing-divider {
  height: 1px;
  background: var(--surface-border);
  margin: 1.5rem 0;
}
.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.pricing-feature svg { color: var(--teal-400); flex-shrink: 0; }
.pricing-feature.muted { color: var(--text-muted); }
.pricing-feature.muted svg { color: var(--text-muted); opacity: 0.5; }

/* ── Comparison Table ────────────────────────────────────── */
.comparison-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  background: var(--surface-1);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.comparison-table th {
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--surface-border);
  white-space: nowrap;
}
.comparison-table th:first-child { text-align: left; color: var(--text-muted); font-weight: 500; }
.comparison-table th.highlight {
  background: rgba(91,94,244,0.1);
  color: var(--indigo-300);
  border-left: 1px solid rgba(91,94,244,0.2);
  border-right: 1px solid rgba(91,94,244,0.2);
}
.comparison-table td {
  padding: 1rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(91,94,244,0.06);
  color: var(--text-secondary);
}
.comparison-table td:first-child { text-align: left; color: var(--text-primary); font-weight: 500; }
.comparison-table td.highlight {
  background: rgba(91,94,244,0.05);
  border-left: 1px solid rgba(91,94,244,0.12);
  border-right: 1px solid rgba(91,94,244,0.12);
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: rgba(255,255,255,0.02); }
.comparison-table tr:hover td.highlight { background: rgba(91,94,244,0.08); }
.check { color: var(--teal-400); font-size: 1.1rem; }
.cross { color: var(--text-muted); opacity: 0.4; }

/* ── Software Showcase ───────────────────────────────────── */
.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.software-card {
  background: var(--surface-1);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-decoration: none;
  display: block;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.software-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--indigo-500);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.software-card:hover {
  border-color: rgba(91,94,244,0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  color: var(--text-primary);
}
.software-card:hover::after { transform: scaleX(1); }
.software-logo {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: white;
}
.software-name { font-size: 1rem; font-weight: 700; margin-bottom: 0.35rem; }
.software-desc { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.55; margin-bottom: 0.75rem; }
.software-tag {
  display: inline-flex;
  padding: 2px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Testimonials ────────────────────────────────────────── */
.testimonials { background: var(--surface-1); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--navy-900);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition);
}
.testimonial-card:hover {
  border-color: rgba(91,94,244,0.3);
  transform: translateY(-2px);
}
.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
  color: var(--amber-400);
  font-size: 0.9rem;
}
.testimonial-body {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.author-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
  flex-shrink: 0;
}
.author-name { font-size: 0.88rem; font-weight: 600; }
.author-role { font-size: 0.78rem; color: var(--text-muted); }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--surface-border);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--indigo-300); }
.faq-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(91,94,244,0.12);
  border: 1px solid rgba(91,94,244,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
  color: var(--indigo-300);
}
.faq-question[aria-expanded="true"] .faq-icon {
  background: var(--indigo-500);
  color: white;
  transform: rotate(45deg);
}
.faq-answer {
  display: none;
  padding: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ── Final CTA ───────────────────────────────────────────── */
.final-cta {
  position: relative;
  overflow: hidden;
  padding: 7rem 0;
  text-align: center;
}
.final-cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(91,94,244,0.2) 0%, transparent 70%);
}
.final-cta-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(91,94,244,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,94,244,0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 100%);
}
.final-cta-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
}
.final-cta h2 { margin-bottom: 1rem; }
.final-cta p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.final-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.final-cta-note {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--navy-950);
  border-top: 1px solid var(--surface-border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  text-decoration: none;
  margin-bottom: 1rem;
}
.footer-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; max-width: 280px; }
.footer-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.footer-social a {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}
.footer-social a:hover { color: var(--white); background: rgba(91,94,244,0.2); border-color: rgba(91,94,244,0.4); }
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--surface-border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--white); }
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* ── Scroll reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Responsive overrides ────────────────────────────────── */
@media (max-width: 768px) {
  .section-pad { padding: 4rem 0; }
  .forum-preview { grid-template-columns: 1fr; }
  .forum-sidebar { display: none; }
  .steps-wrapper { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .comparison-table th, .comparison-table td { padding: 0.75rem 1rem; font-size: 0.82rem; }
  .stat-item { min-width: 130px; }
}
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .final-cta-actions { flex-direction: column; align-items: center; }
  .final-cta-actions .btn { width: 100%; justify-content: center; }
}

/* ── Cookie banner ───────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-2);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 600px;
  width: calc(100% - 3rem);
  z-index: 1000;
  box-shadow: var(--shadow-card);
  font-size: 0.85rem;
  color: var(--text-secondary);
  backdrop-filter: blur(12px);
}
#cookie-banner.hidden { display: none; }
#cookie-banner p { flex: 1; min-width: 200px; }
#cookie-banner p a { color: var(--indigo-300); }

/* ── Notification Toast (signup success simulation) ──────── */
.toast-wrap {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}
.toast {
  background: var(--surface-2);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
  animation: toast-in 0.4s ease both;
  max-width: 280px;
}
.toast-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal-400);
  flex-shrink: 0;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ── Focus-visible (keyboard accessibility) ──────────────── */
:focus-visible {
  outline: 2px solid var(--indigo-400);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .hero-bg-grad { animation: none !important; }
}

/* ── Print styles ────────────────────────────────────────── */
@media print {
  #navbar, .hero-bg, .final-cta, .toast-wrap,
  #cookie-banner, .nav-toggle, .theme-btn { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
  .container { max-width: 100%; padding: 0; }
  .hero { min-height: auto; padding: 1rem 0; }
}

/* ── High contrast mode support ─────────────────────────── */
@media (forced-colors: active) {
  .btn-primary { forced-color-adjust: none; background: ButtonText; color: ButtonFace; }
  .benefit-card, .pricing-card, .software-card { border: 1px solid ButtonText; }
}

/* ── Skip to main content link ───────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--indigo-500);
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 9999;
  border-radius: 0 0 var(--radius-md) 0;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── Image optimisation classes ──────────────────────────── */
img[loading="lazy"] { opacity: 0; transition: opacity 0.3s; }
img[loading="lazy"].loaded { opacity: 1; }

/* ── Smooth page transitions ─────────────────────────────── */
@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
body { animation: page-fade-in 0.25s ease; }

/* ── Utility: visually-hidden but in flow ────────────────── */
.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Performance: content-visibility for off-screen sections */
.section-pad, .stats-bar, .testimonials, .how-it-works {
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}

/* ── Selection colour ────────────────────────────────────── */
::selection {
  background: rgba(91,94,244,0.35);
  color: var(--white);
}

/* ── Scrollbar styling (Webkit) ──────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--navy-900); }
::-webkit-scrollbar-thumb {
  background: var(--navy-600);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--indigo-500); }

/* ── Mobile nav open: prevent body scroll ───────────────── */
body.nav-open { overflow: hidden; }

/* ══════════════════════════════════════════════════════════════
   MOBILE FIX PASS — based on live screenshot audit
   Fixes: hero overflow, nav cramping, tag pill clip, trust bar
   ══════════════════════════════════════════════════════════════ */

/* ── Global: prevent ALL horizontal overflow ──────────────── */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ── Ensure container never bleeds ───────────────────────── */
.container {
  width: 100%;
  box-sizing: border-box;
}

/* ── Nav: hide desktop CTA on mobile, keep only hamburger ─── */
@media (max-width: 900px) {
  /* Show only theme-btn + hamburger on mobile, hide nav CTA */
  .nav-actions .btn.btn-primary {
    display: none !important;
  }
  .nav-actions {
    gap: 0.5rem;
  }
  /* Nav inner: no overflow */
  .nav-inner {
    overflow: visible;
  }
  /* Mobile nav dropdown: full-width, proper z-index */
  .nav-mobile-open .nav-links {
    z-index: 800;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  }
  /* Add Get Started button inside mobile menu */
  .nav-mobile-open .nav-links::after {
    content: '';
    display: block;
    height: 0;
  }
}

/* ── Hero: full containment on all screens ────────────────── */
.hero-content {
  width: 100%;
  max-width: 800px;
  box-sizing: border-box;
  padding: 0 0.25rem; /* tiny inner buffer */
}

/* ── Tag pill: prevent clip, allow wrap ───────────────────── */
.tag-pill {
  max-width: 100%;
  white-space: normal;
  text-align: center;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Hero title: clamp tighter on small screens ───────────── */
@media (max-width: 480px) {
  .display-1 {
    font-size: clamp(2rem, 10vw, 2.6rem);
    letter-spacing: -0.025em;
  }
}

/* ── Hero subtitle: full-width on mobile ─────────────────── */
.hero-subtitle {
  width: 100%;
  max-width: 580px;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .hero-subtitle {
    font-size: 1rem;
    max-width: 100%;
    padding: 0 0.25rem;
  }
}

/* ── Hero CTA: column + full-width on phones ──────────────── */
@media (max-width: 600px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* ── Hero trust bar: wrap tightly, smaller gap ────────────── */
.hero-trust {
  gap: 0.75rem 1.25rem; /* row-gap col-gap */
  padding: 0 0.5rem;
}

@media (max-width: 480px) {
  .hero-trust {
    gap: 0.5rem 1rem;
    font-size: 0.8rem;
    justify-content: center;
  }
  .hero-trust-item {
    gap: 5px;
  }
}

/* ── Hero visual (forum mockup): hide on very small screens ── */
@media (max-width: 480px) {
  .hero-visual {
    display: none;
  }
}

/* ── Stats bar: tighter on phones ────────────────────────── */
@media (max-width: 480px) {
  .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .stat-item {
    min-width: 0;
    padding: 1rem 0.75rem;
  }
  .stat-item + .stat-item::before {
    display: none; /* remove dividers in grid layout */
  }
  .stat-number {
    font-size: 1.75rem;
  }
}

/* ── Benefits grid: single column on phones ───────────────── */
@media (max-width: 480px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

/* ── How It Works steps: stack properly ──────────────────── */
@media (max-width: 600px) {
  .steps-wrapper {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ── Pricing grid: always 1 col on phones ─────────────────── */
@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Software grid: 1 col on phones ──────────────────────── */
@media (max-width: 480px) {
  .software-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Testimonials: 1 col on phones ───────────────────────── */
@media (max-width: 640px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Final CTA: contained buttons on phones ──────────────── */
@media (max-width: 600px) {
  .final-cta-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin: 0 auto;
  }
  .final-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Footer grid: 2-col → 1-col cascade ──────────────────── */
@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 400px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Toast: full-width on very small screens ──────────────── */
@media (max-width: 480px) {
  .toast-wrap {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
  .toast {
    max-width: 100%;
  }
}

/* ── Cookie banner: tighter on phones ────────────────────── */
@media (max-width: 480px) {
  #cookie-banner {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    bottom: 1rem;
    width: calc(100% - 2rem);
  }
  #cookie-banner p { min-width: 0; }
}

/* ── Section padding: tighter on phones ──────────────────── */
@media (max-width: 480px) {
  .section-pad { padding: 3rem 0; }
  .section-pad-sm { padding: 2.5rem 0; }
  .section-header { margin-bottom: 2.5rem; }
}

/* ── Blog grid: 1 col on phones ──────────────────────────── */
@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  /* Featured post: stacked */
  .blog-card[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Comparison table: prevent overflow ──────────────────── */
.comparison-wrap {
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 600px) {
  .comparison-table th,
  .comparison-table td {
    padding: 0.6rem 0.75rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }
}

/* ── Contact form grid: 1 col on phones ──────────────────── */
@media (max-width: 768px) {
  .post-layout,
  div[style*="grid-template-columns:1fr 1.5fr"],
  div[style*="grid-template-columns: 1fr 1.5fr"],
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Forum software page: article cards stack ─────────────── */
@media (max-width: 640px) {
  article[style*="grid-template-columns:auto 1fr auto"],
  article[style*="grid-template-columns: auto 1fr auto"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  article[style*="grid-template-columns:auto 1fr auto"] a.btn,
  article[style*="grid-template-columns: auto 1fr auto"] a.btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── nav-logo text: hide on very small if needed ─────────── */
@media (max-width: 360px) {
  .nav-logo span:last-child {
    /* Keep logo text visible but reduce spacing */
    font-size: 1.1rem;
  }
}

/* ── Nav CTA: desktop-only primary button ─────────────────── */
.nav-cta {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}
@media (max-width: 900px) {
  .nav-cta {
    display: none !important;
  }
}

/* ── Nav CTA mobile: shown only inside the dropdown ──────── */
.nav-cta-mobile {
  list-style: none;
}
/* Hide mobile CTA li on desktop (it's in the nav-links which is hidden anyway,
   but belt-and-braces) */
@media (min-width: 901px) {
  .nav-cta-mobile {
    display: none;
  }
}