/*
 * modern.css — DocDB marketing site design system
 * Brand colors: teal #0D9394 (primary), purple #940d93 (secondary),
 * olive #93940d (tertiary). Built on stock Bootstrap 5.3.
 */

:root {
  --primary-color: #0D9394;
  --primary-dark: #0a7f80;
  --secondary-color: #940d93;
  --tertiary-color: #93940d;
  --ink: #122b39;
  --ink-soft: #44606e;
  --surface: #fcfdfd;
  --tint-teal: #f2faf9;
  --tint-purple: #faf2fa;
  --line: rgba(18, 43, 57, 0.08);
  --radius-card: 1.25rem;
  --shadow-soft: 0 1px 2px rgba(18, 43, 57, 0.04), 0 8px 24px rgba(18, 43, 57, 0.06);
  --shadow-lift: 0 2px 4px rgba(18, 43, 57, 0.05), 0 18px 40px rgba(13, 147, 148, 0.14);
}

/* ---------- Base ---------- */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background-color: var(--surface);
}

h1, h2, h3, h4, h5, .display-font {
  font-family: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h2 {
  font-size: clamp(1.85rem, 1.3rem + 2vw, 2.6rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
}

p.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink-soft);
}

a {
  color: var(--primary-color);
}

a:hover {
  color: var(--primary-dark);
}

::selection {
  background: rgba(13, 147, 148, 0.2);
}

/* ---------- Eyebrow labels & chips ---------- */

