/* ============================================
   SAMSON ADVISORY - Modern Dark Theme
   ============================================ */

:root {
  --bg-primary: #01224D;
  --bg-secondary: #032a5a;
  --bg-elevated: #044A69;
  --bg-card: #032e5e;
  --bg-card-hover: #04386e;
  --text-primary: #ffffff;
  --text-secondary: #b8cfe0;
  --text-muted: #7a9bb8;
  --accent: #248dc1;
  --accent-hover: #2da0d8;
  --accent-subtle: rgba(36, 141, 193, 0.15);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.2);
  --nav-height: 80px;
  --container-width: 1200px;
  --section-padding: 100px;
  --font-heading: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Fragment Mono', monospace;
  --transition: all 0.3s ease;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-pill: 100px;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.8rem, 5.5vw, 4.5rem); margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 20px; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin-bottom: 12px; font-weight: 600; }
h4 { font-size: 1.1rem; margin-bottom: 8px; font-weight: 600; }
p { margin-bottom: 1rem; color: var(--text-secondary); line-height: 1.7; }
a { color: var(--text-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }
strong { color: var(--text-primary); font-weight: 600; }

/* Label / Tag */
.label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 16px;
}

/* Layout */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.section {
  padding: var(--section-padding) 0;
  position: relative;
}
.section--dark { background: var(--bg-primary); }
.section--alt { background: var(--bg-secondary); }
.section--elevated { background: var(--bg-elevated); }
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}
.section-header p { color: var(--text-secondary); font-size: 1.1rem; }
.text-center { text-align: center; }

/* ========== NAVIGATION ========== */
.main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(1, 34, 77, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}
.nav-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  height: 50px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 6px;
  vertical-align: middle;
  transition: transform 0.2s;
}
.nav-dropdown:hover > a::after {
  transform: rotate(180deg);
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: all 0.25s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.dropdown-menu a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

/* Nav CTA Button */
.nav-cta {
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  color: var(--text-primary) !important;
  background: #7aa329 !important;
  padding: 10px 24px !important;
  border-radius: var(--radius-pill) !important;
}
.nav-cta:hover {
  background: #8ec63f !important;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  width: 32px; height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(3px, 3px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(3px, -3px); }

/* Mobile Menu Backdrop (scrim behind the drawer) */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav-overlay.open { opacity: 1; visibility: visible; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: #7aa329;
  color: #fff;
}
.btn-primary:hover {
  background: #8ec63f;
  color: #fff;
  transform: translateY(-1px);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  color: var(--text-primary);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent);
  color: var(--text-primary);
}
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 18px 40px; font-size: 1rem; }

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 60px) 24px 80px;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(36, 141, 193, 0.1) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero p {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}
.hero .btn { margin: 0 8px; }

/* Page Hero (inner pages) */
.page-hero {
  padding: calc(var(--nav-height) + 80px) 0 60px;
  background: var(--bg-primary);
  text-align: center;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(36, 141, 193, 0.08) 0%, transparent 50%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ========== CARDS ========== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}
.card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.card h3 { color: var(--text-primary); margin-bottom: 12px; }
.card p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 0; }
.card .card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-hover);
}
.card-link:hover { gap: 10px; color: var(--text-primary); }
.card-link::after { content: '\2192'; transition: var(--transition); }

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ========== STATS ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item {
  padding: 40px 24px;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--text-primary);
  display: block;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ========== PROCESS STEPS ========== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: left;
  transition: var(--transition);
}
.step-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}
.step-number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.step-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0; }

/* ========== CONTENT SECTIONS ========== */
.content-block {
  max-width: 800px;
  margin: 0 auto;
}
.content-block h2 { margin-bottom: 20px; }
.content-block h3 {
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.content-block p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
}
.content-block ul, .content-block ol {
  margin: 16px 0 24px 0;
  list-style: none;
}
.content-block ul li,
.content-block ol li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}
.content-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.content-block ol {
  counter-reset: item;
}
.content-block ol li {
  counter-increment: item;
}
.content-block ol li::before {
  content: counter(item) '.';
  position: absolute;
  left: 0;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
.content-block ul ul {
  margin: 8px 0 8px 0;
}
.content-block ul ul li { padding-left: 24px; }
.content-block ul ul li::before {
  width: 4px; height: 4px;
  top: 17px;
  background: var(--text-muted);
}

/* Content Image */
.content-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 40px 0;
  border: 1px solid var(--border-color);
}
.content-image img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.9;
}

/* Two Column Layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.two-col--wide-left { grid-template-columns: 2fr 1fr; }
.two-col--wide-right { grid-template-columns: 1fr 2fr; }

/* ========== ACCORDION ========== */
.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}
.accordion-item:hover {
  border-color: var(--border-hover);
}
.accordion-btn {
  width: 100%;
  padding: 20px 24px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-heading);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.accordion-btn:hover { background: var(--bg-card-hover); }
