/* MBS Infotech Theme Stylesheet
   Theme: Modern Dark Executive Tech / AI & PMO Consultancy
   Typography: DM Serif Display (Headings & Accents) + Inter (Body & UI)
   Look & Feel: Deep Slate/Black Canvas, Radial Ambient Glows, Glassmorphism, 
               High-Res WebP Imagery, Glowing Badges, Responsive Mobile-Ready */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --bg-body: #050508;
  --bg-surface: #0a0b12;
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.065);
  --bg-glass: rgba(10, 11, 18, 0.75);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(96, 165, 250, 0.35);

  /* Primary Accent: Vibrant Tech Blue */
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-glow: rgba(37, 99, 235, 0.3);
  --blue-bg: rgba(59, 130, 246, 0.1);
  --blue-border: rgba(59, 130, 246, 0.25);

  /* Category Accents */
  --emerald-400: #34d399;
  --emerald-bg: rgba(16, 185, 129, 0.1);
  --emerald-border: rgba(16, 185, 129, 0.25);

  --rose-400: #fb7185;
  --rose-bg: rgba(244, 63, 94, 0.1);
  --rose-border: rgba(244, 63, 94, 0.25);

  --amber-400: #fbbf24;
  --amber-bg: rgba(245, 158, 11, 0.12);
  --amber-border: rgba(245, 158, 11, 0.3);

  --purple-400: #c084fc;
  --purple-bg: rgba(168, 85, 247, 0.1);
  --purple-border: rgba(168, 85, 247, 0.25);

  /* Typography */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --text-white: #ffffff;

  --font-display: "DM Serif Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1200px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 9999px;

  color-scheme: dark;
}

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

[hidden] {
  display: none !important;
}

[id] {
  scroll-margin-top: 100px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-body);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Base Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-white);
  margin: 0;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(38px, 5.2vw, 68px); }
h2 { font-size: clamp(28px, 3.8vw, 46px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
h4 { font-size: 19px; font-weight: 600; font-family: var(--font-sans); }

h1 em, h2 em, .font-italic {
  font-style: italic;
  font-family: var(--font-display);
  color: var(--blue-400);
}

p {
  margin: 0;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-400);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #93c5fd;
}

:focus-visible {
  outline: 2px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--blue-600);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  z-index: 200;
  font-weight: 600;
}
.skip:focus {
  left: 20px;
}

/* Layout Wrappers */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.band {
  padding-block: 96px;
  position: relative;
}

.band.tight {
  padding-block: 60px;
}

.band-glow {
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.15), transparent 70%);
}

.band-glow-alt {
  background: radial-gradient(ellipse 60% 40% at 85% 20%, rgba(37, 99, 235, 0.12), transparent 60%),
              radial-gradient(ellipse 60% 40% at 15% 80%, rgba(16, 185, 129, 0.08), transparent 60%);
}

.band-border {
  border-top: 1px solid var(--border-subtle);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: 14px;
}

.eyebrow.amber { color: var(--amber-400); }
.eyebrow.emerald { color: var(--emerald-400); }
.eyebrow.rose { color: var(--rose-400); }

.lead {
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 65ch;
  margin-top: 16px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 52px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.prose {
  max-width: 70ch;
  color: var(--text-muted);
}
.prose p + p {
  margin-top: 16px;
}
.prose strong {
  color: var(--text-white);
}

/* Badges / Tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--blue-bg);
  color: var(--blue-400);
  border: 1px solid var(--blue-border);
  margin-bottom: 16px;
}

.tag.emerald { background: var(--emerald-bg); color: var(--emerald-400); border-color: var(--emerald-border); }
.tag.rose    { background: var(--rose-bg);    color: var(--rose-400);    border-color: var(--rose-border); }
.tag.amber   { background: var(--amber-bg);   color: var(--amber-400);   border-color: var(--amber-border); }
.tag.purple  { background: var(--purple-bg);  color: var(--purple-400);  border-color: var(--purple-border); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn.primary {
  background: var(--blue-600);
  color: #ffffff;
  box-shadow: 0 8px 24px -4px var(--blue-glow);
}
.btn.primary:hover {
  background: #1d4ed8;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(37, 99, 235, 0.45);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}
.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn.dark {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: var(--border-card);
}
.btn.dark:hover {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #ffffff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--blue-400);
  margin-top: 18px;
  transition: gap 0.2s ease, color 0.2s ease;
}
.more:hover {
  gap: 10px;
  color: #93c5fd;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 8, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 21px;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.logo b {
  font-weight: 700;
  color: #ffffff;
}
.logo span {
  font-weight: 400;
  color: var(--text-muted);
}
.logo .dot {
  color: var(--blue-500);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav a {
  white-space: nowrap;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}
.nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}
.nav a[aria-current="page"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
}
.nav .nav-cta {
  margin-left: 8px;
  padding: 9px 20px;
  min-height: 40px;
  font-size: 14px;
}

.menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  min-height: 42px;
  min-width: 42px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  padding: 0 16px;
}

/* Breakpoint raised from 980px when the sixth nav item (Utilities) was added:
   between ~1000 and 1240px the desktop nav otherwise wraps onto two lines. */
@media (max-width: 1240px) {
  .menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #090a12;
    border-bottom: 1px solid var(--border-card);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 24px 28px;
    gap: 6px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 12px 14px;
    font-size: 16px;
  }
  .nav .nav-cta {
    margin-left: 0;
    margin-top: 12px;
    width: 100%;
  }
}

