/* ================================================================
   FlowGeniQ — The AI Business Engine for Clinics
   Shared Luxury Stylesheet — navy + champagne gold
   ================================================================ */

:root {
  /* Navy palette */
  --navy-950: #050911;
  --navy-900: #070d1a;
  --navy-800: #0b1326;
  --navy-700: #101b35;
  --navy-600: #16254a;
  --navy-500: #1d3063;
  --navy-400: #27407f;
  --ink: #e9edf5;
  --ink-mute: #a8b2c6;
  --ink-faint: #6b7690;

  /* Gold palette */
  --gold-50: #fdf8e7;
  --gold-100: #f9eec5;
  --gold-200: #f5e3a8;
  --gold-300: #ecd07a;
  --gold-400: #d4af37;
  --gold-500: #b8892b;
  --gold-600: #8c651e;
  --gold-grad: linear-gradient(135deg, #f5e3a8 0%, #d4af37 45%, #b8892b 100%);
  --gold-grad-soft: linear-gradient(135deg, rgba(245,227,168,0.25), rgba(212,175,55,0.15), rgba(184,137,43,0.05));

  /* Surfaces */
  --surface: rgba(255, 255, 255, 0.03);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(245, 227, 168, 0.14);
  --border-strong: rgba(245, 227, 168, 0.28);

  /* Typography */
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1280px;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  /* Effects */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-gold: 0 20px 60px -20px rgba(212, 175, 55, 0.35);
  --shadow-deep: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  background: var(--navy-900);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Background textures */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 1200px 800px at 85% -10%, rgba(212, 175, 55, 0.12), transparent 60%),
    radial-gradient(ellipse 900px 600px at 10% 100%, rgba(29, 48, 99, 0.5), transparent 60%),
    linear-gradient(180deg, #070d1a 0%, #0b1326 50%, #070d1a 100%);
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.96 0 0 0 0 0.89 0 0 0 0 0.66 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  opacity: 0.4;
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Cursor glow */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  mix-blend-mode: screen;
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 42px; /* sits just under the brand-switcher strip */
  left: 0;
  height: 2px;
  background: var(--gold-grad);
  z-index: 200;
  width: 0%;
  transition: width 0.1s;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

/* Typography */
.serif { font-family: var(--serif); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 400; letter-spacing: -0.02em; }
h2 { font-size: clamp(2.2rem, 4.5vw, 4rem); font-weight: 400; }
h3 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
h4 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }

p { color: var(--ink-mute); font-weight: 300; }

a { color: inherit; text-decoration: none; transition: color 0.3s; }

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.italic-serif { font-family: var(--serif); font-style: italic; font-weight: 400; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--gold-300);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-grad);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.7);
}

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.section { padding: 140px 0; position: relative; }
.section-sm { padding: 90px 0; position: relative; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: all 0.4s var(--ease);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold-grad);
  color: var(--navy-900);
  box-shadow: 0 10px 30px -10px rgba(212, 175, 55, 0.5);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -10px rgba(212, 175, 55, 0.7);
}

.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn-gold:hover::after { transform: translateX(100%); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: var(--surface-strong);
  border-color: var(--gold-300);
  color: var(--gold-200);
  transform: translateY(-2px);
}

.btn-lg { padding: 20px 44px; font-size: 1rem; }

/* ========= BRAND SWITCHER — slim top sub-header above main nav ========= */
.brand-switcher {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 42px;
  z-index: 105; /* above main nav */
  background: linear-gradient(180deg, rgba(3, 6, 14, 0.96) 0%, rgba(5, 9, 17, 0.92) 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.14);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
}

.brand-switcher-inner {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
}

.bs-label {
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.bs-label .gold-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-grad);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.7);
  margin-right: 8px;
  animation: bsPulse 2.4s ease-in-out infinite;
}

@keyframes bsPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(1.4); }
}

.bs-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.bs-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-decoration: none;
  border-radius: 999px;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  line-height: 1;
}

.bs-tab:hover {
  color: var(--gold-200);
  background: rgba(212, 175, 55, 0.06);
}

.bs-tab.active {
  color: var(--navy-900);
  background: var(--gold-grad);
  box-shadow: 0 2px 10px -2px rgba(212, 175, 55, 0.55);
  font-weight: 600;
}

.bs-tab .bs-tagline {
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: none;
  font-weight: 400;
  opacity: 0.7;
  font-style: italic;
  font-family: var(--serif);
}

.bs-tab.active .bs-tagline {
  opacity: 0.9;
}

