/* ============================================================
   RIBUS GROUP INC — digital.ribusinc.com
   Global Stylesheet
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Root Variables ── */
:root {
  --navy-900: #040C1E;
  --navy-800: #091A3E;
  --navy-700: #0D2251;
  --navy-600: #1E2D4A;
  --navy-500: #2A3F61;
  --blue-600: #0EA5E9;
  --blue-700: #0B7EC4;
  --blue-800: #0B55A0;
  --cyan-400: #22D3EE;
  --cyan-300: #67E8F9;
  --steel: #64748B;
  --silver: #94A3B8;
  --light: #CBD5E1;
  --off-white: #F0F6FF;
  --white: #FFFFFF;
  --text-dark: #040C1E;
  --text-mid: #334155;
  --text-muted: #64748B;
  --text-on-dark: #FFFFFF;
  --text-on-dark-sec: #8BA7C5;
  --gradient-blue: linear-gradient(135deg, #0EA5E9 0%, #0B55A0 100%);
  --gradient-navy: linear-gradient(135deg, #040C1E 0%, #091A3E 100%);
  --gradient-hero: linear-gradient(135deg, #030A18 0%, #071535 40%, #040C1E 100%);
  --gradient-cta: linear-gradient(135deg, #0C2D5A 0%, #061228 100%);
  --container: 1240px;
  --header-h: 96px;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;
  --radius-xl: 24px;
  --t: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: all 0.15s ease;
  --shadow-sm: 0 1px 4px rgba(4,12,30,0.07);
  --shadow-md: 0 4px 24px rgba(4,12,30,0.10);
  --shadow-lg: 0 10px 48px rgba(4,12,30,0.16);
  --shadow-blue: 0 6px 28px rgba(14,165,233,0.30);
  --shadow-header: 0 2px 24px rgba(4,12,30,0.09);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
h1, h2, h3, h4, h5 { line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(34px, 5vw, 58px); }
h2 { font-size: clamp(26px, 4vw, 42px); }
h3 { font-size: clamp(20px, 3vw, 28px); }
h4 { font-size: clamp(17px, 2.5vw, 21px); font-weight: 600; }
p { line-height: 1.75; }

/* ── Skip Link ── */
.skip-link {
  position: absolute; top: -40px; left: 8px; padding: 6px 14px;
  background: var(--blue-600); color: #fff; border-radius: 4px;
  font-size: 14px; font-weight: 600; z-index: 9999; transition: var(--t-fast);
}
.skip-link:focus { top: 8px; }

/* ── Container ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; border-radius: var(--radius-m);
  padding: 14px 28px; transition: var(--t); cursor: pointer;
  white-space: nowrap; line-height: 1;
}
.btn-primary {
  background: var(--gradient-blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(14,165,233,0.40); }
.btn-secondary {
  background: transparent;
  color: var(--cyan-400);
  border: 1.5px solid rgba(34,211,238,0.45);
}
.btn-secondary:hover { background: rgba(34,211,238,0.08); border-color: var(--cyan-400); }
.btn-white {
  background: #fff;
  color: var(--navy-900);
  box-shadow: var(--shadow-md);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline-dark {
  background: transparent;
  color: var(--navy-900);
  border: 1.5px solid rgba(4,12,30,0.2);
}
.btn-outline-dark:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn-sm { font-size: 13px; padding: 10px 20px; }
.btn-lg { font-size: 16px; padding: 16px 36px; }
.btn-icon { display: inline-flex; align-items: center; gap: 6px; }
.btn-icon svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Section Base ── */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-dark { background: var(--navy-900); color: #fff; }
.section-navy { background: var(--navy-800); color: #fff; }
.section-alt { background: var(--off-white); }
.section-white { background: #fff; }

.section-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cyan-400); margin-bottom: 14px;
}
.section-eyebrow-dark { color: var(--blue-600); }
.section-title { margin-bottom: 18px; }
.section-title-light { color: #fff; }
.section-sub {
  font-size: 17px; color: var(--text-muted); line-height: 1.7;
  max-width: 640px;
}
.section-sub-light { color: var(--text-on-dark-sec); }
.section-header { margin-bottom: 56px; }
.section-header-center { text-align: center; }
.section-header-center .section-sub { margin: 0 auto; }

/* ── Eyebrow line accent ── */
.eyebrow-line {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.eyebrow-line::before {
  content: ''; display: block; width: 32px; height: 2px;
  background: var(--gradient-blue); border-radius: 2px; flex-shrink: 0;
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: #fff;
  box-shadow: var(--shadow-header);
  height: var(--header-h);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 4px 32px rgba(4,12,30,0.13); }

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.site-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  gap: 3px;
  text-decoration: none;
}
.logo-badge {
  display: flex;
  align-items: center;
  background: var(--navy-900);
  border-radius: var(--radius-m);
  padding: 6px 14px 6px 8px;
  box-shadow: 0 3px 16px rgba(4,12,30,0.18);
}
.logo-badge img {
  height: 62px;
  width: auto;
  display: block;
}
.logo-division {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--blue-600);
  padding-left: 4px;
}

/* Nav */
.site-nav { flex: 1; display: flex; justify-content: center; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 4px;
  font-size: 14.5px; font-weight: 600; color: var(--text-dark);
  padding: 8px 14px; border-radius: var(--radius-s);
  transition: var(--t-fast); cursor: pointer; white-space: nowrap;
}
.nav-link:hover, .nav-item.is-open > .nav-link { color: var(--blue-600); }
.nav-arrow {
  display: inline-block;
  font-size: 10px;
  transition: transform 0.2s ease;
  color: var(--steel);
}
.nav-item.is-open .nav-arrow { transform: rotate(180deg); }

/* Dropdown Panels */
.dropdown-panel, .dropdown-mega {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid rgba(14,165,233,0.15);
  border-radius: var(--radius-l);
  box-shadow: 0 16px 56px rgba(4,12,30,0.14);
  padding: 10px;
  min-width: 230px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 800;
}
.nav-item.is-open .dropdown-panel,
.nav-item.is-open .dropdown-mega {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-panel a, .dropdown-panel li {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-mid);
  padding: 8px 12px;
  border-radius: var(--radius-s);
  transition: var(--t-fast);
  white-space: nowrap;
}
.dropdown-panel a:hover { background: var(--off-white); color: var(--blue-600); }
.dropdown-panel .dd-featured {
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(14,165,233,0.12);
  padding-bottom: 10px;
}
.dropdown-panel .dd-featured a {
  font-size: 14px; font-weight: 700; color: var(--navy-900); display: block; padding: 0;
}
.dropdown-panel .dd-featured a:hover { color: var(--blue-600); background: none; }
.dropdown-panel .dd-featured span {
  font-size: 11px; color: var(--steel); display: block; padding: 2px 0 0;
}

/* Mega dropdown */
.dropdown-mega {
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  display: flex;
  gap: 0;
  min-width: 620px;
  padding: 18px;
}
.nav-item.is-open .dropdown-mega {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mega-col { flex: 0 0 auto; width: 200px; }
.mega-col-wide { flex: 1; }
.mega-divider {
  width: 1px;
  background: rgba(14,165,233,0.12);
  margin: 0 16px;
  flex-shrink: 0;
}
.mega-heading {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue-600); margin-bottom: 10px;
  padding: 0 10px;
}
.mega-col ul, .mega-col-wide ul { display: flex; flex-direction: column; gap: 1px; }
.mega-col ul li a, .mega-col-wide ul li a {
  display: block; font-size: 13px; font-weight: 500; color: var(--text-mid);
  padding: 7px 10px; border-radius: var(--radius-s); transition: var(--t-fast);
}
.mega-col ul li a:hover, .mega-col-wide ul li a:hover {
  background: var(--off-white); color: var(--blue-600);
}
.mega-two-col { display: grid !important; grid-template-columns: 1fr 1fr; gap: 1px !important; }

/* Header CTA */
.header-cta { font-size: 13.5px; padding: 11px 22px; flex-shrink: 0; }

/* Mobile toggle */
.mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 36px; height: 36px; justify-content: center;
  align-items: center; border-radius: var(--radius-s); flex-shrink: 0;
}
.mobile-toggle span {
  width: 22px; height: 2px; background: var(--navy-900);
  border-radius: 2px; transition: var(--t);
}
.mobile-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  background: #fff;
  overflow-y: auto;
  padding: 20px 28px 40px;
  z-index: 850;
  border-top: 1px solid rgba(14,165,233,0.12);
}
.mobile-nav.is-open { display: block; }
.mobile-nav-item { border-bottom: 1px solid rgba(14,165,233,0.1); }
.mobile-nav-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; font-size: 16px; font-weight: 600; color: var(--navy-900);
}
.mobile-nav-link .arrow { transition: transform 0.2s; font-size: 12px; }
.mobile-nav-item.is-open .mobile-nav-link .arrow { transform: rotate(180deg); }
.mobile-sub {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  padding-left: 12px;
}
.mobile-nav-item.is-open .mobile-sub { max-height: 600px; }
.mobile-sub a, .mobile-sub-heading {
  display: block; padding: 9px 0;
  font-size: 14px; font-weight: 500; color: var(--text-mid);
  border-bottom: 1px solid rgba(14,165,233,0.06);
}
.mobile-sub a:last-child { border-bottom: none; }
.mobile-sub a:hover { color: var(--blue-600); }
.mobile-sub-heading {
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blue-600);
  padding: 12px 0 6px; border-bottom: none;
}
.mobile-cta { margin-top: 24px; }
.mobile-cta .btn { width: 100%; justify-content: center; }

/* ── HERO ── */
.hero {
  position: relative;
  background: var(--gradient-hero);
  color: #fff;
  overflow: hidden;
  padding: 110px 0 100px;
  min-height: 700px;
  display: flex; align-items: center;
}
.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.8;
}
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(14,165,233,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  position: absolute; z-index: 1;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.hero-glow-1 {
  width: 600px; height: 600px;
  background: rgba(14,165,233,0.12);
  top: -200px; right: -100px;
}
.hero-glow-2 {
  width: 400px; height: 400px;
  background: rgba(34,211,238,0.08);
  bottom: -100px; left: 10%;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
  width: 100%;
}
.hero-eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--cyan-400); margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 28px; height: 2px;
  background: var(--cyan-400); border-radius: 2px;
}
.hero-h1 { margin-bottom: 22px; }
.hero-h1 em { font-style: normal; color: var(--cyan-400); }
.hero-sub {
  font-size: 17px; color: var(--text-on-dark-sec); line-height: 1.75;
  margin-bottom: 36px; max-width: 580px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 36px; margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 36px;
  flex-wrap: wrap;
}
.hero-stat-num {
  font-size: 32px; font-weight: 800;
  background: var(--gradient-blue); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-stat-label { font-size: 13px; color: var(--text-on-dark-sec); margin-top: 2px; }

/* Hero visual panel */
.hero-visual {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(34,211,238,0.18);
  border-radius: var(--radius-xl);
  padding: 28px;
  backdrop-filter: blur(12px);
}
.hero-visual-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--cyan-400); margin-bottom: 16px;
}
.mini-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-m);
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 14px;
  transition: var(--t);
}
.mini-card:last-child { margin-bottom: 0; }
.mini-card:hover { background: rgba(14,165,233,0.12); border-color: rgba(34,211,238,0.3); }
.mini-card-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: rgba(14,165,233,0.18);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.mini-card-icon svg { width: 18px; height: 18px; stroke: var(--cyan-400); fill: none; stroke-width: 1.5; }
.mini-card-title { font-size: 13px; font-weight: 600; color: #fff; }
.mini-card-sub { font-size: 11px; color: var(--text-on-dark-sec); margin-top: 2px; }
.mini-status {
  margin-left: auto; flex-shrink: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 8px var(--cyan-400);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: var(--gradient-hero);
  color: #fff;
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,0.4), transparent);
}
.page-hero-inner { position: relative; z-index: 2; }
.page-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(14,165,233,0.15); border: 1px solid rgba(34,211,238,0.3);
  color: var(--cyan-400); font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 20px;
}
.page-hero-badge::before {
  content: ''; display: block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--cyan-400);
}
.page-hero h1 { margin-bottom: 18px; }
.page-hero .sub {
  font-size: 17px; color: var(--text-on-dark-sec); max-width: 620px; line-height: 1.75;
}

