/* ==========================================================================
   1. VARIABLES & BASE STYLES
   ========================================================================== */
:root {
  --primary: #5e81a1;
  --primary-dark: #3f6384;
  --action: #4f7394;
  --action-hover: #3f6384;
  --accent: #e89a2b;
  --accent-strong: #cf7f18;
  --accent-ink: #8a5a0f;
  --secondary: #5a626d;
  --dark: #232b33;
  --light-gray: #f4f6f8;
  --border-color: #e1e7ed;
  --primary-ink: #142c3e;
  --steel-950: #0d1e2b;
  --steel-900: #142b3c;
  --steel-100: #e6eef4;
  --steel-300: #b8cad8;
  --gradient-primary: linear-gradient(135deg, #4f7394 0%, #28465f 100%);
  --font-display: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Open Sans', 'Segoe UI', system-ui, sans-serif;
  --z-widget: 1050;
}

body {
  color: var(--secondary);
  font-family: var(--font-body);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-ink);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.012em;
  text-wrap: balance;
}

.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-display);
  letter-spacing: -.012em;
}

p {
  text-wrap: pretty;
}

.display-4 {
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.lead {
  font-weight: 400;
  line-height: 1.65;
}

.section-heading {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -.028em;
  line-height: 1.12;
  text-wrap: balance;
}

.feature-heading {
  color: var(--primary-ink);
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.2;
  text-wrap: balance;
}

.btn {
  border-radius: 2px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .015em;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: .3s;
}

a:hover {
  color: var(--action-hover);
}

#main-content:focus {
  outline: none;
}

/* ==========================================================================
   2. UTILITIES & BUTTONS
   ========================================================================== */
.bg-primary {
  color: #fff;
  background: var(--gradient-primary) !important;
}

.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary h5,
.bg-primary h6 {
  color: #fff;
}

.eyebrow-label {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .9rem;
  color: var(--primary-ink);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow-label::before {
  content: "";
  flex: 0 0 auto;
  width: 1.5rem;
  height: 2px;
  background: var(--accent);
}

.text-primary {
  color: var(--primary) !important;
}

.bg-light {
  background-color: var(--light-gray) !important;
}

.btn-primary {
  --bs-btn-focus-shadow-rgb: 79, 115, 148;
  color: #fff;
  background: var(--action);
  border-color: var(--action);
  font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  color: #fff;
  background: var(--action-hover);
  border-color: var(--action-hover);
}

.btn-outline-primary {
  --bs-btn-focus-shadow-rgb: 79, 115, 148;
  color: var(--action);
  background: transparent;
  border-color: var(--action);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  color: #fff;
  background: var(--action);
  border-color: var(--action);
}

.btn-light {
  --bs-btn-focus-shadow-rgb: 20, 44, 62;
  color: var(--primary-ink);
  background: #fff;
  border-color: #fff;
}

.btn-light:hover,
.btn-light:focus,
.btn-light:active {
  color: var(--primary-ink);
  background: var(--light-gray);
  border-color: var(--border-color);
}

/* ==========================================================================
   3. NAVIGATION
   ========================================================================== */
.navbar {
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(20, 44, 62, .04);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding-top: .35rem;
  padding-bottom: .35rem;
}

.navbar-brand-logo {
  display: block;
  width: 48px;
  height: auto;
  flex: 0 0 auto;
  background: #fff;
  padding: 2px;
  border-radius: 2px;
}

.navbar-brand-name {
  color: var(--primary-ink);
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

.navbar-toggler {
  border-radius: 2px;
}

.navbar-light .navbar-nav .nav-link {
  color: var(--secondary);
  text-transform: uppercase;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .04em;
  padding: 10px 7px;
  margin: 10px 0;
  font-family: var(--font-display);
  white-space: nowrap;
  border-top: 3px solid transparent;
  transition: all 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
  color: var(--dark);
  border-top: 3px solid var(--accent);
  padding-top: 7px;
}

.navbar-light .navbar-nav .nav-link.active {
  color: var(--dark);
  border-top-color: var(--accent);
}

/* ==========================================================================
   4. SECTIONS & HERO CAROUSEL
   ========================================================================== */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0 0 .4rem;
  color: #fff;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .55);
  border-radius: 0;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .09em;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
  text-transform: uppercase;
}

.hero-eyebrow i {
  color: #a9c6dd;
}

.carousel-item {
  height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.carousel-item .display-4 {
  font-size: clamp(2.1rem, 4.2vw, 3rem);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.08;
}

.hero-slide-one {
  background-image: url('./images/2019-06-op-0slide0.jpg');
}

.hero-slide-two {
  background-image: url('./images/2019-06-op-0slide1.jpg');
}

.carousel-item h1,
.carousel-item h2,
.carousel-item .lead {
  text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  pointer-events: none;
  z-index: 1;
}

.hero-section .carousel .container {
  position: relative;
  z-index: 2;
}

.intro-engineering {
  background: #fff;
}

.intro-title {
  max-width: 700px;
  margin: 0 0 1.25rem;
  color: var(--primary-ink);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -.028em;
  line-height: 1.12;
}

.intro-lead {
  max-width: 680px;
  margin-bottom: 1rem;
  color: var(--secondary);
  font-size: 1.12rem;
  line-height: 1.7;
}

.intro-copy {
  max-width: 680px;
  margin-bottom: 1.5rem;
  color: var(--secondary);
  line-height: 1.75;
}

.intro-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding-bottom: .35rem;
  color: var(--primary-ink);
  border-bottom: 2px solid var(--accent);
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
}

.intro-link i {
  font-size: .8rem;
  transition: transform .2s ease;
}

.intro-link:hover,
.intro-link:focus-visible {
  color: var(--primary-ink);
  border-bottom-color: var(--primary-dark);
}

.intro-link:hover i,
.intro-link:focus-visible i {
  transform: translateX(3px);
}

.intro-snapshot {
  padding: 1.5rem;
  overflow: hidden;
  color: var(--secondary);
  background-color: #f4f7fa;
  background-image: radial-gradient(circle at 100% 0%, rgba(94, 129, 161, .12), transparent 18rem);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--accent);
  border-radius: .4rem;
  box-shadow: 0 16px 34px rgba(20, 44, 62, .08);
}

