/* ===== 3D PRODUCT HERO VISUAL (Build + Growth pages) — .dc-h3d-* =====
   One reusable component: a tilted 3D stage holding a main browser window,
   a phone or side panel in front of it, two floating cards and the tech
   chips. Each page fills the window/phone with its own content using the
   small building blocks below (kpis, chart, rows, chat, steps, flow, code…).

   Structure (480 × 440 stage):
     .dc-h3d-scene                     scales the whole thing (--s)
       .dc-h3d-glow                    ambient light behind
       .dc-h3d-stage                   3D tilt; straightens on hover
         .dc-h3d-window                main browser window (back layer)
         .dc-h3d-phone | .dc-h3d-panel front device / card
         .dc-h3d-toast                 floating status card (top right)
         .dc-h3d-tag                   floating mono card (left)
         .dc-h3d-stack                 tech chips (bottom)

   Responsive: the stage is scaled with --s (and its layout box shrunk to
   match), so it fits every screen without re-laying-out its contents. */

/* ---------- Scene + stage ---------- */
.dc-h3d-scene {
    --s: 1;
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
    align-items: flex-start;
    height: calc(440px * var(--s));
    perspective: 1600px;
    animation: dc-h3d-float 7s ease-in-out infinite;
}

.dc-h3d-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.22), rgba(124, 77, 255, 0.1) 45%, transparent 70%);
    filter: blur(10px);
}

.dc-h3d-stage {
    position: relative;
    flex-shrink: 0;
    width: 480px;
    height: 440px;
    transform-style: preserve-3d;
    transform-origin: top center;
    transform: rotateY(-14deg) rotateX(8deg);
    scale: var(--s);
    /* `scale` doesn't shrink the layout box — pull the sides in to match */
    margin-inline: calc(240px * (var(--s) - 1));
    transition: transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1);
    color: var(--text-white);
    text-align: left;
}

.dc-learn-hero-visual:hover .dc-h3d-stage {
    transform: rotateY(-5deg) rotateX(3deg);
}

@keyframes dc-h3d-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

@keyframes dc-h3d-in {
    from { opacity: 0; translate: 0 20px; }
    to   { opacity: 1; translate: 0 0; }
}

@keyframes dc-h3d-card-in {
    from { opacity: 0; translate: 0 -10px; }
    to   { opacity: 1; translate: 0 0; }
}

