@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* =====================================================================
   SOSM Portal — Design System Base
   ===================================================================== */

/* ---- 1. Design Tokens ---- */
:root {
  --navy-900: #0B192C;
  --navy-700: #133B6E;
  --navy-500: #1E4A80;
  --teal-500: #16A89A;
  --teal-600: #128A80;
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-300: #CBD5E1;
  --slate-500: #64748B;
  --slate-700: #334155;
  --slate-900: #0F172A;
  --border:    #E2E8F0;
  --success:   #10B981;
  --warn:      #F59E0B;
  --danger:    #EF4444;
  --white:     #FFFFFF;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 12px;

  --shadow-sm: 0 1px 2px rgba(15,23,42,.04);
  --shadow-md: 0 4px 12px rgba(11,25,44,.06);
  --shadow-lg: 0 10px 30px rgba(11,25,44,.08);

  --container: 1280px;
}

/* ---- 2. Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
body.nav-open { overflow: hidden; }
body {
  font-family: var(--font-sans) !important;
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-500); text-decoration: none; }
a:hover { color: var(--teal-600); text-decoration: underline; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ---- 3. Typography ---- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-sans); color: var(--slate-900); font-weight: 700 !important; line-height: 1.2; }
h1 { font-size: clamp(36px, 5vw, 56px) !important; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 40px) !important; letter-spacing: -0.01em; font-weight: 700 !important; }
h3 { font-size: clamp(22px, 3vw, 28px) !important; font-weight: 600 !important; }
h4 { font-size: 20px !important; font-weight: 600 !important; }
p  { color: var(--slate-700); }
.mono { font-family: var(--font-mono); }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-500);
}
.eyebrow--navy { color: var(--navy-700); }

/* ---- 4. Layout primitives ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--slate { background: var(--slate-50); }
.section--navy { background: var(--navy-900); color: var(--white); }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: var(--white); }
.section--navy p { color: rgba(255,255,255,.75); }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
}

/* ---- 5. Components ---- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary { background: var(--teal-500); color: var(--white); }
.btn--primary:hover { background: var(--teal-600); color: var(--white); text-decoration: none; }
.btn--secondary {
  background: transparent;
  color: var(--navy-700);
  border-color: var(--navy-700);
}
.btn--secondary:hover { background: var(--navy-700); color: var(--white); text-decoration: none; }
.btn--secondary-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.btn--secondary-light:hover { background: rgba(255,255,255,.1); color: var(--white); text-decoration: none; }
.btn--sm { padding: 8px 16px; font-size: 13px; }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all .2s ease;
}
.card:hover { border-color: var(--teal-500); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card--muted { background: var(--slate-50); }
.card--dark { background: var(--navy-900); color: var(--white); border-color: var(--navy-700); }
.card--dark h3, .card--dark h4 { color: var(--white); }
.card--dark p { color: rgba(255,255,255,.75); }
.card__title { font-size: 20px; font-weight: 600; color: var(--slate-900); margin-bottom: 12px; }
.card__body { font-size: 15px; line-height: 1.6; color: var(--slate-700); margin-bottom: 16px; }

/* SKU Badges (monospace) */
.sku-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--navy-700);
  background: var(--slate-100);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  margin: 2px 2px 2px 0;
}
.sku-badge--dark { background: rgba(22,168,154,.15); color: var(--teal-500); border-color: rgba(22,168,154,.3); }

/* Status indicator dot */
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.status-dot--success { background: var(--success); box-shadow: 0 0 0 3px rgba(16,185,129,.2); }
.status-dot--warn    { background: var(--warn); }
.status-dot--danger  { background: var(--danger); }
.status-dot--teal    { background: var(--teal-500); box-shadow: 0 0 0 3px rgba(22,168,154,.2); }

