/* ==========================================================================
   NSD SYSTEMS (mynsd.info) // SOFTWARE EDITOR & ERP PROVIDER
   Brand Palette synced from mynsd.info (#FA5506 Orange, #242424 Charcoal, #FFB703 Gold)
   ========================================================================== */

/* --- Custom Properties & Design Tokens --- */
:root {
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Cabin", "Geist", -apple-system, sans-serif;
  --font-mono: "Geist Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --r-xs: 4px;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --max: 1440px;
  --nav-h: 70px;

  /* NSD Signature Brand Accents (from mynsd.info) */
  --nsd-orange: #fa5506;
  --nsd-orange-deep: #d94300;
  --nsd-gold: #ffb703;
  --nsd-navy: #0a1e5c;
  --nsd-charcoal: #242424;
  --nsd-slate: #29282e;
}

/* --- LIGHT THEME (Default - NSD Signature Orange & Crisp Charcoal) --- */
:root,
html[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #fafafa;
  --bg-3: #f4f4f4;
  --card: #ffffff;
  --card-2: #fcfbfa;
  --fg: #242424;
  --fg-2: #3d3c42;
  --muted: #797979;
  --faint: #999999;
  --line: rgba(36, 36, 36, 0.08);
  --line-2: rgba(36, 36, 36, 0.14);
  --line-3: rgba(36, 36, 36, 0.24);

  --brand: #fa5506;
  --brand-cyan: #d97706;
  --brand-ink: #c43e00;
  --brand-soft: rgba(250, 85, 6, 0.08);
  --brand-line: rgba(250, 85, 6, 0.34);

  --btn-bg: #242424;
  --btn-fg: #ffffff;
  --btn-grad: linear-gradient(160deg, #ff6b24 0%, #fa5506 52%, #d94300 100%);
  --btn-glow: rgba(250, 85, 6, 0.42);
  --calm-grad: linear-gradient(155deg, #29282e 0%, #1d1c22 54%, #7c2602 100%);

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px -6px rgba(36, 36, 36, 0.08), 0 20px 48px -18px rgba(250, 85, 6, 0.14);
  --shadow-hover: 0 12px 36px -8px rgba(36, 36, 36, 0.14), 0 24px 60px -16px rgba(250, 85, 6, 0.22);
  --glow: rgba(250, 85, 6, 0.16);
  --grid-dot: rgba(250, 85, 6, 0.14);
  
  --bronze: #b45309;
  --gold: #f59e0b;
  --ok: #179850;
  --warn: #fa5506;
}

/* --- DARK THEME (NSD Obsidian Charcoal & Radiant Orange/Gold) --- */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111114;
  --bg-2: #18181d;
  --bg-3: #222128;
  --card: #19191f;
  --card-2: #222128;
  --fg: #fafafa;
  --fg-2: #e4e4e7;
  --muted: #a1a1aa;
  --faint: #71717a;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-3: rgba(255, 255, 255, 0.24);

  --brand: #ff6b24;
  --brand-cyan: #ffb703;
  --brand-ink: #ff9a62;
  --brand-soft: rgba(250, 85, 6, 0.14);
  --brand-line: rgba(250, 85, 6, 0.42);

  --btn-bg: #fafafa;
  --btn-fg: #111114;
  --btn-grad: linear-gradient(160deg, #ff7836 0%, #fa5506 52%, #c93b00 100%);
  --btn-glow: rgba(250, 85, 6, 0.5);
  --calm-grad: linear-gradient(155deg, #29282e 0%, #1c1b21 52%, #7c2602 100%);

  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 20px 50px -20px rgba(0, 0, 0, 0.75);
  --shadow-hover: 0 0 0 1px rgba(250, 85, 6, 0.38), 0 24px 60px -20px rgba(0, 0, 0, 0.85);
  --glow: rgba(250, 85, 6, 0.24);
  --grid-dot: rgba(255, 255, 255, 0.1);
  
  --bronze: #d97706;
  --gold: #ffb703;
  --ok: #179850;
  --warn: #ff6b24;
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--fg);
  font: 400 16px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--brand);
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

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

/* --- Typography & Atoms --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  margin: 0;
  font-weight: 600;
  line-height: 1.05;
}

.h1 {
  font-size: clamp(30px, 3.5vw, 50px);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.h2 {
  font-size: clamp(28px, 3.8vw, 48px);
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.h3 {
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.02em;
}

.lede {
  color: var(--muted);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.6;
  margin: 0;
  max-width: 52ch;
}

.lede strong {
  color: var(--fg);
  font-weight: 500;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11.5px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 11.5px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow i {
  display: block;
  width: 6px;
  height: 6px;
  background: var(--brand-cyan);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand-cyan) 25%, transparent);
}

.eyebrow b {
  color: var(--fg);
  font-weight: 500;
}

.grad {
  background: linear-gradient(105deg, var(--fg) 25%, var(--brand) 115%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Badges, Tags, Chamfer & Brackets --- */
.chamfer {
  --k: 12px;
  clip-path: polygon(
    var(--k) 0,
    100% 0,
    100% calc(100% - var(--k)),
    calc(100% - var(--k)) 100%,
    0 100%,
    0 var(--k)
  );
}

.brackets {
  --c: var(--line-3);
  --s: 9px;
  background: 
    linear-gradient(var(--c), var(--c)) top left / var(--s) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 1px var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--s) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 1px var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--s) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 1px var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--s) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 1px var(--s) no-repeat;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 24px;
  padding: 0 10px 0 9px;
  font: 500 10.5px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  white-space: nowrap;
}

.tag::before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
}

.tag.brand {
  color: var(--brand-ink);
  background: var(--brand-soft);
  border-color: var(--brand-line);
}

.tag.plain::before {
  display: none;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ok) 25%, transparent);
  animation: 2.2s infinite pulse;
  flex: none;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 2px color-mix(in oklab, var(--ok) 40%, transparent); }
  50% { box-shadow: 0 0 0 6px color-mix(in oklab, var(--ok) 0%, transparent); }
  100% { box-shadow: 0 0 0 2px color-mix(in oklab, var(--ok) 40%, transparent); }
}