/* ---------- Main browser window ---------- */
.dc-h3d-window {
    position: absolute;
    top: 40px;
    left: 0;
    width: 400px;
    height: 285px;
    border-radius: 16px;
    background: linear-gradient(160deg, #143352, #0c2136);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 40px 80px -30px rgba(0, 0, 0, 0.75),
        0 0 0 1px rgba(0, 229, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
    opacity: 0;
    animation: dc-h3d-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s forwards;
}

.dc-h3d-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dc-h3d-bar > i { width: 8px; height: 8px; border-radius: 50%; }
.dc-h3d-bar > i:nth-child(1) { background: #ff5f57; }
.dc-h3d-bar > i:nth-child(2) { background: #febc2e; }
.dc-h3d-bar > i:nth-child(3) { background: #28c840; }

.dc-h3d-url {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 18px;
    margin-left: 10px;
    padding: 0 10px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 600;
}

/* padlock drawn in CSS */
.dc-h3d-url::before {
    content: '';
    width: 7px;
    height: 6px;
    margin-top: 2px;
    border-radius: 1.5px;
    background: #4ade9b;
}

.dc-h3d-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: calc(100% - 30px);
    padding: 12px 14px;
    overflow: hidden;
}

/* App shell with a slim sidebar */
.dc-h3d-app {
    display: grid;
    grid-template-columns: 46px 1fr;
    height: calc(100% - 30px);
}

.dc-h3d-app > .dc-h3d-body {
    height: 100%;
    min-width: 0;
}

.dc-h3d-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    background: rgba(0, 0, 0, 0.18);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.dc-h3d-logo {
    width: 22px;
    height: 22px;
    margin-bottom: 4px;
    border-radius: 7px;
    background: var(--gradient-accent);
    box-shadow: 0 6px 14px -4px rgba(0, 229, 255, 0.6);
}

.dc-h3d-nav {
    width: 20px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.14);
}

.dc-h3d-nav.is-active { background: var(--accent-color); }

/* ---------- Front devices ---------- */
.dc-h3d-notch {
    display: block;
    width: 32px;
    height: 5px;
    margin: 8px auto 10px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
}

.dc-h3d-phone {
    position: absolute;
    right: 6px;
    bottom: 52px;
    width: 138px;
    height: 270px;
    border-radius: 24px;
    background: #0b1a2c;
    border: 2px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 40px 70px -25px rgba(0, 0, 0, 0.85), inset 0 0 0 4px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    opacity: 0;
    transform: translateZ(60px);
    animation: dc-h3d-in 0.6s cubic-bezier(0.34, 1.2, 0.4, 1) 0.7s forwards;
}

.dc-h3d-phone > .dc-h3d-body {
    height: auto;
    gap: 9px;
    padding: 0 12px;
}

/* Mobile-app page: two phones, no browser */
.dc-h3d-phone.is-main {
    top: 20px;
    right: auto;
    bottom: auto;
    left: 70px;
    width: 168px;
    height: 330px;
    border-radius: 28px;
    transform: translateZ(20px);
}

.dc-h3d-phone.is-main + .dc-h3d-phone {
    right: 40px;
    bottom: 60px;
}

.dc-h3d-panel {
    position: absolute;
    right: 0;
    bottom: 64px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    width: 172px;
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(25, 58, 92, 0.96), rgba(12, 33, 54, 0.96));
    border: 1px solid rgba(0, 229, 255, 0.28);
    box-shadow: 0 40px 70px -25px rgba(0, 0, 0, 0.85);
    opacity: 0;
    transform: translateZ(60px);
    animation: dc-h3d-in 0.6s cubic-bezier(0.34, 1.2, 0.4, 1) 0.7s forwards;
}

.dc-h3d-panel-title {
    color: var(--text-muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---------- Floating cards ---------- */
.dc-h3d-toast,
.dc-h3d-tag {
    position: absolute;
    display: flex;
    align-items: center;
    background: rgba(13, 25, 43, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.7);
    opacity: 0;
    white-space: nowrap;
}

.dc-h3d-toast {
    top: 0;
    right: 10px;
    gap: 10px;
    padding: 10px 16px 10px 12px;
    border: 1px solid rgba(74, 222, 155, 0.45);
    border-radius: 14px;
    transform: translateZ(90px);
    animation: dc-h3d-card-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.6s forwards;
}

.dc-h3d-toast > i {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: rgba(74, 222, 155, 0.16);
    color: #4ade9b;
    font-size: 0.85rem;
}

.dc-h3d-toast span {
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.35;
}

.dc-h3d-toast strong {
    display: block;
    color: var(--text-white);
    font-size: 12px;
}

.dc-h3d-tag {
    top: 318px;
    left: -12px;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 12px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 10.5px;
    transform: translateZ(80px);
    animation: dc-h3d-card-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.9s forwards;
}

.dc-h3d-tag b {
    padding: 2px 6px;
    border-radius: 5px;
    background: var(--accent-color);
    color: var(--primary-color);
    font-weight: 800;
}

.dc-h3d-tag em {
    color: #4ade9b;
    font-style: normal;
    font-weight: 700;
}

/* ---------- Tech chips ---------- */
.dc-h3d-stack {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    transform: translateZ(40px);
}

.dc-h3d-stack li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--text-white);
    font-size: 0.78rem;
    font-weight: 700;
}

.dc-h3d-stack i { color: var(--accent-color); }

/* =========================================================
   BUILDING BLOCKS (used inside .dc-h3d-body / .dc-h3d-panel)
   ========================================================= */

/* Header row: title + avatar / button / status pill */
.dc-h3d-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.dc-h3d-title {
    color: var(--text-white);
    font-size: 11px;
    font-weight: 700;
}

.dc-h3d-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c4dff, var(--accent-color));
}

.dc-h3d-btn {
    padding: 4px 10px;
    border-radius: 7px;
    background: var(--accent-color);
    color: var(--primary-color);
    font-size: 8.5px;
    font-weight: 800;
}

.dc-h3d-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(74, 222, 155, 0.15);
    color: #4ade9b;
    font-size: 7.5px;
    font-weight: 700;
    white-space: nowrap;
}