@media (max-width: 900px) {
  .brand-switcher-inner { padding: 0 16px; }
  .bs-label { display: none; }
  .bs-tab { padding: 5px 12px; font-size: 0.68rem; }
  .bs-tab .bs-tagline { display: none; }
}
@media (max-width: 520px) {
  .brand-switcher { height: 38px; }
  .bs-tab { padding: 4px 10px; font-size: 0.64rem; letter-spacing: 0.08em; }
}

/* ================= Navigation (pushed down below brand-switcher) ================= */
.nav {
  position: fixed;
  top: 42px; /* sits just below the 42px brand-switcher strip */
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.4s var(--ease);
}

.nav.scrolled {
  padding: 14px 0;
  background: rgba(7, 13, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 520px) {
  .nav { top: 38px; }
  .scroll-progress { top: 38px; }
}

/* ========= FOOTER CROSS-SITE LINK ========= */
.footer-cross-link {
  margin-top: 40px;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.06), rgba(212, 175, 55, 0.02));
  border: 1px solid rgba(212, 175, 55, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.footer-cross-link:hover {
  border-color: rgba(212, 175, 55, 0.45);
}

.footer-cross-link-text {
  flex: 1;
  min-width: 240px;
}

.footer-cross-link-text .cross-eyebrow {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 8px;
}

.footer-cross-link-text h4 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.footer-cross-link-text h4 em {
  font-style: italic;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-cross-link-text p {
  font-size: 0.9rem;
  color: var(--ink-mute);
  margin: 0;
  line-height: 1.5;
}

.footer-cross-link-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--gold-200);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.footer-cross-link-cta:hover {
  background: var(--gold-grad);
  color: var(--navy-900);
  border-color: transparent;
  transform: translateX(4px);
}

.footer-cross-link-cta .arrow {
  transition: transform 0.3s var(--ease);
}

.footer-cross-link-cta:hover .arrow {
  transform: translateX(4px);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  z-index: 10;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 12px rgba(212, 175, 55, 0.35));
  transition: filter 0.4s var(--ease), transform 0.4s var(--ease);
}

.brand:hover .brand-mark {
  filter: drop-shadow(0 4px 18px rgba(212, 175, 55, 0.6));
  transform: scale(1.05);
}

.footer-brand .brand-mark {
  width: 50px;
  height: 50px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text .brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text .brand-sub {
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--ink-mute);
  position: relative;
  transition: color 0.3s;
  padding: 4px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-grad);
  transition: width 0.4s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-200);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-cta .btn {
  padding: 12px 24px;
  font-size: 0.82rem;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  cursor: pointer;
  color: var(--gold-200);
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(7, 13, 26, 0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.mobile-menu.open { opacity: 1; pointer-events: auto; }

.mobile-menu a {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--ink);
}

.mobile-menu a:hover { color: var(--gold-300); }

.mobile-menu .btn { margin-top: 20px; }

/* ================= Page Hero ================= */
.page-hero {
  position: relative;
  padding: 220px 0 100px; /* extra 40px for brand-switcher strip */
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.18), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero-inner {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.page-hero h1 {
  margin: 24px 0;
}

.page-hero p.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--ink-mute);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.breadcrumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 24px;
}

.breadcrumbs a:hover { color: var(--gold-300); }
.breadcrumbs .sep { color: var(--gold-500); }

/* ================= Cards ================= */
.card {
  background: linear-gradient(180deg, rgba(22, 37, 74, 0.3), rgba(11, 19, 38, 0.3));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.5s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(212, 175, 55, 0.12), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-deep);
}

.card:hover::before { opacity: 1; }

/* Suite card */
.suite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.suite-card {
  padding: 44px 36px;
}

.suite-card .num {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--gold-400);
  margin-bottom: 20px;
  letter-spacing: 0.2em;
}

.suite-card h3 {
  font-size: 1.65rem;
  margin-bottom: 14px;
}

.suite-card .card-lede {
  font-size: 0.98rem;
  color: var(--ink-mute);
  margin-bottom: 24px;
  line-height: 1.6;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.88rem;
  color: var(--ink-mute);
  line-height: 1.5;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 1px;
  background: var(--gold-grad);
}

/* Suite-card CTA row at the bottom of each card */
.suite-card { display: flex; flex-direction: column; }
.suite-card .feature-list { flex: 1; }
.suite-card .card-cta {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.suite-card .card-cta .btn {
  flex: 1;
  min-width: 130px;
  padding: 11px 16px;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-align: center;
  justify-content: center;
}
.suite-card .card-cta .btn-ghost { border-width: 1px; }

/* ================= Tool Detail Page ================= */
.tool-hero {
  position: relative;
  padding: 220px 0 80px;
  overflow: hidden;
}
.tool-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 12s ease-in-out infinite;
}