/* --- Buttons --- */
.btn {
  --h: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 20px;
  font: 500 14px/1 var(--font-sans);
  letter-spacing: -0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.25s;
}

.btn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-primary {
  background: var(--btn-grad);
  color: #ffffff;
  position: relative;
  isolation: isolate;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 1px 2px rgba(124, 38, 2, 0.3),
    0 10px 24px -10px var(--btn-glow);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.btn-primary:hover {
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 14px 28px -10px var(--btn-glow),
    0 0 0 4px var(--brand-soft);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-ghost {
  background: var(--card);
  border-color: var(--line-2);
  color: var(--fg);
}

.btn-ghost:hover {
  border-color: var(--line-3);
  background: var(--bg-2);
}

.btn-sm {
  --h: 36px;
  padding: 0 14px;
  font-size: 13px;
}

/* --- Container & Layout Shell --- */
.shell {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  padding-left: clamp(20px, 4vw, 56px);
  padding-right: clamp(20px, 4vw, 56px);
}

.pad {
  padding-top: clamp(18px, 2.4vw, 32px);
  padding-bottom: clamp(18px, 2.4vw, 32px);
  padding-left: clamp(20px, 4vw, 56px);
  padding-right: clamp(20px, 4vw, 56px);
}

.sec-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 14px 32px;
  margin-bottom: clamp(14px, 1.8vw, 22px);
}

.sec-head h2 {
  margin-top: 10px;
}

@media (max-width: 860px) {
  .sec-head {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}

.nav.scrolled {
  background-color: color-mix(in oklab, var(--bg) 75%, transparent);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--line-2);
}

.nav-in {
  max-width: var(--max);
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1.2fr);
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nt-logo-svg,
.nsd-logo-svg {
  height: 46px;
  width: auto;
  display: block;
  transition: transform 0.25s var(--ease), filter 0.25s;
}

.nsd-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.nsd-brand-img {
  height: 42px;
  width: 42px;
  object-fit: contain;
  transition: transform 0.25s var(--ease), filter 0.25s;
}

.nsd-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
}

.nsd-brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.14em;
  color: var(--fg);
}

.nsd-brand-sub {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 8.5px;
  letter-spacing: 0.2em;
  color: var(--brand);
  text-transform: uppercase;
}

.brand:hover .nt-logo-svg,
.brand:hover .nsd-logo-svg,
.brand:hover .nsd-brand-img {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 10px rgba(250, 85, 6, 0.4));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.2s, background-color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--fg);
  background: color-mix(in oklab, var(--fg) 6%, transparent);
}

.nav-links .has-sub {
  position: relative;
  display: flex;
}

.nav-links .has-sub > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-links .chev {
  width: 12px;
  height: 12px;
  stroke-width: 2.2px;
  transition: transform 0.25s var(--ease);
}

.nav-links .has-sub:hover .chev,
.nav-links .has-sub:focus-within .chev {
  transform: rotate(180deg);
}

.nav-links .sub {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  padding-top: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0s 0.25s;
  z-index: 10;
}

.nav-links .has-sub:hover .sub,
.nav-links .has-sub:focus-within .sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.nav-links .sub-in {
  min-width: 260px;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  display: grid;
  gap: 2px;
}

.nav-links .sub a {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  display: grid;
  gap: 2px;
  color: var(--fg);
  font-weight: 500;
}

.nav-links .sub a small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.nav-links .sub a:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  justify-self: end;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}

.icon-btn:hover {
  border-color: var(--line-3);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

.theme-btn .sun { display: none; }
html[data-theme="dark"] .theme-btn .sun { display: block; }
html[data-theme="dark"] .theme-btn .moon { display: none; }

.phone-pill {
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 13px/1 var(--font-mono);
  color: var(--fg-2);
  transition: border-color 0.2s, color 0.2s;
}

.phone-pill:hover {
  border-color: var(--brand-line);
  color: var(--brand);
}

.phone-pill svg {
  width: 14px;
  height: 14px;
  color: var(--brand);
}

.menu-btn, .mobile-menu {
  display: none;
}

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; }
  .phone-pill .ph-txt { display: none; }
  .phone-pill { width: 38px; padding: 0; justify-content: center; }
  
  .mobile-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line-2);
    padding: 16px 24px 28px;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    display: block;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
  }
  
  .mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  
  .mobile-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  
  .mobile-menu a.sub-link {
    font-size: 14.5px;
    color: var(--muted);
    padding-left: 18px;
  }
  
  .mobile-menu .btn {
    width: 100%;
    margin-top: 18px;
    height: 48px;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  pointer-events: none;
  overflow: hidden;
  mask: linear-gradient(transparent, #000 calc(var(--nav-h) + 40px), #000 calc(100% - 80px), transparent);
  -webkit-mask: linear-gradient(transparent, #000 calc(var(--nav-h) + 40px), #000 calc(100% - 80px), transparent);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px);
  background-size: 24px 24px;
  mask: radial-gradient(1000px 600px at 70% 45%, #000 15%, transparent 75%);
  -webkit-mask: radial-gradient(1000px 600px at 70% 45%, #000 15%, transparent 75%);
}

.hero-glow {
  position: absolute;
  top: 0;
  right: 10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 3.5vw, 48px);
  padding: 4px 0 16px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  position: relative;
}

.hero-slides-deck {
  position: relative;
  min-height: 330px;
}

.hero-slide {
  display: none;
  flex-direction: column;
  gap: 20px;
}

.hero-slide.active {
  display: flex;
  animation: heroSlideIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroSlideIn {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-slider-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-2);
}

.slide-ctrl-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  box-shadow: var(--shadow);
}

.slide-num-badge {
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  padding: 4px 6px;
  border-radius: 3px;
}

.slide-title-label {
  font: 600 13px/1 var(--font-display);
  letter-spacing: -0.01em;
  color: var(--fg);
  min-width: 140px;
}

.slide-arrows {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding-left: 8px;
  border-left: 1px solid var(--line-2);
}

.slide-arrow-btn {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--fg-2);
  transition: all 0.2s;
}

.slide-arrow-btn:hover {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: var(--brand-line);
}

.slide-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.slide-dot {
  width: 20px;
  height: 4px;
  border-radius: 2px;
  background: var(--line-2);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  padding: 0;
}

.slide-dot.active {
  width: 36px;
  background: var(--brand);
  box-shadow: 0 0 8px var(--glow);
}

.award-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 10px 0 6px;
  font-size: 13px;
  color: var(--fg-2);
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  box-shadow: var(--shadow);
  align-self: flex-start;
  transition: border-color 0.2s;
}