.dc-h3d-pill.is-cyan   { background: rgba(0, 229, 255, 0.15); color: var(--accent-color); }
.dc-h3d-pill.is-amber  { background: rgba(255, 192, 67, 0.15); color: #ffc043; }
.dc-h3d-pill.is-violet { background: rgba(180, 156, 255, 0.16); color: #b49cff; }
.dc-h3d-pill.is-red    { background: rgba(255, 95, 87, 0.15); color: #ff8a84; }

/* Live dot that pulses (e.g. "Running", "Online") */
.dc-h3d-pill.is-live::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    animation: dc-h3d-pulse 1.4s ease-in-out infinite;
}

@keyframes dc-h3d-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.25; }
}

/* KPI tiles */
.dc-h3d-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.dc-h3d-kpis.is-2 { grid-template-columns: repeat(2, 1fr); }

.dc-h3d-kpi {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dc-h3d-kpi.is-hero {
    padding: 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.22), rgba(124, 77, 255, 0.18));
    border-color: rgba(0, 229, 255, 0.3);
}

.dc-h3d-kpi span {
    color: var(--text-muted);
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dc-h3d-kpi strong {
    color: var(--text-white);
    font-size: 13px;
    font-weight: 800;
}

.dc-h3d-kpi.is-hero strong { font-size: 16px; }

.dc-h3d-kpi em {
    color: #4ade9b;
    font-size: 8px;
    font-style: normal;
    font-weight: 700;
}

/* Line + area chart (SVG inside) */
.dc-h3d-chart {
    flex: 1;
    min-height: 0;
    padding-top: 6px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.dc-h3d-panel .dc-h3d-chart {
    flex: none;
    height: 64px;
}

.dc-h3d-chart svg {
    display: block;
    width: 100%;
    height: 100%;
}

.dc-h3d-chart-area { fill: url(#dc-h3d-area); }

.dc-h3d-chart-line {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: dc-h3d-draw 1.6s ease-out 0.6s forwards;
}

@keyframes dc-h3d-draw { to { stroke-dashoffset: 0; } }

/* Bar chart: <div class="dc-h3d-bars"><i style="--h:60%"></i>…</div> */
.dc-h3d-bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: var(--bars-h, 58px);
    flex-shrink: 0;
}

.dc-h3d-bars i {
    flex: 1;
    height: var(--h);
    border-radius: 3px 3px 0 0;
    background: linear-gradient(to top, rgba(0, 229, 255, 0.25), var(--accent-color));
    transform-origin: bottom;
    transform: scaleY(0);
    animation: dc-h3d-grow 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(1.1s + var(--n, 0) * 0.06s);
}

.dc-h3d-bars i.is-dim { background: rgba(255, 255, 255, 0.16); }

@keyframes dc-h3d-grow { to { transform: scaleY(1); } }

/* List rows */
.dc-h3d-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dc-h3d-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 18px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 8.5px;
    color: #d8e2f0;
}

.dc-h3d-row.is-highlight {
    background: rgba(0, 229, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.35);
}

.dc-h3d-row > i:first-child {
    color: var(--accent-color);
    font-size: 8px;
}

.dc-h3d-dot {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
}

.dc-h3d-row .dc-h3d-pill:last-child { margin-left: auto; }
/* Status pill leading the row (task lists): stays left, fixed width so the text lines up */
.dc-h3d-row > .dc-h3d-pill.is-start { margin-left: 0; min-width: 46px; justify-content: center; }

/* Text skeleton lines (--w sets width) */
.dc-h3d-line {
    display: block;
    flex-shrink: 0;
    width: var(--w, 100%);
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.14);
}

.dc-h3d-line.is-accent { background: rgba(0, 229, 255, 0.45); }
.dc-h3d-line.is-lg { height: 10px; background: rgba(255, 255, 255, 0.28); }

/* Image / media placeholder */
.dc-h3d-media {
    flex-shrink: 0;
    height: var(--mh, 60px);
    border-radius: 9px;
    background:
        radial-gradient(circle at 75% 30%, rgba(255, 255, 255, 0.35) 0 6%, transparent 7%),
        linear-gradient(135deg, hsl(var(--hue, 190) 80% 55% / 0.55), hsl(calc(var(--hue, 190) + 60) 70% 45% / 0.45));
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Chat bubbles */
.dc-h3d-msgs {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.dc-h3d-msg {
    max-width: 82%;
    padding: 7px 10px;
    border-radius: 11px;
    font-size: 8.5px;
    line-height: 1.45;
    opacity: 0;
    animation: dc-h3d-card-in 0.4s ease-out forwards;
    animation-delay: calc(0.9s + var(--n, 0) * 0.5s);
}

.dc-h3d-msg.is-user {
    align-self: flex-end;
    border-bottom-right-radius: 3px;
    background: var(--accent-color);
    color: var(--primary-color);
    font-weight: 600;
}

.dc-h3d-msg.is-bot {
    align-self: flex-start;
    border-bottom-left-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e3ebf5;
}

.dc-h3d-typing {
    display: inline-flex;
    gap: 3px;
    align-self: flex-start;
    padding: 8px 10px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.08);
}

.dc-h3d-typing i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: dc-h3d-pulse 1s ease-in-out infinite;
}

.dc-h3d-typing i:nth-child(2) { animation-delay: 0.15s; }
.dc-h3d-typing i:nth-child(3) { animation-delay: 0.3s; }

/* Prompt / input box */
.dc-h3d-input {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 6px 6px 6px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: var(--text-muted);
    font-size: 8.5px;
}

.dc-h3d-input > span { flex: 1; }

.dc-h3d-input > i {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: var(--accent-color);
    color: var(--primary-color);
    font-size: 8px;
}

/* Checklist steps (done / running / waiting) */
.dc-h3d-steps {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dc-h3d-steps li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #d8e2f0;
    font-size: 9px;
    opacity: 0;
    animation: dc-h3d-card-in 0.4s ease-out forwards;
    animation-delay: calc(0.8s + var(--n, 0) * 0.35s);
}

.dc-h3d-steps li::before {
    content: '';
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #4ade9b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1c2d' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 9px no-repeat;
}

.dc-h3d-steps li.is-active {
    border-color: rgba(0, 229, 255, 0.4);
    background: rgba(0, 229, 255, 0.08);
    color: var(--text-white);
}

.dc-h3d-steps li.is-active::before {
    background: none;
    border: 2px solid rgba(0, 229, 255, 0.25);
    border-top-color: var(--accent-color);
    animation: dc-h3d-spin 0.9s linear infinite;
}

.dc-h3d-steps li.is-waiting { color: var(--text-muted); }
.dc-h3d-steps li.is-waiting::before { background: none; border: 2px dashed rgba(255, 255, 255, 0.25); }

.dc-h3d-steps li .dc-h3d-pill { margin-left: auto; }

@keyframes dc-h3d-spin { to { transform: rotate(360deg); } }

/* Progress bar: <div class="dc-h3d-progress" style="--p:75%"><i></i></div> */
.dc-h3d-progress {
    flex-shrink: 0;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.dc-h3d-progress i {
    display: block;
    width: var(--p, 60%);
    height: 100%;
    border-radius: inherit;
    background: var(--gradient-accent);
    transform-origin: left;
    transform: scaleX(0);
    animation: dc-h3d-fill 1.2s cubic-bezier(0.2, 0.9, 0.3, 1) 1s forwards;
}

@keyframes dc-h3d-fill { to { transform: scaleX(1); } }

/* Node flow: nodes joined by animated links (row or column) */
.dc-h3d-flow {
    display: flex;
    align-items: center;
}

.dc-h3d-flow.is-column {
    flex-direction: column;
    align-items: stretch;
}

.dc-h3d-node {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 9px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 8.5px;
    font-weight: 600;
    white-space: nowrap;
}

.dc-h3d-flow:not(.is-column) .dc-h3d-node {
    flex-direction: column;
    gap: 5px;
    padding: 8px 6px;
    text-align: center;
}

.dc-h3d-node > i {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.35), rgba(124, 77, 255, 0.3));
    color: var(--text-white);
    font-size: 9px;
}