/* Form inputs */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--slate-900);
  background: var(--white);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(22,168,154,.15);
}
.form-input.is-invalid { border-color: var(--danger); }
.form-error { display: none; font-size: 13px; color: var(--danger); margin-top: 4px; }
.form-error.is-visible { display: block; }
.form-textarea { resize: vertical; min-height: 100px; }
.checkbox-group { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.checkbox-item { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.checkbox-item input { width: 16px; height: 16px; accent-color: var(--teal-500); }

/* Alert / notice box */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  border-left: 3px solid;
}
.alert--teal   { background: rgba(22,168,154,.08); border-color: var(--teal-500); color: var(--navy-700); }
.alert--danger { background: rgba(239,68,68,.08); border-color: var(--danger); color: #991b1b; }
.alert--success{ background: rgba(16,185,129,.08); border-color: var(--success); color: #065f46; }

/* Trust metric cell */
.metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 16px;
  text-align: center;
}
.metric__label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-500); }
.metric__value { font-size: 28px; font-weight: 700; color: var(--navy-900); }
.metric__desc  { font-size: 13px; color: var(--slate-500); }

/* ---- 6. Global Nav ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
.site-nav.is-scrolled { box-shadow: var(--shadow-md); }
.site-nav__inner {
  max-width: 1500px;
  /*var(--container);*/
  margin: 0 auto;
  /*padding: 14px 24px;*/
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-nav__logo img { height: 76px !important; }
.site-nav__menu {
  display: flex;
  gap: 28px;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.site-nav__menu a {
  color: var(--slate-700);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}
.site-nav__menu a:hover { color: var(--navy-700); text-decoration: none; }
.site-nav__menu a.is-active { color: var(--navy-700); }
.site-nav__menu a.is-active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--teal-500);
}
.site-nav__ctas { display: flex; gap: 8px; align-items: center; }
.site-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}
.site-nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-700);
  transition: all .2s;
}

/* Keyboard-visible focus ring on buttons (follow-up from Task 3 review) */
.btn:focus-visible { outline: 2px solid var(--teal-500); outline-offset: 2px; }

@media (max-width: 960px) {
  .site-nav__toggle { display: flex; }

  /* Dark backdrop */
  .site-nav.is-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 98;
  }

  /* Sidebar drawer — slides in from left via transform (no layout overflow) */
  .site-nav__menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 65vw;
    height: 100dvh;
    background: var(--white);
    display: flex;
    flex-direction: column;
    padding: 80px 24px 160px;
    gap: 4px;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    box-shadow: 6px 0 32px rgba(0,0,0,.18);
    overflow-y: auto;
  }

  .site-nav__ctas {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 65vw;
    background: var(--white);
    display: flex;
    flex-direction: column;
    padding: 12px 20px 28px;
    gap: 10px;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    border-top: 1px solid var(--border);
  }

  .site-nav.is-open .site-nav__menu,
  .site-nav.is-open .site-nav__ctas { transform: translateX(0); }

  .site-nav__menu a {
    padding: 12px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
  }
  .site-nav__menu a:last-child { border-bottom: none; }
  .site-nav__menu a.is-active::after { display: none; }
}

/* ---- 7. Global Footer ---- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.75);
  padding: 72px 0 28px;
  font-size: 15px;
}
.site-footer__cols {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 48px;
}
.site-footer h5 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: 16px;
}
.site-footer .legal-name { color: var(--white); font-weight: 600; font-size: 17px; margin-bottom: 6px; }
.site-footer .legal-name-ar { color: rgba(255,255,255,.55); font-size: 14px; margin-bottom: 12px; direction: rtl; text-align: left; }
.site-footer address { font-style: normal; line-height: 1.7; color: rgba(255,255,255,.65); font-size: 14px; }
.site-footer__links { display: flex; flex-direction: column; gap: 8px; }
.site-footer__links a { color: rgba(255,255,255,.75); font-size: 14px; }
.site-footer__links a:hover { color: var(--teal-500); text-decoration: none; }
.site-footer__ids { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.65); }
.site-footer__bar {
  max-width: var(--container);
  margin: 40px auto 0;
  padding: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
.site-footer__bar a { color: var(--teal-500); font-size: 15px; }
.site-footer__bar a:hover { color: var(--white); text-decoration: none; }
.site-footer__bar .footer-mst { font-weight: 600; }

@media (max-width: 768px) {
  .site-footer__cols { grid-template-columns: 1fr; gap: 32px; }
}

/* ---- 8. Home Page ---- */