.award-pill:hover {
  border-color: var(--brand-line);
}

.award-pill .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  font: 500 10.5px/1 var(--font-mono);
  letter-spacing: 0.08em;
  background: var(--fg);
  color: var(--bg);
  border-radius: 999px;
}

.award-pill .badge svg {
  width: 13px;
  height: 13px;
  color: var(--brand);
}

.award-pill .sep {
  color: var(--faint);
}

.h1 .ln {
  display: block;
  overflow: hidden;
  padding-bottom: 0.05em;
}

.h1 .ln > span {
  display: inline-block;
  transform: translateY(105%);
  animation: rise 0.9s var(--ease) forwards;
}

.h1 .ln:nth-child(2) > span { animation-delay: 90ms; }
.h1 .ln:nth-child(3) > span { animation-delay: 180ms; }

.h1 em {
  font-style: normal;
  color: var(--brand);
  position: relative;
}

.h1 .ln:nth-child(3) {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.h1 .q-note {
  font: 500 11px/1.3 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 0.8em;
  opacity: 0;
  animation: fade 0.8s 0.8s forwards;
}

.h1 .q-note::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--line-3);
}

@keyframes rise {
  to { transform: none; }
}

@keyframes fade {
  to { opacity: 1; }
}

.hero-sub {
  opacity: 0;
  animation: fade 0.9s 0.35s forwards;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  animation: fade 0.9s 0.5s forwards;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--line-2);
  opacity: 0;
  animation: fade 0.9s 0.65s forwards;
}

.hero-meta div {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-meta svg {
  width: 14px;
  height: 14px;
  color: var(--brand);
}

/* Google Reviews / Trust Pill */
.g-reviews {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px 0 14px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font: 500 13px/1 var(--font-sans);
  color: var(--fg-2);
  align-self: flex-start;
  opacity: 0;
  animation: fade 0.9s 0.8s forwards;
  transition: border-color 0.2s;
}

.g-reviews:hover {
  border-color: var(--brand-line);
}

.g-reviews .stars {
  display: flex;
  gap: 3px;
  color: #f59e0b;
}

.g-reviews .score {
  font-weight: 700;
  color: var(--fg);
}

.g-reviews .count {
  color: var(--brand);
}

/* ==========================================================================
   SHOWSTOPPER HERO VISUAL: RADAR HUD "SYSTEM MAP"
   ========================================================================== */
.sysmap {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1;
  justify-self: end;
  opacity: 0;
  animation: fade 1.1s 0.2s forwards;
  container-type: inline-size;
}

.sysmap svg.map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sysmap .ring {
  fill: none;
  stroke: var(--line-2);
}

.sysmap .ring.dash {
  stroke: var(--line-3);
  stroke-dasharray: 2 6;
  stroke-width: 1.5px;
}

.sysmap .ring.brand {
  stroke: var(--brand);
  opacity: 0.6;
  stroke-dasharray: 120 40 10 40;
  stroke-width: 1.5px;
  transition: stroke 0.4s, opacity 0.4s, filter 0.4s;
}

.sysmap .spin {
  transform-origin: 300px 300px;
  animation: spin 50s linear infinite;
}

.sysmap .spin.rev {
  animation-duration: 75s;
  animation-direction: reverse;
}

.sysmap .spin.fwd {
  animation-duration: 40s;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.sysmap .sweep {
  position: absolute;
  top: 15%;
  left: 15%;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 280deg,
    var(--brand-soft) 340deg,
    color-mix(in oklab, var(--brand) 35%, transparent) 360deg
  );
  animation: spin 6s linear infinite;
  mask: radial-gradient(circle closest-side, transparent 40%, #000 41%);
  -webkit-mask: radial-gradient(circle closest-side, transparent 40%, #000 41%);
  pointer-events: none;
}

.sysmap .spoke {
  stroke: var(--line-2);
  stroke-width: 1.5px;
  stroke-dasharray: 4 6;
  transition: stroke 0.3s, stroke-width 0.3s, filter 0.3s;
}

.sysmap .spoke.hl,
.sysmap .spoke.slide-active {
  stroke: var(--brand);
  stroke-width: 2.5px;
  stroke-dasharray: none;
  filter: drop-shadow(0 0 6px var(--brand));
}

.sysmap .lead {
  fill: none;
  stroke: var(--line-3);
  stroke-width: 1.5px;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: draw 1.2s 0.8s var(--ease) forwards;
  transition: stroke 0.3s, filter 0.3s;
}

.sysmap .lead.hl,
.sysmap .lead.slide-active {
  stroke: var(--brand);
  stroke-width: 2.5px;
  filter: drop-shadow(0 0 6px var(--brand));
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.sysmap .node {
  fill: var(--bg);
  stroke: var(--brand);
  stroke-width: 1.5px;
  transition: fill 0.3s, stroke-width 0.3s, filter 0.3s;
}

.sysmap .node.hl,
.sysmap .node.slide-active {
  fill: var(--brand-soft);
  stroke-width: 2.5px;
  filter: drop-shadow(0 0 6px var(--brand));
}

.sysmap .node-core {
  fill: var(--brand-cyan);
  transition: fill 0.3s;
}

.sysmap .node-core.hl,
.sysmap .node-core.slide-active {
  fill: #ffffff;
  filter: drop-shadow(0 0 6px var(--brand-cyan));
}

.sysmap .packet {
  fill: var(--brand-cyan);
  filter: drop-shadow(0 0 5px var(--brand-cyan));
}

.sysmap .core-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--brand) 35%, transparent), color-mix(in oklab, var(--brand) 10%, transparent) 60%, transparent 100%);
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.4s var(--ease);
}