.intro-snapshot-label {
  margin-bottom: 1.15rem;
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.intro-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--border-color);
}

.intro-snapshot-item {
  padding: 1.1rem .9rem .95rem 0;
}

.intro-snapshot-item:nth-child(odd) {
  padding-right: 1.1rem;
  border-right: 1px solid var(--border-color);
}

.intro-snapshot-item:nth-child(even) {
  padding-left: 1.1rem;
}

.intro-snapshot-item:nth-child(n + 3) {
  border-top: 1px solid var(--border-color);
}

.intro-snapshot dt {
  margin: 0;
  color: var(--primary-ink);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  line-height: 1.1;
}

.intro-snapshot dd {
  margin: .45rem 0 0;
  color: var(--secondary);
  font-size: .82rem;
  line-height: 1.45;
}

.partner-section {
  background: #fff;
  border-top: 1px solid var(--border-color);
}

.partner-title {
  max-width: 760px;
  margin: 0;
  color: var(--primary-ink);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.7vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.16;
}

.partner-copy {
  max-width: 540px;
  color: var(--secondary);
  line-height: 1.7;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 2.5rem 0 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  background: var(--border-color);
  border: 1px solid var(--border-color);
}

.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 104px;
  padding: 1.25rem;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.partner-item:not(.partner-item--note):hover {
  background: #f7f9fb;
}

.partner-logo {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 44px;
  object-fit: contain;
  filter: grayscale(1);
  transition: filter .2s ease;
}

.partner-item:hover .partner-logo {
  filter: none;
}

.partner-item--note {
  align-items: flex-end;
  justify-content: flex-start;
  background: var(--steel-900);
  box-shadow: inset 3px 0 0 var(--primary);
}

.partner-item--note span {
  max-width: 180px;
  color: #fff;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.45;
}

.comparison-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(20, 44, 62, .06);
}

.comparison-wrap:focus-visible {
  outline: 3px solid var(--primary-dark);
  outline-offset: 3px;
}

.comparison-table {
  min-width: 820px;
}

