/* ========================================================================
   MASSETRO — Enterprise Asset & Facility Operations Platform
   Global Stylesheet
   ======================================================================== */

/* ========== CSS VARIABLES ========== */
:root {
  --navy: #0B1F3B;
  --navy-deep: #071529;
  --charcoal: #111827;
  --slate: #1E293B;
  --steel: #334155;
  --muted: #64748B;
  --silver: #94A3B8;
  --light: #CBD5E1;
  --cloud: #E2E8F0;
  --ice: #F1F5F9;
  --white: #FFFFFF;
  --teal: #0F766E;
  --teal-light: #14B8A6;
  --teal-muted: #0D9488;
  --teal-bg: #F0FDFA;
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 1200px;
  --header-h: 72px;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(11,31,59,0.06);
  --shadow-md: 0 4px 20px rgba(11,31,59,0.08);
  --shadow-lg: 0 12px 40px rgba(11,31,59,0.12);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);

  /* Semantic tokens (light mode defaults) */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F1F5F9;
  --bg-tertiary: #E2E8F0;
  --bg-card: #FFFFFF;
  --bg-header: rgba(255,255,255,0.92);
  --border-primary: #E2E8F0;
  --border-secondary: #CBD5E1;
  --text-heading: #0B1F3B;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-faint: #94A3B8;
  --logo-fill: #0B1F3B;
}

/* ========== DARK MODE ========== */
[data-theme="dark"] {
  --bg-primary: #0C1220;
  --bg-secondary: #131B2E;
  --bg-tertiary: #1A2440;
  --bg-card: #151D30;
  --bg-header: rgba(12,18,32,0.92);
  --border-primary: #1E2A45;
  --border-secondary: #253352;
  --text-heading: #E8EDF5;
  --text-body: #B0BDD0;
  --text-muted: #7A8BA5;
  --text-faint: #4E6080;
  --logo-fill: #E8EDF5;
  --navy: #E8EDF5;
  --charcoal: #E8EDF5;
  --steel: #B0BDD0;
  --muted: #7A8BA5;
  --silver: #4E6080;
  --cloud: #1E2A45;
  --ice: #131B2E;
  --white: #0C1220;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
  --teal-bg: rgba(15,118,110,0.12);
}
}

/* ========== RESET & BASE ========== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}
img { max-width:100%; display:block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--navy);
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { color: var(--steel); font-size: 1.0625rem; }
.text-sm { font-size: 0.9375rem; }
.text-muted { color: var(--muted); }

/* ========== LAYOUT ========== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-sm { padding: 72px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem;
  transition: var(--transition); white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--navy); color: var(--white);
  box-shadow: 0 2px 8px rgba(11,31,59,0.2);
}
.btn-primary:hover { background: var(--slate); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-muted); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--cloud);
}
.btn-outline:hover { border-color: var(--navy); background: var(--ice); }
.btn-ghost { color: var(--teal); font-weight: 600; padding: 8px 0; }
.btn-ghost:hover { color: var(--teal-muted); }
.btn-ghost svg { transition: var(--transition); }
.btn-ghost:hover svg { transform: translateX(4px); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--ice); transform: translateY(-1px); }

/* ========== HEADER ========== */
.header {
  position: fixed; top:0; left:0; right:0; z-index:1000;
  height: var(--header-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226,232,240,0.6);
  transition: var(--transition);
}
.header-inner {
  max-width: var(--max-w); margin:0 auto; padding:0 24px;
  display: flex; align-items:center; justify-content:space-between;
  height: 100%;
}
.logo {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.4rem; letter-spacing: 0.12em; color: var(--navy);
  text-decoration: none;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px; font-size: 0.9375rem; font-weight: 500;
  color: var(--steel); border-radius: 6px; transition: var(--transition);
  text-decoration: none;
}
.nav a:hover, .nav a.active { color: var(--navy); background: var(--ice); }
.nav-cta { margin-left: 8px; }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
.mobile-toggle span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: var(--transition); }

/* ========== PAGE TOP SPACING ========== */
.page-top { padding-top: var(--header-h); }