.sysmap.lit .core-glow {
  opacity: 0.9;
}

.sysmap .core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  box-shadow: 0 20px 60px -15px var(--glow);
  transition: border-color 0.4s, box-shadow 0.4s var(--ease);
}

.sysmap .core-insignia {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.core-diamond-svg {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 8px var(--glow));
}

.core-brand-name {
  font: 700 13px/1 var(--font-display);
  letter-spacing: 0.16em;
  color: var(--fg);
  text-transform: uppercase;
}

.core-brand-sub {
  font: 500 8.5px/1 var(--font-mono);
  letter-spacing: 0.2em;
  color: var(--brand-cyan);
  text-transform: uppercase;
}

/* Callout Quadrant Cards */
.sysmap .co {
  position: absolute;
  width: 32%;
  padding: 2.4cqi 2.6cqi;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  cursor: pointer;
  transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.3s;
  opacity: 0;
  animation: pop 0.7s var(--ease) forwards;
}

.sysmap .co.brackets {
  --c: var(--fg);
  --s: 7px;
}

.sysmap .co .k {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 500 1.8cqi/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.sysmap .co .k b {
  color: var(--brand);
  font-weight: 600;
}

.sysmap .co .t {
  display: block;
  font: 600 3.2cqi/1.15 var(--font-display);
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-top: 1.4cqi;
}

.sysmap .co .s {
  display: flex;
  align-items: center;
  gap: 1cqi;
  font: 400 2cqi/1.2 var(--font-mono);
  color: var(--muted);
  margin-top: 1.2cqi;
}

.sysmap .co .s .dot {
  width: 1.2cqi;
  height: 1.2cqi;
}

.sysmap .co:hover,
.sysmap .co.hl,
.sysmap .co.slide-active {
  box-shadow: 0 16px 36px -12px var(--glow), 0 0 20px -6px var(--brand-line);
  transform: translateY(-3px);
  border-color: var(--brand-line);
}

.sysmap .co.nw { top: 3%; left: 1.5%; animation-delay: 0.9s; }
.sysmap .co.ne { top: 3%; right: 1.5%; animation-delay: 1.0s; }
.sysmap .co.sw { bottom: 3%; left: 1.5%; animation-delay: 1.1s; }
.sysmap .co.se { bottom: 3%; right: 1.5%; animation-delay: 1.2s; }

@keyframes pop {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .sysmap { justify-self: center; margin-top: 12px; }
  .h1 .q-note { display: none; }
}

/* ==========================================================================
   CLIENT & PARTNER MARQUEE TICKER
   ========================================================================== */
.clients {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.clients .lbl {
  font: 500 11px/1.4 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  padding: 22px clamp(20px, 4vw, 56px);
  border-right: 1px solid var(--line);
}

.marquee {
  overflow: hidden;
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee:hover .track {
  animation-play-state: paused;
}

.track {
  display: flex;
  width: max-content;
  animation: scroll 42s linear infinite;
}

.track span {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  font: 600 17px/1.4 var(--font-display);
  letter-spacing: -0.01em;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s;
}

.track span:hover {
  color: var(--fg);
}

.track span::after {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--line-3);
  transform: rotate(45deg);
  margin-left: 28px;
}

@keyframes scroll {
  to { transform: translateX(-50%); }
}

@media (max-width: 640px) {
  .clients { grid-template-columns: 1fr; }
  .clients .lbl { border-right: none; border-bottom: 1px solid var(--line); padding: 14px 20px; }
}

/* ==========================================================================
   BENTO GRID SERVICES SECTION
   ========================================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.3s;
}

.svc.w7 { grid-column: span 7; }
.svc.w5 { grid-column: span 5; }

.svc::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--brand-soft), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
}

.svc:hover {
  border-color: var(--line-3);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.svc:hover::before {
  opacity: 1;
}

.svc-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 24px 0;
}

.svc-top .tag {
  margin-right: auto;
}

.svc-top .go {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  transition: background-color 0.2s, color 0.2s, transform 0.3s var(--ease);
}

.svc-top .go svg {
  width: 14px;
  height: 14px;
}

.svc:hover .go {
  background: var(--fg);
  color: var(--bg);
  transform: rotate(-45deg);
}

.svc-body {
  padding: 20px 24px 24px;
}

.svc h3 {
  font-size: clamp(24px, 2.3vw, 30px);
  letter-spacing: -0.025em;
}

.svc p {
  color: var(--muted);
  font-size: 15px;
  margin: 10px 0 0;
  max-width: 50ch;
}

.svc .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

/* Bento Visualizer Bases */
.svc .viz {
  position: relative;
  min-height: 220px;
  margin-top: auto;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.svc .viz::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
  mask: linear-gradient(#000, transparent 90%);
  -webkit-mask: linear-gradient(#000, transparent 90%);
}

/* Visualizer 1: Telemetry Dashboard Board */
.board {
  position: relative;
  margin: 20px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.board-h {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  font: 500 10.5px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.board-h .clock {
  margin-left: auto;
  color: var(--fg-2);
}

.board-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.brow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--fg-2);
  border-bottom: 1px solid var(--line);
}

.brow:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.brow:nth-last-child(-n+2) {
  border-bottom: none;
}

.brow span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brow .st {
  margin-left: auto;
  font: 500 9.5px/1 var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--ok);
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.bars i {
  flex: 1;
  height: 20px;
  background: color-mix(in oklab, var(--ok) 75%, var(--card));
  border-radius: 2px;
  opacity: 0.85;
  animation: eq 1.8s ease-in-out infinite alternate;
}

.bars i:nth-child(2n) { animation-duration: 1.4s; height: 14px; }
.bars i:nth-child(3n) { animation-duration: 2.1s; height: 18px; }
.bars i:nth-child(4n) { animation-duration: 1.2s; height: 10px; }
.bars i:nth-child(5n) { animation-duration: 1.6s; height: 16px; }

@keyframes eq {
  0% { transform: scaleY(0.3); opacity: 0.4; }
  100% { transform: scaleY(1); opacity: 0.95; }
}

/* Visualizer 2: Legacy to Cloud Integration Bridge */
.bridge {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: center;
  padding: 26px 20px;
  min-height: 220px;
}

.stack {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.stack .mono {
  font-size: 9.5px;
  color: var(--faint);
  margin-bottom: 2px;
}

.stack div {
  padding: 6px 8px;
  font: 500 11.5px/1 var(--font-mono);
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--fg-2);
  border-radius: var(--r-xs);
  text-align: center;
}

.stack.extended {
  border-color: var(--brand-line);
}

.stack.extended div {
  background: var(--brand-soft);
  border-color: var(--brand-line);
  color: var(--brand-ink);
}

.pipe {
  position: relative;
  height: 60px;
}

.pipe svg {
  width: 100%;
  height: 100%;
}

.pipe .ln {
  fill: none;
  stroke: var(--line-3);
  stroke-dasharray: 4 4;
}

.pipe .pk {
  fill: var(--brand);
}

.pipe .lbl {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translate(-50%, -100%);
  font: 500 10px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--card);
  border: 1px solid var(--brand-line);
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Visualizer 3: AMIRESTO & POS Operations Grid */
.pos-board {
  margin: 20px;
}

.pos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
}

.pos-tile {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color 0.2s, background-color 0.2s;
}

.svc:hover .pos-tile {
  border-color: var(--brand-line);
}

.pos-k {
  font: 600 9.5px/1 var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--brand);
  text-transform: uppercase;
}

.pos-tile strong {
  font: 600 13px/1.25 var(--font-display);
  color: var(--fg);
}

.pos-tile small {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.3;
}

/* Visualizer 3 (Legacy): Code Editor */
.editor {
  position: relative;
  margin: 20px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
  font: 400 12.5px/1.7 var(--font-mono);
}

.editor-h {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  font-size: 11px;
  color: var(--faint);
  border-bottom: 1px solid var(--line);
}

.editor-h i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-2);
}