.tool-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 70px;
  align-items: center;
}

.tool-hero-copy .tool-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold-400);
  letter-spacing: 0.22em;
  margin-bottom: 14px;
  display: block;
}

.tool-hero-copy h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 22px;
}

.tool-hero-copy .tool-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--gold-200);
  margin-bottom: 26px;
  line-height: 1.45;
}

.tool-hero-copy .tool-lede {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-mute);
  margin-bottom: 34px;
  max-width: 560px;
}

.tool-hero-copy .cta-actions { justify-content: flex-start; }

.tool-hero-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 460px;
  margin-left: auto;
}

.tool-hero-visual .tool-badge {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(245, 227, 168, 0.22), transparent 55%),
    linear-gradient(135deg, rgba(22, 37, 74, 0.6), rgba(11, 19, 38, 0.6));
  border: 1px solid rgba(212, 175, 55, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px -30px rgba(212, 175, 55, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.tool-hero-visual .tool-ring-outer,
.tool-hero-visual .tool-ring-inner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.25);
  animation: spin 40s linear infinite;
}

.tool-hero-visual .tool-ring-inner {
  inset: 25%;
  border-color: rgba(212, 175, 55, 0.35);
  animation: spin 25s linear infinite reverse;
}

.tool-hero-visual .tool-roman {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(3rem, 7vw, 5rem);
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  font-weight: 500;
}

/* Overview 2-col */
.tool-overview {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.tool-overview h2 em { font-style: italic; }

.tool-overview-body p {
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 22px;
  color: var(--ink);
}

.tool-overview-body p:last-child { margin-bottom: 0; }

/* Highlights grid */
.tool-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.tool-highlight {
  padding: 30px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 37, 74, 0.25), rgba(11, 19, 38, 0.25));
  transition: all 0.4s var(--ease);
}

.tool-highlight:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.tool-highlight .highlight-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gold-grad-soft);
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--gold-200);
  margin-bottom: 18px;
}

.tool-highlight h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--ink);
}

.tool-highlight p {
  font-size: 0.92rem;
  color: var(--ink-mute);
  line-height: 1.6;
  margin: 0;
}

/* Sister tools strip */
.sister-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.sister-tool {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(11, 19, 38, 0.35);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.4s var(--ease);
}

.sister-tool:hover {
  border-color: var(--gold-300);
  transform: translateY(-3px);
  background: rgba(22, 37, 74, 0.5);
}

.sister-tool .st-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold-300);
  flex-shrink: 0;
}

.sister-tool .st-body h5 {
  font-size: 1rem;
  margin: 0 0 4px 0;
  color: var(--ink);
}

.sister-tool .st-body p {
  font-size: 0.82rem;
  color: var(--ink-mute);
  margin: 0;
  line-height: 1.4;
}

.sister-tool .st-arrow {
  margin-left: auto;
  color: var(--gold-300);
  font-size: 1.2rem;
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}

.sister-tool:hover .st-arrow { transform: translateX(5px); }

@media (max-width: 900px) {
  .tool-hero { padding: 180px 0 60px; }
  .tool-hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .tool-hero-visual { max-width: 340px; margin: 0 auto; }
  .tool-overview { grid-template-columns: 1fr; gap: 30px; }
}

/* ================= Sections ================= */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 80px;
}

.section-head .eyebrow { margin-bottom: 24px; }
.section-head h2 { margin-bottom: 20px; }

/* Marquee */
.marquee {
  overflow: hidden;
  padding: 50px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(11, 19, 38, 0.5), rgba(22, 37, 74, 0.2), rgba(11, 19, 38, 0.5));
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: 80px;
  animation: scroll 40s linear infinite;
}

.marquee-item {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.2rem;
  color: var(--gold-300);
  opacity: 0.75;
  display: inline-flex;
  align-items: center;
  gap: 80px;
}

.marquee-item::after {
  content: "✦";
  color: var(--gold-400);
  font-size: 1.2rem;
}

@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ================= CTA Section ================= */
.cta-section {
  padding: 140px 0;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.cta-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2), transparent 60%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.cta-section h2 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  margin-bottom: 28px;
}

.cta-section p {
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 44px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ================= Footer ================= */
.footer {
  padding: 100px 0 40px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(5, 9, 17, 0.6));
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 70px;
}

.footer-brand .brand { margin-bottom: 20px; }

.footer-brand p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold-200);
  max-width: 320px;
  line-height: 1.5;
}

.footer h5 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold-300);
  margin-bottom: 22px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.footer-col a {
  font-size: 0.9rem;
  color: var(--ink-mute);
}

.footer-col a:hover { color: var(--gold-200); }

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.3s;
}

