/* ============================================
   DEVNEXI DESIGN SYSTEM
   Inter + IBM Plex Sans · Deep Navy + Electric Blue + Slate
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Core Palette */
  --navy:       #0B1628;
  --navy-mid:   #101F3A;
  --navy-light: #162647;
  --blue:       #2563EB;
  --blue-bright:#3B82F6;
  --blue-glow:  rgba(37,99,235,0.12);
  --slate:      #94A3B8;
  --slate-light:#CBD5E1;
  --white:      #FFFFFF;
  --off-white:  #F8FAFC;
  --border:     rgba(148,163,184,0.15);
  --border-mid: rgba(148,163,184,0.25);

  /* Product accent colors */
  --corehr:   #10B981;
  --roomify:  #8B5CF6;
  --studofy:  #F59E0B;
  --leadyfi:  #EF4444;
  --tourlinx: #06B6D4;
  --astofy:   #F97316;
  --erpnex:   #6366F1;

  /* Typography */
  --font-display: 'IBM Plex Sans', 'Inter', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing scale */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.25rem;
  --s6: 1.5rem;
  --s8: 2rem;
  --s10: 2.5rem;
  --s12: 3rem;
  --s16: 4rem;
  --s20: 5rem;
  --s24: 6rem;
  --s32: 8rem;

  /* Radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.45);
  --shadow-blue: 0 0 40px rgba(37,99,235,0.25);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- GLOBAL UTILITIES ---- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s6);
}
.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--s6);
}

/* Sections */
.section { padding: var(--s24) 0; }
.section-sm { padding: var(--s16) 0; }
.section-lg { padding: var(--s32) 0; }

.section-alt { background: var(--navy-mid); }
.section-dark { background: var(--navy-light); }

/* Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: var(--s4);
}
.eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--blue-bright);
  border-radius: var(--r-full);
}

/* Headings */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--white);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

.heading-xl {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.text-gradient {
  background: linear-gradient(135deg, var(--blue-bright), #60A5FA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

p { color: var(--slate-light); line-height: 1.75; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--slate); }
.text-white { color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}
.btn-primary:hover { background: var(--blue-bright); box-shadow: 0 6px 20px rgba(37,99,235,0.5); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--border-mid);
}
.btn-secondary:hover { border-color: var(--blue-bright); color: var(--blue-bright); }

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--white);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

.btn-lg { padding: 1rem 2rem; font-size: 1rem; border-radius: var(--r-lg); }

/* Cards */
.card {
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s8);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--border-mid);
  box-shadow: var(--shadow-md);
}
.card-sm {
  padding: var(--s6);
  border-radius: var(--r-md);
}

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s6); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s6); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-auto { grid-template-columns: 1fr; }
  .section { padding: var(--s16) 0; }
  .section-lg { padding: var(--s20) 0; }
}
@media (max-width: 600px) {
  .container, .container-wide { padding: 0 var(--s4); }
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s12);
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse { direction: ltr; }
}

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--blue-glow);
  color: var(--blue-bright);
  border: 1px solid rgba(59,130,246,0.3);
}

/* Dividers */
.divider { border: none; border-top: 1px solid var(--border); margin: var(--s6) 0; }

/* Icon box */
.icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--blue-glow);
  border: 1px solid rgba(59,130,246,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Stat display */
.stat-block { }
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--white);
  line-height: 1;
}
.stat-label { font-size: 0.8rem; color: var(--slate); margin-top: 0.25rem; }

/* Screenshot mockup frame */
.screenshot-frame {
  background: var(--navy-light);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-blue);
}
.screenshot-frame .frame-bar {
  background: var(--navy-mid);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.frame-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.frame-dot.red   { background: #FF5F57; }
.frame-dot.yellow{ background: #FFBC2E; }
.frame-dot.green { background: #28C840; }
.frame-content { padding: var(--s6); }

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,22,40,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s4) var(--s6);
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav-logo span { color: var(--blue-bright); }
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s1);
  list-style: none;
}
.nav-links a {
  color: var(--slate-light);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: var(--s2) var(--s4);
  border-radius: var(--r-sm);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-actions { display: flex; gap: var(--s3); align-items: center; }

@media (max-width: 900px) {
  .nav-links { display: none; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy);
  border-top: 1px solid var(--border);
  padding: var(--s16) 0 var(--s8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--s10);
  margin-bottom: var(--s10);
}
.footer-brand p { font-size: 0.875rem; color: var(--slate); line-height: 1.7; margin-top: var(--s4); }
.footer-col h5 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: var(--s4);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: var(--s2); }
.footer-col a {
  color: var(--slate-light);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--s6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--slate);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   PRODUCT HERO VARIANTS
   ============================================ */
.product-hero {
  padding: var(--s24) 0 var(--s20);
  position: relative;
  overflow: hidden;
}
.product-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* Module grid */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s4);
}
.module-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s5);
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color 0.2s;
}
.module-item:hover { border-color: var(--border-mid); }
.module-item .module-icon {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
}
.module-item h4 { font-size: 0.875rem; margin-bottom: 2px; }
.module-item p { font-size: 0.78rem; color: var(--slate); line-height: 1.5; }

