/* ================= DocBridge ================= */
.db-hero { padding-bottom: 100px; }
.db-hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.db-hero .eyebrow::before { display: none; }
.db-hero .eyebrow i { color: #9fbcff; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.muted { color: var(--muted); font-size: 1.05rem; }

/* Bridge visual */
.bridge { position: relative; width: 100%; max-width: 520px; aspect-ratio: 500 / 360; margin-left: auto; }
.bridge-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bridge-svg .arc { fill: none; stroke: url(#dbg); stroke-width: 2.5; stroke-dasharray: 7 9; animation: dbDash 1.4s linear infinite; }
.bridge-svg .arc.rev { stroke: rgba(18, 183, 106, 0.6); animation-direction: reverse; }
.bridge-svg use { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35)); }
@keyframes dbDash { to { stroke-dashoffset: -32; } }

.bnode {
  position: absolute; top: 59.7%;
  transform: translate(-50%, -50%);
  width: 96px; height: 96px;
  border-radius: 26px;
  display: grid; place-items: center; align-content: center; gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: #fff; font-size: 1.6rem; text-align: center;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.6);
}
.bnode small { font-size: 0.62rem; font-family: var(--font-head); color: #b9c8f5; line-height: 1.2; padding: 0 6px; }
.bnode.left { left: 18%; }
.bnode.right { left: 82%; background: #fff; color: var(--primary); box-shadow: 0 0 60px rgba(47, 107, 255, 0.6); }
.bnode.right small { color: var(--primary); font-weight: 600; }
.bnode.right::after { content: ""; position: absolute; inset: -10px; border-radius: 32px; border: 2px solid rgba(95, 180, 255, 0.5); animation: dbPulse 2.4s var(--ease) infinite; }
@keyframes dbPulse { from { transform: scale(0.9); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }

.bchip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  color: #fff; font-family: var(--font-head); font-weight: 500; font-size: 0.82rem;
  white-space: nowrap;
  animation: dbBob 6s ease-in-out infinite;
}
.bchip i { color: #8fb4ff; }
.bchip.c1 { top: 2%; left: 34%; }
.bchip.c2 { bottom: 0; right: 24%; animation-delay: -3s; }
.bchip.c2 i { color: #3ee39a; }
@keyframes dbBob { 50% { translate: 0 -10px; } }

/* Steps */
.db-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.db-line { position: absolute; top: 44px; left: 16%; right: 16%; height: 2px; background: var(--primary-100); overflow: hidden; }
.db-line span { position: absolute; inset: 0; width: 30%; background: linear-gradient(90deg, transparent, var(--primary), transparent); animation: dbFlow 2.6s linear infinite; }
@keyframes dbFlow { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.db-step { position: relative; text-align: center; padding: 0 10px; }
.dbs-icon {
  position: relative; z-index: 1;
  width: 88px; height: 88px; margin: 0 auto 22px;
  border-radius: 28px;
  display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: 1.9rem;
  box-shadow: var(--shadow-glow);
  transition: transform 0.5s var(--ease-back);
}
.db-step:hover .dbs-icon { transform: translateY(-6px) rotate(-6deg); }
.dbs-num { display: block; font-family: var(--font-head); font-weight: 800; color: var(--primary-200); font-size: 0.9rem; letter-spacing: 0.15em; margin-bottom: 6px; }
.db-step p { color: var(--muted); max-width: 300px; margin: 0 auto; }

/* Tracker */
.tracker-sec { overflow: hidden; isolation: isolate; }
.tracker-sec .bg-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(110, 155, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(110, 155, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}
.tracker-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; }
.tracker-sec p { color: #a9b6dc; font-size: 1.05rem; }
.check-list.light li { color: #dbe4ff; }
.check-list.light li::before { background: rgba(110, 155, 255, 0.2); color: #9fbcff; }

.tracker {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: #fff;
  color: var(--ink-2);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}
.tr-head { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.tr-file { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #ffe4e6; color: #e5484d; font-size: 1.3rem; flex-shrink: 0; }
.tr-head strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1rem; }
.tr-head small { color: var(--muted); font-size: 0.85rem; }
.tr-badge { margin-left: auto; padding: 6px 12px; border-radius: 100px; background: var(--primary-50); color: var(--primary); font-size: 0.78rem; font-weight: 600; white-space: nowrap; transition: background 0.3s, color 0.3s; }
.tr-badge.done { background: #dcfce7; color: #15803d; }

.tr-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 26px 0 22px; }
.tr-step { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; font-size: 0.78rem; font-weight: 600; color: var(--muted); text-align: center; }
.tr-step i {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 2px solid var(--line); color: var(--primary-200);
  transition: all 0.45s var(--ease-back);
}
.tr-step.on { color: var(--ink); }
.tr-step.on i { background: var(--primary); border-color: var(--primary); color: #fff; transform: scale(1.1); box-shadow: 0 0 0 6px rgba(0, 67, 209, 0.12); }
.tr-step.on:nth-child(4) i { background: var(--success); border-color: var(--success); box-shadow: 0 0 0 6px rgba(18, 183, 106, 0.15); }
.tr-bar { position: absolute; top: 20px; left: 12.5%; right: 12.5%; height: 3px; border-radius: 3px; background: var(--line); }
.tr-bar span { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--grad); transition: width 0.7s var(--ease); }

.tr-log { display: grid; gap: 8px; min-height: 176px; align-content: start; }
.tr-log li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 12px;
  background: var(--bg-soft);
  font-size: 0.86rem;
  animation: logIn 0.5s var(--ease-back) both;
}
.tr-log li i { color: var(--primary); width: 16px; text-align: center; }
.tr-log li time { margin-left: auto; color: var(--muted); font-size: 0.76rem; font-family: var(--font-mono, monospace); }
@keyframes logIn { from { opacity: 0; transform: translateX(20px); } }

/* Features */
.db-feats .card h3 { font-size: 1.12rem; }
.db-feats .card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* Document types */
.doc-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dt {
  position: relative;
  padding: 30px 28px 28px 28px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.45s var(--ease), box-shadow 0.45s, border-color 0.45s;
  overflow: hidden;
}
.dt::after {
  content: ""; position: absolute; right: -30px; top: -30px;
  width: 90px; height: 90px; border-radius: 0 0 0 30px;
  background: var(--primary-50);
  transform: rotate(0deg);
  transition: transform 0.5s var(--ease), background 0.4s;
}
.dt:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--primary-200); }
.dt:hover::after { transform: scale(1.4); background: var(--primary-100); }
.dt-file {
  position: relative; z-index: 1;
  width: 54px; height: 64px; border-radius: 10px 18px 10px 10px;
  display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: 1.3rem;
  box-shadow: var(--shadow-glow);
  margin-bottom: 18px;
  transition: transform 0.5s var(--ease-back);
}
.dt:hover .dt-file { transform: rotate(-8deg) translateY(-4px); }
.dt h3 { position: relative; z-index: 1; }
.dt p { position: relative; z-index: 1; color: var(--muted); margin: 0; font-size: 0.95rem; }

/* Security */
.security-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.shield-visual { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.sh-ring { position: absolute; border-radius: 50%; border: 2px dashed var(--primary-200); animation: spin 30s linear infinite; }
.sh-ring.r1 { inset: 0; }
.sh-ring.r2 { inset: 14%; border-style: solid; border-color: var(--primary-100); animation-direction: reverse; animation-duration: 22s; }
.sh-ring.r3 { inset: 28%; background: var(--primary-50); border: 0; animation: none; }
.sh-core {
  position: relative;
  width: 34%; aspect-ratio: 1; border-radius: 32px;
  display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: 3rem;
  box-shadow: var(--shadow-glow);
  animation: shPulse 3s ease-in-out infinite;
}
@keyframes shPulse { 50% { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(0, 67, 209, 0.08), var(--shadow-glow); } }
.sh-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 14px;
  background: #fff; box-shadow: var(--shadow-lg);
  font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; color: var(--ink);
  white-space: nowrap;
  animation: dbBob 6s ease-in-out infinite;
}
.sh-chip i { color: var(--primary); }
.sh-chip.s1 { top: 8%; left: 0; }
.sh-chip.s2 { top: 46%; right: -4%; animation-delay: -2s; }
.sh-chip.s3 { bottom: 6%; left: 10%; animation-delay: -4s; }

.page-cta { margin-top: 40px; }

/* Responsive */
@media (max-width: 1024px) {
  .db-hero-inner, .tracker-grid, .security-grid { grid-template-columns: 1fr; }
  .bridge { margin: 20px auto 0; }
  .doc-types { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .db-steps { grid-template-columns: 1fr; gap: 40px; }
  .db-line { display: none; }
  .bnode { width: 72px; height: 72px; border-radius: 20px; font-size: 1.2rem; }
  .bnode small { font-size: 0.52rem; }
  .bchip { font-size: 0.72rem; padding: 7px 10px; }
  .bchip.c1 { left: 26%; }
  .bchip.c2 { right: 14%; }
  .tracker { padding: 20px; }
  .tr-step { font-size: 0.68rem; }
  .tr-step i { width: 36px; height: 36px; font-size: 0.8rem; }
  .tr-bar { top: 17px; }
  .doc-types { grid-template-columns: 1fr; }
  .sh-chip { font-size: 0.75rem; padding: 8px 12px; }
  .sh-chip.s2 { right: 0; }
}