/* ========== HERO ========== */
.hero {
  position: relative;
  padding: 120px 0 100px;
  margin-top: var(--header-h);
  background: linear-gradient(168deg, var(--navy-deep) 0%, var(--navy) 40%, var(--slate) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 75% 20%, rgba(15,118,110,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 400px 400px at 15% 80%, rgba(15,118,110,0.08) 0%, transparent 50%);
}
.hero-grid-bg {
  position: absolute; inset: 0; opacity: 0.04;
  background-image:
    linear-gradient(rgba(255,255,255,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.3) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 720px; }
.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 40px;
  background: rgba(15,118,110,0.15); border: 1px solid rgba(15,118,110,0.25);
  color: var(--teal-light); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 28px;
  font-family: var(--font-display);
}
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero h1 span { color: var(--teal-light); }
.hero p { color: var(--silver); font-size: 1.1875rem; line-height: 1.8; margin-bottom: 40px; max-width: 600px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-metric-bar {
  margin-top: 80px;
  display: flex; gap: 64px; padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-metric { text-align: left; }
.hero-metric .num {
  font-family: var(--font-display); font-size: 2rem; font-weight: 800;
  color: var(--white); letter-spacing: -0.02em;
}
.hero-metric .num span { color: var(--teal-light); }
.hero-metric .label { color: var(--silver); font-size: 0.875rem; margin-top: 4px; }

/* ========== PAGE HERO (inner pages) ========== */
.page-hero {
  padding: 80px 0 60px;
  margin-top: var(--header-h);
  background: var(--ice);
  border-bottom: 1px solid var(--cloud);
}
.page-hero .section-header { margin-bottom: 0; }

/* ========== SECTION HEADER ========== */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-header .overline {
  display: inline-block; font-family: var(--font-display);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 16px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--muted); }

/* ========== OVERLINE (standalone) ========== */
.overline {
  display: inline-block; font-family: var(--font-display);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 12px;
}

/* ========== CARDS ========== */
.card {
  background: var(--white); border: 1px solid var(--cloud);
  border-radius: var(--radius-lg); padding: 36px;
  transition: var(--transition);
}
.card:hover { border-color: var(--light); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 1.25rem;
}
.card-icon.teal { background: var(--teal-bg); color: var(--teal); }
.card-icon.navy { background: rgba(11,31,59,0.06); color: var(--navy); }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.9375rem; color: var(--muted); }

/* ========== FEATURE ROWS ========== */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding: 64px 0; border-bottom: 1px solid var(--cloud);
}
.feature-row:last-child { border-bottom: none; }
.feature-row.reverse .feature-text { order: 2; }
.feature-visual {
  background: var(--ice); border-radius: var(--radius-lg);
  height: 320px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--cloud); position: relative; overflow: hidden;
}
.feature-visual-inner {
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.875rem; color: var(--muted); letter-spacing: 0.04em;
  text-transform: uppercase;
}
.feature-text h3 { margin-bottom: 16px; }
.feature-text p { margin-bottom: 20px; }

/* ========== FEATURE LIST (checkmarks) ========== */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9375rem; color: var(--steel);
}
.feature-list li::before {
  content: '✓'; color: var(--teal); font-weight: 700;
  min-width: 20px; text-align: center; margin-top: 1px;
}

/* ========== DARK BAND ========== */
.band-dark { background: var(--navy); color: var(--white); padding: 80px 0; }
.band-dark h2, .band-dark h3 { color: var(--white); }
.band-dark p { color: var(--silver); }
.band-dark .overline { color: var(--teal-light); }
.band-dark .feature-list li { color: var(--silver); }

