/* ======================================================
   Homepage (home-21) — Pass 1: Hero + Navbar + Motion system
   Additive override file. Loaded after the shared bundle;
   does not modify style.css / style-two.css / the bundle.
   Scoped to .banner-area.home-21 and .header-variant-21-inner
   so it cannot affect other pages or other home variants.
   ====================================================== */

/* ── Motion tokens ── */
:root {
    --dbw-t-fast: 150ms;
    --dbw-t-base: 250ms;
    --dbw-t-slow: 350ms;
    --dbw-ease: cubic-bezier(.16,1,.3,1);
    /* spring-overshoot approximation — used for entrance "pop" moments only */
    --dbw-ease-spring: cubic-bezier(.34,1.56,.64,1);
}

/* ══ NAVBAR — scroll glass, home-21 only ══════════════ */
.header-variant-21-inner {
    position: sticky;
    top: 0;
    z-index: 1031;
    background: #fff;
    transition: background var(--dbw-t-base) var(--dbw-ease),
                box-shadow var(--dbw-t-base) var(--dbw-ease);
}
.header-variant-21-inner.dbw-nav-scrolled {
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    box-shadow: 0 1px 0 rgba(10, 17, 33, .07), 0 12px 30px rgba(10, 17, 33, .05);
}
.header-variant-21-inner .navbar-area {
    transition: padding var(--dbw-t-base) var(--dbw-ease);
}
.header-variant-21-inner.dbw-nav-scrolled .navbar-area {
    padding-top: 6px;
    padding-bottom: 6px;
}
@media (prefers-reduced-motion: reduce) {
    .header-variant-21-inner,
    .header-variant-21-inner .navbar-area { transition: none; }
}

/* ══ HERO — right-side showcase: glowing AI Core hub + 7 floating glass
   product cards orbiting it ══
   Hide the legacy admin-scaled thumb + the leftover decorative shape
   image (was rendering as an unstyled black line-art overlay clashing
   with the new visual). The fields themselves are untouched in the
   DOM/DB — only their visual presentation is superseded on this page. */
.home-21 .banner-wrapper-thumb .banner-single-thumb { display: none !important; }
.home-21 .agency-top-thumb { display: none !important; }
/* This one was missed in Pass 1 — an admin-configured decorative doodle
   image, unstyled/unconstrained, was rendering full-size and floating
   loose above the showcase (the broken-looking jagged shape). */
.home-21 .banner-wrapper-thumb .banner-thumb-shape { display: none !important; }

/* Pure CSS zoom — same SVG file/content/layout untouched, only the rendered
   display size changes. Extra vertical margin gives the scaled-up visual
   room so ancestor overflow:hidden (.banner-area.home-21) doesn't clip it,
   since a transform doesn't grow the box that overflow is measured against. */
.dbw-hero-visual {
    position: relative;
    max-width: 660px;
    margin: 70px auto;
}
.dbw-hero-visual > svg {
    transform: scale(1.4);
    transform-origin: center center;
    height: auto;
}

/* .flex-row-reverse reverses stacking order even when wrapped (text column,
   2nd in the DOM, would land in the first/top line) — that's backwards from
   the live site, where the hero image (1st in the DOM) shows above the
   title on mobile. Force plain column stacking below lg so DOM order wins. */
@media (max-width: 991px) {
    .banner-area.home-21 .row.flex-row-reverse { flex-direction: column; }
}
@media (max-width: 575px) {
    /* smaller zoom on phones — 1.4x would overflow a narrow viewport */
    .dbw-hero-visual { margin: 40px auto; }
    .dbw-hero-visual > svg { transform: scale(1.15); }
}

/* ── Stage: everything below is positioned relative to this one box ── */
.dbw-stage {
    position: relative;
    height: 640px;
    /* Baseline 3D tilt — visible at rest, not hover-only. Mouse movement
       (JS) adds a delta on top of it; mouseleave clears the inline style
       and it falls back to this same resting angle. Applied to the STAGE
       only (not individual devices/cards) since those already run their
       own transform animations — a second transform source on the same
       element would fight the first. Rotating the parent visually tilts
       the whole group as one rigid unit without touching children. */
    transform: perspective(1600px) rotateY(-4deg) rotateX(2deg);
    transform-style: preserve-3d;
    transition: transform var(--dbw-t-base) var(--dbw-ease-spring);
    will-change: transform;
}