.editor-h span {
  margin-left: 8px;
}

.editor pre {
  margin: 0;
  padding: 14px 16px;
  color: var(--fg-2);
  overflow-x: auto;
}

.editor .c { color: var(--faint); }
.editor .k { color: #c2410c; }
.editor .s { color: #15803d; }
.editor .f { color: var(--brand); }
.editor .p { color: #7c3aed; }

html[data-theme="dark"] .editor .k { color: #ff9f6b; }
html[data-theme="dark"] .editor .s { color: #7ee2a8; }
html[data-theme="dark"] .editor .p { color: #c4a5ff; }

.caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  vertical-align: -2px;
  background: var(--brand);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Visualizer 4: Multi-Device Responsive System */
.devices {
  position: relative;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.dev-browser {
  width: 74%;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dev-browser-h {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}

.dev-browser-h i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-2);
}

.dev-browser-h .url {
  flex: 1;
  max-width: 200px;
  height: 18px;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font: 400 9.5px/18px var(--font-mono);
  color: var(--faint);
}

.dev-site {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.dev-site .row {
  display: flex;
  gap: 8px;
}

.dev-site .box {
  height: 24px;
  border-radius: 4px;
  background: var(--bg-2);
}

.dev-phone {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 88px;
  height: 140px;
  background: var(--card);
  border: 2px solid var(--line-3);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  display: grid;
  gap: 6px;
}

.dev-phone .notch {
  width: 24px;
  height: 4px;
  background: var(--line-2);
  border-radius: 999px;
  margin: 0 auto 2px;
}

.dev-phone .card-preview {
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: 4px;
  height: 40px;
}

@media (max-width: 900px) {
  .svc.w7, .svc.w5 { grid-column: 1 / -1; }
}

/* ==========================================================================
   CASE STUDIES DOSSIER ROSTER
   ========================================================================== */
.roster {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 10px;
  margin-bottom: 16px;
}

.ro {
  position: relative;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line-2);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.25s, background-color 0.25s, transform 0.3s var(--ease);
}

.ro:hover {
  border-color: var(--line-3);
  transform: translateY(-2px);
}

.ro[aria-selected="true"] {
  background: var(--bg-2);
  border-color: var(--brand-line);
}

.ro::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width 0.35s var(--ease);
}

.ro[aria-selected="true"]::after {
  width: 100%;
}

.ro b {
  display: block;
  font: 600 15px/1.2 var(--font-display);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ro small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ro-all {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 18px;
}

.ro-all b {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Dossier Card Panel */
.dossier {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.d-visual {
  position: relative;
  min-height: 420px;
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}

.d-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.9;
  z-index: -1;
}

.d-visual .glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 520px;
  background: radial-gradient(closest-side, var(--glow), transparent);
  z-index: -1;
}

.d-mono {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font: 700 clamp(110px, 14vw, 190px)/1 var(--font-display);
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-3);
  white-space: nowrap;
  user-select: none;
  z-index: 0;
  opacity: 0.6;
}

.d-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68%;
  aspect-ratio: 1;
  pointer-events: none;
  z-index: 1;
}

.d-ring svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.d-ring .a {
  fill: none;
  stroke: var(--line-2);
}

.d-ring .b {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2px;
  stroke-dasharray: 60 900;
  transform-origin: 50% 50%;
  animation: 14s linear infinite spin;
}

.d-ring .c {
  fill: none;
  stroke: var(--line-3);
  stroke-dasharray: 1 9;
  stroke-width: 6px;
  transform-origin: 50% 50%;
  animation: 80s linear infinite reverse spin;
}

.d-glyph {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 24px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  color: var(--brand);
  z-index: 2;
}

.d-glyph svg {
  width: 52px;
  height: 52px;
}

.d-side {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font: 500 10px/1 var(--font-mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}

.d-foot {
  position: absolute;
  bottom: 20px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.d-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(28px, 4vw, 44px);
  min-width: 0;
}

.d-info h3 {
  font-size: clamp(28px, 3.2vw, 42px);
  letter-spacing: -0.03em;
  margin-top: 10px;
}

.d-info .sector {
  font-size: 15px;
  color: var(--muted);
  margin-top: 6px;
}

.d-info .sum {
  font-size: 16px;
  color: var(--fg-2);
  line-height: 1.6;
  margin: 0;
  max-width: 54ch;
}

.attrs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.attrs div {
  padding: 12px 14px;
  border-right: 1px solid var(--line);
}

.attrs div:last-child {
  border-right: none;
}

.attrs dt {
  font: 500 10px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.attrs dd {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

.d-quote {
  margin: 0;
  padding: 16px 18px;
  background: var(--brand-soft);
  border-left: 2px solid var(--brand);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 14.5px;
  color: var(--fg-2);
}

.d-quote cite {
  display: block;
  margin-top: 8px;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
}

.d-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}

@media (max-width: 980px) {
  .dossier { grid-template-columns: 1fr; }
  .d-visual { border-right: none; border-bottom: 1px solid var(--line); min-height: 320px; }
  .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   INDUSTRIES SECTION
   ========================================================================== */
.ind {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.ind a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-height: 180px;
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s;
}

.ind a:nth-child(4n) {
  border-right: none;
}

.ind a:nth-last-child(-n+4) {
  border-bottom: none;
}

.ind a:hover {
  background: var(--bg-2);
}

.ind .top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.ind .ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  transition: border-color 0.25s, color 0.25s, background-color 0.25s;
}

.ind .ico svg {
  width: 20px;
  height: 20px;
}

.ind a:hover .ico {
  background: var(--brand-soft);
  border-color: var(--brand-line);
  color: var(--brand);
}

.ind h4 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-top: auto;
}

.ind p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.5;
}

.ind .arr {
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: 0.3s var(--ease);
}

.ind a:hover .arr {
  opacity: 1;
  transform: none;
}

/* Featured Industry Card */
.ind a.featured {
  background: var(--calm-grad);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

.ind a.featured h4 {
  color: #ffffff;
}

.ind a.featured p {
  color: rgba(255, 255, 255, 0.85);
}

.ind a.featured .ico {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

@media (max-width: 980px) {
  .ind { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ind a:nth-child(4n) { border-right: 1px solid var(--line); }
  .ind a:nth-child(2n) { border-right: none; }
  .ind a:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .ind a:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 520px) {
  .ind { grid-template-columns: 1fr; }
  .ind a { border-right: none !important; }
  .ind a:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .ind a:last-child { border-bottom: none; }
}

/* ==========================================================================
   WHY NOUVELTECH // PROTOCOL, STATS & TIMELINE
   ========================================================================== */
.why {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
}

.why .sticky {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.credentials {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

.cred-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
}

.cred-badge .icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex: none;
}

.cred-badge .icon svg {
  width: 18px;
  height: 18px;
}

.cred-badge b {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.cred-badge small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.proto {
  display: flex;
  flex-direction: column;
}

.prow {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 20px;
  padding: 30px 0;
}

.prow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--line-2);
}

.prow h3 {
  font-size: clamp(26px, 2.8vw, 36px);
  letter-spacing: -0.03em;
}

.prow p {
  color: var(--muted);
  font-size: 15px;
  margin: 10px 0 0;
  max-width: 52ch;
}

.prow .seal {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  transform: rotate(45deg);
  margin-top: 4px;
  margin-right: 12px;
}

.prow .seal svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
  transform: rotate(-45deg);
}

/* Statistics Grid */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  margin-top: clamp(36px, 4.5vw, 60px);
  overflow: hidden;
}

.stat {
  position: relative;
  padding: 28px 24px 26px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: none;
}

.stat .n {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font: 600 clamp(38px, 4.4vw, 56px)/1 var(--font-display);
  letter-spacing: -0.04em;
  color: var(--fg);
}

.stat .n small {
  font-size: 0.5em;
  color: var(--brand);
}

.stat p {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 980px) {
  .why { grid-template-columns: 1fr; }
  .why .sticky { position: static; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ==========================================================================
   TESTIMONIALS & REVIEWS MASONRY
   ========================================================================== */
.reviews {
  columns: 3 320px;
  column-gap: 16px;
}

.rev {
  break-inside: avoid;
  margin: 0 0 16px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}

.rev:hover {
  border-color: var(--line-3);
  transform: translateY(-2px);
}

.rev .rh {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.rev .stars {
  display: flex;
  gap: 3px;
  color: #f59e0b;
}

.rev blockquote {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
}

.rev blockquote::before {
  content: "“";
  display: block;
  font: 600 38px/0.7 var(--font-display);
  color: var(--brand);
  margin-bottom: 8px;
}

.rev .who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-2);
}

.av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  font: 600 12px/1 var(--font-mono);
  color: var(--fg-2);
  flex: none;
}

.rev .who b {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.rev .who small {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}

/* Highlighted Testimonial */
.rev.feature {
  background: var(--calm-grad);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.rev.feature blockquote {
  color: rgba(255, 255, 255, 0.95);
  font-size: 17px;
}

.rev.feature blockquote::before {
  color: rgba(255, 255, 255, 0.7);
}

.rev.feature .who {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.rev.feature .who small {
  color: rgba(255, 255, 255, 0.75);
}

.rev.feature .av {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* ==========================================================================
   CONVERSION / ESTIMATE BUILDER SECTION
   ========================================================================== */
.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.c-left {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: clamp(32px, 4.5vw, 56px);
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}

.c-left::before {
  content: "";
  position: absolute;
  bottom: -150px;
  right: -150px;
  width: 450px;
  height: 450px;
  background: radial-gradient(closest-side, var(--glow), transparent);
  z-index: -1;
}

.c-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.c-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--fg-2);
  transition: color 0.2s;
}

.c-item:hover {
  color: var(--brand);
}

.c-item .ico {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  color: var(--brand);
  flex: none;
}

.c-item .ico svg {
  width: 16px;
  height: 16px;
}

.sla-guarantee {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: var(--r);
  margin-top: auto;
}

.sla-guarantee svg {
  width: 22px;
  height: 22px;
  color: var(--brand);
  flex: none;
}

.sla-guarantee p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--fg);
}

.c-right {
  padding: clamp(32px, 4.5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.c-form {
  display: grid;
  gap: 20px;
}

.c-form .f-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.c-form label {
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.c-form input,
.c-form select,
.c-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  color: var(--fg);
  font-size: 14.5px;
  transition: border-color 0.2s, background-color 0.2s;
}

.c-form input:focus,
.c-form select:focus,
.c-form textarea:focus {
  border-color: var(--brand);
  background: var(--card);
  outline: none;
}

.pills-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.pill-opt:hover {
  border-color: var(--line-3);
}

.pill-opt.active {
  background: var(--brand-soft);
  border-color: var(--brand-line);
  color: var(--brand);
  font-weight: 500;
}

.c-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 900px) {
  .contact-card { grid-template-columns: 1fr; }
  .c-left { border-right: none; border-bottom: 1px solid var(--line); }
  .c-form-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   FOOTER // TELEMETRY & SYSTEM MAP
   ========================================================================== */
.footer,
.f {
  border-top: 1px solid var(--line-2);
  background: var(--bg-2);
  padding-top: clamp(36px, 4.5vw, 64px);
}

.f-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line);
}

.f-brand p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 14px 0 20px;
  max-width: 34ch;
}

.f-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.f-col h4 {
  font-size: 14px;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 18px;
}

.f-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.f-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}

.f-links a:hover {
  color: var(--brand);
}

.f-socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.f-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font: 500 12px/1 var(--font-mono);
  color: var(--faint);
  letter-spacing: 0.08em;
}

.f-bot .coords {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 900px) {
  .f-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .f-grid { grid-template-columns: 1fr; }
  .f-bot { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ==========================================================================
   NAVIGATION BADGE PILL & ACTIVE PAGE INDICATOR
   ========================================================================== */
.nav-badge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3.5px 8px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
  background: #fa5506;
  color: #ffffff !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
  box-shadow: 0 1px 4px rgba(250, 85, 6, 0.35);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

html[data-theme="dark"] .nav-badge-pill {
  background: #ffb703;
  color: #18181d !important;
  text-shadow: none;
  box-shadow: 0 0 10px rgba(255, 183, 3, 0.45);
}

.nav-links a.active {
  color: var(--brand);
}

/* ==========================================================================
   INNER PAGE HERO BANNER
   ========================================================================== */
.inner-hero {
  position: relative;
  padding: calc(var(--nav-h) + 16px) 0 32px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(900px 450px at 50% 0%, var(--brand-soft) 0%, transparent 80%), var(--bg);
  overflow: hidden;
}

.inner-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px);
  background-size: 24px 24px;
  mask: radial-gradient(800px 400px at 50% 40%, #000 20%, transparent 80%);
  -webkit-mask: radial-gradient(800px 400px at 50% 40%, #000 20%, transparent 80%);
  pointer-events: none;
}

.inner-hero-in {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.inner-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 11.5px/1 var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

.inner-breadcrumb a {
  color: var(--fg-2);
  transition: color 0.2s;
}

.inner-breadcrumb a:hover {
  color: var(--brand);
}

.inner-breadcrumb .sep {
  color: var(--line-3);
}

.inner-title {
  font: 700 clamp(22px, 2.6vw, 34px)/1.2 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--fg);
}

.inner-lead {
  font: 400 clamp(15px, 1.2vw, 18px)/1.6 var(--font-body);
  color: var(--muted);
  width: 100%;
  max-width: none;
  margin: 0;
}

.inner-lead strong {
  color: var(--fg);
}

.inner-stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 1px dashed var(--line-2);
}

.inner-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 12.5px/1 var(--font-mono);
  color: var(--fg-2);
}

.inner-stat-item svg {
  width: 14px;
  height: 14px;
  color: var(--brand);
}

/* ==========================================================================
   PAGE CONTENT SECTIONS
   ========================================================================== */
.page-section {
  padding: clamp(32px, 4vw, 56px) 0;
  border-bottom: 1px solid var(--line);
}

.page-section.alt {
  background: var(--bg-2);
}

.section-head {
  width: 100%;
  max-width: none;
  margin-bottom: clamp(20px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-head .tag {
  font: 600 11.5px/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-head .tag::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--brand-cyan);
}

.section-head h2 {
  font: 700 clamp(26px, 3.2vw, 40px)/1.18 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--fg);
}

.section-head p {
  font: 400 15px/1.65 var(--font-body);
  color: var(--muted);
}

/* ==========================================================================
   PRODUCT CARDS & SPEC TILES
   ========================================================================== */
.pro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pro-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: all 0.3s var(--ease);
  position: relative;
}

