:root {
  --rd-bg: #05070f;
  --rd-panel: rgba(255, 255, 255, 0.035);
  --rd-panel-strong: rgba(255, 255, 255, 0.055);
  --rd-border: rgba(255, 255, 255, 0.09);
  --rd-text: #f8fafc;
  --rd-muted: #94a3b8;
  --rd-cyan: #38bdf8;
  --rd-purple: #c084fc;
  --rd-green: #4ade80;
  --rd-amber: #fbbf24;
}

html { scroll-behavior: smooth; }

body.redesign-page {
  background:
    radial-gradient(circle at 8% 12%, rgba(56,189,248,.09), transparent 28rem),
    radial-gradient(circle at 90% 34%, rgba(192,132,252,.08), transparent 30rem),
    var(--rd-bg) !important;
  color: var(--rd-text);
  font-family: 'Outfit', sans-serif;
}

body.redesign-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

body.redesign-page header {
  background: rgba(5, 7, 15, .76) !important;
  border-bottom: 1px solid rgba(255,255,255,.075) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,.18) !important;
  backdrop-filter: blur(22px) saturate(135%);
}

body.redesign-page .logo-title,
body.redesign-page header h1 { letter-spacing: -.025em; }
body.redesign-page .dot-ai,
body.redesign-page header .text-cyan-400 { color: var(--rd-cyan) !important; }