/* ========== TEAL BAND (CTA) ========== */
.band-teal {
  background: linear-gradient(135deg, var(--teal) 0%, #0a5e58 100%);
  color: var(--white); padding: 64px 0; text-align: center;
}
.band-teal h2 { color: var(--white); margin-bottom: 16px; }
.band-teal p { color: rgba(255,255,255,0.8); margin-bottom: 32px; }

/* ========== ICE BACKGROUND ========== */
.bg-ice { background: var(--ice); }

/* ========== SOLUTION CARDS ========== */
.solution-card {
  background: var(--white); border: 1px solid var(--cloud);
  border-radius: var(--radius-lg); padding: 32px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.solution-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--teal); opacity: 0; transition: var(--transition);
}
.solution-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.solution-card:hover::before { opacity: 1; }
.solution-card h3 { margin-bottom: 12px; font-size: 1.25rem; }
.solution-card p { font-size: 0.9375rem; color: var(--muted); margin-bottom: 16px; }
.solution-card .pain { font-size: 0.8125rem; color: var(--muted); margin-bottom: 6px; }
.solution-card .outcomes { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.solution-card .outcomes li {
  font-size: 0.875rem; color: var(--steel);
  display: flex; align-items: flex-start; gap: 8px;
}
.solution-card .outcomes li::before { content: '→'; color: var(--teal); font-weight: 600; }

/* ========== PERSONA CARDS ========== */
.persona-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.persona-card {
  background: var(--ice); border-radius: var(--radius-lg); padding: 28px;
  border: 1px solid transparent; transition: var(--transition);
}
.persona-card:hover { border-color: var(--teal); background: var(--teal-bg); }
.persona-emoji { font-size: 2rem; margin-bottom: 12px; }
.persona-card h4 { margin-bottom: 8px; }
.persona-card p { font-size: 0.875rem; color: var(--muted); }

/* ========== WORKFLOW STEPS ========== */
.workflow-steps {
  display: flex; gap: 0; align-items: stretch; margin: 48px 0;
  overflow-x: auto; padding-bottom: 8px;
}
.workflow-step {
  flex: 1; min-width: 140px; text-align: center;
  padding: 24px 16px; position: relative;
}
.workflow-step::after {
  content: ''; position: absolute; top: 36px; right: -12px;
  width: 24px; height: 2px; background: var(--cloud);
}
.workflow-step:last-child::after { display: none; }
.workflow-step .step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.875rem;
  margin-bottom: 12px;
}
.workflow-step h4 { font-size: 0.9375rem; margin-bottom: 4px; }
.workflow-step p { font-size: 0.8125rem; color: var(--muted); }

/* ========== INTEGRATION ITEMS ========== */
.integration-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.integration-item {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; background: var(--ice); border-radius: var(--radius);
  border: 1px solid var(--cloud); transition: var(--transition);
}
.integration-item:hover { border-color: var(--teal); }
.integration-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--white); display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: var(--navy);
  box-shadow: var(--shadow-sm); flex-shrink: 0;
  font-family: var(--font-display); letter-spacing: 0.02em;
}
.integration-item h4 { font-size: 0.9375rem; }
.integration-item p { font-size: 0.8125rem; color: var(--muted); }

/* ========== CHECKLIST ========== */
.checklist {
  list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 32px 0;
}
.checklist li {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; background: var(--ice); border-radius: var(--radius);
  font-size: 0.9375rem; color: var(--steel); font-weight: 500;
}
.checklist li .check {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; flex-shrink: 0;
}

/* ========== PRINCIPLE GRID ========== */
.principle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.principle {
  display: flex; gap: 16px; padding: 28px;
  background: var(--white); border: 1px solid var(--cloud);
  border-radius: var(--radius-lg); transition: var(--transition);
}
.principle:hover { box-shadow: var(--shadow-sm); }
.principle-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: rgba(11,31,59,0.04);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
}
.principle h4 { margin-bottom: 6px; }
.principle p { font-size: 0.875rem; color: var(--muted); }