/* Hero */
.home-hero {
  padding: 48px 0 96px;
  background: var(--white);
}
.home-hero__card {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.home-hero__card::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22,168,154,.15) 0%, transparent 70%);
  pointer-events: none;
}
.home-hero__eyebrow { color: var(--teal-500); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.home-hero__eyebrow .status-dot { background: var(--teal-500); }
.home-hero__h1 { color: var(--white); font-size: clamp(32px, 4.5vw, 52px); line-height: 1.1; margin-bottom: 20px; font-weight:700 !important; }
.home-hero__h1 .accent { color: var(--teal-500); }
.home-hero__sub { color: rgba(255,255,255,.75); font-size: 17px; line-height: 1.6; margin-bottom: 28px; }
.home-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.telemetry-panel {
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(22,168,154,.3);
  border-radius: var(--radius-lg);
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  position: relative;
}
.telemetry-panel__title { font-size: 11px; font-weight: 600; color: var(--teal-500); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.telemetry-panel__row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,.1); color: rgba(255,255,255,.8); }
.telemetry-panel__row:last-child { border-bottom: none; }
.telemetry-panel__row span:last-child { color: var(--teal-500); font-weight: 500; }

/* Trust bar */
.trust-bar {
  background: var(--slate-50);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px;
}
.trust-bar .metric { border-right: 1px solid var(--border); }
.trust-bar .metric:last-child { border-right: none; }
@media (max-width: 768px) {
  .trust-bar__inner { grid-template-columns: repeat(2, 1fr); }
  .trust-bar .metric:nth-child(2) { border-right: none; }
}

