/* ============================================================
   Monzo Technology — Custom Styles
   CSS Framework: Bootstrap 5.3
   Icons: Bootstrap Icons 1.11
   Fonts: Inter (Google Fonts)
   Theme: Light (White + Red) — matching original monzotechnology.com
   Original palette:
     #DD183B / #CC1939  — primary red
     #0F172A            — dark navy (headings, footer)
     #3A3A3A            — body text
     #FFEDE6            — light peach section bg
     #FFD1BF            — medium peach alt bg
     #140609            — near-black (footer dark)
   ============================================================ */

/* ------------------------------------------------------------
   CSS Variables
   ------------------------------------------------------------ */
:root {
  --bg-dark:       #FFFFFF;    /* body / main background */
  --bg-card:       #FFEDE6;    /* alternate section / card-section bg */
  --bg-card-hover: #FFD1BF;    /* deeper peach on hover */
  --border:        #e6e6e6;    /* light gray borders */
  --primary:       #DD183B;    /* main red */
  --primary-light: #DD183B;    /* same red (used for labels/icons) */
  --accent:        #CC1939;    /* darker red variant */
  --text-primary:  #0F172A;    /* dark navy — headings */
  --text-muted:    #666666;    /* medium gray — body/muted text */
}

/* ------------------------------------------------------------
   Base
   ------------------------------------------------------------ */
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-dark);
  color: #3A3A3A;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
}

/* ------------------------------------------------------------
   Navbar
   ------------------------------------------------------------ */
.navbar {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 0;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary) !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.navbar-brand span { color: var(--primary-light); }

.navbar-nav .nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.875rem !important;
  transition: color 0.2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--text-primary) !important; }

.navbar-toggler { border-color: var(--border); }

.dropdown-menu {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
}

.dropdown-item {
  color: var(--text-muted);
  font-size: 0.9rem;
  border-radius: 6px;
  padding: 0.5rem 0.875rem;
}

.dropdown-item:hover {
  background-color: var(--bg-card);
  color: var(--primary);
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-primary:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(221, 24, 59, 0.35);
}

.btn-outline-light {
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-outline-light:hover { transform: translateY(-1px); }

/* Override btn-outline-light inside light-background hero sections */
.hero-section .btn-outline-light,
.product-hero .btn-outline-light {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
  background: transparent !important;
}

.hero-section .btn-outline-light:hover,
.product-hero .btn-outline-light:hover {
  background-color: var(--primary) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(221, 24, 59, 0.3);
}

/* CTA section — keep white outline on red background */
.cta-section .btn-outline-light {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.75) !important;
}

.cta-section .btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