.comparison-table thead th {
  padding: 1rem;
  color: #fff;
  background: var(--primary-ink);
  border: 0;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.comparison-table thead th:last-child {
  color: var(--primary-ink);
  background: var(--accent);
}

.comparison-table tbody th,
.comparison-table tbody td {
  padding: .9rem 1rem;
  border: 0;
  border-top: 1px solid var(--border-color);
  vertical-align: top;
}

.comparison-table tbody th {
  width: 22%;
  color: var(--primary-ink);
  background: #f6f8fa;
  font-weight: 700;
}

.comparison-table tbody td {
  color: var(--secondary);
  background: #fff;
}

.comparison-table tbody td:last-child {
  color: var(--primary-ink);
  background: #eef3f7;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   CORE TECHNOLOGY (Vgrajena varnost in prilagodljivost)
   -------------------------------------------------------------------------- */
.core-tech-section {
  padding: 4.25rem 0;
  background-color: #f4f7fa;
  background-image: radial-gradient(circle at 92% 8%, rgba(94, 129, 161, .1), transparent 22rem);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.core-tech-header {
  margin-bottom: 1.75rem;
}

.core-tech-header h2 {
  margin-bottom: 0;
}

.core-tech-lead {
  max-width: 34rem;
  margin: 0;
  color: var(--secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.core-tech-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #d9e3eb;
}

.core-tech-item {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.75rem 2.5rem 1.75rem 0;
  border-bottom: 1px solid #d9e3eb;
}

.core-tech-item:nth-child(odd) {
  border-right: 1px solid #d9e3eb;
}

.core-tech-item:nth-child(even) {
  padding-right: 0;
  padding-left: 2.5rem;
}

.core-tech-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  color: var(--accent-strong);
  background: #fff;
  border: 1px solid #d6e1ea;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(20, 44, 62, .04);
}

.core-tech-icon svg {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
}

.core-tech-item h3 {
  margin: 0 0 .4rem;
  color: var(--primary-ink);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.35;
}

.core-tech-item p {
  margin: 0;
  color: var(--secondary);
  font-size: .95rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   CAPABILITY INDEX (Kaj vam ponuja Optima Prevent)
   -------------------------------------------------------------------------- */
.capabilities-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--primary);
}

.capabilities-lead {
  max-width: 34rem;
  margin: 0;
  color: var(--secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.capability {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  column-gap: clamp(1.5rem, 3vw, 3rem);
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.capability-index {
  display: flex;
  align-self: start;
  align-items: center;
  gap: .6rem;
  margin: 0;
  color: var(--primary-ink);
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .1em;
  line-height: 1;
}

.capability-index::before {
  display: block;
  flex: 0 0 auto;
  width: 1.5rem;
  height: 2px;
  background: var(--accent);
  content: "";
}

.capability-body {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.capability-kicker {
  margin: 0 0 .55rem;
  color: var(--secondary);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.capability-title {
  margin: 0 0 .85rem;
  color: var(--primary-ink);
  font-size: clamp(1.3rem, 1.65vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.25;
  text-wrap: balance;
}

.capability-copy {
  max-width: 44ch;
  margin: 0;
  color: var(--secondary);
  line-height: 1.7;
}

.capability-points {
  margin: .1rem 0 0;
}

.capability-point + .capability-point {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-color);
}

.capability-point dt {
  margin-bottom: .3rem;
  color: var(--primary-ink);
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.4;
}

.capability-point dd {
  margin: 0;
  color: var(--secondary);
  font-size: .94rem;
  line-height: 1.68;
}

.modules-section {
  color: var(--secondary);
  background-color: #f4f7fa;
  background-image:
    radial-gradient(circle at 10% 0%, rgba(94, 129, 161, .10), transparent 34rem),
    linear-gradient(180deg, #f8fafc 0%, #eef3f7 100%);
  border-top: 3px solid var(--primary);
  border-bottom: 1px solid var(--border-color);
}

.modules-kicker {
  display: inline-block;
  margin-bottom: .8rem;
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.modules-section h2,
.modules-section h3 {
  color: var(--primary-ink);
}

.modules-intro {
  max-width: 760px;
  margin: 1rem auto 0;
  color: var(--secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.modules-grid {
  counter-reset: module-card;
}

#op-feat .feature-card {
  position: relative;
  height: 100%;
  padding: 1.5rem 1.25rem 1.75rem;
  border-top: 1px solid #d9e3eb;
  transition: background-color .2s ease, border-color .2s ease;
  counter-increment: module-card;
}

#op-feat .feature-card::before {
  content: counter(module-card, decimal-leading-zero);
  position: absolute;
  top: 1.35rem;
  right: 1.25rem;
  color: var(--accent-ink);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  opacity: .9;
}

#op-feat .feature-card > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1.25rem !important;
  color: var(--primary-dark);
  background: #fff;
  border: 1px solid #d6e1ea;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(20, 44, 62, .04);
}

#op-feat .feature-card p {
  margin-bottom: 0;
  color: var(--secondary);
  line-height: 1.65;
}

#op-feat .feature-card:hover {
  background: #fff;
  border-top-color: var(--accent);
}

#op-feat h3 {
  margin-bottom: 1rem;
}

.faq-section {
  background-color: #fff;
  background-image: radial-gradient(circle at 8% 12%, rgba(94, 129, 161, .06), transparent 28rem);
}

.faq-intro h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.12;
}

.faq-intro .lead {
  font-size: 1.05rem;
  line-height: 1.65;
}

.faq-help {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #eef3f7;
  border: 1px solid #d6e1ea;
  border-radius: 1rem;
}

.faq-help h3 {
  margin-bottom: .65rem;
  color: var(--primary-ink);
}

.faq-help p {
  color: var(--secondary);
  font-size: .95rem;
  line-height: 1.6;
}

.faq-section .accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-width: 0;
  --bs-accordion-border-radius: 0;
}

.faq-section .accordion-item,
.faq-section .accordion-item:first-of-type,
.faq-section .accordion-item:last-of-type {
  margin-bottom: .75rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(20, 44, 62, .05);
}

.faq-section .accordion-item:last-child {
  margin-bottom: 0;
}

.faq-section .accordion-button {
  padding: 1.1rem 1.25rem;
  color: var(--primary-ink);
  background: #fff;
  border-radius: 1rem;
  box-shadow: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
}

.faq-section .accordion-button:not(.collapsed) {
  color: #fff;
  background: var(--gradient-primary);
  box-shadow: inset 0 -1px 0 rgba(20, 44, 62, .2);
}

.faq-section .accordion-button.collapsed:hover {
  background: #f7f9fb;
}

.faq-section .accordion-button:focus {
  z-index: 3;
  border-color: rgba(63, 99, 132, .5);
  box-shadow: 0 0 0 .2rem rgba(63, 99, 132, .18);
}

.faq-section .accordion-button::after {
  content: "+";
  display: grid;
  flex: 0 0 1.75rem;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-left: 1rem;
  color: var(--primary-ink);
  background-color: transparent;
  background-image: none;
  border: 1px solid rgba(20, 44, 62, .18);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  transform: none;
  transition: transform .2s ease, background-color .2s ease;
}

.faq-section .accordion-button:not(.collapsed)::after {
  background-color: #fff;
  transform: rotate(45deg);
}

.faq-section .accordion-body {
  padding: 1.05rem 1.25rem 1.35rem;
  color: var(--secondary);
  background: #fff;
  line-height: 1.7;
}

/* ==========================================================================
   5. FORMS & MODALS
   ========================================================================== */
.contact-form .form-control {
  padding: .75rem 1rem;
  border-radius: .25rem;
  background: #fff;
  border: 1px solid #d0d7de;
}

.contact-form .form-control:focus {
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 .2rem rgba(63, 99, 132, .15);
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.modal.modal-right .modal-dialog {
  position: fixed;
  margin: 0;
  right: 0;
  top: 0;
  height: 100dvh;
  transform: none !important;
}

.modal.modal-right .modal-content {
  height: 100dvh;
  border-radius: 0;
  border-left: 1px solid rgba(0, 0, 0, .1);
}

.modal.modal-right .modal-header {
  background: #fff;
  color: inherit;
  border-bottom: 1px solid #e9ecef;
}

.modal.modal-right .modal-body {
  background: #f7f9fc;
  overflow-y: auto;
}

/* ==========================================================================
   6. AI ASSISTANT WIDGET
   ========================================================================== */
.ai-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: var(--z-widget);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.ai-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--accent);
  background-image: linear-gradient(135deg, #f2ab42 0%, var(--accent) 52%, #dd8a17 100%);
  color: var(--primary-ink);
  border: none;
  box-shadow: 0 8px 20px rgba(232, 154, 43, .3);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-fab:hover {
  transform: translateY(-1px);
  background-color: var(--accent-strong);
  background-image: none;
}

#aiChatBox {
  width: 350px;
  height: min(500px, calc(100dvh - 110px));
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  border: 1px solid #e9ecef;
}

.chat-box-hidden {
  visibility: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  position: absolute;
}

.chat-box-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  position: relative;
}

.chat-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-ink) 100%);
  color: #fff;
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.chat-body {
  flex-grow: 1;
  padding: 15px;
  overflow-y: auto;
  background: #f6f8fa;
}