/* Legacy vs Managed */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare__col { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.compare__col--legacy { border-left: 4px solid var(--danger); }
.compare__col--managed { border-left: 4px solid var(--teal-500); }
.compare__col h3 { margin-bottom: 20px; font-size: 20px !important; font-weight: 600 !important; }
.compare__col ul { display: flex; flex-direction: column; gap: 14px; }
.compare__col li { font-size: 15px; line-height: 1.5; padding-left: 28px; position: relative; color: var(--slate-700); }
.compare__col li::before {
  position: absolute; left: 0; top: 2px;
  font-weight: 700; font-size: 16px;
}
.compare__col--legacy li::before { content: "✕"; color: var(--danger); }
.compare__col--managed li::before { content: "✓"; color: var(--teal-500); }
.compare__col--managed li strong { color: var(--slate-900); }
@media (max-width: 768px) { .compare { grid-template-columns: 1fr; } }

/* Pillar grid */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.pillar { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: all .2s; }
.pillar:hover { border-color: var(--teal-500); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.pillar__num { font-family: var(--font-mono); font-size: 12px; color: var(--teal-500); font-weight: 500; margin-bottom: 8px; }
.pillar__title { font-size: 20px; font-weight: 600; color: var(--slate-900); margin-bottom: 12px; }
.pillar__desc { font-size: 15px; color: var(--slate-700); line-height: 1.6; margin-bottom: 16px; }
.pillar__skus { display: flex; flex-wrap: wrap; gap: 4px; }
@media (max-width: 768px) { .pillars { grid-template-columns: 1fr; } }

/* Home hero responsive */
@media (max-width: 960px) {
  .home-hero__card { grid-template-columns: 1fr; padding: 32px; }
}

/* ---- 9. Solutions Page ---- */
.sol-hero { padding: 48px 0 24px; }
.sol-hero__header { margin-bottom: 32px; }

/* Full-width section intro — matches home hero style */
.section-intro {
  width: 100%;
  margin-bottom: 40px;
}
.section-intro .eyebrow { margin-bottom: 12px; }
.section-intro h2 { margin: 0 0 16px; }
.section-intro p { margin: 0; color: var(--slate-700); line-height: 1.7; font-size: 16px; }

/* Dashboard Preview Windows */
.dash-preview { margin: 32px 0 48px; }
.dash-preview__intro { text-align:center; max-width:580px; margin:0 auto 32px; }
.dash-preview__grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.dash-win {
  background: var(--navy-900);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(11,25,44,.2);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.06);
}
.dash-win__bar {
  background: #07111f;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.dash-win__dot { width:9px; height:9px; border-radius:50%; }
.dash-win__dot--r { background:#FF5F57; }
.dash-win__dot--y { background:#FEBC2E; }
.dash-win__dot--g { background:#28C840; }
.dash-win__label { font:500 10px var(--font-mono); color:rgba(255,255,255,.28); margin-left:4px; }
.dash-win__body { padding:14px; flex:1; }
.dash-metrics2 { display:grid; grid-template-columns:repeat(2,1fr); gap:6px; margin-bottom:12px; }
.dash-m { background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.06); border-radius:6px; padding:8px 10px; text-align:center; }
.dash-m__v { display:block; font:700 15px var(--font-sans); color:var(--teal-500); }
.dash-m__v--warn { color:#F59E0B; }
.dash-m__v--ok   { color:#10B981; }
.dash-m__k { display:block; font:500 9px var(--font-sans); color:rgba(255,255,255,.32); margin-top:2px; }
.dash-tbl { width:100%; border-collapse:collapse; font-size:10px; }
.dash-tbl th { font:600 8px var(--font-sans); letter-spacing:.07em; text-transform:uppercase; color:rgba(255,255,255,.28); padding:5px 6px; border-bottom:1px solid rgba(255,255,255,.07); text-align:left; }
.dash-tbl td { padding:5px 6px; color:rgba(255,255,255,.68); border-bottom:1px solid rgba(255,255,255,.04); }
.dash-tbl td.mono { font-family:var(--font-mono); font-size:9px; color:rgba(255,255,255,.45); }
.d-badge { display:inline-block; padding:2px 6px; border-radius:20px; font:600 8px var(--font-sans); }
.d-badge--ok   { background:rgba(16,185,129,.18); color:#10B981; }
.d-badge--warn { background:rgba(245,158,11,.18);  color:#F59E0B; }
.d-badge--err  { background:rgba(239,68,68,.18);   color:#EF4444; }
.d-badge--teal { background:rgba(22,168,154,.18);  color:var(--teal-500); }
.dash-ring-row { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.dash-ring {
  width:54px; height:54px; border-radius:50%; flex-shrink:0; position:relative;
  background: conic-gradient(var(--teal-500) 359.6deg, rgba(255,255,255,.07) 0deg);
  display:flex; align-items:center; justify-content:center;
}
.dash-ring::after { content:''; width:40px; height:40px; border-radius:50%; background:var(--navy-900); position:absolute; }
.dash-ring span { font:700 10px var(--font-sans); color:var(--teal-500); position:relative; z-index:1; }
.dash-sla { display:flex; flex-direction:column; gap:7px; }
.dash-sla__head { display:flex; justify-content:space-between; margin-bottom:3px; }
.dash-sla__key { font:400 9px var(--font-sans); color:rgba(255,255,255,.38); }
.dash-sla__val { font:600 9px var(--font-sans); color:var(--teal-500); }
.dash-sla__bar { height:3px; background:rgba(255,255,255,.08); border-radius:3px; }
.dash-sla__fill { height:100%; background:var(--teal-500); border-radius:3px; }
.dash-bars { display:flex; align-items:flex-end; gap:3px; height:44px; margin-top:12px; }
.dash-bar { flex:1; background:rgba(22,168,154,.22); border-radius:2px 2px 0 0; }
.dash-bar--hi { background:rgba(22,168,154,.62); }
@media (max-width:900px) { .dash-preview__grid { grid-template-columns:1fr; } }

.sku-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--slate-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}
.sku-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.sku-tab {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-700);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all .15s;
}
.sku-tab:hover { border-color: var(--teal-500); color: var(--navy-700); }
.sku-tab.is-active { background: var(--navy-700); color: var(--white); border-color: var(--navy-700); }
.sku-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  min-width: 280px;
}
.sku-search input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 14px;
  background: transparent;
}
.sku-search__icon { color: var(--slate-500); }

.sku-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .sku-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .sku-grid { grid-template-columns: 1fr; } }

.sku-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all .2s;
}
.sku-card:hover { border-color: var(--teal-500); box-shadow: var(--shadow-md); }
.sku-card.is-hidden { display: none; }
.sku-card__code { display: inline-block; font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--navy-700); background: var(--slate-100); padding: 4px 8px; border-radius: var(--radius-sm); align-self: flex-start; }
.sku-card__title { font-size: 17px; font-weight: 600; color: var(--slate-900); }
.sku-card__scope { font-size: 14px; color: var(--slate-700); line-height: 1.55; flex: 1; }
.sku-card__divider { height: 1px; background: var(--border); margin: 4px 0; }
.sku-card__model { font-size: 13px; color: var(--slate-500); }
.sku-card__model strong { color: var(--navy-700); font-weight: 600; }

.sku-empty { grid-column: 1 / -1; padding: 48px; text-align: center; color: var(--slate-500); font-size: 15px; }

/* ---- 10. Architecture Page ---- */
.arc-hero { padding: 48px 0 24px; }

/* Cloud Architecture Diagram */
.arch-diagram-section {
  position: relative;
  overflow: hidden;
  padding: 56px 0 80px;
  background-color: #f8fafc;
  background-image:
    linear-gradient(rgba(11,25,44,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,25,44,.05) 1px, transparent 1px),
    radial-gradient(900px 480px at 50% 0%, rgba(22,168,154,.12), transparent 65%),
    radial-gradient(700px 420px at 100% 100%, rgba(11,25,44,.07), transparent 60%);
  background-size: 32px 32px, 32px 32px, 100% 100%, 100% 100%;
  background-position: center, center, center, center;
}
.arch-diagram-section > .container { position: relative; z-index: 1; }
.arch-v2 {
  max-width: 660px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.arch-v2__cloud {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff;
  border-radius: 50px;
  padding: 14px 32px;
  font: 700 15px var(--font-sans);
  border: 1.5px solid rgba(22,168,154,.4);
  box-shadow: 0 4px 24px rgba(11,25,44,.18);
}
.arch-v2__vline {
  width: 2px;
  height: 28px;
  background: linear-gradient(to bottom, rgba(22,168,154,.5), rgba(22,168,154,.1));
}
.arch-v2__row { width: 100%; }
.arch-v2__box {
  border: 1.5px solid var(--teal-500);
  border-radius: 18px;
  padding: 24px;
  position: relative;
  background: rgba(248,250,252,.7);
}
.arch-v2__box-label {
  position: absolute;
  top: -11px;
  left: 22px;
  background: var(--teal-500);
  border: 1.5px solid rgba(11,25,44,.12);
  border-radius: 20px;
  padding: 2px 12px;
  font: 700 9px var(--font-sans);
  letter-spacing: .15em;
  color: #ffffff;
}
.arch-v2__front-node {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff;
  border-radius: 10px;
  padding: 14px 20px;
  border: 1px solid rgba(22,168,154,.25);
}
.arch-v2__bi-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 0;
}
.arch-v2__bi-row {
  display: flex;
  gap: 10px;
  padding: 5px 0;
}
.arch-v2__bi-arr {
  font-size: 18px;
  line-height: 1;
  color: var(--teal-500);
  opacity: .8;
}
.arch-v2__bi-arr--up { opacity: .4; }
.arch-v2__internet-node {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff;
  border-radius: 50px;
  padding: 12px 28px;
  font: 600 14px var(--font-sans);
  border: 1px solid rgba(22,168,154,.3);
}
.arch-v2__back-grid {
  display: grid;
  grid-template-columns: 92px 1fr 92px;
  gap: 14px;
  align-items: stretch;
}
.arch-v2__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  border-radius: 12px;
  padding: 20px 8px;
  color: rgba(255,255,255,.9);
  font: 700 12px var(--font-sans);
  letter-spacing: .06em;
  border: 1px solid rgba(22,168,154,.2);
}
.arch-v2__stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.arch-v2__stack-node {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 11px 14px;
  color: rgba(255,255,255,.85);
  font-size: 12.5px;
  font-weight: 500;
}
.arch-v2__icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--teal-500);
}
.arch-v2__icon--sm { width: 18px; height: 18px; }
.arch-v2__icon--xs { width: 15px; height: 15px; }
@media (max-width: 600px) {
  .arch-v2__back-grid { grid-template-columns: 1fr; }
  .arch-v2__panel { flex-direction: row; padding: 14px 20px; }
  .arch-v2__cloud { padding: 12px 20px; font-size: 13px; }
}