/* Soft mesh gradient — three blurred, slow-drifting color blobs behind
   the whole showcase. transform/opacity only; gated under reduced-motion. */
.dbw-mesh {
    position: absolute;
    inset: -12%;
    z-index: 0;
    pointer-events: none;
}
.dbw-mesh-b {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
}
.dbw-mesh-b1 {
    width: 42%; height: 42%; top: 4%; left: 6%;
    background: radial-gradient(circle, rgba(255,138,115,.5), transparent 72%);
    animation: dbwMeshDrift 16s ease-in-out infinite;
}
.dbw-mesh-b2 {
    width: 38%; height: 38%; bottom: 6%; right: 4%;
    background: radial-gradient(circle, rgba(85,128,255,.4), transparent 72%);
    animation: dbwMeshDrift 20s ease-in-out infinite reverse;
}
.dbw-mesh-b3 {
    width: 30%; height: 30%; top: 38%; left: 40%;
    background: radial-gradient(circle, rgba(124,92,255,.32), transparent 72%);
    animation: dbwMeshDrift 24s ease-in-out infinite;
    animation-delay: -6s;
}
@keyframes dbwMeshDrift {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: .5; }
    50% { transform: translate(4%, -6%) scale(1.12); opacity: .7; }
}

/* ── Shared glass-card base (glassmorphism approximation — backdrop-filter
   is a web approximation, not literal Apple Liquid Glass; solid fallback
   under prefers-reduced-transparency below) ── */
.dbw-fcard {
    position: absolute;
    opacity: 0;
    background: rgba(255, 255, 255, .68);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 16px;
    box-shadow: 0 22px 46px rgba(10, 17, 33, .16), inset 0 1px 0 rgba(255, 255, 255, .6);
    padding: 13px 14px;
    /* Two animations on the same element/property: the first plays once
       (load-in pop), the second starts right after via its own delay and
       loops forever (idle float) — avoids a transition fighting a
       continuous keyframe animation on the same `transform` property. */
    animation: dbwCardEnter 550ms var(--dbw-ease-spring) forwards,
               dbwCardFloat 6s ease-in-out 550ms infinite;
}
@media (prefers-reduced-transparency: reduce) {
    .dbw-fcard { background: rgba(255, 255, 255, .96); backdrop-filter: none; }
}
@keyframes dbwCardEnter {
    from { opacity: 0; transform: translateY(20px) scale(.85); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes dbwCardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}
/* Slower variant for the two largest cards, so they don't float in lockstep */
@keyframes dbwCardFloatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-13px); }
}

/* ── Center — glowing Darwinbark AI Core / Studio hub ──
   Pure CSS glow + rings — no stock illustration, no literal orbiting
   dot (read as stray debris on a white background) — just gradient/
   blur/transform, matching the purple/blue glow already established by
   the mesh blobs behind it. ── */
.dbw-core {
    position: absolute;
    top: 50%; left: 50%; width: 118px; height: 118px;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex; align-items: center; justify-content: center;
}
.dbw-core-ring {
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(124, 92, 255, .35);
    animation: dbwCoreRing 3.6s var(--dbw-ease) infinite;
}
.dbw-core-ring2 { animation-delay: 1.8s; border-color: rgba(85, 128, 255, .3); }
@keyframes dbwCoreRing {
    0% { transform: scale(.72); opacity: .9; }
    100% { transform: scale(1.65); opacity: 0; }
}
/* Badge itself: white glass disc (not a solid purple ball) so a logo of
   any color sits on a neutral surface — the color/glow comes from the
   halo behind it, matching the clean-white-background brief. Subtle
   continuous rotateY (needs the .dbw-stage perspective on an ancestor)
   is the "3D floating" cue — small angle, logo stays legible throughout. */