.btn-light {
  font-weight: 600;
  color: var(--primary);
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-light:hover { transform: translateY(-1px); }

/* ------------------------------------------------------------
   Hero Section
   ------------------------------------------------------------ */
.hero-section {
  background: linear-gradient(160deg, #ffffff 0%, #FFEDE6 100%);
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(221, 24, 59, 0.06) 0%, transparent 55%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(221, 24, 59, 0.08);
  border: 1px solid rgba(221, 24, 59, 0.25);
  color: var(--primary);
  padding: 0.3rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-section h1 {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.text-gradient {
  background: linear-gradient(90deg, #DD183B, #ff4d6d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-section p.lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.hero-ratings {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stars { color: #f59e0b; }

.rating-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.hero-image img {
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  width: 100%;
}

/* ------------------------------------------------------------
   Section Globals
   ------------------------------------------------------------ */
section { padding: 5rem 0; }

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--primary-light);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 580px;
  margin: 0 auto 3rem;
  line-height: 1.75;
}

/* ------------------------------------------------------------
   Stats Bar
   ------------------------------------------------------------ */
.stats-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

/* ------------------------------------------------------------
   Feature Cards (Why Choose)
   ------------------------------------------------------------ */
.feature-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  background: #fff8f6;
  border-color: rgba(221, 24, 59, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(221, 24, 59, 0.12);
}

.feature-icon {
  width: 46px;
  height: 46px;
  background: rgba(221, 24, 59, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
  color: var(--primary);
}

.feature-card h4 {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ------------------------------------------------------------
   Product Cards
   ------------------------------------------------------------ */
.products-bg {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.product-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.product-card:hover {
  border-color: rgba(221, 24, 59, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(221, 24, 59, 0.1);
}

.product-tag {
  display: inline-block;
  background: rgba(221, 24, 59, 0.08);
  border: 1px solid rgba(221, 24, 59, 0.25);
  color: var(--primary);
  padding: 0.2rem 0.7rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.product-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.product-subtitle {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-card > p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.product-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.product-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 0.35rem 0;
}

.product-features-list li i {
  color: var(--accent);
  margin-top: 3px;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.product-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.product-price-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ------------------------------------------------------------
   Testimonials
   ------------------------------------------------------------ */
.testimonials-bg {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  height: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 0.85rem;
  margin-bottom: 0.875rem;
}

.testimonial-text {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  flex-shrink: 0;
}

.author-name { font-weight: 700; font-size: 0.875rem; color: var(--text-primary); }
.author-title { font-size: 0.78rem; color: var(--text-muted); }

/* ------------------------------------------------------------
   CTA Section
   ------------------------------------------------------------ */
.cta-section {
  background: linear-gradient(135deg, #DD183B 0%, #CC1939 100%);
  text-align: center;
  padding: 5rem 0;
}

.cta-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  margin-bottom: 2.25rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
footer {
  background: #0F172A;
  border-top: none;
  padding: 4rem 0 2rem;
}

.footer-brand {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.875rem;
}

.footer-brand span { color: #ff6b6b; }

.footer-desc {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
  line-height: 1.65;
  max-width: 280px;
}

.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.25rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: #ff6b6b; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.825rem;
}

/* ------------------------------------------------------------
   Page Header (inner pages)
   ------------------------------------------------------------ */
.page-header {
  background: linear-gradient(160deg, #ffffff 0%, #FFEDE6 100%);
  padding: 9rem 0 4.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(221, 24, 59, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  max-width: 700px;
  margin: 0.75rem auto 0;
  line-height: 1.2;
}

/* ------------------------------------------------------------
   Contact & Forms
   ------------------------------------------------------------ */
.support-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  height: 100%;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.support-card:hover {
  border-color: rgba(221, 24, 59, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(221, 24, 59, 0.1);
}

.support-card i {
  font-size: 2rem;
  color: var(--primary-light);
  margin-bottom: 1rem;
  display: block;
}

.support-card h4 { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.6rem; }
.support-card p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.65; margin-bottom: 1.25rem; }

.form-control,
.form-select {
  background-color: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.form-control:focus,
.form-select:focus {
  background-color: #ffffff;
  border-color: var(--primary);
  color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(221, 24, 59, 0.15);
}

.form-control::placeholder { color: var(--text-muted); }
.form-label { color: var(--text-primary); font-size: 0.875rem; font-weight: 600; margin-bottom: 0.4rem; }

/* Accordion (FAQ) */
.accordion-item {
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.accordion-button {
  background: #ffffff !important;
  color: var(--text-primary) !important;
  font-weight: 600;
  font-size: 0.925rem;
}

.accordion-button:not(.collapsed) {
  background: #fff8f6 !important;
  color: var(--primary) !important;
  box-shadow: none !important;
}

.accordion-body {
  background: #ffffff !important;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  padding: 0 1.25rem 1.25rem;
}

/* ------------------------------------------------------------
   Team Cards
   ------------------------------------------------------------ */
.team-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.team-card:hover {
  border-color: rgba(221, 24, 59, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(221, 24, 59, 0.1);
}

.team-photo {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
  display: block;
}

.team-card:hover .team-photo img { transform: scale(1.05); }

.team-info {
  padding: 1rem 1.25rem 1.25rem;
}

.team-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.2rem; }
.team-card p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

/* Focus area badges */
.focus-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(221, 24, 59, 0.06);
  border: 1px solid rgba(221, 24, 59, 0.18);
  color: var(--text-primary);
  padding: 0.4rem 0.875rem;
  border-radius: 6px;
  font-size: 0.825rem;
}

.focus-badge i { color: var(--primary-light); }

/* Product detail page — hero */
.product-hero {
  background: linear-gradient(160deg, #ffffff 0%, #FFEDE6 100%);
  padding: 9rem 0 5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.product-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 60%, rgba(221, 24, 59, 0.05) 0%, transparent 55%);
  pointer-events: none;
}

/* Alert success for form */
.alert-success-custom {
  background: rgba(221, 24, 59, 0.06);
  border: 1px solid rgba(221, 24, 59, 0.25);
  color: var(--primary);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
}

/* Navbar logo image */
.navbar-brand img {
  height: 42px;
  width: auto;
  display: block;
}

/* Hero carousel */
.hero-carousel {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  position: relative;
}

.hero-carousel .carousel-item img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.hero-carousel .carousel-indicators {
  bottom: -32px;
  margin: 0;
  gap: 6px;
}

.hero-carousel .carousel-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border);
  border: none;
  opacity: 1;
  padding: 0;
  transition: all 0.3s;
}

.hero-carousel .carousel-indicators button.active {
  background-color: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* Product update cards */
.update-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s;
}

.update-card:hover {
  border-color: rgba(221, 24, 59, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(221, 24, 59, 0.1);
}

.update-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.875rem;
}

.update-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.update-badge-oa {
  background: rgba(221, 24, 59, 0.1);
  color: var(--primary);
}

.update-badge-cx {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.update-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.update-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(221, 24, 59, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.875rem;
}

.update-icon-cx {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

.update-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.update-card p {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* Footer logo (white version on dark bg) */
.footer-logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  margin-bottom: 0.875rem;
  display: block;
}

/* Testimonial avatar — real photo version */
img.author-avatar {
  object-fit: cover;
  background: none;
}

/* Client logos strip */
.client-logo {
  height: 32px;
  width: auto;
  opacity: 0.65;
  filter: grayscale(15%);
  transition: opacity 0.25s, filter 0.25s;
}

.client-logo:hover { opacity: 1; filter: none; }

/* ------------------------------------------------------------
   Documentation Page
   ------------------------------------------------------------ */
.doc-sidebar {
  position: sticky;
  top: 85px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: 0.5rem;
  border-right: 1px solid var(--border);
}

.doc-nav-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  padding: 0.6rem 0.6rem 0.25rem;
}

.doc-nav-link {
  display: block;
  padding: 0.28rem 0.7rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s;
  border-left: 2px solid transparent;
}

.doc-nav-link:hover,
.doc-nav-link.active {
  color: var(--primary);
  background: rgba(221, 24, 59, 0.07);
  border-left-color: var(--primary);
}

.doc-nav-sub {
  padding-left: 1.3rem;
  font-size: 0.815rem;
}

.doc-section-first { margin-top: 0; padding-top: 0; }

.doc-section {
  scroll-margin-top: 90px;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.doc-section-product-break {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 2px solid var(--border);
}

.doc-h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.doc-h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  scroll-margin-top: 90px;
}

.doc-callout {
  background: #fff5f7;
  border-left: 4px solid var(--primary);
  padding: 0.9rem 1.2rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.5rem;
  font-size: 0.93rem;
  color: var(--text-primary);
}

.doc-callout-cx {
  background: #eff6ff;
  border-left-color: #2563eb;
}

.doc-code {
  background: #0F172A;
  color: #cbd5e1;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.81rem;
  padding: 1.1rem 1.4rem;
  border-radius: 10px;
  overflow-x: auto;
  margin: 0.75rem 0 1.25rem;
  line-height: 1.75;
  white-space: pre;
  display: block;
}

.doc-inline-code {
  background: #f1f5f9;
  color: var(--primary);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.85em;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1.25rem;
  font-size: 0.9rem;
}

.doc-table th {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
}

.doc-table td {
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}

.doc-table tr:hover td { background: #fafafa; }

.doc-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15em 0.6em;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.doc-badge-oa { background: rgba(221,24,59,0.1); color: var(--primary); }
.doc-badge-cx { background: rgba(37,99,235,0.1); color: #2563eb; }

.doc-product-header {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.doc-product-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.doc-product-icon.oa { background: rgba(221,24,59,0.1); color: var(--primary); }
.doc-product-icon.cx { background: rgba(37,99,235,0.1); color: #2563eb; }

.doc-product-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: all 0.2s;
  color: var(--text-primary);
  height: 100%;
}

.doc-product-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(221,24,59,0.1);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.doc-product-card h5 {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.doc-link { color: var(--primary); font-size: 0.85rem; font-weight: 600; }
.doc-link-cx { color: #2563eb; }

.doc-list { padding-left: 1.25rem; margin-bottom: 0; }
.doc-list li { margin-bottom: 0.4rem; color: var(--text-muted); line-height: 1.6; }
.doc-list li strong { color: var(--text-primary); }

/* ── Release Notes timeline ── */
.release-item {
  border-left: 2px solid var(--border);
  padding-left: 1.3rem;
  padding-bottom: 1.75rem;
  position: relative;
}

.release-item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.release-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.release-item.latest::before {
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(221,24,59,0.15);
}

.release-item.cx-latest::before {
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.release-version {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.release-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.release-tag {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 0.1em 0.45em;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 0.2rem;
  vertical-align: middle;
  line-height: 1.6;
}

.tag-new      { background: rgba(221,24,59,0.1);  color: var(--primary); }
.tag-fix      { background: #f0fdf4;              color: #16a34a; }
.tag-security { background: #fef9c3;              color: #b45309; }
.tag-improvement { background: #eff6ff;           color: #2563eb; }

.release-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.release-list li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.22rem 0 0.22rem 1rem;
  position: relative;
  line-height: 1.55;
}

.release-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: #cbd5e1;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .hero-section { padding: 6rem 0 3.5rem; min-height: auto; }
  .page-header { padding: 7rem 0 3.5rem; }
  .product-hero { padding: 7rem 0 3.5rem; }
  .hero-ratings { gap: 1.25rem; }
  .stats-section { padding: 2rem 0; }
}