.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .tier-grid { grid-template-columns: 1fr; } }

.tier-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: all .2s;
}
.tier-card.is-highlighted { border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(22,168,154,.1), var(--shadow-md); }
.tier-card--popular { border-color: var(--teal-500); border-width: 2px; }
.tier-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal-500);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}
.tier-card__eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-500); }
.tier-card__title { font-size: 22px; font-weight: 700; color: var(--slate-900); }
.tier-card__load { font-size: 14px; color: var(--navy-700); font-weight: 600; }
.tier-card__ideal { font-size: 14px; color: var(--slate-700); line-height: 1.5; }
.tier-card__modules { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); }
.tier-card__modules-label { font-size: 12px; font-weight: 600; color: var(--slate-500); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 4px; }
.tier-card__modules .sku-badge { font-size: 12px; }
.tier-card .btn { margin-top: auto; }

/* Capacity slider section */
.slider-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  padding: 72px 0;
  color: var(--white);
}
.slider-section h2 { color: var(--white); }
.slider-section p { color: rgba(255,255,255,.75); }
.slider-section > .container { position: relative; z-index: 1; }

/* Cursor-following animated network pattern — masked so it's strongest
   around the pointer and fades to nothing at the section's edges */
.network-fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .95;
  -webkit-mask-image: radial-gradient(640px circle at var(--nx, 50%) var(--ny, 32%), rgba(0,0,0,1) 0%, rgba(0,0,0,.7) 45%, rgba(0,0,0,.15) 75%, transparent 92%);
  mask-image: radial-gradient(640px circle at var(--nx, 50%) var(--ny, 32%), rgba(0,0,0,1) 0%, rgba(0,0,0,.7) 45%, rgba(0,0,0,.15) 75%, transparent 92%);
}
.network-fx canvas { display: block; width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) {
  .network-fx { display: none; }
}