/* Hero Carousel */
.hero-slider {
  position: relative;
  min-height: calc(100vh - 76px);
  max-height: 860px;
  width: 100%;
  overflow: hidden;
  background-color: #000000;
  display: flex;
  align-items: center;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 1.2s;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 7s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide.active .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 5, 8, 0.94) 0%, rgba(5, 5, 8, 0.72) 55%, rgba(5, 5, 8, 0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 820px;
  padding-block: 72px 120px;
}

.hero-content h1 {
  margin-top: 16px;
  line-height: 1.08;
}

.hero-indicators {
  position: absolute;
  bottom: 40px;
  left: 24px;
  z-index: 20;
  display: flex;
  gap: 12px;
}

.hero-indicator-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  display: flex;
  align-items: center;
}

.hero-indicator-bar {
  height: 4px;
  width: 32px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  transition: width 0.4s ease, background-color 0.4s ease;
  overflow: hidden;
  position: relative;
}

.hero-indicator-btn.active .hero-indicator-bar {
  width: 56px;
  background: var(--blue-500);
}

/* Proof Banner */
.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 36px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 14.5px;
}

.proof-row b {
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  margin-right: 6px;
}

/* Standard Page Hero */
.page-hero {
  position: relative;
  padding-block: 84px 64px;
  background: radial-gradient(ellipse 70% 50% at 50% -10%, rgba(37, 99, 235, 0.18), transparent 70%);
  border-bottom: 1px solid var(--border-subtle);
}

.page-hero .lead {
  font-size: clamp(18px, 2vw, 22px);
}

/* Grids & Cards */
.grid {
  display: grid;
  gap: 28px;
}
.grid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 980px) {
  .grid.g3, .grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .grid.g2, .grid.g3, .grid.g4 { grid-template-columns: minmax(0, 1fr); }
}

.card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6);
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.card.feature {
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-color: rgba(96, 165, 250, 0.3);
}

.card .price {
  font-family: var(--font-display);
  font-size: 40px;
  color: #ffffff;
  margin: 20px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card .price small {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.4;
}

.card .meta {
  font-size: 13.5px;
  color: var(--text-subtle);
  margin-top: 14px;
}

/* Image Showcase Cards */
.img-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.img-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0d0f18;
}

.img-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-card:hover .img-card-media img {
  transform: scale(1.06);
}

.img-card-content {
  padding: 28px;
}

/* Service Detail Sections */
.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}

.service-row.reverse {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.service-row.reverse .service-content {
  order: 2;
}

.service-row.reverse .service-image-box {
  order: 1;
}

@media (max-width: 900px) {
  .service-row, .service-row.reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .service-row.reverse .service-content { order: 1; }
  .service-row.reverse .service-image-box { order: 2; }
}

.service-image-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-card);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.7);
  background: #0d0f18;
  aspect-ratio: 16 / 10;
}

.service-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-image-box:hover img {
  transform: scale(1.04);
}

/* Bullet Lists & Ticks */
.ticks {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ticks li {
  position: relative;
  padding-left: 28px;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.55;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Red Flags List */
.flags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flags li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.flags li:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.flags .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: rgba(244, 63, 94, 0.15);
  color: var(--rose-400);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.flags b {
  display: block;
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 4px;
}

.flags p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.5;
}

/* 4-Step Process Section */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 44px;
}

@media (max-width: 900px) {
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .steps-grid { grid-template-columns: minmax(0, 1fr); }
}

.step-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.step-number {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--blue-400);
  opacity: 0.65;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Interactive Symptom / Bottleneck Scope Estimator */
.estimator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

@media (max-width: 960px) {
  .estimator-layout { grid-template-columns: minmax(0, 1fr); }
}

.symptom-group {
  margin-bottom: 24px;
}

.symptom-group h4 {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 12px;
}

.symptom-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.symptom-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.symptom-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.symptom-item.checked {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(96, 165, 250, 0.45);
}

.symptom-item input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  display: grid;
  place-content: center;
  transition: all 0.2s ease;
}

.symptom-item.checked input[type="checkbox"] {
  background: var(--blue-600);
  border-color: var(--blue-600);
}