.dbw-core-badge {
    position: relative; z-index: 1;
    width: 76px; height: 76px; border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(124,92,255,.12),
                0 0 34px 6px rgba(124, 92, 255, .38),
                0 16px 32px rgba(30, 20, 90, .22);
    animation: dbwCorePulse 3.2s ease-in-out infinite,
               dbwCoreTilt 8s ease-in-out infinite;
    transform-style: preserve-3d;
}
@keyframes dbwCorePulse {
    0%, 100% { box-shadow: 0 0 0 1px rgba(124,92,255,.12), 0 0 34px 6px rgba(124,92,255,.38), 0 16px 32px rgba(30,20,90,.22); }
    50%      { box-shadow: 0 0 0 1px rgba(124,92,255,.12), 0 0 48px 11px rgba(124,92,255,.55), 0 16px 32px rgba(30,20,90,.22); }
}
@keyframes dbwCoreTilt {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(16deg); }
}
.dbw-core-logo { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; }
.dbw-core-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.dbw-core-mark {
    font-size: 24px; font-weight: 800; line-height: 1;
    background: linear-gradient(135deg, #7c5cff, #5b8cff);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dbw-core-label { font-size: 8px; font-weight: 700; color: #8a8fa3; letter-spacing: .04em; }

/* ── AI Website Builder — TOP LEFT. Deliberately small — a browser-chrome
   card, not a dominant screenshot. A brand-color wash sits over the real
   template image (::after) so the card reads as part of the blue/purple
   ecosystem regardless of the screenshot's own colors. ── */
.dbw-fcard-builder {
    top: 0%; left: 2%; width: 25%; z-index: 3;
    padding: 0; overflow: hidden;
    animation: dbwCardEnter 550ms var(--dbw-ease-spring) 0ms forwards,
               dbwCardFloat 7s ease-in-out 650ms infinite;
}
.dbw-card-chrome-mini {
    display: flex; align-items: center; gap: 6px;
    padding: 7px 8px;
    background: #1a1d27;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.dbw-builder-bar {
    flex: 1; background: #0f1117; border-radius: 5px; padding: 2px 8px;
    font-size: 9px; color: #8a8f9c; font-weight: 500;
    display: flex; align-items: center; gap: 4px;
    white-space: nowrap; overflow: hidden;
}
.dbw-builder-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0f1117; max-height: 92px; }
.dbw-builder-view img {
    width: 100%; height: 100%; object-fit: cover; object-position: top; display: block;
    filter: saturate(.8) brightness(1.03);
}
/* Brand-color wash — keeps the screenshot from ever reading as a raw,
   clashing-colored dashboard; ties it into the purple/blue palette. */
.dbw-builder-view::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(124,92,255,.22), rgba(85,128,255,.14));
    mix-blend-mode: overlay;
}
/* Ambient light sweep across the screen, every few seconds */
.dbw-sheen {
    position: absolute; inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.18) 46%, transparent 62%);
    transform: translateX(-130%);
    animation: dbwSheen 6s ease-in-out infinite;
}
@keyframes dbwSheen {
    0%, 78% { transform: translateX(-130%); }
    92% { transform: translateX(130%); }
    100% { transform: translateX(130%); }
}
.dbw-builder-foot { padding: 9px 10px; background: rgba(255,255,255,.85); }
.dbw-ai-status { font-size: 9.5px; color: #555; margin-bottom: 7px; display: flex; align-items: center; }
.dbw-ai-dots { display: inline-flex; gap: 2px; margin-left: 4px; }
.dbw-ai-dots span {
    width: 3px; height: 3px; border-radius: 50%; background: #7c5cff;
    animation: dbwWaTyping 1.1s ease-in-out infinite;
}
.dbw-ai-dots span:nth-child(2) { animation-delay: .15s; }
.dbw-ai-dots span:nth-child(3) { animation-delay: .3s; }
.dbw-ai-track { height: 5px; border-radius: 3px; background: rgba(10,17,33,.08); overflow: hidden; margin-bottom: 8px; }
.dbw-ai-fill {
    height: 100%; border-radius: 3px;
    background: linear-gradient(90deg, #7c5cff, #5b8cff);
    transform-origin: left; transform: scaleX(0);
    animation: dbwAiProgress 4s ease-in-out infinite;
}
@keyframes dbwAiProgress {
    0% { transform: scaleX(0); }
    65% { transform: scaleX(1); }
    100% { transform: scaleX(1); }
}
.dbw-builder-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.dbw-builder-meta strong { font-size: 10.5px; font-weight: 800; color: #16181d; }
.dbw-builder-meta span { font-size: 9px; font-weight: 700; color: #7c5cff; background: rgba(124,92,255,.1); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }

/* ── Mobile Apps — TOP RIGHT, small 3D phone mockup with crossfading screens ── */
.dbw-fcard-mobile {
    top: 0%; right: 2%; width: 15%; z-index: 4;
    display: flex; flex-direction: column; align-items: center; gap: 7px;
    animation: dbwCardEnter 550ms var(--dbw-ease-spring) 150ms forwards,
               dbwCardFloat 7s ease-in-out 750ms infinite;
}
.dbw-mob-phone {
    width: 100%;
    background: #111318;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 18px 36px rgba(10, 17, 33, .28);
    padding: 5px;
    transform: rotate(-2deg);
}
.dbw-mob-screen { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 9 / 19; background: #0f1117; }
.dbw-mob-screen::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(160deg, rgba(124,92,255,.2), rgba(85,128,255,.14));
    mix-blend-mode: overlay;
}
.dbw-mob-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; filter: saturate(.8) brightness(1.03); }
.dbw-mob-shot-a { animation: dbwMobCrossfadeA 8s ease-in-out infinite; }
.dbw-mob-shot-b { animation: dbwMobCrossfadeB 8s ease-in-out infinite; }
@keyframes dbwMobCrossfadeA {
    0%, 42% { opacity: 1; } 50%, 92% { opacity: 0; } 100% { opacity: 1; }
}
@keyframes dbwMobCrossfadeB {
    0%, 42% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; }
}
.dbw-mob-badges { display: flex; gap: 6px; }
.dbw-mob-badge {
    font-size: 9px; font-weight: 800; color: #16181d;
    background: rgba(10,17,33,.06); padding: 2px 9px; border-radius: 999px;
}
.dbw-mob-tag { display: block; }

/* ── Image Editor — BOTTOM RIGHT, before/after photo comparison. Same
   source photo on both layers — the CSS filter on "before" stands in for
   the edit, an illustrative comparison rather than a captured before/after. ── */
.dbw-fcard-image {
    bottom: 2%; right: 6%; width: 19%; z-index: 2;
    animation: dbwCardEnter 550ms var(--dbw-ease-spring) 300ms forwards,
               dbwCardFloat 7s ease-in-out 900ms infinite;
}
.dbw-ba-frame { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 9px; }
.dbw-ba-after,
.dbw-ba-before { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.dbw-ba-before { filter: grayscale(1) brightness(.85) contrast(.9); }
.dbw-ba-before-wrap {
    position: absolute; inset: 0; overflow: hidden;
    animation: dbwBaWipe 6s ease-in-out infinite;
}
.dbw-ba-divider {
    position: absolute; top: 0; bottom: 0; width: 2px;
    background: #fff; box-shadow: 0 0 8px rgba(0,0,0,.35);
    animation: dbwBaDivider 6s ease-in-out infinite;
}
@keyframes dbwBaWipe {
    0%, 12% { clip-path: inset(0 0 0 0); }
    50%, 62% { clip-path: inset(0 100% 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}
@keyframes dbwBaDivider {
    0%, 12% { left: 100%; }
    50%, 62% { left: 0%; }
    100% { left: 100%; }
}

/* ── SEO Growth — MIDDLE RIGHT, growth chart (was "Analytics") ── */
.dbw-fcard-seo {
    top: 44%; right: 10%; width: 20%; z-index: 2;
    animation: dbwCardEnter 550ms var(--dbw-ease-spring) 450ms forwards,
               dbwCardFloat 6s ease-in-out 1050ms infinite;
}
.dbw-an-head { font-size: 11px; font-weight: 800; color: #16181d; margin-bottom: 10px; }
.dbw-an-chart { display: flex; align-items: flex-end; gap: 5px; height: 40px; margin-bottom: 10px; }
.dbw-an-chart span {
    flex: 1; border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, #ff8a73, #ff6f5a);
    transform: scaleY(0); transform-origin: bottom;
    animation: dbwBarGrow .8s var(--dbw-ease-spring) forwards;
}
.dbw-an-chart span:nth-child(1) { --h: .35; animation-delay: .1s; }
.dbw-an-chart span:nth-child(2) { --h: .55; animation-delay: .2s; }
.dbw-an-chart span:nth-child(3) { --h: .4; animation-delay: .3s; }
.dbw-an-chart span:nth-child(4) { --h: .8; animation-delay: .4s; }
.dbw-an-chart span:nth-child(5) { --h: .62; animation-delay: .5s; }
@keyframes dbwBarGrow { to { transform: scaleY(var(--h)); } }
.dbw-an-stat { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 2px; }
.dbw-an-num { font-size: 19px; font-weight: 800; color: #16181d; font-variant-numeric: tabular-nums; }
.dbw-an-pct { font-size: 13px; font-weight: 800; color: #16181d; }
.dbw-an-lbl { font-size: 10px; color: #888; width: 100%; margin-top: 2px; }

/* ── Invoice Generator — BOTTOM LEFT, doc preview with a "PAID" stamp ── */
.dbw-fcard-invoice {
    bottom: 2%; left: 4%; width: 21%; z-index: 2;
    animation: dbwCardEnter 550ms var(--dbw-ease-spring) 500ms forwards,
               dbwCardFloat 6s ease-in-out 1150ms infinite;
}
.dbw-inv-head { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.dbw-inv-logo { width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(135deg, #7c5cff, #5b8cff); flex-shrink: 0; }
.dbw-inv-num { font-size: 10.5px; font-weight: 800; color: #16181d; }
.dbw-inv-lines { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.dbw-inv-lines span { display: block; height: 6px; border-radius: 3px; background: rgba(10,17,33,.08); }
.dbw-inv-lines .dbw-short { width: 55%; }
.dbw-inv-total {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 11px; color: #16181d; font-weight: 700;
    border-top: 1px dashed rgba(10,17,33,.14); padding-top: 8px;
}
.dbw-inv-total span { font-weight: 500; color: #777; }
.dbw-inv-stamp {
    position: absolute; top: 38%; right: 8%;
    font-size: 15px; font-weight: 800; letter-spacing: .06em;
    color: #22c55e; border: 2.5px solid #22c55e; border-radius: 8px;
    padding: 3px 10px; transform: rotate(-14deg) scale(0); opacity: 0;
    animation: dbwStampPop 5s ease-in-out infinite;
}
@keyframes dbwStampPop {
    0%, 30% { transform: rotate(-14deg) scale(0); opacity: 0; }
    42% { transform: rotate(-14deg) scale(1.15); opacity: 1; }
    50%, 85% { transform: rotate(-14deg) scale(1); opacity: 1; }
    100% { transform: rotate(-14deg) scale(1); opacity: 0; }
}

/* ── WhatsApp Business API — SMALL card, tucked bottom-center in front of
   the core. Illustrative mockup only, not a live/functional chat widget. ── */
.dbw-fcard-wa {
    bottom: 2%; left: 50%; width: 15%; z-index: 5;
    transform: translateX(-50%);
    padding: 0; overflow: hidden;
    animation: dbwCardEnter 550ms var(--dbw-ease-spring) 400ms forwards,
               dbwCardFloat 6s ease-in-out 950ms infinite;
}
.dbw-hero-wa-head {
    display: flex; align-items: center; gap: 7px;
    padding: 8px 10px;
    background: #075e54; color: #fff;
}
.dbw-hero-wa-avatar {
    width: 21px; height: 21px; border-radius: 50%;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    color: #075e54; font-size: 11px; flex-shrink: 0;
}
.dbw-hero-wa-head strong { font-size: 10px; display: block; line-height: 1.2; }
.dbw-hero-wa-status { font-size: 8.5px; color: rgba(255, 255, 255, .7); display: flex; align-items: center; gap: 4px; }
.dbw-hero-wa-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #4ade80; flex-shrink: 0; }
.dbw-hero-wa-badge {
    margin-left: auto;
    width: 15px; height: 15px; border-radius: 50%;
    background: #ff5f57; color: #fff;
    font-size: 8.5px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    animation: dbwWaBadge 2.2s ease-in-out infinite;
}
.dbw-hero-wa-body {
    padding: 9px 10px; background: #e5ded5;
    min-height: 52px; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px;
}
.dbw-hero-wa-bubble {
    align-self: flex-end; background: #dcf8c6;
    border-radius: 9px 9px 2px 9px;
    padding: 6px 9px; font-size: 9.5px; color: #1a1a1a;
    max-width: 85%; opacity: 0; transform: translateY(6px);
}
.dbw-hero-wa-bubble.dbw-show { animation: dbwWaBubbleIn var(--dbw-t-slow) var(--dbw-ease) forwards; }
.dbw-hero-wa-tick { font-size: 8.5px; color: #8696a0; display: inline-flex; gap: 2px; margin-left: 5px; }
.dbw-hero-wa-tick.dbw-read { color: #53bdeb; }
.dbw-hero-wa-typing {
    display: inline-flex; align-items: center; gap: 3px; align-self: flex-start;
    background: #fff; border-radius: 9px; padding: 6px 9px;
}
.dbw-hero-wa-typing span {
    width: 5px; height: 5px; border-radius: 50%; background: #8696a0;
    animation: dbwWaTyping 1.1s ease-in-out infinite;
}
.dbw-hero-wa-typing span:nth-child(2) { animation-delay: .15s; }
.dbw-hero-wa-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dbwWaTyping {
    0%, 60%, 100% { transform: translateY(0); opacity: .5; }
    30% { transform: translateY(-3px); opacity: 1; }
}
@keyframes dbwWaBubbleIn { to { opacity: 1; transform: translateY(0); } }
@keyframes dbwWaBadge {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.12); opacity: .85; }
}

/* ── Resume Builder — left, skeleton preview with an ATS score fill.
   Abstract mockup (no static screenshot exists for this product yet,
   same honesty rule as the rest of this build). ── */
.dbw-fcard-resume {
    top: 40%; left: 8%; width: 21%; z-index: 2;
    animation: dbwCardEnter 550ms var(--dbw-ease-spring) 250ms forwards,
               dbwCardFloat 6s ease-in-out 800ms infinite;
}
.dbw-resume-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.dbw-resume-avatar {
    width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, #ff8a73, #ff6f5a);
}
.dbw-resume-lines-sm { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.dbw-r-name, .dbw-r-role { display: block; height: 6px; border-radius: 3px; background: rgba(10,17,33,.14); }
.dbw-r-role { width: 60%; background: rgba(10,17,33,.08); }
.dbw-resume-lines { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.dbw-resume-lines span { display: block; height: 6px; border-radius: 3px; background: rgba(10,17,33,.08); }
.dbw-resume-lines .dbw-short { width: 55%; }
.dbw-ats-row { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; }
.dbw-ats-track { flex: 1; height: 5px; border-radius: 3px; background: rgba(10,17,33,.08); overflow: hidden; }
.dbw-ats-fill {
    height: 100%; border-radius: 3px;
    background: linear-gradient(90deg, #22c55e, #4ade80);
    transform-origin: left; transform: scaleX(0);
    animation: dbwAtsProgress 4s ease-in-out infinite;
}
@keyframes dbwAtsProgress {
    0% { transform: scaleX(0); }
    70% { transform: scaleX(.92); }
    100% { transform: scaleX(.92); }
}
.dbw-ats-num { font-size: 12px; font-weight: 800; color: #16181d; font-variant-numeric: tabular-nums; }
.dbw-ats-pct { font-size: 10px; font-weight: 800; color: #16181d; margin-left: -4px; }
.dbw-fcard-tag {
    display: inline-block; font-size: 10px; font-weight: 800;
    color: #16181d; background: rgba(10,17,33,.06);
    padding: 3px 10px; border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
    .dbw-mesh-b,
    .dbw-fcard,
    .dbw-sheen,
    .dbw-core-ring,
    .dbw-core-badge,
    .dbw-ai-dots span,
    .dbw-ai-fill,
    .dbw-ats-fill,
    .dbw-mob-shot,
    .dbw-ba-before-wrap,
    .dbw-ba-divider,
    .dbw-inv-stamp,
    .dbw-hero-wa-badge,
    .dbw-hero-wa-typing span,
    .dbw-an-chart span { animation: none; }
    /* the load-in animation is also what brings these to opacity:1 —
       disabling it must not leave them permanently invisible */
    .dbw-fcard { opacity: 1; transform: none; }
    .dbw-ai-fill, .dbw-ats-fill { transform: scaleX(1); }
    .dbw-inv-stamp { opacity: 1; transform: rotate(-14deg) scale(1); }
    .dbw-mob-shot-b { opacity: 0; }
    .dbw-stage { transition: none; }
    .dbw-hero-wa-bubble.dbw-show { animation: none; opacity: 1; transform: none; }
    .dbw-an-chart span { transform: scaleY(var(--h)); }
}

/* ══ SCROLL-REVEAL SYSTEM (reusable — hero applies it now) ══ */
.dbw-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--dbw-t-slow) var(--dbw-ease),
                transform var(--dbw-t-slow) var(--dbw-ease);
}
.dbw-reveal.dbw-in {
    opacity: 1;
    transform: none;
}
/* Hero visual gets an extra "pop" entrance (scale + spring ease). The
   showcase's own devices/cards use a separate load-in animation instead
   (see dbwCardEnter below) since they already run a continuous idle-float
   animation — a transition on the same `transform` property would fight it. */
.dbw-hero-visual.dbw-reveal {
    transform: translateY(24px) scale(.94);
    transition-duration: 550ms;
    transition-timing-function: var(--dbw-ease-spring);
}
.dbw-hero-visual.dbw-reveal.dbw-in {
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .dbw-reveal { opacity: 1; transform: none; transition: none; }
}

/* Stagger helper — apply alongside .dbw-reveal */
.dbw-reveal.dbw-d1 { transition-delay: 0ms; }
.dbw-reveal.dbw-d2 { transition-delay: 90ms; }
.dbw-reveal.dbw-d3 { transition-delay: 180ms; }
.dbw-reveal.dbw-d4 { transition-delay: 270ms; }

/* ══ RESPONSIVE ═══════════════════════════════════════ */
@media (max-width: 991px) {
    /* Tablet: whole ecosystem stays, scaled down as one unit — all
       positioning below is %-based off .dbw-hero-visual, so it scales
       proportionally with the container; only the fixed px sizes
       (core hub, font sizes) need explicit shrinking. */
    .dbw-hero-visual { max-width: 480px; margin-top: 28px; }
    .dbw-stage { height: 480px; }
    .dbw-fcard { padding: 10px 11px; }
    .dbw-core { width: 88px; height: 88px; }
    .dbw-core-badge { width: 58px; height: 58px; }
    .dbw-core-logo { width: 34px; height: 34px; }
    .dbw-core-mark { font-size: 18px; }
    .dbw-core-label { font-size: 7px; }
    .dbw-ai-head, .dbw-an-head, .dbw-fcard-tag { font-size: 10.5px; }
    .dbw-ai-status, .dbw-an-lbl { font-size: 9.5px; }
    .dbw-an-num, .dbw-ats-num { font-size: 15px; }
    .dbw-builder-meta strong { font-size: 11px; }
    .dbw-inv-stamp { font-size: 12px; padding: 2px 8px; }
    .dbw-hero-wa-head strong { font-size: 11px; }
    .dbw-hero-wa-bubble, .dbw-hero-wa-typing { font-size: 10px; }
}
@media (max-width: 575px) {
    /* Small screens: keep the AI Core hub + flagship Website Builder card
       as the sole focus, stacked. Fewer simultaneous animated layers is
       also lighter on lower-powered devices. */
    .dbw-hero-visual { max-width: 300px; }
    .dbw-stage { height: 260px; }
    .dbw-fcard-builder { top: 8%; left: 3%; width: 94%; }
    .dbw-core,
    .dbw-fcard-mobile,
    .dbw-fcard-image,
    .dbw-fcard-seo,
    .dbw-fcard-invoice,
    .dbw-fcard-wa,
    .dbw-fcard-resume,
    .dbw-mesh-b3 { display: none; }
}
@media (hover: none) {
    /* touch devices: no pointer to tilt, keep the entrance animations only */
    .dbw-stage { perspective: none; }
}
