/* ===========================
   PS23 Solutions — Shared Styles
   =========================== */

:root {
  /* Brand core */
  --primary: #003366;        /* Deep Blue — main brand */
  --primary-dark: #002244;   /* Navy — hover/active */
  --secondary: #FF6600;      /* Vibrant Orange — CTAs, highlights */
  --accent: #1E90FF;         /* Light Blue — links, icons, interactive */
  --warm-yellow: #F2C94C;    /* Gold — SA identity accent */
  --sa-green: #007A4D;       /* SA flag green — used sparingly */

  /* Text */
  --text: #0A0A0A;           /* Charcoal Black — headings */
  --text-body: #3D4F61;      /* Slate — body copy */
  --muted: #607080;          /* Cool Gray — labels, captions */
  --white: #ffffff;

  /* Backgrounds & surfaces */
  --bg: #ffffff;
  --surface: #F5F7FA;        /* Ice — section backgrounds */
  --surface-2: #EEF1F5;      /* Slightly deeper surface */
  --border: #D8E0EC;         /* Mist — card borders */

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #003366 0%, #1E90FF 55%, #FF6600 100%);
  --gradient-cta: linear-gradient(135deg, #003366, #FF6600);
  --gradient-btn: linear-gradient(135deg, #003366, #1E90FF);
  --gradient-text: linear-gradient(135deg, #1E90FF, #FF6600);

  /* Shadows (updated to use brand blue) */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow: 0 4px 16px rgba(0,51,102,.15);
  --shadow-lg: 0 20px 60px rgba(0,51,102,.2);
  --transition: 0.22s ease;
  --max-width: 1160px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
section[id] { scroll-margin-top: 215px; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===========================
   Layout
   =========================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 80px 0; }

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { color: var(--text-body); line-height: 1.75; }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary);
  background: rgba(0,51,102,.1);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 12px;
}
.section-title {
  margin-bottom: 12px;
  color: var(--text);
}
.section-sub {
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto 48px;
  color: var(--muted);
}
.text-center { text-align: center; }

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-accent {
  background: var(--accent);
  color: var(--white);
}
.btn-accent:hover {
  background: #cc5200;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255,102,0,.3);
}
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ===========================
   Logo
   =========================== */
.nav-logo-img {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo {
  height: 192px;
  width: auto;
  display: block;
}
.footer-logo {
  height: 80px;
  width: auto;
  display: block;
}
.footer .nav-logo-img {
  display: inline-flex;
  background: rgba(15, 38, 82, 0.85);
  border-radius: var(--radius);
  padding: 12px 20px;
  border: 1px solid rgba(30, 144, 255, 0.18);
  margin-bottom: 16px;
}

/* ===========================
   Navigation
   =========================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: none;
}
.navbar::after {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #003366 0%, #1E90FF 40%, #FF6600 72%, #F2C94C 100%);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 210px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
}
.nav-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 1rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--primary); }
.nav-links .nav-cta {
  background: var(--primary);
  color: white;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all var(--transition);
}
.nav-links .nav-cta:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 8px 0 16px;
}
.nav-mobile a {
  padding: 12px 24px;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
}
.nav-mobile a:hover { color: var(--primary); }
.nav-mobile.open { display: flex; }

/* ===========================
   Hero
   =========================== */
.hero {
  padding: 100px 0 80px;
  background: linear-gradient(135deg, #002244 0%, #003d80 45%, #b84d00 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,102,0,.18), transparent 65%);
  top: -250px;
  right: -150px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(30,144,255,.15), transparent 65%);
  bottom: -200px; left: -100px;
  pointer-events: none;
}
.hero-content {
  max-width: 680px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 24px;
}
.hero h1 {
  margin-bottom: 20px;
  color: white;
}
.hero h1 span {
  background: linear-gradient(135deg, #FF8C42, #F2C94C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.15rem;
  margin-bottom: 36px;
  max-width: 520px;
  color: rgba(255,255,255,.82);
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}
.hero-stat span {
  font-size: 0.85rem;
  color: rgba(255,255,255,.65);
  margin-top: 4px;
  display: block;
}

/* ===========================
   Cards / Grids
   =========================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.card h3 {
  margin-bottom: 10px;
  color: var(--text);
}
.card p { font-size: 0.9rem; }
.card ul {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card ul li {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card ul li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* Division colors — brand palette */
.div-1 { border-top: 4px solid var(--primary); }
.div-2 { border-top: 4px solid var(--secondary); }
.div-3 { border-top: 4px solid var(--accent); }
.div-4 { border-top: 4px solid var(--warm-yellow); }
.div-1 .card-icon { background: rgba(0,51,102,.12); color: var(--primary); }
.div-2 .card-icon { background: rgba(255,102,0,.12); color: var(--secondary); }
.div-3 .card-icon { background: rgba(30,144,255,.12); color: var(--accent); }
.div-4 .card-icon { background: rgba(242,201,76,.2); color: #b08a00; }
.div-1:hover { border-color: var(--primary); }
.div-2:hover { border-color: var(--secondary); }
.div-3:hover { border-color: var(--accent); }
.div-4:hover { border-color: var(--warm-yellow); }

/* ===========================
   Products Section
   =========================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  align-items: stretch;
}
.product-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  background: var(--white);
  /* equal height cards with buttons pinned to bottom */
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.product-card-header {
  padding: 36px 32px 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.product-logo {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.product-logo.ps23pa  {
  background: linear-gradient(135deg, #0a3a70 0%, #001228 100%);
}
.product-logo.dansify { background: linear-gradient(135deg, #FF2DAE, #9B30FF, #1E90FF); }
.product-logo.nexus   { background: linear-gradient(135deg, var(--accent), var(--primary)); }
.product-logo.coming  { background: var(--surface-2); }
/* Body grows to fill card; button row stays at the bottom */
.product-card-body {
  padding: 0 32px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card-body p { font-size: 0.9rem; margin-bottom: 20px; }
.product-card-body > div:last-child { margin-top: auto; }
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 8px;
}
.badge-live { background: rgba(16,185,129,.15); color: #059669; }
.badge-soon { background: rgba(245,158,11,.15); color: #d97706; }

/* ===========================
   About / Mission
   =========================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-content h2 { margin-bottom: 16px; }
.about-content p { margin-bottom: 16px; }
.about-values {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.value-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(0,51,102,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.value-item h4 { font-size: 0.95rem; color: var(--text); margin-bottom: 2px; }
.value-item p { font-size: 0.85rem; }
.about-visual {
  background: linear-gradient(135deg, #e8eef6, #fef3ea);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  border: 1px solid var(--border);
}
.about-visual .big-stat {
  font-size: 3.5rem;
  font-weight: 900;
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.about-visual .stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
.about-visual .stat-box {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 20px;
  border: 1px solid var(--border);
}
.about-visual .stat-box strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
}
.about-visual .stat-box span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ===========================
   CTA Banner
   =========================== */
.cta-section {
  background: var(--gradient-cta);
  color: white;
  text-align: center;
  padding: 80px 0;
}
.cta-section h2 { color: white; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,.85); max-width: 500px; margin: 0 auto 36px; }
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-white {
  background: white;
  color: var(--primary);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--surface);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(255,255,255,.15);
  color: white;
  border: 2px solid rgba(255,255,255,.4);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.25);
  transform: translateY(-2px);
}

/* ===========================
   Footer
   =========================== */
.footer {
  background: #0A0A0A;
  color: rgba(255,255,255,.7);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .nav-logo { color: white; margin-bottom: 16px; }
.footer-brand p { font-size: 0.875rem; line-height: 1.75; max-width: 280px; }
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: white;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer-bottom a:hover { color: white; }

/* ===========================
   Dansify-specific
   =========================== */
.dansify-hero {
  padding: 100px 0 80px;
  background: linear-gradient(160deg, #fdf4ff 0%, #f5f3ff 50%, #fdf2f8 100%);
  position: relative;
  overflow: hidden;
}
.dansify-hero::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155,48,255,.1), transparent 70%);
  top: -300px;
  right: -200px;
  pointer-events: none;
}
.dansify-hero .hero-eyebrow { color: #9B30FF; background: rgba(155,48,255,.1); }
.dansify-hero h1 span {
  background: linear-gradient(135deg, #FF2DAE, #9B30FF, #1E90FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dansify-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.dansify-feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all var(--transition);
}
.dansify-feature-card:hover {
  border-color: #9B30FF;
  box-shadow: 0 4px 20px rgba(155,48,255,.15);
  transform: translateY(-4px);
}
.dansify-feature-card .feat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(155,48,255,.15), rgba(255,45,174,.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.dansify-feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.dansify-feature-card p { font-size: 0.875rem; }
.dansify-cta {
  background: linear-gradient(135deg, #FF2DAE, #9B30FF, #1E90FF);
}
.dansify-cta h2, .dansify-cta p { color: white; }
.dansify-cta p { color: rgba(255,255,255,.85); }
.app-mockup {
  background: linear-gradient(135deg, #f5f3ff, #fdf2f8);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 48px;
  text-align: center;
  position: relative;
}
.app-mockup .phone-frame {
  width: 200px;
  height: 360px;
  background: var(--text);
  border-radius: 28px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
  position: relative;
  overflow: hidden;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #1e1b4b, #2e1065);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
}
.phone-screen .app-icon-big {
  font-size: 3rem;
}
.phone-screen .app-name-screen {
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  letter-spacing: .02em;
}
.phone-screen .app-sub-screen {
  font-size: 0.7rem;
  color: rgba(255,255,255,.6);
  text-align: center;
}
.phone-screen .play-btn {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #FF2DAE, #9B30FF, #1E90FF);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-top: 8px;
}

/* ===========================
   Dropdown Navigation
   =========================== */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: default;
}
.nav-dropdown-trigger::after {
  content: '▾';
  font-size: 0.65em;
  opacity: .7;
  transition: transform var(--transition);
}
.nav-dropdown:hover .nav-dropdown-trigger::after { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;           /* flush to trigger — no physical gap to break hover */
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,51,102,.14);
  min-width: 240px;
  padding: 16px 0 8px; /* extra top padding creates the visual 8px gap safely */
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
  transition-delay: 200ms; /* hide delay — mouse has time to travel into the menu */
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%; /* adjusted for the extra padding-top */
  width: 11px; height: 11px;
  background: white;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  transform: translateX(-50%) rotate(45deg);
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0ms; /* show immediately on hover */
}
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 0.875rem !important;
  font-weight: 500;
  color: var(--text-body) !important;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: var(--surface);
  color: var(--primary) !important;
  padding-left: 22px;
}
.nav-dropdown-menu .menu-div {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

/* ===========================
   Nav Left Group
   =========================== */
.nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sidebar-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  flex-shrink: 0;
}
.sidebar-toggle:hover { background: rgba(255,255,255,.15); }
.sidebar-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: width var(--transition);
}
.sidebar-toggle span:nth-child(1) { width: 22px; }
.sidebar-toggle span:nth-child(2) { width: 16px; }
.sidebar-toggle span:nth-child(3) { width: 22px; }
.sidebar-toggle:hover span:nth-child(2) { width: 22px; }

/* Coming-soon menu item */
.menu-coming-soon {
  opacity: .5;
  font-style: italic;
  pointer-events: none;
  cursor: default;
}

/* ===========================
   Sidebar Panel
   =========================== */
.sidebar-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 998;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.sidebar-backdrop.open { opacity: 1; visibility: visible; }

.sidebar-panel {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 300px;
  background: white;
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: 4px 0 40px rgba(0,51,102,.18);
  display: flex;
  flex-direction: column;
}
.sidebar-panel.open { transform: translateX(0); }

.sidebar-head {
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; top: 0;
  background: white;
  z-index: 1;
}
.sidebar-head::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #003366, #1E90FF 40%, #FF6600 72%, #F2C94C);
}
.sidebar-logo { height: 64px; width: auto; }
.sidebar-close {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 1rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.sidebar-close:hover { background: var(--border); color: var(--text); }

.sidebar-nav { padding: 8px 0 32px; flex: 1; }

.sidebar-group { margin-bottom: 2px; }
.sidebar-group-label {
  display: block;
  padding: 14px 20px 5px;
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all var(--transition);
}
.sidebar-link:hover {
  background: var(--surface);
  color: var(--primary);
  border-left-color: var(--primary);
  padding-left: 26px;
}
.sidebar-link.active {
  background: rgba(0,51,102,.07);
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}
.sidebar-link.muted { color: var(--muted); font-style: italic; pointer-events: none; opacity: .6; }
.sidebar-divider { height: 1px; background: var(--border); margin: 10px 20px; }

.sidebar-cta {
  margin: 16px 16px 0;
  padding: 14px 18px;
  background: linear-gradient(135deg, #003366, #1E90FF);
  border-radius: var(--radius-sm);
  color: white;
  font-size: .875rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: opacity var(--transition);
}
.sidebar-cta:hover { opacity: .9; }

/* Mobile nav section label */
.nav-mobile-section {
  display: block;
  padding: 12px 24px 2px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.nav-mobile-section:first-child { border-top: none; margin-top: 0; }
.nav-mobile .sub-link { padding-left: 36px; font-size: 0.875rem; }

/* ===========================
   Responsive
   =========================== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 768px) {
  section { padding: 60px 0; }
  .hero { padding: 72px 0 56px; }
  .hero-stats { gap: 28px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-logo { height: 56px !important; width: auto !important; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .about-visual .stat-row { grid-template-columns: 1fr; }
  .site-logo { height: 44px !important; width: auto !important; }
}