/* ── Services Grid (Homepage) ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.service-card {
  background: #fff;
  border: 1px solid rgba(14,165,233,0.14);
  border-radius: var(--radius-l);
  padding: 28px 24px;
  position: relative;
  transition: var(--t);
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-blue);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}
.service-card:hover { border-color: rgba(14,165,233,0.35); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-card:hover::before { transform: scaleX(1); }
.svc-num {
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em;
  color: var(--blue-600); margin-bottom: 14px;
}
.svc-icon {
  width: 44px; height: 44px; border-radius: var(--radius-m);
  background: var(--off-white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  transition: var(--t);
}
.svc-icon svg { width: 22px; height: 22px; stroke: var(--blue-600); fill: none; stroke-width: 1.5; }
.service-card:hover .svc-icon { background: rgba(14,165,233,0.12); }
.svc-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--navy-900); }
.svc-desc { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.svc-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--blue-600);
  margin-top: 14px; transition: var(--t-fast);
}
.svc-link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.svc-link:hover { gap: 10px; }

/* ── Comparison Section ── */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.comp-col {
  border-radius: var(--radius-l);
  padding: 32px 28px;
}
.comp-col-trad {
  background: #F8FAFF;
  border: 1px solid rgba(100,116,139,0.15);
}
.comp-col-ribus {
  background: var(--navy-900);
  border: 1px solid rgba(34,211,238,0.22);
  position: relative;
  overflow: hidden;
}
.comp-col-ribus::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-400));
}
.comp-label {
  font-size: 11px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; display: block; margin-bottom: 20px;
}
.comp-label-trad { color: var(--steel); }
.comp-label-ribus { color: var(--cyan-400); }
.comp-badge {
  position: absolute; top: 14px; right: 14px;
  background: rgba(14,165,233,0.18); border: 1px solid rgba(34,211,238,0.3);
  color: var(--cyan-400); font-size: 10px; font-weight: 800;
  padding: 3px 10px; border-radius: 20px; letter-spacing: 0.06em;
}
.comp-row {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 0; border-bottom: 1px solid rgba(100,116,139,0.1);
  font-size: 14px;
}
.comp-col-ribus .comp-row { border-color: rgba(255,255,255,0.07); }
.comp-row:last-child { border-bottom: none; padding-bottom: 0; }
.comp-x { color: #E24B4A; font-weight: 800; flex-shrink: 0; }
.comp-check { color: var(--cyan-400); font-weight: 800; flex-shrink: 0; }
.comp-text-bad { color: var(--steel); }
.comp-text-good { color: var(--text-on-dark-sec); }

/* ── Operational Engine Diagram ── */
.oe-platform {
  background: var(--navy-800);
  border: 1px solid rgba(34,211,238,0.18);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.oe-platform::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan-400), var(--blue-600), transparent);
}
.oe-center {
  background: var(--gradient-blue);
  border-radius: var(--radius-l);
  padding: 24px 28px;
  text-align: center;
  margin-bottom: 24px;
  box-shadow: var(--shadow-blue);
}
.oe-center-title { font-size: 16px; font-weight: 800; color: #fff; }
.oe-center-sub { font-size: 12px; color: rgba(255,255,255,0.75); margin-top: 4px; }
.oe-nodes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.oe-node {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(34,211,238,0.14);
  border-radius: var(--radius-m);
  padding: 16px;
  text-align: center;
  transition: var(--t);
}
.oe-node:hover { background: rgba(14,165,233,0.1); border-color: rgba(34,211,238,0.35); }
.oe-node svg { width: 22px; height: 22px; stroke: var(--cyan-400); fill: none; stroke-width: 1.5; margin: 0 auto 8px; }
.oe-node-title { font-size: 12px; font-weight: 600; color: #fff; }

/* ── Service Accordion (services.html) ── */
.accordion-item {
  border: 1px solid rgba(14,165,233,0.14);
  border-radius: var(--radius-l);
  margin-bottom: 14px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.accordion-item.is-open {
  border-color: rgba(14,165,233,0.35);
  box-shadow: 0 6px 32px rgba(14,165,233,0.1);
}
.accordion-trigger {
  width: 100%;
  display: flex; align-items: center; gap: 18px;
  padding: 24px 28px;
  cursor: pointer;
  background: none;
  text-align: left;
  transition: var(--t-fast);
}
.accordion-trigger:hover { background: var(--off-white); }
.accordion-item.is-open .accordion-trigger { background: var(--off-white); }
.accordion-num {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--off-white);
  border-radius: var(--radius-s);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: var(--blue-600);
  transition: var(--t);
}
.accordion-item.is-open .accordion-num { background: var(--gradient-blue); color: #fff; }
.accordion-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--off-white);
  border-radius: var(--radius-m);
  display: flex; align-items: center; justify-content: center;
  transition: var(--t);
}
.accordion-icon svg { width: 20px; height: 20px; stroke: var(--blue-600); fill: none; stroke-width: 1.5; }
.accordion-item.is-open .accordion-icon { background: rgba(14,165,233,0.1); }
.accordion-info { flex: 1; }
.accordion-title { font-size: 17px; font-weight: 700; color: var(--navy-900); margin-bottom: 4px; }
.accordion-teaser { font-size: 13.5px; color: var(--text-muted); }
.accordion-chevron {
  width: 32px; height: 32px; flex-shrink: 0;
  border: 1.5px solid rgba(14,165,233,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--t);
}
.accordion-chevron svg { width: 14px; height: 14px; stroke: var(--steel); fill: none; stroke-width: 2; transition: transform 0.3s ease; }
.accordion-item.is-open .accordion-chevron { background: var(--blue-600); border-color: var(--blue-600); }
.accordion-item.is-open .accordion-chevron svg { stroke: #fff; transform: rotate(180deg); }
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-body {
  padding: 0 28px 32px;
  border-top: 1px solid rgba(14,165,233,0.1);
  margin-top: 0;
}
.accordion-body-inner { padding-top: 28px; }
.acc-section-label {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue-600); margin-bottom: 10px; margin-top: 22px;
}
.acc-section-label:first-child { margin-top: 0; }
.acc-description { font-size: 15px; color: var(--text-mid); line-height: 1.75; margin-bottom: 8px; }
.outcomes-list { display: flex; flex-direction: column; gap: 8px; }
.outcome-row {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: var(--text-mid);
}
.outcome-check {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px;
  background: rgba(14,165,233,0.12); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.outcome-check svg { width: 10px; height: 10px; stroke: var(--blue-600); fill: none; stroke-width: 2.5; }
.best-for-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block;
  font-size: 12px; font-weight: 500; color: var(--steel);
  background: var(--off-white); border: 1px solid rgba(14,165,233,0.15);
  padding: 5px 12px; border-radius: 20px;
}
.acc-cta { margin-top: 22px; }

/* ── Solutions ── */
.solution-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 72px 0;
  border-bottom: 1px solid rgba(14,165,233,0.1);
}
.solution-block:last-child { border-bottom: none; }
.solution-block.reverse { direction: rtl; }
.solution-block.reverse > * { direction: ltr; }
.solution-visual {
  background: var(--gradient-navy);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  display: flex; align-items: center; justify-content: center;
  min-height: 280px;
  position: relative; overflow: hidden;
}
.solution-visual::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(14,165,233,0.12) 0%, transparent 70%);
}
.sol-icon-large {
  width: 80px; height: 80px;
  background: rgba(14,165,233,0.15);
  border-radius: var(--radius-l);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
}
.sol-icon-large svg { width: 40px; height: 40px; stroke: var(--cyan-400); fill: none; stroke-width: 1.2; }
.solution-eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue-600); margin-bottom: 12px;
}
.solution-title { font-size: clamp(22px, 3.5vw, 32px); margin-bottom: 14px; }
.solution-desc { font-size: 16px; color: var(--text-muted); line-height: 1.75; margin-bottom: 22px; }
.solution-benefits { display: flex; flex-direction: column; gap: 9px; margin-bottom: 24px; }
.solution-benefit {
  display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--text-mid);
}
.solution-benefit-dot {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px;
  background: rgba(14,165,233,0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.solution-benefit-dot::before {
  content: ''; display: block; width: 7px; height: 7px;
  border-radius: 50%; background: var(--blue-600);
}

/* ── Operational Engine page ── */
.oe-components {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.oe-comp-card {
  background: var(--navy-800);
  border: 1px solid rgba(34,211,238,0.14);
  border-radius: var(--radius-l);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: var(--t);
}
.oe-comp-card:hover { border-color: rgba(34,211,238,0.35); transform: translateY(-3px); }
.oe-comp-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient-blue); transform: scaleX(0);
  transition: transform 0.3s ease; transform-origin: left;
}
.oe-comp-card:hover::after { transform: scaleX(1); }
.oe-comp-icon {
  width: 48px; height: 48px; border-radius: var(--radius-m);
  background: rgba(14,165,233,0.15);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.oe-comp-icon svg { width: 24px; height: 24px; stroke: var(--cyan-400); fill: none; stroke-width: 1.5; }
.oe-comp-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.oe-comp-desc { font-size: 14px; color: var(--text-on-dark-sec); line-height: 1.65; }

/* ── Industry Cards ── */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.industry-card {
  background: #fff;
  border: 1px solid rgba(14,165,233,0.13);
  border-radius: var(--radius-l);
  padding: 28px 24px;
  transition: var(--t);
}
.industry-card:hover { border-color: rgba(14,165,233,0.35); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ind-icon {
  width: 48px; height: 48px; border-radius: var(--radius-m);
  background: var(--off-white); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; transition: var(--t);
}
.ind-icon svg { width: 24px; height: 24px; stroke: var(--blue-600); fill: none; stroke-width: 1.5; }
.industry-card:hover .ind-icon { background: rgba(14,165,233,0.1); }
.ind-title { font-size: 17px; font-weight: 700; color: var(--navy-900); margin-bottom: 10px; }
.ind-desc { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; }
.ind-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ind-tag {
  font-size: 11px; font-weight: 500; color: var(--blue-600);
  background: var(--off-white); border: 1px solid rgba(14,165,233,0.18);
  padding: 3px 10px; border-radius: 12px;
}

/* ── About ── */
.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.value-card {
  background: #fff;
  border: 1px solid rgba(14,165,233,0.13);
  border-radius: var(--radius-l);
  padding: 28px 22px;
  text-align: center;
  transition: var(--t);
}
.value-card:hover { border-color: rgba(14,165,233,0.35); box-shadow: var(--shadow-md); }
.value-icon {
  width: 56px; height: 56px; border-radius: var(--radius-l);
  background: var(--off-white);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  transition: var(--t);
}
.value-icon svg { width: 26px; height: 26px; stroke: var(--blue-600); fill: none; stroke-width: 1.5; }
.value-card:hover .value-icon { background: rgba(14,165,233,0.1); }
.value-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--navy-900); }
.value-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── Process Timeline ── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute; top: 30px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-400));
  z-index: 0;
}
.process-step { position: relative; z-index: 1; padding: 0 16px; }
.step-num {
  width: 60px; height: 60px;
  background: var(--gradient-blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: #fff;
  margin-bottom: 18px;
  box-shadow: var(--shadow-blue);
}
.step-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.step-desc { font-size: 13px; color: var(--text-on-dark-sec); line-height: 1.6; }

/* ── CTA Section ── */
.cta-section {
  background: var(--gradient-cta);
  color: #fff;
  text-align: center;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(14,165,233,0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(34,211,238,0.06) 0%, transparent 60%);
}
.cta-inner { position: relative; z-index: 2; }
.cta-title { margin-bottom: 16px; }
.cta-sub { font-size: 17px; color: var(--text-on-dark-sec); margin-bottom: 36px; max-width: 580px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Contact Form ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-form-card {
  background: #fff;
  border: 1px solid rgba(14,165,233,0.15);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.form-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-dark); margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(14,165,233,0.2);
  border-radius: var(--radius-m);
  font-size: 14.5px; color: var(--text-dark);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%2364748B' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px;
}
.form-submit { width: 100%; justify-content: center; padding: 15px; font-size: 15px; }

.contact-info-card {
  background: var(--gradient-navy);
  border-radius: var(--radius-xl);
  padding: 40px;
  color: #fff;
}
.contact-info-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.contact-info-sub { font-size: 14px; color: var(--text-on-dark-sec); margin-bottom: 32px; }
.contact-detail {
  display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px;
}
.contact-detail svg { width: 20px; height: 20px; stroke: var(--cyan-400); fill: none; stroke-width: 1.5; flex-shrink: 0; margin-top: 2px; }
.contact-detail-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan-400); margin-bottom: 4px; }
.contact-detail-value { font-size: 14.5px; color: var(--text-on-dark-sec); line-height: 1.5; }
.contact-detail-value a { color: inherit; transition: color 0.2s; }
.contact-detail-value a:hover { color: var(--cyan-400); }