/* ========== VALUE CARDS ========== */
.value-card { text-align: center; padding: 40px 24px; }
.value-icon {
  width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.value-card h4 { margin-bottom: 8px; }
.value-card p { font-size: 0.9375rem; color: var(--muted); }

/* ========== FORM ========== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: span 2; }
.form-group label {
  font-size: 0.875rem; font-weight: 600; color: var(--navy);
  margin-bottom: 6px; font-family: var(--font-display);
}
.form-group input, .form-group select, .form-group textarea {
  padding: 12px 16px; border: 1.5px solid var(--cloud);
  border-radius: var(--radius); font-family: var(--font-body);
  font-size: 0.9375rem; color: var(--charcoal);
  transition: var(--transition); background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,118,110,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ========== LEGAL ========== */
.legal-content { max-width: 800px; }
.legal-content h2 { margin-top: 48px; margin-bottom: 16px; font-size: 1.5rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin-bottom: 16px; }
.legal-block {
  background: var(--ice); border-left: 3px solid var(--teal);
  padding: 24px 28px; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}
.legal-block p { color: var(--steel); font-size: 0.9375rem; margin-bottom: 12px; }
.legal-block p:last-child { margin-bottom: 0; }

/* ========== SIDEBAR CARD ========== */
.sidebar-card {
  background: var(--ice); border-radius: var(--radius-lg);
  padding: 36px; border: 1px solid var(--cloud); margin-bottom: 24px;
}
.sidebar-card h4 { margin-bottom: 8px; }
.sidebar-card p { font-size: 0.9375rem; }
.sidebar-card-dark {
  background: var(--navy); border-radius: var(--radius-lg);
  padding: 36px; color: var(--white);
}
.sidebar-card-dark h4 { color: var(--white); margin-bottom: 12px; }
.sidebar-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sidebar-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9375rem; color: var(--silver);
}
.sidebar-list li .tick { color: var(--teal-light); flex-shrink: 0; }

/* ========== FOOTER ========== */
.footer { background: var(--navy-deep); color: var(--silver); padding: 64px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand .logo { color: var(--white); margin-bottom: 16px; display: inline-block; }
.footer-brand p { font-size: 0.875rem; color: var(--muted); line-height: 1.7; max-width: 280px; }
.footer-col h5 {
  font-family: var(--font-display); font-size: 0.75rem;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--silver); margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 0.875rem; color: var(--muted);
  padding: 4px 0; transition: var(--transition); text-decoration: none;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 0.8125rem; color: var(--muted);
}
.footer-bottom a { color: var(--teal-light); text-decoration: none; }
.footer-bottom a:hover { color: var(--teal-muted); }

/* ========== UTILITY ========== */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.gap-64 { gap: 64px; }
.gap-24 { gap: 24px; }
.max-w-720 { max-width: 720px; }
.max-w-600 { max-width: 600px; }