.newsletter-form input:focus { border-color: var(--gold-400); }

.newsletter-form button {
  padding: 12px 22px;
  background: var(--gold-grad);
  color: var(--navy-900);
  border: none;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.3s;
}

.newsletter-form button:hover { transform: translateY(-1px); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--ink-faint);
  flex-wrap: wrap;
  gap: 20px;
}

.socials { display: flex; gap: 14px; }

.socials a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--ink-mute);
  transition: all 0.3s;
}

.socials a:hover {
  border-color: var(--gold-300);
  color: var(--gold-200);
  background: var(--surface);
}

/* ================= Reveal animations ================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ================= Form ================= */
.form-card {
  background: linear-gradient(180deg, rgba(22, 37, 74, 0.4), rgba(11, 19, 38, 0.4));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 50px;
  position: relative;
  box-shadow: var(--shadow-deep);
  overflow: hidden;
}

.form-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: var(--gold-grad);
  opacity: 0.3;
  z-index: -1;
  filter: blur(24px);
}

.form-progress {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.progress-step .step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ink-mute);
  background: var(--navy-800);
  transition: all 0.4s var(--ease);
}

.progress-step .step-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 10px;
}

.progress-step.active .step-num,
.progress-step.completed .step-num {
  background: var(--gold-grad);
  color: var(--navy-900);
  border-color: transparent;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.progress-step.completed .step-num::after {
  content: "✓";
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  position: absolute;
}

.progress-step.completed .step-num { font-size: 0; }

.progress-step.active .step-label,
.progress-step.completed .step-label {
  color: var(--gold-300);
}

.progress-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 6px;
  margin-top: -18px;
  position: relative;
}

.progress-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.progress-line.filled::after { transform: scaleX(1); }

.form-step { display: none; animation: fadeInUp 0.5s var(--ease); }
.form-step.active { display: block; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-step h3 {
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.form-step .step-sub {
  color: var(--ink-mute);
  font-size: 0.92rem;
  margin-bottom: 30px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.form-row .form-group { margin-bottom: 0; }

.form-group label {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-300);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(5, 9, 17, 0.5);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold-400);
  background: rgba(5, 9, 17, 0.8);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #e06464;
  box-shadow: 0 0 0 3px rgba(224, 100, 100, 0.15);
}

.form-group textarea { resize: vertical; min-height: 100px; font-family: var(--sans); }

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23d4af37' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}

.form-group select option { background: var(--navy-800); color: var(--ink); }

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--ink-mute);
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-group input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--navy-800);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: all 0.3s;
}

.checkbox-group input[type="checkbox"]:checked {
  background: var(--gold-grad);
  border-color: transparent;
}

.checkbox-group input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.72rem;
}

.checkbox-group a { color: var(--gold-300); text-decoration: underline; text-underline-offset: 3px; }

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.form-actions .btn { flex-shrink: 0; }

.form-trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--ink-faint);
}

.form-trust span { display: inline-flex; align-items: center; gap: 8px; }
.form-trust span::before { content: "✓"; color: var(--gold-400); font-weight: 700; }

.form-success {
  text-align: center;
  padding: 40px 0;
  display: none;
}

.form-success.active { display: block; animation: fadeInUp 0.6s var(--ease); }

.success-halo {
  width: 100px;
  height: 100px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: var(--gold-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: var(--navy-900);
  box-shadow: 0 0 60px rgba(212, 175, 55, 0.6);
  animation: halo 2s ease-in-out infinite;
}

@keyframes halo {
  0%, 100% { box-shadow: 0 0 60px rgba(212, 175, 55, 0.6); }
  50% { box-shadow: 0 0 90px rgba(212, 175, 55, 0.9); }
}

.form-success h3 { font-size: 2rem; margin-bottom: 12px; }
.form-success p { max-width: 440px; margin: 0 auto 28px; }

.success-next {
  list-style: none;
  max-width: 380px;
  margin: 30px auto;
  text-align: left;
}

.success-next li {
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: var(--ink-mute);
  position: relative;
  padding-left: 50px;
  background: var(--surface);
}

.success-next li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
}

.success-next { counter-reset: step; }

/* ================= Responsive ================= */
@media (max-width: 968px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .section { padding: 90px 0; }
  .page-hero { padding: 170px 0 70px; } /* includes 40px for brand-switcher */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .form-card { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .suite-grid { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; }
  .marquee-item { font-size: 1.5rem; gap: 50px; }
  .marquee-track { gap: 50px; }
}

@media (max-width: 520px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .card, .suite-card { padding: 30px 24px; }
  .form-card { padding: 28px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .progress-step .step-label { display: none; }
  .brand-text .brand-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