.symptom-item.checked input[type="checkbox"]::after {
  content: "";
  width: 6px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.symptom-item span {
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.45;
}

.symptom-item .urgent-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(244, 63, 94, 0.15);
  color: var(--rose-400);
  border: 1px solid rgba(244, 63, 94, 0.3);
  margin-left: 8px;
  vertical-align: middle;
}

.recommendation-card {
  position: sticky;
  top: 104px;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.7);
}

/* Case Studies (Detailed Deep-Dives) */
.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 44px;
  margin-bottom: 40px;
  transition: border-color 0.3s ease;
}

.case-card:hover {
  border-color: var(--border-hover);
}

.case-header {
  margin-bottom: 28px;
}

.case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

@media (max-width: 860px) {
  .case-grid { grid-template-columns: minmax(0, 1fr); }
  .case-card { padding: 28px; }
}

.case-dl {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.case-dl dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: 6px;
}

.case-dl dd {
  margin: 0;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.case-dl dd ol {
  margin: 10px 0 0;
  padding-left: 20px;
}

.case-dl dd li {
  margin-top: 6px;
}

.case-lesson {
  margin-top: 24px;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.08);
  border-left: 3px solid var(--blue-500);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 19px;
  font-style: italic;
}

.case-image-box {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-card);
  aspect-ratio: 16 / 11;
  background: #000;
}

.case-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Call to Action Banner */
.cta-banner {
  background: radial-gradient(ellipse 90% 80% at 50% 50%, rgba(37, 99, 235, 0.22), rgba(10, 11, 18, 0.95)), var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

@media (max-width: 860px) {
  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 28px;
  }
}

.cta-banner h2 {
  font-size: clamp(26px, 3.2vw, 38px);
}

.cta-banner p {
  color: var(--text-muted);
  font-size: 17px;
  margin-top: 8px;
  max-width: 60ch;
}

/* Tables (Timeline & Overlap) */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  margin-top: 28px;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
}

th, td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

td {
  color: var(--text-muted);
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* FAQ Accordion */
.faq {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 860px;
}

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 22px 28px;
  transition: all 0.2s ease;
}

.faq details[open] {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.faq summary {
  font-family: var(--font-sans);
  font-size: 17.5px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 400;
  color: var(--blue-400);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.6;
}

/* Forms & Inputs */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 640px) {
  .form .row { grid-template-columns: minmax(0, 1fr); }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
}

input, select, textarea {
  width: 100%;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  background: rgba(255, 255, 255, 0.07);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 42px;
}

select option {
  background: #0e101a;
  color: #ffffff;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.note {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.note.ok {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
}
.note.err {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fecdd3;
}

.copy-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.copy-line code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 14px;
  border-radius: 6px;
  color: #ffffff;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--blue-400);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.copy-btn:hover {
  background: var(--blue-600);
  color: #ffffff;
}

/* Contact Page Grid */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: start;
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px;
}

/* Diagnostic Quiz Dark Styling */
.diag {
  max-width: 860px;
}

.progress {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin: 12px 0 32px;
}

.progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue-500), var(--emerald-400));
  transition: width 0.3s ease;
}

.q {
  padding: 24px 0;
  border-top: 1px solid var(--border-subtle);
}
.q:first-of-type { border-top: 0; }
.q p {
  font-size: 17px;
  font-weight: 500;
  color: #ffffff;
}

.opts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

@media (max-width: 680px) {
  .opts { grid-template-columns: minmax(0, 1fr); }
}

.opt {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  padding: 12px 8px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.opt:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.opt.sel {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #ffffff;
  font-weight: 600;
}

.diag-summary-card {
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.15) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 32px;
}

.diag-score-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 56px;
  color: #ffffff;
}

.diag-score-display span {
  font-family: var(--font-sans);
  font-size: 20px;
  color: var(--text-muted);
}

.dim-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0;
}

.dim-bar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dim-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 14.5px;
  color: var(--text-main);
}

.dim-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.dim-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.score-big {
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 92px);
  font-weight: 400;
  line-height: 1;
  color: var(--blue-400);
}

.dims {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dims li {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: all 0.2s ease;
}

.dims li.weak {
  border-color: rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.05);
}

.dims .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15.5px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
}

.dims .pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(244, 63, 94, 0.2);
  color: var(--rose-400);
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  margin-left: 10px;
}

.dims .meter {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.dims .meter i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue-500), var(--emerald-400));
}

.dims li.weak .meter i {
  background: linear-gradient(90deg, var(--rose-400), var(--amber-400));
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
}

@media (max-width: 680px) {
  .cta { flex-direction: column; align-items: flex-start; }
}

/* Site Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #040406;
  padding-block: 80px 40px;
  color: var(--text-muted);
  font-size: 14.5px;
}

.footer-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
}

@media (max-width: 900px) {
  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
  }
}
@media (max-width: 600px) {
  .footer-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 38ch;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-base {
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text-subtle);
}

.footer-base a {
  color: var(--text-subtle);
}
.footer-base a:hover {
  color: #ffffff;
}
