/* ===================================================================
   B-Digital Mark — Google Ads first-viewport, visual correction pass.
   Scoped entirely under body.bdm-page-google-ads-management. CTAs use
   the SHARED .btn-primary/.btn-ghost from assets/css/shared-ui.css --
   no button styling is redefined here (that was the rejected
   architecture). Loaded after pages.css + shared-ui.css.
   =================================================================== */

body.bdm-page-google-ads-management {
  --ga-container: min(1440px, calc(100vw - 64px));
}

.bdm-ga-row {
  width: 100%;
  max-width: var(--ga-container);
  margin-inline: auto;
}

/* =====================================================================
   HERO -- vertically centered in the viewport so the first screen feels
   complete on its own; strong atmospheric lighting, not a flat grid.
   ===================================================================== */
.bdm-ga-hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: clamp(5.5rem, 11vh, 7.5rem) 0 clamp(2.5rem, 6vh, 4rem);
  overflow: hidden;
}
.bdm-ga-hero::before {
  content: ''; position: absolute; inset: -15% -8% auto -8%; height: 140%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(50% 65% at 88% 22%, rgba(88, 201, 255, .20), transparent 62%),
    radial-gradient(55% 65% at 40% 88%, rgba(255, 140, 0, .16), transparent 62%);
}
.bdm-ga-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .6;
  background-image:
    linear-gradient(rgba(255, 140, 0, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 140, 0, .07) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(65% 75% at 78% 30%, #000 0%, transparent 78%);
  mask-image: radial-gradient(65% 75% at 78% 30%, #000 0%, transparent 78%);
}
.bdm-ga-hero > .bdm-ga-row { position: relative; z-index: 1; width: 100%; }

.bdmp-crumb { margin-bottom: 16px; }

.bdm-ga-grid {
  display: grid;
  grid-template-columns: minmax(0, 54%) minmax(0, 46%);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.bdm-ga-kicker {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--orange); display: flex; align-items: center; gap: .6rem; margin: 0 0 18px;
}
.bdm-ga-kicker::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); flex: none; }

/* H1 -- production display type, substantially larger, three short lines. */
.bdm-ga-h1 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  line-height: .94; letter-spacing: .005em;
  font-size: clamp(2.9rem, 5.6vw, 5.2rem);
  margin: 0 0 26px;
}
.bdm-ga-h1 em { font-style: normal; color: var(--orange); }

.bdm-ga-lead {
  font-family: var(--font-body); font-weight: 400; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.65;
  color: rgba(240, 237, 232, .94); max-width: 580px; margin: 0 0 30px;
}

/* .btn-primary / .btn-ghost used exactly as shared-ui.css defines them --
   no size/padding overrides here, per the single-source-of-truth rule. */
.bdm-ga-actions { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-bottom: 30px; align-items: center; }