.pro-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-line);
  box-shadow: 0 16px 36px -12px var(--glow);
}

.pro-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.pro-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  display: grid;
  place-items: center;
  color: var(--brand);
}

.pro-icon-box svg {
  width: 24px;
  height: 24px;
}

.pro-badge {
  font: 600 10.5px/1 var(--font-mono);
  letter-spacing: 0.08em;
  padding: 4px 8px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--fg-2);
}

.pro-title {
  font: 700 20px/1.2 var(--font-display);
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 6px;
}

.pro-subtitle {
  font: 500 13px/1.3 var(--font-mono);
  color: var(--brand);
  margin-bottom: 14px;
}

.pro-desc {
  font: 400 14px/1.6 var(--font-body);
  color: var(--muted);
  margin-bottom: 22px;
  flex-grow: 1;
}

.pro-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  padding: 14px 0;
  border-top: 1px dashed var(--line-2);
  border-bottom: 1px dashed var(--line-2);
}

.pro-feat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 400 13px/1.4 var(--font-body);
  color: var(--fg-2);
}

.pro-feat-item svg {
  width: 14px;
  height: 14px;
  color: var(--brand-cyan);
  flex-shrink: 0;
}

.pro-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 1024px) {
  .pro-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .pro-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CLIENT ACCESS PORTAL CARDS
   ========================================================================== */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portal-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: all 0.3s var(--ease);
}