/* Feature walkthrough row */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s10);
  align-items: center;
  padding: var(--s10) 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }
.feature-row.flip { }
.feature-row.flip .feature-visual { order: -1; }
@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.flip .feature-visual { order: 0; }
}

/* Timeline steps */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue), transparent);
}
.timeline-step {
  display: flex;
  gap: var(--s5);
  padding: var(--s5) 0;
  position: relative;
}
.timeline-num {
  width: 44px;
  height: 44px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--navy);
}
.timeline-content h4 { margin-bottom: var(--s1); font-size: 1rem; }
.timeline-content p { font-size: 0.875rem; }

/* Persona cards */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s5);
}
.persona-card {
  padding: var(--s6);
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-align: center;
}
.persona-avatar {
  width: 56px;
  height: 56px;
  background: var(--blue-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto var(--s4);
  border: 1px solid rgba(59,130,246,0.3);
}
.persona-card h4 { font-size: 0.9rem; margin-bottom: var(--s1); }
.persona-card p { font-size: 0.8rem; }

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, var(--blue) 0%, #1D4ED8 100%);
  padding: var(--s20) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-section h2 { color: var(--white); margin-bottom: var(--s4); }
.cta-section p { color: rgba(255,255,255,0.8); margin-bottom: var(--s8); }
.cta-btns { display: flex; justify-content: center; gap: var(--s4); flex-wrap: wrap; }
.btn-white {
  background: var(--white);
  color: var(--blue);
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: var(--r-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  transition: all 0.2s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: var(--r-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  transition: all 0.2s;
}
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

/* Comparison table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.compare-table th {
  text-align: left;
  padding: var(--s3) var(--s5);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  border-bottom: 1px solid var(--border);
}
.compare-table td {
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--border);
  color: var(--slate-light);
}
.compare-table td:first-child { color: var(--white); font-weight: 500; }
.compare-table td.yes { color: #10B981; }
.compare-table td.no  { color: var(--slate); }
.compare-table tr:last-child td { border-bottom: none; }

/* Pillar cards */
.pillar-card {
  padding: var(--s6);
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}
.pillar-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
}
.pillar-card h3 { font-size: 1.1rem; margin: var(--s3) 0 var(--s2); }
.pillar-card p { font-size: 0.875rem; }

/* Section header utility */
.section-header { margin-bottom: var(--s10); }
.section-header.centered { text-align: center; }
.section-header p { margin-top: var(--s4); font-size: 1.05rem; max-width: 640px; }
.section-header.centered p { margin: var(--s4) auto 0; }

/* Animated stat counter */
@keyframes countUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: countUp 0.5s ease forwards; }

/* Product card on homepage */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s8);
  text-decoration: none;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.product-card:hover {
  border-color: var(--border-mid);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-card .product-color-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.product-card .product-icon {
  width: 52px; height: 52px;
  background: var(--navy-mid);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--s4);
  border: 1px solid var(--border);
}
.product-card h3 { font-size: 1.1rem; margin-bottom: var(--s2); }
.product-card .industry-tag {
  font-size: 0.72rem;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--s3);
}
.product-card p { font-size: 0.875rem; color: var(--slate-light); flex-grow: 1; margin-bottom: var(--s5); }
.product-card .view-link {
  font-size: 0.85rem;
  color: var(--blue-bright);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
}

/* Industry card */
.industry-card {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s5) var(--s6);
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: all 0.2s;
}
.industry-card:hover {
  border-color: var(--border-mid);
  background: rgba(37,99,235,0.08);
}
.industry-card .industry-icon {
  font-size: 1.5rem;
  width: 44px;
  text-align: center;
  flex-shrink: 0;
}
.industry-card h4 { font-size: 0.95rem; color: var(--white); margin-bottom: 2px; }
.industry-card p  { font-size: 0.78rem; color: var(--slate); line-height: 1.4; }