.capacity-slider {
  background: rgb(5 22 45 / 91%);
  border: 1px solid rgba(22,168,154,.3);
  border-radius: var(--radius-lg);
  padding: 40px 32px 32px;
  margin-top: 32px;
}
.capacity-slider__labels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.capacity-slider__label:hover{
  cursor:pointer;
}
.capacity-slider__label {
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.05);
  border: 1px solid transparent;
  transition: all .2s;
}
.capacity-slider__label.is-active { background: rgba(22,168,154,.15); border-color: var(--teal-500); }
.capacity-slider__label-title { font-family: var(--font-mono); font-size: 14px; color: var(--teal-500); font-weight: 600; margin-bottom: 8px; }
.capacity-slider__label-desc { font-size: 13px; color: rgba(255,255,255,.8); line-height: 1.55; }
.capacity-slider input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: linear-gradient(to right, var(--teal-500) 0%, var(--teal-500) var(--fill, 0%), rgba(255,255,255,.1) var(--fill, 0%), rgba(255,255,255,.1) 100%);
  border-radius: 3px;
  outline: none;
}
.capacity-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal-500);
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(22,168,154,.25);
}
.capacity-slider input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal-500);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 0 4px rgba(22,168,154,.25);
}
.capacity-slider input[type="range"]::-moz-range-track { background: transparent; }
.capacity-slider__footnote { font-size: 13px; color: rgba(255,255,255,.65); margin-top: 16px; text-align: center; }
@media (max-width: 640px) {
  .capacity-slider { padding: 28px 20px 24px; }
  .capacity-slider__labels { grid-template-columns: 1fr; gap: 10px; margin-bottom: 0; }
  .capacity-slider__label { text-align: left; padding: 14px 16px; }
  .capacity-slider input[type="range"] { display: none; }
  .capacity-slider__footnote { margin-top: 20px; }
}