.portal-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 16px 36px -12px var(--glow);
}

.portal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.portal-status-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 10.5px/1 var(--font-mono);
  letter-spacing: 0.08em;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.portal-status-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.portal-name {
  font: 700 20px/1.2 var(--font-display);
  color: var(--fg);
  margin-bottom: 6px;
}

.portal-domain {
  font: 500 12px/1 var(--font-mono);
  color: var(--muted);
  margin-bottom: 14px;
  word-break: break-all;
}

.portal-desc {
  font: 400 13.5px/1.6 var(--font-body);
  color: var(--muted);
  margin-bottom: 22px;
  flex-grow: 1;
}

@media (max-width: 1024px) {
  .portal-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .portal-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   AYA MOBILE APPLICATION PORTFOLIO
   ========================================================================== */
.aya-hero-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  padding: 6px 14px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  color: var(--brand);
  font: 600 11.5px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.aya-tri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.aya-card {
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.aya-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-cyan));
  opacity: 0;
  transition: opacity 0.3s;
}

.aya-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-line);
  box-shadow: 0 20px 40px -12px var(--glow);
}

.aya-card:hover::before {
  opacity: 1;
}

.aya-card-code {
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  margin-bottom: 8px;
}

.aya-card-title {
  font: 700 24px/1.15 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 8px;
}