/* Mockup dashboard widget */
.dash-widget {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s4);
}
.dash-widget .widget-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate);
  margin-bottom: var(--s3);
}
.dash-widget .metric {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.dash-widget .metric-change {
  font-size: 0.72rem;
  color: #10B981;
  margin-top: var(--s1);
}

/* Bar chart mockup */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
}
.bar {
  flex: 1;
  background: var(--blue);
  border-radius: 3px 3px 0 0;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.bar:hover { opacity: 1; }

/* Notification / activity row */
.activity-row {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--border);
}
.activity-row:last-child { border-bottom: none; }
.activity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.activity-dot.green  { background: #10B981; }
.activity-dot.blue   { background: var(--blue-bright); }
.activity-dot.orange { background: #F97316; }
.activity-row span { font-size: 0.78rem; color: var(--slate-light); }
.activity-row .time  { font-size: 0.72rem; color: var(--slate); margin-left: auto; }

/* ============================================
   DROPDOWN NAVIGATION
   ============================================ */

.nav-links li { position: relative; list-style: none; }

/* Dropdown trigger */
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--slate-light);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: var(--s2) var(--s4);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  font-family: var(--font-body);
  white-space: nowrap;
}
.nav-dropdown-trigger:hover { color: var(--white); }
.nav-dropdown-trigger .chevron {
  width: 14px; height: 14px;
  transition: transform 0.2s;
  opacity: 0.6;
}
.nav-links li:hover .chevron,
.nav-links li.open .chevron { transform: rotate(180deg); opacity: 1; }

/* Dropdown panel */
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-light);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--s4);
  z-index: 200;
  min-width: 540px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
  transform: translateX(-50%) translateY(-4px);
}
.nav-links li:hover .nav-dropdown,
.nav-links li.open .nav-dropdown {
  display: grid;
  pointer-events: auto;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Dropdown variants */
.nav-dropdown.cols-2 { grid-template-columns: 1fr 1fr; gap: var(--s2); }
.nav-dropdown.cols-3 { grid-template-columns: 1fr 1fr 1fr; gap: var(--s2); }

/* Single dropdown item */
.dd-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--white);
  transition: background 0.15s;
}
.dd-item:hover { background: rgba(255,255,255,0.06); }
.dd-icon {
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.dd-text-wrap { display: flex; flex-direction: column; gap: 2px; }
.dd-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}
.dd-sub {
  font-size: 0.72rem;
  color: var(--slate);
  line-height: 1.3;
}

/* Dropdown header label */
.dd-header {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  padding: var(--s2) var(--s4) var(--s1);
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--s2);
}