.dc-h3d-node.is-on {
    border-color: rgba(0, 229, 255, 0.5);
    box-shadow: 0 0 18px -6px rgba(0, 229, 255, 0.7);
}

.dc-h3d-node .dc-h3d-pill { margin-left: auto; }

.dc-h3d-link {
    position: relative;
    flex: 1;
    min-width: 14px;
    height: 2px;
    background: rgba(0, 229, 255, 0.25);
    overflow: hidden;
}

.dc-h3d-flow.is-column .dc-h3d-link {
    flex: 0 0 12px;
    width: 2px;
    height: 12px;
    min-width: 0;
    margin-left: 19px;
}

/* a light pulse travels along every link */
.dc-h3d-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    animation: dc-h3d-travel 1.8s linear infinite;
}

.dc-h3d-flow.is-column .dc-h3d-link::after {
    background: linear-gradient(180deg, transparent, var(--accent-color), transparent);
    animation-name: dc-h3d-travel-y;
}

@keyframes dc-h3d-travel   { from { translate: -100% 0; } to { translate: 100% 0; } }
@keyframes dc-h3d-travel-y { from { translate: 0 -100%; } to { translate: 0 100%; } }

/* Code block */
.dc-h3d-code {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 9px 10px;
    border-radius: 9px;
    background: rgba(3, 10, 22, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.07);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 8.5px;
    line-height: 1.4;
    color: #c9d6e6;
    white-space: nowrap;
    overflow: hidden;
}