.chat-footer {
  padding: 12px;
  background: #fff;
  border-top: 1px solid #e9ecef;
}

/* Chat identity and disclaimer */
.chat-identity {
  min-width: 0;
}

.chat-subtitle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(33, 37, 41, 0.72);
}

.chat-status-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1f9d55;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}

.chat-disclaimer {
  font-size: 0.66rem;
  line-height: 1.35;
  color: #6c757d;
  text-align: center;
}

.chat-disclaimer a {
  color: inherit;
  text-decoration: underline;
}

/* Chat Bubbles */
.user-bubble {
  background-color: var(--primary-dark);
  color: #fff;
  border-radius: 15px 15px 0 15px;
  display: inline-block;
  font-size: 0.9rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.ai-bubble {
  background-color: #fff;
  color: #333;
  border: 1px solid #e9ecef;
  border-radius: 15px 15px 15px 0;
  display: inline-block;
  font-size: 0.9rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Keep the line breaks of step-by-step answers visible */
.message-content {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* AI Typing Indicator */
.typing-indicator { display: inline-block; }
.typing-dots { display: inline-block; }
.typing-dots span {
  animation: typing 1.4s infinite;
  opacity: 0.6;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { opacity: 0.6; }
  30% { opacity: 1; }
}

/* Chat Custom Scrollbar */
.chat-body::-webkit-scrollbar { width: 6px; }
.chat-body::-webkit-scrollbar-track { background: transparent; }
.chat-body::-webkit-scrollbar-thumb { background: #cbd3da; border-radius: 10px; }
.chat-body::-webkit-scrollbar-thumb:hover { background: #aeb7c0; }

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
footer.bg-dark h2 {
  color: #d8dde3 !important;
}

footer.bg-dark .text-secondary {
  color: #c2c8cf !important;
}

footer.bg-dark a.text-secondary:hover,
footer.bg-dark a.text-secondary:focus-visible {
  color: #fff !important;
}

.footer-privacy-link {
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: .15em;
}

.footer-privacy-link:hover,
.footer-privacy-link:focus-visible {
  color: #a9c6dd !important;
}

/* ==========================================================================
   8. MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */
@media (max-width: 1399.98px) {
  .navbar-brand-name {
    display: none;
  }
}

@media (min-width: 992px) {
  .modal.modal-right .modal-dialog { 
    max-width: 50vw; 
    width: 50vw; 
  }

  .faq-intro {
    position: sticky;
    top: 100px;
  }
}

@media (max-width: 767.98px) {
  #op-feat .feature-card {
    padding: 1.25rem 1rem 1.5rem;
  }

  #op-feat .feature-card > i {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem !important;
  }

  #op-feat .feature-card::before {
    top: 1.15rem;
    right: 1rem;
  }

  .capabilities-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }

  .core-tech-header {
    margin-bottom: 1.25rem;
  }

  .core-tech-item {
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: 1rem;
  }

  .core-tech-icon {
    width: 2.75rem;
    height: 2.75rem;
  }

  .capability {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1rem;
    padding: 2rem 0;
  }

  .capability-index::before {
    width: 1.25rem;
  }
}

@media (max-width: 991.98px) {
  .modal.modal-right .modal-dialog {
    width: 100vw;
    max-width: 100vw;
  }

  .capability-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .capability-copy {
    max-width: 60ch;
  }

  .core-tech-section {
    padding: 3.25rem 0;
  }

  .core-tech-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .core-tech-item,
  .core-tech-item:nth-child(even) {
    padding: 1.5rem 0;
  }

  .core-tech-item:nth-child(odd) {
    border-right: 0;
  }
}

@media (max-width: 768px) {
  .carousel-item {
    height: 440px;
  }
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .partner-item {
    min-height: 88px;
    padding: .9rem;
  }

  .partner-logo {
    max-height: 36px;
  }

  .intro-snapshot {
    padding: 1.25rem;
  }

  /* Make AI chat fit better on mobile screens */
  #aiChatBox {
    width: calc(100vw - 50px);
    height: min(450px, calc(100dvh - 110px));
  }
}

@media (max-width: 480px) {
  .carousel-item {
    height: 600px;
  }
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

@media (min-width: 576px) {
  .partner-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .partner-item--note {
    grid-column: 1 / -1;
    align-items: center;
    min-height: 72px;
  }

  .partner-item--note span {
    max-width: none;
  }
}

@media (min-width: 992px) {
  .partner-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}