/* ========== MOCK UI PANELS ========== */
.mock-ui {
  border-radius: var(--radius-lg);
  border: 1px solid var(--cloud);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(0,0,0,0.03);
  transition: var(--transition);
}
.mock-ui:hover { box-shadow: var(--shadow-lg); }
.mock-ui-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  background: var(--ice);
  border-bottom: 1px solid var(--cloud);
}
.mock-ui-dots { display: flex; gap: 6px; }
.mock-ui-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--cloud);
}
.mock-ui-dots span:first-child { background: #fca5a5; }
.mock-ui-dots span:nth-child(2) { background: #fcd34d; }
.mock-ui-dots span:last-child { background: #86efac; }
.mock-ui-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.8125rem; color: var(--navy); flex: 1;
}
.mock-ui-actions { display: flex; gap: 8px; }
.mock-pill {
  display: inline-block; padding: 3px 10px; border-radius: 4px;
  font-size: 0.6875rem; font-weight: 600; font-family: var(--font-display);
  background: var(--white); color: var(--steel); border: 1px solid var(--cloud);
  letter-spacing: 0.01em;
}
.mock-pill.teal { background: var(--teal); color: var(--white); border-color: var(--teal); }
.mock-ui-body { padding: 16px 20px 20px; }

/* Mock Table */
.mock-table { display: flex; flex-direction: column; gap: 0; }
.mock-table-head {
  display: flex; gap: 8px; padding: 8px 12px;
  font-size: 0.6875rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  font-family: var(--font-display);
  border-bottom: 2px solid var(--cloud);
}
.mock-table-row {
  display: flex; gap: 8px; padding: 10px 12px;
  font-size: 0.78125rem; color: var(--steel);
  border-bottom: 1px solid var(--ice);
  align-items: center;
  transition: background 0.15s;
}
.mock-table-row:hover { background: var(--ice); }
.mock-row-dim { opacity: 0.55; }
.mock-mono {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.75rem; color: var(--navy); font-weight: 600;
}
.mock-badge {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 0.6875rem; font-weight: 600; font-family: var(--font-display);
  letter-spacing: 0.01em;
}
.mock-badge.green { background: #dcfce7; color: #166534; }
.mock-badge.amber { background: #fef3c7; color: #92400e; }
.mock-badge.blue { background: #dbeafe; color: #1e40af; }
.mock-badge.red { background: #fee2e2; color: #991b1b; }
.mock-badge.grey { background: var(--ice); color: var(--muted); }
.mock-table-footer {
  padding: 10px 12px 0; font-size: 0.6875rem; color: var(--silver);
  font-family: var(--font-display);
}

/* Mock Work Order Cards */
.mock-wo-list { display: flex; flex-direction: column; gap: 10px; }
.mock-wo-card {
  padding: 14px 16px; border-radius: 8px;
  border: 1px solid var(--cloud); background: var(--white);
  transition: border-color 0.15s;
}
.mock-wo-card:hover { border-color: var(--light); }
.mock-wo-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.mock-wo-desc { font-size: 0.8125rem; color: var(--charcoal); margin-bottom: 8px; font-weight: 500; }
.mock-wo-meta {
  display: flex; gap: 16px; font-size: 0.6875rem; color: var(--muted);
  font-family: var(--font-display);
}
.mock-priority { font-weight: 600; }
.mock-priority.high { color: #dc2626; }
.mock-priority.med { color: #d97706; }
.mock-priority.low { color: #16a34a; }

/* Mock Facility Cards */
.mock-facility-grid { display: flex; flex-direction: column; gap: 12px; }
.mock-facility-card {
  padding: 14px 16px; border-radius: 8px;
  border: 1px solid var(--cloud); background: var(--white);
}
.mock-facility-card:hover { border-color: var(--light); }
.mock-facility-icon { font-size: 1.25rem; margin-bottom: 4px; }
.mock-facility-info { margin-bottom: 10px; }
.mock-facility-info strong { display: block; font-size: 0.8125rem; color: var(--navy); font-family: var(--font-display); }
.mock-facility-info .text-sm { display: block; margin-top: 2px; }
.mock-occ-bar {
  height: 6px; background: var(--ice); border-radius: 3px; overflow: hidden;
}
.mock-occ-fill {
  height: 100%; border-radius: 3px; background: var(--teal);
  transition: width 0.6s ease;
}
.mock-occ-fill.amber { background: #d97706; }
.mock-occ-label {
  font-size: 0.6875rem; color: var(--muted); margin-top: 4px;
  font-family: var(--font-display); font-weight: 600;
}
.mock-facility-stats {
  display: flex; gap: 16px; margin-top: 14px;
  padding-top: 14px; border-top: 1px solid var(--cloud);
}
.mock-facility-stats > div { flex: 1; text-align: center; }
.mock-stat-num {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 1.25rem; color: var(--navy);
}
.mock-stat-label { font-size: 0.625rem; color: var(--muted); line-height: 1.3; display: block; margin-top: 2px; }

/* Mock Inventory Rows */
.mock-inv-list { display: flex; flex-direction: column; gap: 12px; }
.mock-inv-row {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--ice);
}
.mock-inv-row:last-child { border-bottom: none; }
.mock-inv-item { flex: 1; min-width: 0; }
.mock-inv-item .mock-mono { display: block; margin-bottom: 2px; }
.mock-inv-item span:last-child { font-size: 0.78125rem; color: var(--steel); }
.mock-inv-bar-wrap { width: 140px; flex-shrink: 0; }
.mock-inv-bar {
  height: 8px; background: var(--ice); border-radius: 4px; overflow: hidden; margin-bottom: 4px;
}
.mock-inv-fill {
  height: 100%; border-radius: 4px; transition: width 0.6s ease;
}
.mock-inv-fill.green { background: var(--teal); }
.mock-inv-fill.amber { background: #d97706; }
.mock-inv-fill.red { background: #dc2626; }
.mock-inv-qty {
  font-size: 0.6875rem; color: var(--muted); font-family: var(--font-display); font-weight: 600;
}
.mock-inv-qty.warn { color: #d97706; }
.mock-inv-qty.crit { color: #dc2626; }
.mock-inv-summary {
  display: flex; gap: 8px; margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--cloud); flex-wrap: wrap;
}

/* Mock KPIs & Chart */
.mock-kpi-row { display: flex; gap: 10px; margin-bottom: 16px; }
.mock-kpi {
  flex: 1; padding: 12px; border-radius: 8px;
  background: var(--ice); text-align: center;
}
.mock-kpi-label {
  display: block; font-size: 0.625rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); font-family: var(--font-display);
  margin-bottom: 4px;
}
.mock-kpi-val {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 1.125rem; color: var(--navy); line-height: 1.2;
}
.mock-kpi-val small { font-size: 0.6875rem; font-weight: 600; color: var(--muted); }
.mock-kpi-trend {
  display: block; font-size: 0.6875rem; font-weight: 700; margin-top: 2px;
  font-family: var(--font-display);
}
.mock-kpi-trend.up { color: #16a34a; }
.mock-kpi-trend.down { color: #16a34a; } /* down backlog is good */
.mock-chart-area {
  background: var(--ice); border-radius: 8px; padding: 16px;
}
.mock-chart-label {
  font-size: 0.6875rem; font-weight: 700; color: var(--muted);
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.04em; margin-bottom: 12px;
}
.mock-chart-bars {
  display: flex; gap: 8px; align-items: flex-end; height: 100px;
}
.mock-bar-group {
  flex: 1; display: flex; gap: 3px; align-items: flex-end; position: relative;
  padding-bottom: 18px;
}
.mock-bar-group span {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  font-size: 0.5625rem; color: var(--silver); font-family: var(--font-display); font-weight: 600;
}
.mock-bar {
  flex: 1; border-radius: 3px 3px 0 0;
  background: var(--navy); opacity: 0.25;
  min-height: 4px; transition: height 0.4s ease;
}
.mock-bar.teal { background: var(--teal); opacity: 0.7; }
.mock-chart-legend {
  display: flex; gap: 16px; margin-top: 10px; justify-content: center;
  font-size: 0.6875rem; color: var(--muted); font-family: var(--font-display);
}
.mock-leg-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 2px;
  margin-right: 4px; vertical-align: middle;
}
.mock-leg-dot.navy { background: var(--navy); opacity: 0.25; }
.mock-leg-dot.teal { background: var(--teal); opacity: 0.7; }

/* Mock UI responsive */
@media (max-width: 1024px) {
  .mock-table-head span, .mock-table-row span { font-size: 0.6875rem; }
  .mock-kpi-row { flex-wrap: wrap; }
  .mock-kpi { min-width: calc(50% - 6px); }
  .mock-facility-stats { flex-wrap: wrap; }
  .mock-inv-bar-wrap { width: 100px; }
}
@media (max-width: 768px) {
  .mock-ui-body { padding: 12px 14px 16px; }
  .mock-chart-bars { height: 70px; }
  .mock-table-head { display: none; }
  .mock-table-row { flex-wrap: wrap; gap: 4px; }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeUp 0.6s ease-out forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse .feature-text { order: 0; }
  .hero-metric-bar { gap: 40px; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .principle-grid { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: span 1; }
}
@media (max-width: 768px) {
  .nav {
    display: none; position: fixed; top: var(--header-h); left:0; right:0; bottom:0;
    background: var(--bg-primary); flex-direction: column; padding: 24px; gap: 4px; z-index: 999;
    overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; font-size: 1rem; }
  .nav-cta { margin-left: 0; margin-top: 12px; width: 100%; text-align: center; justify-content: center; }
  .mobile-toggle { display: flex; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 60px; }
  .hero-metric-bar { gap: 24px; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .persona-grid { grid-template-columns: 1fr; }
}

/* ========== INLINE SVG LOGO ========== */
.logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.logo-svg { height: 28px; width: auto; display: block; }
.logo-svg path { fill: var(--logo-fill); transition: fill 0.3s; }
.footer .logo-svg path { fill: #E8EDF5; }

/* ========== DARK MODE TOGGLE ========== */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px;
  background: transparent; border: 1.5px solid var(--border-primary);
  cursor: pointer; transition: var(--transition); margin-left: 4px;
  color: var(--text-muted); flex-shrink: 0;
}
.theme-toggle:hover { background: var(--bg-secondary); border-color: var(--border-secondary); color: var(--text-heading); }
.theme-toggle .icon-sun, .theme-toggle .icon-moon { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ========== DARK MODE SEMANTIC OVERRIDES ========== */
h1, h2, h3, h4, h5 { color: var(--text-heading); }
p { color: var(--text-body); }

.header {
  background: var(--bg-header);
  border-bottom-color: var(--border-primary);
}
.nav a { color: var(--text-body); }
.nav a:hover, .nav a.active { color: var(--text-heading); background: var(--bg-secondary); }
.mobile-toggle span { background: var(--text-heading); }

.card, .solution-card, .principle {
  background: var(--bg-card);
  border-color: var(--border-primary);
}
.card:hover, .solution-card:hover, .principle:hover {
  border-color: var(--border-secondary);
}
.card p, .solution-card p, .principle p { color: var(--text-muted); }
.solution-card .pain { color: var(--text-muted); }
.solution-card .outcomes li { color: var(--text-body); }

.persona-card { background: var(--bg-secondary); }
.persona-card:hover { background: var(--teal-bg); }
.persona-card p { color: var(--text-muted); }

.feature-list li { color: var(--text-body); }

.bg-ice, .page-hero, [class*="bg-ice"] {
  background: var(--bg-secondary);
}
.page-hero { border-bottom-color: var(--border-primary); }

.section-header p { color: var(--text-muted); }
.overline { color: var(--teal); }
[data-theme="dark"] .overline { color: var(--teal-light); }

.feature-row { border-bottom-color: var(--border-primary); }
.feature-visual {
  background: var(--bg-secondary);
  border-color: var(--border-primary);
}

.integration-item {
  background: var(--bg-secondary);
  border-color: var(--border-primary);
}
.integration-item:hover { border-color: var(--teal); }
.integration-icon {
  background: var(--bg-card);
  color: var(--text-heading);
}

.checklist li {
  background: var(--bg-secondary);
  color: var(--text-body);
}

.value-icon { background: var(--bg-secondary) !important; }
.value-card p { color: var(--text-muted); }

.sidebar-card {
  background: var(--bg-secondary);
  border-color: var(--border-primary);
}
.sidebar-card p { color: var(--text-body); }

.form-group label { color: var(--text-heading); }
.form-group input, .form-group select, .form-group textarea {
  background: var(--bg-card);
  border-color: var(--border-primary);
  color: var(--text-body);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,118,110,0.15);
}

.legal-content p { color: var(--text-body); }
.legal-block {
  background: var(--bg-secondary);
  border-left-color: var(--teal);
}
.legal-block p { color: var(--text-body); }

.footer {
  background: #060B14;
}
[data-theme="dark"] .footer { background: #060B14; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: #fff; }
.footer-bottom a { color: var(--teal-light); }

/* Dark mode: hero stays dark in both modes */
.band-dark { background: #071529; }
[data-theme="dark"] .band-dark { background: #060B14; border-top: 1px solid var(--border-primary); border-bottom: 1px solid var(--border-primary); }
[data-theme="dark"] .band-dark h2, [data-theme="dark"] .band-dark h3 { color: #E8EDF5; }
[data-theme="dark"] .band-dark p { color: #7A8BA5; }
[data-theme="dark"] .band-dark .feature-list li { color: #7A8BA5; }

.band-teal { background: linear-gradient(135deg, var(--teal) 0%, #0a5e58 100%); }
[data-theme="dark"] .band-teal { background: linear-gradient(135deg, #0a5e58 0%, #073d3a 100%); }

.btn-outline {
  border-color: var(--border-primary);
  color: var(--text-heading);
}
.btn-outline:hover {
  border-color: var(--text-heading);
  background: var(--bg-secondary);
}

/* Dark mode: Mock UI panels */
[data-theme="dark"] .mock-ui {
  background: var(--bg-card);
  border-color: var(--border-primary);
}
[data-theme="dark"] .mock-ui-bar {
  background: var(--bg-secondary);
  border-bottom-color: var(--border-primary);
}
[data-theme="dark"] .mock-ui-dots span { background: var(--border-secondary); }
[data-theme="dark"] .mock-ui-dots span:first-child { background: #7f1d1d; }
[data-theme="dark"] .mock-ui-dots span:nth-child(2) { background: #78350f; }
[data-theme="dark"] .mock-ui-dots span:last-child { background: #14532d; }
[data-theme="dark"] .mock-ui-title { color: var(--text-heading); }
[data-theme="dark"] .mock-pill { background: var(--bg-tertiary); color: var(--text-body); border-color: var(--border-secondary); }
[data-theme="dark"] .mock-table-head { border-bottom-color: var(--border-primary); color: var(--text-faint); }
[data-theme="dark"] .mock-table-row { border-bottom-color: var(--border-primary); color: var(--text-body); }
[data-theme="dark"] .mock-table-row:hover { background: var(--bg-secondary); }
[data-theme="dark"] .mock-mono { color: var(--teal-light); }
[data-theme="dark"] .mock-table-footer { color: var(--text-faint); }
[data-theme="dark"] .mock-wo-card { background: var(--bg-secondary); border-color: var(--border-primary); }
[data-theme="dark"] .mock-wo-desc { color: var(--text-body); }
[data-theme="dark"] .mock-wo-meta { color: var(--text-muted); }
[data-theme="dark"] .mock-facility-card { background: var(--bg-secondary); border-color: var(--border-primary); }
[data-theme="dark"] .mock-facility-info strong { color: var(--text-heading); }
[data-theme="dark"] .mock-occ-bar { background: var(--bg-tertiary); }
[data-theme="dark"] .mock-occ-label { color: var(--text-muted); }
[data-theme="dark"] .mock-facility-stats { border-top-color: var(--border-primary); }
[data-theme="dark"] .mock-stat-num { color: var(--text-heading); }
[data-theme="dark"] .mock-stat-label { color: var(--text-muted); }
[data-theme="dark"] .mock-inv-row { border-bottom-color: var(--border-primary); }
[data-theme="dark"] .mock-inv-item span:last-child { color: var(--text-body); }
[data-theme="dark"] .mock-inv-bar { background: var(--bg-tertiary); }
[data-theme="dark"] .mock-inv-qty { color: var(--text-muted); }
[data-theme="dark"] .mock-kpi { background: var(--bg-secondary); }
[data-theme="dark"] .mock-kpi-label { color: var(--text-faint); }
[data-theme="dark"] .mock-kpi-val { color: var(--text-heading); }
[data-theme="dark"] .mock-kpi-val small { color: var(--text-muted); }
[data-theme="dark"] .mock-chart-area { background: var(--bg-secondary); }
[data-theme="dark"] .mock-chart-label { color: var(--text-faint); }
[data-theme="dark"] .mock-bar { background: var(--teal-light); opacity: 0.15; }
[data-theme="dark"] .mock-bar.teal { background: var(--teal-light); opacity: 0.6; }
[data-theme="dark"] .mock-chart-legend { color: var(--text-muted); }
[data-theme="dark"] .mock-leg-dot.navy { background: var(--teal-light); opacity: 0.15; }
[data-theme="dark"] .mock-leg-dot.teal { background: var(--teal-light); opacity: 0.6; }

/* Dark badges keep their colors */
[data-theme="dark"] .mock-badge.green { background: rgba(22,101,52,0.2); color: #4ade80; }
[data-theme="dark"] .mock-badge.amber { background: rgba(146,64,14,0.2); color: #fbbf24; }
[data-theme="dark"] .mock-badge.blue { background: rgba(30,64,175,0.2); color: #60a5fa; }
[data-theme="dark"] .mock-badge.red { background: rgba(153,27,27,0.2); color: #f87171; }
[data-theme="dark"] .mock-badge.grey { background: var(--bg-tertiary); color: var(--text-muted); }

/* Workflow steps dark */
[data-theme="dark"] .workflow-step::after { background: var(--border-primary); }
[data-theme="dark"] .workflow-step p { color: var(--text-muted); }