.aya-card-sub {
  font: 500 13px/1.3 var(--font-mono);
  color: var(--brand);
  margin-bottom: 16px;
}

.aya-card-desc {
  font: 400 14px/1.65 var(--font-body);
  color: var(--muted);
  margin-bottom: 24px;
}

.aya-section-block {
  margin-bottom: 22px;
}

.aya-block-title {
  font: 600 12px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.aya-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.aya-bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font: 400 13.5px/1.55 var(--font-body);
  color: var(--fg-2);
}

.aya-bullet-list li svg {
  width: 15px;
  height: 15px;
  color: var(--brand-cyan);
  flex-shrink: 0;
  margin-top: 3px;
}

.aya-erp-sync-box {
  padding: 16px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  margin-top: auto;
}

.aya-erp-sync-title {
  font: 600 11.5px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.aya-erp-sync-text {
  font: 400 12.5px/1.5 var(--font-body);
  color: var(--muted);
  margin: 0;
}

@media (max-width: 1024px) {
  .aya-tri-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SERVICES TWO-AXIS ARCHITECTURE
   ========================================================================== */
.axis-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.axis-card {
  padding: 36px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  display: flex;
  flex-direction: column;
}

.axis-number {
  font: 700 12px/1 var(--font-mono);
  letter-spacing: 0.16em;
  color: var(--brand-cyan);
  margin-bottom: 10px;
}

.axis-title {
  font: 700 24px/1.2 var(--font-display);
  color: var(--fg);
  margin-bottom: 12px;
}

.axis-desc {
  font: 400 14.5px/1.65 var(--font-body);
  color: var(--muted);
  margin-bottom: 24px;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px dashed var(--line-2);
}

.stack-tag {
  font: 600 11.5px/1 var(--font-mono);
  padding: 6px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--fg-2);
  transition: all 0.2s;
}

.stack-tag:hover {
  border-color: var(--brand-line);
  color: var(--brand);
}

@media (max-width: 860px) {
  .axis-split-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   MULTI-COLUMN NAV DROPDOWN & DYNAMIC DB CONTENT NORMALIZATION (pages_02)
   ========================================================================== */
.nav-links .sub-in.sub-grid-2 {
  min-width: 520px;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
}

.db-notice {
  padding: 36px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.db-notice h3 {
  font: 700 22px/1.25 var(--font-display);
  color: var(--fg);
}

.db-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.db-notice code {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--brand-soft);
  color: var(--brand);
}

/* Normalize legacy HTML / Bootstrap / Visual Composer markup from `pages_02.Page_Text` */
.db-content {
  width: 100%;
  color: var(--fg-2);
  font-size: 15.5px;
  line-height: 1.75;
}

.db-content h1,
.db-content h2,
.db-content h3,
.db-content h4,
.db-content h5 {
  font-family: var(--font-display);
  color: var(--fg);
  margin: 1.4em 0 0.55em;
  line-height: 1.25;
}

.db-content h1:first-child,
.db-content h2:first-child,
.db-content h3:first-child {
  margin-top: 0;
}

.db-content h2 { font-size: clamp(22px, 2.4vw, 32px); }
.db-content h3 { font-size: clamp(19px, 1.9vw, 25px); }
.db-content h4 { font-size: 18px; color: var(--brand); }

.db-content p {
  margin: 0 0 1em;
  color: var(--fg-2);
}

.db-content a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.db-content a:hover {
  color: var(--brand-ink);
}

.db-content ul,
.db-content ol {
  margin: 0 0 1.25em;
  padding-left: 1.4em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.db-content li::marker {
  color: var(--brand);
}

.db-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r);
  border: 1px solid var(--line);
  margin: 16px 0;
}

.db-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.db-content th,
.db-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14.5px;
}

.db-content th {
  background: var(--bg-2);
  color: var(--fg);
  font-weight: 600;
}

/* Lightweight Bootstrap grid compatibility for legacy Page_Text rows */
.db-content .container {
  width: 100%;
  max-width: none;
  padding: 0;
}

.db-content .row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 16px 0;
}

.db-content .col-md-3,
.db-content .col-md-4,
.db-content .col-md-6,
.db-content .col-md-8,
.db-content .col-md-9,
.db-content .col-md-12,
.db-content .col-sm-6,
.db-content .col-sm-12 {
  flex: 1 1 280px;
  min-width: 0;
}

.db-content .col-md-12,
.db-content .col-sm-12 {
  flex: 1 1 100%;
}

.db-content .main_btn,
.db-content .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--btn-grad);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 600;
}