.dc-h3d-code .k { color: #c792ea; }
.dc-h3d-code .f { color: var(--accent-color); }
.dc-h3d-code .s { color: #4ade9b; }
.dc-h3d-code .n { color: #ffc043; }
.dc-h3d-code .c { color: #6b7f98; }
.dc-h3d-code .del { color: #ff8a84; text-decoration: line-through; }

/* Product cards (store) */
.dc-h3d-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.dc-h3d-product {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dc-h3d-product .dc-h3d-media { --mh: 52px; border-radius: 7px; }

.dc-h3d-product strong {
    color: var(--text-white);
    font-size: 9px;
}

.dc-h3d-product .dc-h3d-btn {
    text-align: center;
    padding: 3px 0;
}

/* Kanban columns */
.dc-h3d-kanban {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    min-height: 0;
}

.dc-h3d-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 7px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.dc-h3d-col > span {
    color: var(--text-muted);
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dc-h3d-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 7px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.07);
    border-left: 2px solid var(--accent-color);
}

/* Cards and variants can hold a short text label instead of skeleton lines */
.dc-h3d-card,
.dc-h3d-variant {
    color: #d8e2f0;
    font-size: 8px;
    font-weight: 600;
    line-height: 1.35;
}

.dc-h3d-card.is-amber  { border-left-color: #ffc043; }
.dc-h3d-card.is-violet { border-left-color: #b49cff; }
.dc-h3d-card.is-green  { border-left-color: #4ade9b; }

/* Database tables (schema) */
.dc-h3d-tables {
    position: relative;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: start;
}

.dc-h3d-table {
    position: relative;
    z-index: 1;
    border-radius: 9px;
    background: rgba(13, 31, 51, 0.95);
    border: 1px solid rgba(0, 229, 255, 0.3);
    overflow: hidden;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 8px;
}

.dc-h3d-table:nth-child(2) { margin-top: 34px; }

.dc-h3d-table > b {
    display: block;
    padding: 5px 8px;
    background: rgba(0, 229, 255, 0.16);
    color: var(--text-white);
    font-size: 8.5px;
}

.dc-h3d-table > span {
    display: flex;
    justify-content: space-between;
    padding: 4px 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #c9d6e6;
}

.dc-h3d-table > span em {
    color: #6b7f98;
    font-style: normal;
}

.dc-h3d-table > span.is-key { color: #ffc043; }

.dc-h3d-tables svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.dc-h3d-tables path {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 1.5;
    stroke-dasharray: 4 4;
    animation: dc-h3d-dash 1s linear infinite;
}

@keyframes dc-h3d-dash { to { stroke-dashoffset: -8; } }

/* Score gauge: <div class="dc-h3d-gauge" style="--v:98"><b>98</b><span>Score</span></div> */
.dc-h3d-gauge {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    width: var(--g, 92px);
    height: var(--g, 92px);
    flex-shrink: 0;
    border-radius: 50%;
    background:
        radial-gradient(closest-side, #10294a 78%, transparent 80% 100%),
        conic-gradient(#4ade9b calc(var(--v) * 1%), rgba(255, 255, 255, 0.1) 0);
}

.dc-h3d-gauge b {
    color: var(--text-white);
    font-size: calc(var(--g, 92px) * 0.26);
    font-weight: 800;
    line-height: 1;
}

.dc-h3d-gauge span {
    color: var(--text-muted);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Donut chart: conic segments set inline via --a, --b (percent stops) */
.dc-h3d-donut {
    width: 74px;
    height: 74px;
    flex-shrink: 0;
    border-radius: 50%;
    background:
        radial-gradient(closest-side, #132f4f 62%, transparent 64% 100%),
        conic-gradient(var(--accent-color) 0 var(--a, 45%), #7c4dff 0 var(--b, 75%), #ffc043 0);
}

.dc-h3d-legend {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 8px;
    color: #c9d6e6;
}

.dc-h3d-legend span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dc-h3d-legend span::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--c, var(--accent-color));
}

/* Before → after comparison bars */
.dc-h3d-compare {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.dc-h3d-compare > div {
    display: grid;
    grid-template-columns: 44px 1fr 30px;
    align-items: center;
    gap: 8px;
    font-size: 8px;
    color: var(--text-muted);
}

.dc-h3d-compare b {
    color: var(--text-white);
    font-weight: 700;
    text-align: right;
}

/* Layout helpers */
.dc-h3d-split {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dc-h3d-split > .dc-h3d-grow { flex: 1; min-width: 0; }

.dc-h3d-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.dc-h3d-fill { flex: 1; min-height: 0; }

.dc-h3d-note {
    color: var(--text-muted);
    font-size: 8px;
    line-height: 1.4;
}

.dc-h3d-ai {
    display: flex;
    gap: 7px;
    padding: 8px 9px;
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.25), rgba(0, 229, 255, 0.14));
    border: 1px solid rgba(180, 156, 255, 0.45);
    font-size: 8.5px;
    line-height: 1.45;
    color: #eef2ff;
}

.dc-h3d-ai > i {
    color: #b49cff;
    font-size: 10px;
    margin-top: 1px;
}

/* ---------- Marketing & creative blocks (Growth pages) ---------- */

/* Google-style search result: url, title, snippet */
.dc-h3d-result {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 7px 9px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.dc-h3d-result.is-top {
    background: rgba(74, 222, 155, 0.08);
    box-shadow: inset 0 0 0 1px rgba(74, 222, 155, 0.4);
}

.dc-h3d-result small {
    color: #4ade9b;
    font-size: 7.5px;
}

.dc-h3d-result b {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #8ab4ff;
    font-size: 9.5px;
    font-weight: 700;
}

.dc-h3d-result b .dc-h3d-pill { margin-left: auto; }

/* Plain text inside a result card (e.g. a review quote) */
.dc-h3d-result > span:not([class]) {
    color: #c9d6e6;
    font-size: 8px;
    line-height: 1.4;
}

/* Social / ad post: author row, media, reactions */
.dc-h3d-post {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.dc-h3d-author {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 8.5px;
    font-weight: 700;
}

.dc-h3d-author small {
    display: block;
    color: var(--text-muted);
    font-size: 7px;
    font-weight: 600;
}

.dc-h3d-reacts {
    display: flex;
    gap: 12px;
    color: #c9d6e6;
    font-size: 8px;
    font-weight: 700;
}

.dc-h3d-reacts span::before { content: "\2665\00a0"; color: #ff6b8a; }
.dc-h3d-reacts span:nth-child(2)::before { content: "\25CF\00a0"; color: var(--accent-color); }
.dc-h3d-reacts span:nth-child(3)::before { content: "\2197\00a0"; color: #4ade9b; }

/* Media with a play button */
.dc-h3d-media.is-video {
    position: relative;
    display: grid;
    place-items: center;
}

.dc-h3d-media.is-video::after {
    content: '';
    width: 0;
    height: 0;
    margin-left: 3px;
    border-style: solid;
    border-width: 7px 0 7px 11px;
    border-color: transparent transparent transparent #fff;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

/* Editing timeline: tracks with clips (--x start, --w width) and a playhead */
.dc-h3d-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 7px;
    border-radius: 9px;
    background: rgba(3, 10, 22, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.dc-h3d-track {
    position: relative;
    height: 13px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.04);
}

.dc-h3d-track i {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--x);
    width: var(--w);
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.55), rgba(0, 229, 255, 0.3));
    border: 1px solid rgba(0, 229, 255, 0.6);
}

.dc-h3d-track.is-violet i { background: linear-gradient(90deg, rgba(124, 77, 255, 0.6), rgba(124, 77, 255, 0.3)); border-color: rgba(180, 156, 255, 0.7); }
.dc-h3d-track.is-amber i  { background: linear-gradient(90deg, rgba(255, 192, 67, 0.55), rgba(255, 192, 67, 0.25)); border-color: rgba(255, 192, 67, 0.7); }
.dc-h3d-track.is-wave i {
    background: repeating-linear-gradient(90deg, rgba(74, 222, 155, 0.7) 0 2px, transparent 2px 4px);
    border-color: rgba(74, 222, 155, 0.5);
}

.dc-h3d-playhead {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 18%;
    width: 2px;
    border-radius: 1px;
    background: #ff5f57;
    box-shadow: 0 0 8px rgba(255, 95, 87, 0.8);
    animation: dc-h3d-playhead 6s linear infinite;
}

@keyframes dc-h3d-playhead { from { left: 6%; } to { left: 94%; } }

/* Colour swatches (--c) */
.dc-h3d-swatches {
    display: flex;
    gap: 6px;
}

.dc-h3d-swatches i {
    flex: 1;
    height: var(--sw-h, 26px);
    border-radius: 7px;
    background: var(--c);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* Brand mark: big logo tile with initials */
.dc-h3d-mark {
    display: grid;
    place-items: center;
    width: var(--m, 64px);
    height: var(--m, 64px);
    flex-shrink: 0;
    border-radius: 30%;
    background: linear-gradient(135deg, #00e5ff, #7c4dff);
    color: #fff;
    font-size: calc(var(--m, 64px) * 0.42);
    font-weight: 900;
    letter-spacing: -0.04em;
    box-shadow: 0 14px 30px -10px rgba(124, 77, 255, 0.8);
}

.dc-h3d-type {
    color: var(--text-white);
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
}

/* Design canvas: dotted artboard with selection handles */
.dc-h3d-canvas {
    position: relative;
    flex: 1;
    min-height: 0;
    padding: 10px;
    border-radius: 9px;
    background: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px) 0 0 / 12px 12px, rgba(3, 10, 22, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.dc-h3d-select {
    position: relative;
    outline: 1.5px solid var(--accent-color);
    outline-offset: 3px;
}

.dc-h3d-select::before,
.dc-h3d-select::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border: 1.5px solid var(--accent-color);
}

.dc-h3d-select::before { top: -7px; left: -7px; }
.dc-h3d-select::after  { bottom: -7px; right: -7px; }

/* Mouse pointer (SVG inside) */
.dc-h3d-cursor {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    gap: 2px;
    animation: dc-h3d-cursor 5s ease-in-out infinite;
}

.dc-h3d-cursor svg {
    width: 14px;
    height: 14px;
    fill: #fff;
    stroke: #0b1c2d;
    stroke-width: 1.5;
}

.dc-h3d-cursor span {
    margin-top: 10px;
    padding: 2px 6px;
    border-radius: 5px;
    background: #7c4dff;
    color: #fff;
    font-size: 7.5px;
    font-weight: 700;
}

@keyframes dc-h3d-cursor {
    0%, 100% { translate: 0 0; }
    50%      { translate: -18px 10px; }
}

/* Heatmap blobs over a page (positions via --x/--y) */
.dc-h3d-heat {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--r, 40px);
    height: var(--r, 40px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 70, 70, 0.75), rgba(255, 192, 67, 0.45) 40%, rgba(74, 222, 155, 0.2) 65%, transparent 72%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Form fields */
.dc-h3d-field {
    display: flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #c9d6e6;
    font-size: 8px;
}

/* Funnel: bars that narrow stage by stage (--w) */
.dc-h3d-funnel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.dc-h3d-funnel > div {
    display: flex;
    justify-content: space-between;
    width: var(--w);
    padding: 5px 9px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.35), rgba(124, 77, 255, 0.35));
    border: 1px solid rgba(0, 229, 255, 0.3);
    font-size: 8px;
    font-weight: 700;
}

.dc-h3d-funnel b { color: var(--text-white); }

/* A/B variant card */
.dc-h3d-variant {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dc-h3d-variant.is-winner {
    border-color: rgba(74, 222, 155, 0.6);
    box-shadow: 0 0 22px -8px rgba(74, 222, 155, 0.7);
}

.dc-h3d-variant strong {
    color: var(--text-white);
    font-size: 15px;
    font-weight: 800;
}

/* Keyframe diamonds on a motion timeline */
.dc-h3d-track.is-keys i {
    width: 7px;
    height: 7px;
    top: 3px;
    bottom: auto;
    border-radius: 1px;
    background: #ffc043;
    border: 0;
    transform: rotate(45deg);
}

/* Floating shape that animates (motion graphics) */
.dc-h3d-shape {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-color), #7c4dff);
    box-shadow: 0 10px 24px -8px rgba(124, 77, 255, 0.8);
    animation: dc-h3d-shape 3s cubic-bezier(0.6, 0, 0.4, 1) infinite alternate;
}

@keyframes dc-h3d-shape {
    from { translate: 0 0; rotate: 0deg; border-radius: 10px; }
    to   { translate: 150px 0; rotate: 180deg; border-radius: 50%; }
}

/* ---------- People, infra & consulting blocks (Hire / Hosting / Enterprise) ---------- */

/* Wrapping list of small pills (skills, tags) */
.dc-h3d-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* Large avatar with initials (developer / team member) */
.dc-h3d-avatar.is-lg {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 0 0 2px rgba(74, 222, 155, 0.7), 0 8px 18px -6px rgba(124, 77, 255, 0.7);
}

.dc-h3d-avatar.is-sm {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    color: #fff;
    font-size: 7.5px;
    font-weight: 800;
}

.dc-h3d-stars {
    color: #ffc043;
    font-size: 8px;
    letter-spacing: 1px;
}

/* Architecture tier: label + nodes in one row */
.dc-h3d-tier {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 9px;
    border: 1px dashed rgba(0, 229, 255, 0.28);
    background: rgba(0, 229, 255, 0.03);
}

.dc-h3d-tier > span:first-child {
    width: 48px;
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dc-h3d-tier .dc-h3d-node {
    flex: 1;
    justify-content: center;
    padding: 5px 6px;
}

.dc-h3d-tier .dc-h3d-node > i {
    width: 16px;
    height: 16px;
    font-size: 7px;
}

/* Server rack unit with status lights */
.dc-h3d-server {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 8.5px;
    color: #d8e2f0;
}

.dc-h3d-server::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade9b;
    box-shadow: 0 0 8px #4ade9b, 10px 0 0 -1px rgba(0, 229, 255, 0.8);
    margin-right: 10px;
    animation: dc-h3d-pulse 1.6s ease-in-out infinite;
}

.dc-h3d-server .dc-h3d-pill:last-child { margin-left: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .dc-h3d-scene { --s: 0.85; }
}

@media (max-width: 900px) {
    .dc-h3d-scene {
        --s: 0.8;
        margin-top: 24px;
        height: calc(400px * var(--s));
    }

    /* The hero pills above already list these on small screens */
    .dc-h3d-stack { display: none; }
}

@media (max-width: 480px) {
    .dc-h3d-scene { --s: 0.64; }
}

@media (max-width: 360px) {
    .dc-h3d-scene { --s: 0.58; }
}

/* ---------- Reduced motion: show the finished state ---------- */
@media (prefers-reduced-motion: reduce) {
    .dc-h3d-scene,
    .dc-h3d-window,
    .dc-h3d-phone,
    .dc-h3d-panel,
    .dc-h3d-toast,
    .dc-h3d-tag,
    .dc-h3d-msg,
    .dc-h3d-steps li {
        animation: none;
        opacity: 1;
    }

    .dc-h3d-chart-line { animation: none; stroke-dashoffset: 0; }
    .dc-h3d-bars i,
    .dc-h3d-progress i { animation: none; transform: none; }
    .dc-h3d-link::after,
    .dc-h3d-tables path,
    .dc-h3d-pill.is-live::before,
    .dc-h3d-typing i,
    .dc-h3d-playhead,
    .dc-h3d-cursor,
    .dc-h3d-shape,
    .dc-h3d-server::before,
    .dc-h3d-steps li.is-active::before { animation: none; }
    .dc-h3d-stage { transition: none; }