body.redesign-page .nav-pill {
  background: rgba(255,255,255,.035) !important;
  border: 1px solid rgba(255,255,255,.075) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

body.redesign-page .nav-link,
body.redesign-page .mobile-nav-link { color: #94a3b8 !important; }
body.redesign-page .nav-link:hover,
body.redesign-page .mobile-nav-link:hover,
body.redesign-page .nav-link.active { color: #fff !important; }

body.redesign-page .btn-contact-us,
body.redesign-page .btn-launch,
body.redesign-page .btn-submit {
  color: #03131c !important;
  background: linear-gradient(135deg, #67e8f9, #38bdf8) !important;
  border: 0 !important;
  box-shadow: 0 12px 30px rgba(56,189,248,.2) !important;
}

body.redesign-page .product-hero-section {
  position: relative;
  overflow: hidden;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding: 64px 32px 52px;
}

body.redesign-page .product-hero-section::after {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  right: -110px;
  top: 20px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,.14), transparent 68%);
}

body.redesign-page .product-back-btn {
  color: #7dd3fc !important;
  letter-spacing: .12em;
}

body.redesign-page .product-header-icon,
body.redesign-page .product-logo-large {
  border: 1px solid rgba(56,189,248,.24) !important;
  background: rgba(56,189,248,.07) !important;
  box-shadow: 0 0 50px rgba(56,189,248,.13) !important;
}

body.redesign-page .product-title {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2.75rem, 5vw, 4.75rem) !important;
  letter-spacing: -.045em !important;
  line-height: 1.06 !important;
  background: linear-gradient(120deg, #fff 20%, #cbd5e1 68%, #7dd3fc) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

body.redesign-page .product-subtitle {
  max-width: 860px !important;
  color: #a8b4c5 !important;
  font-size: clamp(1rem, 1.35vw, 1.16rem) !important;
  line-height: 1.75 !important;
  font-weight: 400 !important;
}

/* ProcureDoc follows the more restrained Taam hero scale and weight. */
body.procuredoc-page .product-title {
  max-width: 960px;
  font-size: clamp(2.5rem, 4vw, 3.75rem) !important;
  font-weight: 700 !important;
  letter-spacing: -.025em !important;
  line-height: 1.12 !important;
  margin-bottom: 28px;
}

body.procuredoc-page .product-subtitle {
  max-width: 820px !important;
  font-size: 1.125rem !important;
  line-height: 1.75 !important;
}

body.redesign-page .pipeline-badge,
body.redesign-page .status {
  border-radius: 999px !important;
  letter-spacing: .11em !important;
}

body.redesign-page .badge-live {
  color: #86efac !important;
  background: rgba(74,222,128,.09) !important;
  border-color: rgba(74,222,128,.26) !important;
}

body.redesign-page .badge-beta { color: #7dd3fc !important; }
body.redesign-page .badge-alpha { color: #f0abfc !important; }

body.redesign-page .product-info-grid,
body.redesign-page main > section:not(.product-hero-section),
body.redesign-page main > div:not(.product-hero-section) {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

body.redesign-page .glass-card,
body.redesign-page .feature-card,
body.redesign-page article {
  background: linear-gradient(145deg, rgba(255,255,255,.052), rgba(255,255,255,.018)) !important;
  border: 1px solid var(--rd-border) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 20px 55px rgba(0,0,0,.18) !important;
  backdrop-filter: blur(16px);
}

body.redesign-page .glass-card:hover,
body.redesign-page .feature-card:hover,
body.redesign-page article:hover {
  border-color: rgba(56,189,248,.22) !important;
}

body.redesign-page .product-details-card h3,
body.redesign-page main h2,
body.redesign-page main h3 { letter-spacing: -.025em; }

body.redesign-page .feature-item {
  border-color: rgba(255,255,255,.07) !important;
}
body.redesign-page .feature-item h4 { color: #f8fafc !important; }
body.redesign-page .feature-item p,
body.redesign-page .metadata-value { color: #94a3b8 !important; }
body.redesign-page .feature-bullet {
  background: var(--rd-cyan) !important;
  box-shadow: 0 0 14px rgba(56,189,248,.65) !important;
}

body.redesign-page footer { background: transparent !important; }
body.redesign-page .footer-glass-box,
body.redesign-page footer > div {
  background: rgba(255,255,255,.025) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
}

body.redesign-page .modal-overlay { backdrop-filter: blur(18px); }
body.redesign-page .modal-card { background: #0a0e1a !important; }

/* Content-rich Mifgash and Taam candidates retain every section while sharing the new system. */
body.redesign-page .bg-white\/\[\.015\],
body.redesign-page .bg-white\/\[0\.02\],
body.redesign-page .bg-white\/\[\.02\] {
  background-color: rgba(255,255,255,.025) !important;
}

body.redesign-page .rounded-3xl,
body.redesign-page .rounded-2xl { border-color: rgba(255,255,255,.08) !important; }

.rd-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 24px;
}

.rd-section-head { margin-bottom: 26px; }
.rd-kicker {
  display: block;
  color: var(--rd-cyan);
  font: 700 .72rem/1.2 'JetBrains Mono', monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.rd-section h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  letter-spacing: -.045em;
}
.rd-section-intro {
  max-width: 760px;
  color: #94a3b8;
  font-size: 1.04rem;
  line-height: 1.72;
  margin-top: 14px;
}

.rd-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.rd-feature {
  padding: 24px;
  border-radius: 18px;
}
.rd-feature h3 { font-size: 1.05rem; margin: 0 0 9px; color: #fff; }
.rd-feature p { margin: 0; color: #94a3b8; line-height: 1.62; font-size: .91rem; }
.rd-feature .rd-tag {
  display: inline-flex;
  margin-bottom: 14px;
  color: #7dd3fc;
  font: 700 .67rem/1 'JetBrains Mono', monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rd-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: flow;
}
.rd-flow-step {
  counter-increment: flow;
  position: relative;
  padding: 22px;
  border: 1px solid var(--rd-border);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
}
.rd-flow-step::before {
  content: '0' counter(flow);
  display: block;
  margin-bottom: 14px;
  color: rgba(56,189,248,.42);
  font: 800 1.6rem/1 'JetBrains Mono', monospace;
}
.rd-flow-step h3 { font-size: 1rem; margin: 0 0 8px; }
.rd-flow-step p { margin: 0; color: #94a3b8; font-size: .88rem; line-height: 1.58; }

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

@media (max-width: 640px) {
  body.redesign-page .product-hero-section { padding: 50px 20px 34px; }
  body.redesign-page .product-title {
    font-size: clamp(2.35rem, 12vw, 3.25rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -.04em !important;
  }
  body.redesign-page .product-subtitle {
    font-size: 1rem !important;
    line-height: 1.65 !important;
  }
  body.redesign-page .product-info-grid { padding-left: 16px; padding-right: 16px; }
  .rd-section { padding: 34px 18px; }
  .rd-feature-grid, .rd-flow { grid-template-columns: 1fr; }
}

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


.rd-site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: 76px;
  background: rgba(5,7,15,.76);
  border-bottom: 1px solid rgba(255,255,255,.075);
  backdrop-filter: blur(22px) saturate(135%);
}
.rd-shell {
  width: min(1180px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.rd-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}
.rd-brand img { width: 38px; height: 38px; object-fit: contain; border-radius: 9px; }
.rd-brand strong { display: block; font-size: 1.05rem; letter-spacing: -.025em; line-height: 1; }
.rd-brand strong em { color: var(--rd-cyan); font-style: normal; }
.rd-brand small { display: block; margin-top: 5px; color: #64748b; font-size: .56rem; letter-spacing: .13em; text-transform: uppercase; }
.rd-site-header nav { display: flex; align-items: center; gap: 28px; }
.rd-site-header nav a {
  color: #94a3b8;
  text-decoration: none;
  font-size: .87rem;
  font-weight: 600;
  transition: color .2s ease;
}
.rd-site-header nav a:hover,
.rd-site-header nav a[aria-current="page"] { color: #fff; }
.rd-contact {
  border: 0;
  border-radius: 999px;
  padding: 10px 17px;
  color: #03131c;
  background: linear-gradient(135deg,#67e8f9,#38bdf8);
  font: 700 .82rem/1 'Outfit',sans-serif;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(56,189,248,.18);
}
@media (max-width: 760px) {
  .rd-site-header { height: 68px; }
  .rd-shell { width: min(100% - 24px, 1180px); gap: 12px; }
  .rd-brand small, .rd-site-header nav { display: none; }
  .rd-brand img { width: 34px; height: 34px; }
  .rd-contact { padding: 9px 14px; }
}

.rd-product-switcher {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 0;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.rd-product-switcher > span {
  color: #64748b;
  font: 700 .65rem/1 'JetBrains Mono',monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.rd-product-switcher nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}
.rd-product-switcher nav::-webkit-scrollbar { display: none; }
.rd-product-switcher a {
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #94a3b8;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 650;
  white-space: nowrap;
}
.rd-product-switcher a:hover { color: #fff; background: rgba(255,255,255,.045); }
.rd-product-switcher a[aria-current="page"] {
  color: #e0f2fe;
  border-color: rgba(56,189,248,.22);
  background: rgba(56,189,248,.085);
  box-shadow: 0 0 22px rgba(56,189,248,.08);
}
@media (max-width: 760px) {
  .rd-product-switcher {
    width: calc(100% - 24px);
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
    margin-top: 12px;
    padding: 10px;
  }
  .rd-product-switcher > span { padding: 3px 5px; }
  .rd-product-switcher nav { justify-content: flex-start; }
}