/* ---- 11. How It Works Page ---- */
.lifecycle { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 48px; position: relative; }
.lifecycle::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 12%;
  right: 12%;
  height: 2px;
  border-top: 2px dashed var(--border);
  z-index: 0;
}
.lifecycle__stage {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  text-align: center;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lifecycle__stage--active { background: var(--teal-500); border-color: var(--teal-500); color: var(--white); }
.lifecycle__stage-num { font-family: var(--font-mono); font-size: 12px; font-weight: 600; opacity: .8; }
.lifecycle__stage-title { font-size: 14px; font-weight: 600; }
@media (max-width: 768px) {
  .lifecycle { grid-template-columns: 1fr; }
  .lifecycle::before { display: none; }
}

.lifecycle-detail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.lifecycle-detail__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.lifecycle-detail__card h4 { font-size: 16px; font-weight: 600; margin-bottom: 10px; color: var(--navy-700); }
.lifecycle-detail__card p { font-size: 14px; line-height: 1.55; color: var(--slate-700); }
.lifecycle-detail__card .sku-badge { font-size: 11px; }
@media (max-width: 960px) { .lifecycle-detail { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .lifecycle-detail { grid-template-columns: 1fr; } }

.governance-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 48px; }
.governance-panel {
  background: var(--slate-50);
  border-left: 3px solid var(--teal-500);
  border-radius: var(--radius-md);
  padding: 24px;
}
.governance-panel h4 { font-size: 16px; color: var(--navy-700); margin-bottom: 10px; }
.governance-panel p { font-size: 14px; color: var(--slate-700); line-height: 1.6; }
.governance-panel .mono { color: var(--teal-500); font-weight: 500; }
@media (max-width: 768px) { .governance-panels { grid-template-columns: 1fr; } }

/* ---- 12. Compliance Page ---- */
.compliance-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.kpi {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy-700);
  border-radius: var(--radius-md);
  padding: 20px;
}
.kpi__label { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-500); margin-bottom: 6px; }
.kpi__value { font-family: var(--font-mono); font-size: 22px; font-weight: 500; color: var(--navy-700); word-break: break-all; }
.kpi__sub { font-size: 12px; color: var(--slate-500); margin-top: 4px; }
.kpi--teal { border-left-color: var(--teal-500); }
.kpi--teal .kpi__value { color: var(--teal-500); }
@media (max-width: 768px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }

.registry-table {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.registry-table th, .registry-table td { padding: 16px 20px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.registry-table tr:last-child th, .registry-table tr:last-child td { border-bottom: none; }
.registry-table th { background: var(--slate-50); font-weight: 600; color: var(--navy-700); width: 32%; }
.registry-table td { color: var(--slate-700); }
.registry-table .mono { color: var(--navy-700); font-weight: 500; }
.registry-table tr:nth-child(even) td { background: var(--slate-50); }

/* Form validation invalid state coverage (follow-up from Task 3 review) */
.form-select.is-invalid, .form-textarea.is-invalid { border-color: var(--danger); }

/* ---- 13. Contact Page ---- */
.routing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px; }
@media (max-width: 960px) { .routing-grid { grid-template-columns: 1fr; } }

.routing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--teal-500);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.routing-card h4 { font-size: 16px; color: var(--navy-700); margin-bottom: 10px; }
.routing-card p { font-size: 14px; color: var(--slate-700); line-height: 1.5; margin-bottom: 12px; }
.routing-card__contact { font-size: 14px; color: var(--navy-700); font-weight: 500; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.routing-card__contact a { color: var(--teal-500); font-weight: 600; }
.routing-card__contact .mono { color: var(--navy-700); }

.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

.office-card {
  background: var(--slate-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.office-map-placeholder {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  border-radius: var(--radius-md);
  padding: 32px 16px;
  text-align: center;
  color: var(--navy-700);
  font-size: 14px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.office-map-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(100,116,139,.2) 1px, transparent 1px),
    linear-gradient(0deg, rgba(100,116,139,.2) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: .5;
}
.office-map-placeholder strong { position: relative; display: block; font-size: 16px; color: var(--navy-700); margin-bottom: 4px; }
.office-map-placeholder span { position: relative; }

/* ---- 14. Portal Login Page ---- */
.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 960px) { .portal-grid { grid-template-columns: 1fr; } }

.portal-telemetry {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.portal-telemetry::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22,168,154,.2) 0%, transparent 70%);
  pointer-events: none;
}
.portal-telemetry h3 { color: var(--white); position: relative; font-size: 20px; }
.portal-telemetry .eyebrow { color: var(--teal-500); position: relative; }
.portal-telemetry__list { display: flex; flex-direction: column; gap: 12px; position: relative; }
.portal-telemetry__item {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 14px;
}
.portal-telemetry__item strong { display: block; color: var(--white); font-weight: 600; }
.portal-telemetry__item span { color: rgba(255,255,255,.65); font-size: 13px; }
.portal-telemetry__notice {
  background: rgba(22,168,154,.08);
  border: 1px solid rgba(22,168,154,.3);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 13px;
  color: rgba(255,255,255,.8);
  position: relative;
}

.portal-login-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.portal-login-panel h3 { font-size: 20px; margin-bottom: 8px; }
.portal-login-panel p { font-size: 14px; color: var(--slate-500); margin-bottom: 24px; }

/* ---- 15. Legal Hub Page ---- */
.legal-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.legal-tab {
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--slate-500);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all .15s;
}
.legal-tab:hover { color: var(--navy-700); }
.legal-tab.is-active { color: var(--navy-700); border-bottom-color: var(--teal-500); }

.legal-panel { display: none; }
.legal-panel.is-active { display: block; }
.legal-panel h2 { font-size: 24px; margin-bottom: 8px; color: var(--navy-700); }
.legal-panel__meta { font-size: 13px; color: var(--slate-500); margin-bottom: 24px; font-family: var(--font-mono); }
.legal-panel h3 { font-size: 18px; margin: 28px 0 10px; color: var(--navy-700); }
.legal-panel p { margin-bottom: 14px; line-height: 1.7; font-size: 15px; }
.legal-panel ul { list-style: disc; padding-left: 24px; margin-bottom: 14px; }
.legal-panel ul li { margin-bottom: 6px; line-height: 1.6; font-size: 15px; }
.legal-panel .mono { color: var(--navy-700); font-weight: 500; }