.accordion-btn::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}
.accordion-item.active .accordion-btn::after {
  content: '\2212';
  color: var(--accent);
}
.accordion-item.active .accordion-btn {
  background: var(--bg-card-hover);
}
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.accordion-panel-inner {
  padding: 0 24px 24px;
  background: var(--bg-card);
}
.accordion-panel-inner p { font-size: 0.95rem; }
.accordion-panel-inner ul {
  list-style: none;
  margin: 8px 0 16px;
}
.accordion-panel-inner ul li {
  padding: 6px 0 6px 24px;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.accordion-panel-inner ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 14px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.accordion-panel-inner strong {
  display: block;
  margin-top: 12px;
  margin-bottom: 4px;
}

/* ========== FORMS ========== */
.form-section {
  max-width: 700px;
  margin: 0 auto;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group.full-width {
  grid-column: 1 / -1;
}
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-group label .required {
  color: var(--accent);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}
::placeholder {
  color: var(--text-muted);
}

/* Override KempIT SecureForms styles */
.secure-form {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
}
.secure-form .form-group {
  margin-bottom: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}
.secure-form .form-group-half {
  display: block !important;
  width: 100% !important;
  float: none !important;
  margin-left: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}
.secure-form .form-group:not(.form-group-half) {
  grid-column: 1 / -1 !important;
}
.secure-form .form-control {
  width: 100% !important;
  padding: 14px 16px !important;
  background: #ffffff !important;
  border: 1px solid #dde5ed !important;
  border-radius: var(--radius-sm) !important;
  color: #01224D !important;
  font-size: 0.95rem !important;
  font-family: var(--font-body) !important;
  transition: var(--transition) !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  height: auto !important;
  line-height: 1.5 !important;
}
.secure-form .form-control:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-subtle) !important;
}
.secure-form textarea.form-control {
  min-height: 140px !important;
  resize: vertical !important;
}
.secure-form label {
  display: block !important;
  text-align: left !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  color: #ffffff !important;
  margin-bottom: 8px !important;
  padding: 0 !important;
}
.secure-form .required { color: #8ec63f !important; }
.secure-form .btn,
.secure-form .btn-primary,
.secure-form button[type="submit"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  padding: 14px 40px !important;
  border-radius: var(--radius-pill) !important;
  background: #7aa329 !important;
  color: #fff !important;
  border: none !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  width: auto !important;
  margin: 0 auto !important;
}
.secure-form .btn-primary:hover,
.secure-form button[type="submit"]:hover {
  background: #8ec63f !important;
  transform: translateY(-1px);
}

/* ========== CTA SECTION ========== */
.cta-section {
  text-align: center;
  padding: var(--section-padding) 0;
  position: relative;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(36, 141, 193, 0.08) 0%, transparent 50%);
  pointer-events: none;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { margin-bottom: 16px; }
.cta-section p { max-width: 500px; margin: 0 auto 32px; color: var(--text-secondary); }
.cta-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.cta-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
}

/* ========== PAGE LINKS / SIDEBAR ========== */
.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}
.page-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 10px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  transition: var(--transition);
}
.page-links a:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 300px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 400;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.footer-col ul li a:hover { color: var(--text-primary); }
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}
.footer-quote {
  text-align: center;
  padding: 40px 0 0;
}
.footer-quote h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-style: italic;
}
.footer-quote span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-top: 8px;
}

/* ========== DIVIDER ========== */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent 0%, var(--border-color) 20%, var(--border-color) 80%, transparent 100%);
  margin: 0;
}

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  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; }

/* ========== BACK TO TOP ========== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px; height: 44px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  :root { --section-padding: 80px; }
  .grid-4, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col--wide-left,
  .two-col--wide-right { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --section-padding: 60px; --nav-height: 70px; }

  /* Body scroll lock while the drawer is open */
  body.nav-open { overflow: hidden; }

  /* Show the backdrop on mobile */
  .nav-overlay { display: block; }

  /* Drawer: slides in from the right, scrolls internally */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(86%, 360px);
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    background: rgba(1, 34, 77, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-color);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 4px;
    padding: calc(var(--nav-height) + 16px) 20px 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }
  .nav-links a {
    font-size: 1.05rem;
    padding: 12px 16px;
    text-align: left;
    border-radius: var(--radius-sm);
  }
  .nav-toggle { display: flex; }

  /* Mobile dropdown: render submenu inline (always expanded), left-aligned.
     Include :hover selector so the desktop hover-transform doesn't fire and
     shove the submenu off the drawer. */
  .nav-dropdown { width: 100%; }
  .nav-dropdown > a { display: block; }
  .nav-dropdown .dropdown-menu,
  .nav-dropdown:hover .dropdown-menu {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0 12px;
    opacity: 1;
    visibility: visible;
    min-width: auto;
  }
  .nav-dropdown .dropdown-menu a {
    font-size: 0.98rem;
    padding: 10px 16px;
    text-align: left;
  }
  .nav-dropdown > a::after { display: none; }

  .grid-2, .grid-3, .stats-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .hero { min-height: auto; padding-top: calc(var(--nav-height) + 80px); padding-bottom: 60px; }
  .hero h1 { font-size: clamp(2.2rem, 8vw, 3rem); }

  .form-grid { grid-template-columns: 1fr; }
  .secure-form {
    grid-template-columns: 1fr !important;
  }
  .secure-form .form-group-half {
    grid-column: 1 / -1 !important;
  }

  .cta-badges { flex-direction: column; align-items: center; }
  .page-links { justify-content: center; }
}

@media (max-width: 480px) {
  :root { --section-padding: 48px; }
  .container { padding: 0 16px; }
  .card { padding: 24px; }
  .step-card { padding: 24px 20px; }
  .hero h1 { font-size: 2rem; }
}