.eyebrow {
  display: inline-block;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.eyebrow-purple {
  color: var(--secondary-color);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: rgba(13, 147, 148, 0.08);
  border: 1px solid rgba(13, 147, 148, 0.18);
}

/* ---------- Gradient text ---------- */

.text-gradient {
  background: linear-gradient(92deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Buttons ---------- */

.btn-pill {
  border-radius: 999px;
  padding: 0.7rem 1.7rem;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-pill.btn-sm {
  padding: 0.45rem 1.2rem;
}

.btn-brand {
  background-color: var(--primary-color);
  border: 1px solid var(--primary-color);
  color: #fff;
}

.btn-brand:hover, .btn-brand:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(13, 147, 148, 0.35);
}

.btn-outline-brand {
  background-color: transparent;
  border: 1px solid rgba(18, 43, 57, 0.2);
  color: var(--ink);
}

.btn-outline-brand:hover, .btn-outline-brand:focus {
  border-color: var(--primary-color);
  color: var(--primary-dark);
  background-color: rgba(13, 147, 148, 0.06);
  transform: translateY(-2px);
}

.btn-outline-purple {
  background-color: transparent;
  border: 1px solid rgba(148, 13, 147, 0.35);
  color: var(--secondary-color);
}

.btn-outline-purple:hover, .btn-outline-purple:focus {
  background-color: rgba(148, 13, 147, 0.06);
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
}

/* ---------- Navigation ---------- */

.navbar-glass {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.navbar-glass .navbar-brand {
  font-family: "Bricolage Grotesque", "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  font-size: 1.1rem;
}

.navbar-glass .nav-link {
  font-weight: 500;
  color: var(--ink-soft);
  padding-left: 1rem;
  padding-right: 1rem;
}

.navbar-glass .nav-link:hover,
.navbar-glass .nav-link:focus,
.navbar-glass .nav-link.active {
  color: var(--primary-color);
}

/* ---------- Hero ---------- */

.hero-modern {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 4.5rem;
  background:
    radial-gradient(640px 420px at 12% 0%, rgba(13, 147, 148, 0.13), transparent 65%),
    radial-gradient(640px 420px at 88% 12%, rgba(148, 13, 147, 0.10), transparent 65%),
    var(--surface);
}

.hero-modern::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(18, 43, 57, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 70%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 70%);
  pointer-events: none;
}

.hero-modern > .container {
  position: relative;
  z-index: 1;
}

/* Photo variant: full-bleed image with dark overlay, light text */

.hero-photo {
  background:
    linear-gradient(180deg, rgba(7, 27, 36, 0.88) 0%, rgba(7, 27, 36, 0.66) 55%, rgba(7, 27, 36, 0.82) 100%),
    url("hero-image-small.jpg") center / cover no-repeat;
  /* Photo layer is viewport-fixed for a parallax effect; gradient scrolls with the section */
  background-attachment: scroll, fixed;
}

/* Swapped in by the preloader script once the full-resolution image is cached */
.hero-photo.hero-loaded {
  background-image:
    linear-gradient(180deg, rgba(7, 27, 36, 0.88) 0%, rgba(7, 27, 36, 0.66) 55%, rgba(7, 27, 36, 0.82) 100%),
    url("hero-image.jpg");
}

/* iOS Safari mis-renders fixed attachment with cover; scroll normally on touch devices */
@media (hover: none), (pointer: coarse) {
  .hero-photo {
    background-attachment: scroll;
  }
}

.hero-photo::before {
  content: none;
}

.hero-photo h1 {
  color: #fff;
}

.hero-photo .lead {
  color: rgba(255, 255, 255, 0.85);
}

.hero-photo .text-gradient {
  background: linear-gradient(92deg, #43dadc, #e577e3);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-photo .btn-outline-brand {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.hero-photo .btn-outline-brand:hover,
.hero-photo .btn-outline-brand:focus {
  border-color: #fff;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

.hero-photo .browser-frame {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.hero-modern h1 {
  font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4rem);
  line-height: 1.08;
  margin-bottom: 1.25rem;
}

.hero-modern .lead {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Browser-style screenshot frame ---------- */

.browser-frame {
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 24px 70px rgba(13, 147, 148, 0.18), 0 6px 18px rgba(18, 43, 57, 0.08);
  overflow: hidden;
}

.browser-frame .browser-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--line);
  background: #f7f9fa;
}

.browser-frame .browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e0e5e8;
}

.browser-frame .browser-bar span:first-child { background: rgba(13, 147, 148, 0.55); }
.browser-frame .browser-bar span:nth-child(2) { background: rgba(148, 13, 147, 0.45); }
.browser-frame .browser-bar span:nth-child(3) { background: rgba(147, 148, 13, 0.5); }

.browser-frame img {
  display: block;
  width: 100%;
}

/* ---------- Sections ---------- */

.section {
  padding: 5.5rem 0;
}

.section-tint {
  background:
    radial-gradient(700px 380px at 90% 0%, rgba(148, 13, 147, 0.05), transparent 60%),
    var(--tint-teal);
}

.section-head {
  max-width: 44rem;
  margin: 0 auto 3.25rem;
  text-align: center;
}

.section-head h2 {
  margin-bottom: 0.85rem;
}

/* ---------- Cards ---------- */

.card-modern {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  height: 100%;
}

.card-modern:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}

.card-modern .card-body {
  padding: 1.75rem;
}

.card-modern ul {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.card-modern ul li {
  margin-bottom: 0.5rem;
}

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 1.5rem;
  color: var(--primary-dark);
  background: linear-gradient(135deg, rgba(13, 147, 148, 0.10), rgba(13, 147, 148, 0.22));
  flex-shrink: 0;
}

.icon-tile-purple {
  color: var(--secondary-color);
  background: linear-gradient(135deg, rgba(148, 13, 147, 0.08), rgba(148, 13, 147, 0.20));
}

/* ---------- How it works ---------- */

.step-card {
  position: relative;
  text-align: center;
  padding: 0 1rem;
}

.step-num {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  box-shadow: 0 10px 24px rgba(13, 147, 148, 0.3);
}

.step-connector {
  flex: 1;
  border-top: 2px dashed rgba(13, 147, 148, 0.35);
  margin-top: 32px;
  min-width: 2.5rem;
}

.step-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

/* ---------- Comparison (The Difference) ---------- */

.compare-card {
  border-radius: var(--radius-card);
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.compare-card ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.compare-card ul li {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 0.7rem;
}

.compare-card .verdict {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.compare-without {
  background: #f6f7f8;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.compare-without h5 { color: var(--ink-soft); }
.compare-without .bi { color: #a7acb2; }
.compare-without .verdict { color: var(--ink-soft); }

.compare-with {
  background: #fff;
  border: 1px solid transparent;
  background-image:
    linear-gradient(#fff, #fff),
    linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: var(--shadow-lift);
}

.compare-with h5 { color: var(--primary-dark); }
.compare-with .bi { color: var(--primary-color); }
.compare-with .verdict { color: var(--primary-dark); }

/* ---------- CTA / contact panel ---------- */

.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  padding: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  background: linear-gradient(120deg, var(--primary-dark), var(--primary-color) 45%, var(--secondary-color));
  color: #fff;
}

.cta-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(115deg, transparent 45%, rgba(0, 0, 0, 0.9));
  mask-image: linear-gradient(115deg, transparent 45%, rgba(0, 0, 0, 0.9));
  pointer-events: none;
}

.cta-panel > * {
  position: relative;
  z-index: 1;
}

.cta-panel h2 {
  color: #fff;
}

.cta-panel .lead {
  color: rgba(255, 255, 255, 0.88);
}

.cta-panel a {
  color: #fff;
  text-decoration: underline;
}

.form-shell {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: 0 18px 50px rgba(18, 43, 57, 0.25);
}

/* ---------- Team ---------- */

.team-photo {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.team-card .role {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Use case prose ---------- */

.prose {
  max-width: 46rem;
  margin: 0 auto;
}

.prose p {
  margin-bottom: 1.35rem;
}

/* ---------- Footer ---------- */

.footer-modern {
  background: #0c2230;
  color: rgba(255, 255, 255, 0.72);
  padding: 4rem 0 2rem;
  margin-top: 0;
}

.footer-modern h5 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.footer-modern a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.footer-modern a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-modern ul li {
  margin-bottom: 0.45rem;
}

.footer-modern .footer-baseline {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Misc ---------- */

.shimmer {
  /* kept for compatibility with older markup; now renders as gradient text */
  background: linear-gradient(92deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@media (max-width: 767.98px) {
  .section {
    padding: 3.5rem 0;
  }

  .hero-modern {
    padding: 3.5rem 0 3rem;
  }
}