/* Dropdown footer row */
.dd-footer {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: var(--s3);
  margin-top: var(--s2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dd-footer a {
  font-size: 0.75rem;
  color: var(--blue-bright);
  text-decoration: none;
  font-weight: 500;
}
.dd-footer a:hover { text-decoration: underline; }

/* ============================================
   FRAMEWORK SECTION (homepage)
   ============================================ */

.framework-feature {
  padding: var(--s6);
  background: var(--navy-light);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}
.framework-feature:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
}
.framework-feature h4 { margin-bottom: var(--s2); font-size: 1rem; }
.framework-feature p  { color: var(--slate); font-size: 0.88rem; line-height: 1.6; }

.ddd-step {
  display: flex;
  gap: var(--s5);
  align-items: flex-start;
  padding: var(--s6);
  background: var(--navy-light);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.ddd-step-num {
  min-width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.output-item {
  padding: var(--s4) var(--s5);
  background: var(--navy-light);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: var(--s3);
  border: 1px solid var(--border);
}
.output-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #10B981;
  background: rgba(16,185,129,0.15);
  padding: 2px 7px;
  border-radius: var(--r-full);
  margin-left: auto;
  flex-shrink: 0;
}

/* Positioning comparison table */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th {
  padding: var(--s4) var(--s5);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: left;
  border-bottom: 2px solid var(--border-mid);
}
.compare-table td {
  padding: var(--s3) var(--s5);
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .col-bad  { color: #EF4444; }
.compare-table .col-good { color: #10B981; }
.compare-table th.col-dn { color: var(--blue-bright); }

/* Value cards */
.value-card {
  padding: var(--s7, 1.75rem) var(--s6);
  background: var(--navy-light);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  transition: transform 0.2s;
}
.value-card:hover { transform: translateY(-3px); }
.value-icon { font-size: 1.8rem; margin-bottom: var(--s4); }
.value-card h4 { margin-bottom: var(--s3); font-size: 1rem; }
.value-card p  { color: var(--slate); font-size: 0.875rem; line-height: 1.65; }

/* ============================================
   MOBILE RESPONSIVE — GLOBAL OVERRIDES
   Covers inline grid styles in all HTML pages
   ============================================ */

/* ---- Tablet (≤900px) ---- */
@media (max-width: 900px) {

  /* Spacing scale down */
  .section    { padding: var(--s16) 0; }
  .section-sm { padding: var(--s10) 0; }
  .section-lg { padding: var(--s16) 0; }
  .section-header { margin-bottom: var(--s8); }

  /* Any inline 2-col, 3-col, 4-col grid → single column */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:repeat(2,1fr)"],
  [style*="grid-template-columns: repeat(2, 1fr)"],
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns:5fr 4fr"],
  [style*="grid-template-columns: 5fr 4fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Nav actions: hide Book a Call, keep Get Started only */
  .nav-actions .btn-secondary { display: none; }
  .nav-actions { gap: var(--s2); }

  /* Nav mobile toggle visible */
  .nav-mobile-toggle { display: flex !important; }

  /* Hero sections */
  .hero, .product-hero { padding-top: var(--s16); padding-bottom: var(--s12); }

  /* Section headers */
  .section-header p { font-size: 0.95rem; }

  /* Footer bottom stacked */
  .footer-bottom { flex-direction: column; gap: var(--s2); text-align: center; }

  /* CTA section */
  .cta-section { padding: var(--s16) 0; }
  .cta-btns { flex-direction: column; align-items: center; }
  .btn-white, .btn-outline-white { width: 100%; max-width: 320px; justify-content: center; }

  /* Stats band — 2 cols on tablet */
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Consulting step rows */
  .step-row { flex-direction: column; gap: var(--s3); }

  /* Pillar cards grid */
  [style*="grid-template-columns:repeat(2,1fr)"] { grid-template-columns: 1fr !important; }

  /* About framework 2-col */
  [style*="grid-template-columns:1fr 1fr"][style*="gap:var(--s10)"] {
    grid-template-columns: 1fr !important;
  }

  /* Engagement model cards */
  [style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns: 1fr !important; }

  /* Inline flex rows that overflow */
  [style*="display:flex"][style*="gap"] {
    flex-wrap: wrap;
  }

  /* nav-actions button text */
  .nav-actions .btn { padding: 0.5rem 0.85rem; font-size: 0.8rem; }

  /* Dropdown: full width on mobile */
  .nav-dropdown {
    position: static;
    transform: none !important;
    min-width: unset;
    width: 100%;
    box-shadow: none;
    border-radius: var(--r-md);
    margin-top: var(--s2);
  }
  .nav-dropdown.cols-2,
  .nav-dropdown.cols-3 { grid-template-columns: 1fr; }

  /* value/full cards */
  .value-full-card { padding: var(--s6); }
}

/* ---- Mobile (≤600px) ---- */
@media (max-width: 600px) {

  .container, .container-wide { padding: 0 var(--s4); }

  /* Typography scale down */
  h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
  h3 { font-size: 1.1rem; }
  .heading-xl { font-size: clamp(2rem, 9vw, 3rem); }

  /* Force all multi-col grids to 1 col */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Stats band: 2 cols on small mobile */
  .stats-band-inner,
  [style*="repeat(4,1fr)"],
  [style*="repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Buttons full width in hero */
  .hero [style*="display:flex"] { flex-direction: column; align-items: stretch; }
  .hero .btn { width: 100%; justify-content: center; }

  /* Section padding tighter */
  .section    { padding: var(--s12) 0; }
  .section-lg { padding: var(--s12) 0; }
  .section-sm { padding: var(--s8) 0; }

  /* Product & industry cards */
  .product-card { padding: var(--s6); }
  .industry-card { padding: var(--s4) var(--s5); }

  /* Card spacing */
  .card { padding: var(--s6); }

  /* Inline paddings on sections */
  [style*="padding:var(--s8)"],
  [style*="padding: var(--s8)"] { padding: var(--s5) !important; }

  /* About page 2-col framework section */
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Engagement cards */
  .engagement-card { padding: var(--s6); }

  /* Pillar cards */
  .pillar-card { padding: var(--s6); }

  /* Footer grid */
  .footer-grid { grid-template-columns: 1fr; gap: var(--s8); }

  /* nav actions — just Get Started */
  .nav-actions .btn-secondary { display: none !important; }

  /* Table overflow */
  .compare-table { font-size: 0.78rem; }
  .compare-table th, .compare-table td { padding: var(--s2) var(--s3); }
  table { display: block; overflow-x: auto; }

  /* Hide hero decorative element on small screens */
  .hero-visual { display: none; }

  /* Inline hero flex button group */
  [style*="display:flex;gap:var(--s4);justify-content:center"] {
    flex-direction: column !important;
    align-items: center !important;
  }
  [style*="display:flex;gap:var(--s4);justify-content:center"] .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

/* ---- Small mobile (≤400px) ---- */
@media (max-width: 400px) {
  .nav-logo { font-size: 1.05rem; }
  .btn-lg { padding: 0.85rem 1.25rem; font-size: 0.9rem; }
  .stat-number { font-size: 2rem; }
}