.bdm-ga-proof { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.bdm-ga-proof span {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase;
  color: rgba(240, 237, 232, .92); font-weight: 700;
  border: 1px solid rgba(255, 140, 0, .3); background: rgba(255, 140, 0, .05);
  padding: .55rem 1.05rem; white-space: nowrap;
}

/* ---------- Visual: bigger, brighter, layered illumination, no card ---------- */
.bdm-ga-visual { position: relative; min-width: 0; display: flex; justify-content: center; align-items: center; }
.bdm-ga-glow {
  position: absolute; inset: -12% -8%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(45% 45% at 55% 42%, rgba(88, 201, 255, .22), transparent 68%),
    radial-gradient(38% 38% at 46% 92%, rgba(255, 140, 0, .22), transparent 68%);
  filter: blur(6px);
}
.bdm-ga-flow { position: relative; z-index: 1; width: 100%; max-width: 560px; height: auto; overflow: visible; }

.bdm-ga-flow .ring { fill: none; stroke: var(--cyan); stroke-width: 1.3; opacity: .4; }
.bdm-ga-flow .ring-outer { opacity: .22; }
.bdm-ga-flow .ring-bright { opacity: .65; stroke-width: 1.6; }
.bdm-ga-flow .target-core { fill: var(--surface); stroke: var(--cyan); stroke-width: 2; }
.bdm-ga-flow .crosshair { stroke: var(--cyan); stroke-width: 1.2; opacity: .5; }
.bdm-ga-flow .main-path { fill: none; stroke: rgba(150, 180, 255, .35); stroke-width: 1.8; }
.bdm-ga-flow .pulse-in { fill: none; stroke: var(--orange); stroke-width: 2.4; stroke-dasharray: 10 300; opacity: 1; }
.bdm-ga-flow .pulse-out { fill: none; stroke: var(--cyan); stroke-width: 2.2; stroke-dasharray: 9 260; opacity: 1; }
.bdm-ga-flow .waypoint { fill: var(--surface); stroke: var(--cyan); stroke-width: 1.8; }
.bdm-ga-flow .node-glow { filter: blur(7px); opacity: .65; }
.bdm-ga-flow .node-solid { fill: var(--orange); }
.bdm-ga-flow .particle { fill: var(--cyan); }
.bdm-ga-flow .particle-orbit { fill: var(--orange); filter: drop-shadow(0 0 4px var(--orange)); }

@keyframes gaOrbit { to { transform: rotate(360deg); } }
.bdm-ga-flow .orbiter { transform-box: fill-box; transform-origin: 300px 270px; animation: gaOrbit 12s linear infinite; }

@keyframes gaDashIn { to { stroke-dashoffset: -310; } }
@keyframes gaDashOut { to { stroke-dashoffset: -269; } }
.bdm-ga-flow.is-visible .pulse-in { animation: gaDashIn 3.4s linear infinite; }
.bdm-ga-flow.is-visible .pulse-out { animation: gaDashOut 3s linear infinite .4s; }

@keyframes gaBurst { 0% { r: 12; opacity: .6; } 100% { r: 42; opacity: 0; } }
.bdm-ga-flow .burst { fill: none; stroke: var(--orange); stroke-width: 1.6; transform-box: fill-box; transform-origin: center; }
.bdm-ga-flow.is-visible .burst { animation: gaBurst 2.4s cubic-bezier(.2, .7, .3, 1) infinite; }
.bdm-ga-flow.is-visible .burst.b2 { animation-delay: .8s; }

@keyframes gaTwinkle { 0%, 100% { opacity: .25; } 50% { opacity: .8; } }
.bdm-ga-flow .particle { animation: gaTwinkle 3.6s ease-in-out infinite; }

@keyframes gaScan { from { transform: translateY(-40px); } to { transform: translateY(620px); } }
.bdm-ga-flow .scanline { fill: url(#gaScanGrad); opacity: .22; }
.bdm-ga-flow.is-visible .scanline { animation: gaScan 6.5s linear infinite; }

.bdm-ga-flow .draw-in { opacity: 0; transition: opacity .6s ease; }
.bdm-ga-flow.is-visible .draw-in { opacity: 1; }
.bdm-ga-flow .main-path { stroke-dasharray: 480; stroke-dashoffset: 480; transition: stroke-dashoffset 1.1s cubic-bezier(.16, 1, .3, 1) .1s; }
.bdm-ga-flow.is-visible .main-path { stroke-dashoffset: 0; }

/* =====================================================================
   OPENING TRANSITION -- preview only, same container, same gutters.
   ===================================================================== */
.bdm-ga-transition {
  position: relative; padding: clamp(34px, 5vw, 54px) 0 40px;
}
.bdm-ga-transition-inner {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: clamp(22px, 3.5vw, 32px);
}
.bdm-ga-transition-kicker {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--orange); margin: 0 0 10px;
}
.bdm-ga-transition h2 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .005em; font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin: 0 0 12px; color: var(--white);
}
.bdm-ga-transition p { margin: 0; color: rgba(240, 237, 232, .78); font-size: 1.02rem; max-width: 620px; }

@media (max-width: 900px) {
  .bdm-ga-hero { min-height: 0; padding-top: clamp(6rem, 20vw, 7.5rem); }
  .bdm-ga-grid { grid-template-columns: minmax(0, 1fr); }
  .bdm-ga-visual { order: -1; margin-bottom: 4px; min-width: 0; }
  .bdm-ga-copy { min-width: 0; }
  .bdm-ga-flow { max-width: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  .bdm-ga-flow .orbiter { animation: none !important; }
  .bdm-ga-flow .pulse-in, .bdm-ga-flow .pulse-out { animation: none !important; stroke-dasharray: none !important; opacity: .7 !important; }
  .bdm-ga-flow .burst { animation: none !important; opacity: 0 !important; }
  .bdm-ga-flow .particle { animation: none !important; opacity: .4 !important; }
  .bdm-ga-flow .scanline { animation: none !important; opacity: 0 !important; }
  .bdm-ga-flow .main-path { transition: none !important; stroke-dashoffset: 0 !important; }
  .bdm-ga-flow .draw-in { transition: none !important; opacity: 1 !important; }
}