/* ── Footer ── */
.site-footer {
  background: #020810;
  color: #fff;
  padding: 72px 0 0;
  border-top: 1px solid rgba(34,211,238,0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.footer-brand-logo {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.footer-logo-badge {
  background: var(--navy-800);
  border-radius: var(--radius-m);
  padding: 5px 12px 5px 6px;
}
.footer-logo-badge img { height: 48px; width: auto; }
.footer-brand-name { font-size: 14px; font-weight: 800; letter-spacing: 0.05em; color: #fff; }
.footer-brand-div { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan-400); margin-top: 2px; }
.footer-desc { font-size: 13.5px; color: #2D4461; line-height: 1.65; margin-bottom: 16px; }
.footer-contact-item { font-size: 12.5px; color: #1D3050; margin-bottom: 4px; }
.footer-contact-item a { color: inherit; transition: color 0.2s; }
.footer-contact-item a:hover { color: var(--cyan-400); }
.footer-col-title {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--cyan-400); margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 13.5px; color: #2D4461; transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-on-dark-sec); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 12px; color: #192535; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: #192535; transition: color 0.2s; }
.footer-legal a:hover { color: var(--steel); }

/* ── Stats Bar ── */
.stats-bar {
  background: var(--navy-900);
  padding: 40px 0;
  border-top: 1px solid rgba(34,211,238,0.1);
  border-bottom: 1px solid rgba(34,211,238,0.1);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-num {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  background: var(--gradient-blue); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: var(--text-on-dark-sec); }

/* ── Why Ribus ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.why-card {
  border-radius: var(--radius-l);
  padding: 28px 24px;
  background: var(--off-white);
  border: 1px solid rgba(14,165,233,0.1);
  transition: var(--t);
}
.why-card:hover { box-shadow: var(--shadow-md); border-color: rgba(14,165,233,0.3); }
.why-icon {
  width: 46px; height: 46px; border-radius: var(--radius-m);
  background: rgba(14,165,233,0.1);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.why-icon svg { width: 22px; height: 22px; stroke: var(--blue-600); fill: none; stroke-width: 1.5; }
.why-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--navy-900); }
.why-desc { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ── Scroll Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-scale {
  opacity: 0; transform: scale(0.97);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }

/* ── Utilities ── */
.text-gradient {
  background: var(--gradient-blue); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.text-center { text-align: center; }
.text-cyan { color: var(--cyan-400); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.d-flex { display: flex; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.divider { height: 1px; background: rgba(14,165,233,0.1); margin: 0; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .site-nav { display: none; }
  .header-cta { display: none; }
  .mobile-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero { padding: 80px 0; min-height: auto; }
  .comparison-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .solution-block { grid-template-columns: 1fr; direction: ltr; }
  .solution-block.reverse { direction: ltr; }
  .process-steps::before { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .oe-nodes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --header-h: 78px; }
  .logo-badge img { height: 50px; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .accordion-trigger { padding: 18px 20px; gap: 14px; }
  .accordion-body { padding: 0 20px 24px; }
  .cta-section { padding: 64px 0; }
  .oe-nodes { grid-template-columns: 1fr; }
  .contact-form-card, .contact-info-card { padding: 28px 22px; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-actions { flex-direction: column; align-items: center; }
  .hero-stats { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
