/* Home page hero + dashboard telemetry */

.home-page-hero.hero-main {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    min-height: 90vh;
    /* hero-backgrounds.css forces background-attachment: fixed on .hero-section.
       Combined with the gradient-clipped headline (background-clip: text), Chromium
       promotes the h1 to its own layer and paints a visible seam box around it.
       Scroll attachment removes the artifact (and the costly repaint-on-scroll). */
    background-attachment: scroll !important;
}

/* Aurora layer: two soft color blobs drifting very slowly behind the content.
   Kept on its own pseudo-element so the transform animation never moves the
   static grid/vignette layer below. */
.home-page-hero.hero-main::before {
    content: "";
    position: absolute;
    inset: -20%;
    pointer-events: none;
    background:
        radial-gradient(38% 42% at 22% 24%, rgba(56, 189, 248, 0.30), transparent 70%),
        radial-gradient(34% 38% at 80% 12%, rgba(139, 92, 246, 0.26), transparent 70%),
        radial-gradient(30% 36% at 68% 84%, rgba(45, 212, 191, 0.14), transparent 70%);
    filter: blur(46px);
    animation: heroAurora 22s ease-in-out infinite alternate;
    z-index: 0;
}

/* Static depth layer: film-grain texture, faint blueprint grid, a top light
   beam, and a bottom vignette that seats the section against the next one. */
.home-page-hero.hero-main::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E") repeat 0 0 / 160px 160px,
        linear-gradient(90deg, transparent 10%, rgba(125, 211, 252, 0.45) 38%, rgba(139, 92, 246, 0.45) 62%, transparent 90%) no-repeat 0 100% / 100% 1px,
        linear-gradient(rgba(148, 197, 253, 0.045) 1px, transparent 1px) 0 0 / 100% 44px,
        linear-gradient(90deg, rgba(148, 197, 253, 0.045) 1px, transparent 1px) 0 0 / 44px 100%,
        linear-gradient(180deg, rgba(186, 230, 253, 0.10), transparent 18%),
        linear-gradient(180deg, rgba(8, 17, 31, 0.06), rgba(2, 6, 23, 0.40));
    z-index: 0;
}

/* Pointer-follow spotlight (driven by js/home-hero.js via --spot-x/--spot-y).
   Sits above the backdrop layers but below the content container (z-index 1).
   screen blending turns it into true light instead of a milky wash. */
.home-page-hero.hero-main .hero-spotlight {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    mix-blend-mode: screen;
    transition: opacity 0.6s ease;
    background: radial-gradient(
        620px circle at var(--spot-x, 50%) var(--spot-y, 40%),
        rgba(125, 211, 252, 0.16),
        rgba(139, 92, 246, 0.07) 45%,
        transparent 68%
    );
}

.home-page-hero.hero-main.has-spotlight .hero-spotlight {
    opacity: 1;
}

/* Ambient particles: three constellations of soft dots drifting on long,
   offset periods. Pure decoration — hidden on mobile and reduced-motion. */
.home-page-hero.hero-main .hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.home-page-hero.hero-main .hero-particles span {
    position: absolute;
    border-radius: 50%;
}

.home-page-hero.hero-main .hero-particles span:nth-child(1) {
    inset-block-start: 18%;
    inset-inline-start: 12%;
    width: 5px;
    height: 5px;
    background: rgba(125, 211, 252, 0.55);
    filter: blur(0.5px);
    box-shadow:
        22vw 9vh 0 rgba(94, 234, 212, 0.4),
        48vw 30vh 0 rgba(196, 181, 253, 0.4),
        30vw 52vh 0 rgba(125, 211, 252, 0.3);
    animation: heroDrift 16s ease-in-out infinite alternate;
}

.home-page-hero.hero-main .hero-particles span:nth-child(2) {
    inset-block-start: 62%;
    inset-inline-start: 8%;
    width: 8px;
    height: 8px;
    background: rgba(196, 181, 253, 0.4);
    filter: blur(1px);
    box-shadow:
        58vw -34vh 0 rgba(125, 211, 252, 0.35),
        76vw 8vh 0 rgba(94, 234, 212, 0.35);
    animation: heroDrift 22s ease-in-out 1s infinite alternate-reverse;
}

.home-page-hero.hero-main .hero-particles span:nth-child(3) {
    inset-block-start: 34%;
    inset-inline-start: 44%;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow:
        18vw 22vh 0 rgba(255, 255, 255, 0.35),
        -14vw 30vh 0 rgba(125, 211, 252, 0.4),
        34vw -12vh 0 rgba(196, 181, 253, 0.35);
    animation: heroDrift 12s ease-in-out 0.5s infinite alternate;
}

.home-page-hero.hero-main > .mud-container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 3.5rem);
}

.hero-shell__content,
.hero-shell__visual {
    min-width: 0;
}

.hero-shell__content .hero-content {
    max-width: 38rem;
}

.hero-visual {
    position: relative;
    /* Entrance first, then a slow idle float once the entrance has finished. */
    animation:
        fadeInUp 0.85s ease-out 0.12s both,
        heroFloat 9s ease-in-out 1.4s infinite alternate;
}

/* Ambient glow that anchors the dashboard panel to the scene instead of
   letting it float as a flat white card on a dark background. */
.hero-visual::before {
    content: "";
    position: absolute;
    inset: -10% -8%;
    pointer-events: none;
    background:
        radial-gradient(52% 48% at 24% 22%, rgba(56, 189, 248, 0.38), transparent 72%),
        radial-gradient(50% 46% at 82% 78%, rgba(139, 92, 246, 0.34), transparent 72%);
    filter: blur(52px);
    opacity: 0.85;
    z-index: 0;
    animation: heroGlowPulse 8s ease-in-out infinite alternate;
}

/* ── Live Platform Telemetry panel ────────────────────────────────────────────
   Dark glass on purpose: a white card on the navy hero reads as a pasted
   screenshot. The surface lets the hero's aurora through, a gradient hairline
   frames it, and colour lives only in the accents.
   Specificity is deliberately higher than the shared white
   `.public-app .public-hero-visual-panel` card in landing-pages.css (used on
   other landing pages) so the home telemetry panel alone goes dark. */
.public-app .dashboard-preview.public-hero-visual-panel,
.dashboard-preview {
    --dp-text: #f1f5f9;
    --dp-muted: #94a3b8;
    --dp-faint: #64748b;
    --dp-line: rgba(148, 163, 184, 0.14);
    --dp-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
    position: relative;
    z-index: 1;
    border-radius: 22px;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(56, 189, 248, 0.13), transparent 55%),
        radial-gradient(100% 70% at 0% 100%, rgba(168, 85, 247, 0.11), transparent 60%),
        linear-gradient(170deg, rgba(17, 25, 46, 0.92), rgba(8, 12, 26, 0.96)) !important;
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    border: 0 !important;
    box-shadow:
        0 40px 120px -20px rgba(2, 6, 23, 0.75),
        0 18px 40px -18px rgba(56, 189, 248, 0.18) !important;
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease;
}

/* Gradient hairline border: a padded, masked layer so it follows the radius. */
.dashboard-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(145deg,
        rgba(125, 211, 252, 0.6),
        rgba(148, 163, 184, 0.12) 30%,
        rgba(148, 163, 184, 0.06) 62%,
        rgba(192, 132, 252, 0.5));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    pointer-events: none;
}

/* Top sheen: light catching the upper edge of the glass. */
.dashboard-preview::after {
    content: "";
    position: absolute;
    inset-inline: 12%;
    top: 0;
    height: 1px;
    z-index: 3;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    pointer-events: none;
}

.public-app .dashboard-preview.public-hero-visual-panel:hover,
.dashboard-preview:hover {
    transform: translateY(-6px);
    box-shadow:
        0 50px 130px -20px rgba(2, 6, 23, 0.8),
        0 24px 60px -20px rgba(56, 189, 248, 0.28) !important;
}

/* Window chrome: traffic lights, a centred address pill, and a spacer that
   keeps the pill optically centred. */
.public-app .dashboard-preview .public-dashboard-chrome,
.dashboard-preview .public-dashboard-chrome {
    display: grid;
    grid-template-columns: 4rem 1fr 4rem;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border-bottom: 1px solid var(--dp-line);
}

.public-app .dashboard-preview .window-dots {
    gap: 0.38rem;
}

.public-app .dashboard-preview .window-dots span {
    width: 0.6rem;
    height: 0.6rem;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
    opacity: 0.9;
}

.dp-address {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 100%;
    padding: 0.28rem 0.85rem;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.45);
    border: 1px solid var(--dp-line);
    direction: ltr;
    font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Consolas, monospace;
    font-size: 0.68rem;
    letter-spacing: 0.01em;
    color: var(--dp-muted);
    white-space: nowrap;
    overflow: hidden;
}

.dp-address span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.dp-address .dp-address__lock {
    font-size: 0.8rem;
    color: #4ade80;
}

.dp-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.1rem 1.1rem 1.15rem;
    color: #e2e8f0;
}

.dp-panel-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--dp-line);
}

.dp-panel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 12px;
    flex-shrink: 0;
    color: #e0f2fe;
    background: linear-gradient(135deg, #0ea5e9, #6366f1 60%, #a855f7);
    box-shadow:
        0 8px 24px -6px rgba(99, 102, 241, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.dp-panel-meta {
    flex: 1;
    min-width: 0;
}

.dp-panel-title {
    font-size: 0.95rem;
    font-weight: 650;
    letter-spacing: -0.015em;
    color: var(--dp-text);
    line-height: 1.25;
}

.dp-panel-sub {
    margin-top: 0.18rem;
    font-size: 0.72rem;
    color: var(--dp-muted);
    line-height: 1.4;
}

.dp-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    flex-shrink: 0;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: var(--dp-muted);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dp-live-badge.is-live {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(74, 222, 128, 0.3);
    color: #86efac;
    box-shadow: 0 0 20px -4px rgba(74, 222, 128, 0.35);
}

.dp-pulse-ring {
    position: relative;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: currentColor;
}

.dp-live-badge.is-live .dp-pulse-ring {
    background: #22c55e;
}

.dp-live-badge.is-live .dp-pulse-ring::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    border: 1px solid rgba(34, 197, 94, 0.6);
    animation: dpPulse 1.8s ease-out infinite;
}

/* KPI tiles. Each accent sets --accent as an RGB triple; everything tinted
   derives from it. */
.dp-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.dp-kpi {
    --accent: 56, 189, 248;
    position: relative;
    overflow: hidden;
    padding: 0.85rem 0.9rem 0.8rem;
    border-radius: 16px;
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(var(--accent), 0.14), transparent 60%),
        var(--dp-surface);
    border: 1px solid var(--dp-line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Accent hairline along the bottom edge. */
.dp-kpi::after {
    content: "";
    position: absolute;
    inset-inline-start: 0.9rem;
    bottom: 0;
    width: 42%;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: linear-gradient(90deg, rgba(var(--accent), 0.95), rgba(var(--accent), 0));
    opacity: 0.8;
    transition: width 0.35s ease;
}

[dir="rtl"] .dp-kpi::after {
    background: linear-gradient(270deg, rgba(var(--accent), 0.95), rgba(var(--accent), 0));
}

.dp-kpi:hover::after {
    width: calc(100% - 1.8rem);
}

.dp-kpi:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--accent), 0.35);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 12px 30px -14px rgba(var(--accent), 0.55);
}

.dp-kpi:nth-child(1) { animation-delay: 0.05s; }
.dp-kpi:nth-child(2) { animation-delay: 0.1s; }
.dp-kpi:nth-child(3) { animation-delay: 0.15s; }
.dp-kpi:nth-child(4) { animation-delay: 0.2s; }

.dp-kpi--primary { --accent: 56, 189, 248; }
.dp-kpi--info { --accent: 129, 140, 248; }
.dp-kpi--success { --accent: 45, 212, 191; }
.dp-kpi--secondary { --accent: 192, 132, 252; }

.dp-kpi__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.dp-kpi__label {
    font-size: 0.64rem;
    font-weight: 650;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dp-muted);
}

.dp-kpi__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 10px;
    flex-shrink: 0;
    color: rgb(var(--accent));
    background: rgba(var(--accent), 0.13);
    border: 1px solid rgba(var(--accent), 0.28);
    box-shadow: 0 0 18px -4px rgba(var(--accent), 0.45);
}

.dp-kpi__icon .mud-icon-root {
    font-size: 1.05rem;
}

.dp-kpi__value {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #ffffff 30%, rgba(var(--accent), 0.85) 140%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dp-kpi__sub {
    margin-top: 0.3rem;
    font-size: 0.66rem;
    color: var(--dp-faint);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Charts. */
.dp-chart-row {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
    gap: 0.65rem;
}

.dp-chart-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0.85rem 0.9rem 0.75rem;
    border-radius: 16px;
    background: var(--dp-surface);
    border: 1px solid var(--dp-line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dp-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.dp-chart-title {
    font-size: 0.74rem;
    font-weight: 650;
    letter-spacing: -0.005em;
    color: #e2e8f0;
}

.dp-trend-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.dp-trend-badge .dp-trend-badge__icon {
    font-size: 0.8rem;
}

.dp-trend-badge--up {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.28);
    color: #86efac;
}

.dp-trend-badge--info {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.26);
    color: #7dd3fc;
}

.dp-area {
    position: relative;
    height: 3.9rem;
    margin-inline-end: 0.3rem;
}

/* Revealed with a clip rather than a dash animation: the line keeps a fixed
   pixel width (non-scaling stroke), which breaks pathLength-based dashes. */
.dp-area__svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    animation: dpReveal 1.4s cubic-bezier(0.65, 0, 0.35, 1) 0.2s both;
}

.dp-area__grid {
    stroke: rgba(148, 163, 184, 0.12);
    stroke-width: 1;
    stroke-dasharray: 2 3;
    vector-effect: non-scaling-stroke;
}

.dp-area__line {
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 3px 8px rgba(56, 189, 248, 0.55));
}

/* The end point is HTML, not SVG: the chart stretches with preserveAspectRatio
   "none", which would turn an SVG circle into an ellipse. */
.dp-area__dot {
    position: absolute;
    inset-inline-end: -0.3rem;
    width: 0.6rem;
    height: 0.6rem;
    margin-top: -0.3rem;
    border-radius: 999px;
    background: #e0f2fe;
    border: 2px solid #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18), 0 0 14px rgba(56, 189, 248, 0.8);
    animation: dpFadeIn 0.4s ease 1.4s both;
}

[dir="rtl"] .dp-area__svg {
    transform: scaleX(-1);
}

.dp-area__axis {
    display: flex;
    justify-content: space-between;
    margin-top: 0.45rem;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--dp-faint);
}

.dp-ring {
    position: relative;
    flex: 1;
    display: grid;
    place-items: center;
    min-height: 5.4rem;
}

.dp-ring__svg {
    width: 5.4rem;
    height: 5.4rem;
    transform: rotate(-90deg);
    overflow: visible;
}

.dp-ring__track {
    stroke: rgba(148, 163, 184, 0.14);
    stroke-width: 3.4;
}

.dp-ring__fill {
    stroke: url(#dpRingGrad);
    stroke-width: 3.4;
    stroke-linecap: round;
    filter: drop-shadow(0 0 5px rgba(129, 140, 248, 0.55));
    transition: stroke-dasharray 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dp-ring__label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.dp-ring__value {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    color: var(--dp-text);
}

.dp-ring__unit {
    margin-inline-start: 1px;
    font-size: 0.66rem;
    font-weight: 650;
    color: var(--dp-muted);
}

.dp-ring__meta {
    direction: ltr;
    unicode-bidi: isolate;
    margin-top: 0.25rem;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    color: var(--dp-faint);
}

/* Recent activity as a timeline: icon bubbles joined by a faint rail. */
.dp-activity {
    padding: 0.85rem 0.9rem;
    border-radius: 16px;
    background: var(--dp-surface);
    border: 1px solid var(--dp-line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dp-activity__header {
    margin-bottom: 0.6rem;
}

.dp-activity__title {
    font-size: 0.74rem;
    font-weight: 650;
    color: #e2e8f0;
}

.dp-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dp-timeline::before {
    content: "";
    position: absolute;
    inset-inline-start: calc(0.8rem - 0.5px);
    top: 0.8rem;
    bottom: 0.8rem;
    width: 1px;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.3), rgba(148, 163, 184, 0.05));
}

.dp-timeline__item {
    --accent: 56, 189, 248;
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.65rem;
}

.dp-timeline__item--info { --accent: 129, 140, 248; }
.dp-timeline__item--success { --accent: 74, 222, 128; }

.dp-timeline__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    color: rgb(var(--accent));
    background: rgb(12, 18, 36);
    border: 1px solid rgba(var(--accent), 0.4);
    box-shadow: 0 0 12px -2px rgba(var(--accent), 0.55);
}

.dp-timeline__icon .mud-icon-root {
    font-size: 0.85rem;
}

.dp-timeline__text {
    min-width: 0;
    font-size: 0.7rem;
    color: #cbd5e1;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dp-timeline__time {
    padding: 0.14rem 0.45rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid var(--dp-line);
    font-size: 0.6rem;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    color: var(--dp-muted);
    white-space: nowrap;
}

/* Loading and unavailable states. */
.dp-skeleton {
    border-radius: 16px;
    border: 1px solid var(--dp-line);
    background:
        linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.06) 45%, transparent 70%) 0 0 / 200% 100%,
        var(--dp-surface);
    animation: dpShimmer 1.6s linear infinite;
}

.dp-skeleton--kpi { height: 6.1rem; }
.dp-skeleton--chart { height: 7.6rem; }

.dp-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.6rem 1rem;
    border-radius: 16px;
    border: 1px dashed rgba(148, 163, 184, 0.25);
    text-align: center;
    font-size: 0.74rem;
    color: var(--dp-muted);
}

.dp-empty .dp-empty__icon {
    font-size: 1.6rem;
    color: #7dd3fc;
}

.feature-link {
    align-self: flex-start;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    text-transform: none !important;
    transition: transform 0.2s ease, color 0.2s ease;
}

.feature-link:hover {
    transform: translateX(4px);
}

.home-industry-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.home-industry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.home-industry-card .public-card-accent {
    height: 3px;
    width: 100%;
}

.home-industry-card .industry-card__cta {
    text-transform: none !important;
    font-weight: 600 !important;
}

.home-feature-card {
    display: flex;
    flex-direction: column;
}

/* ── Hero content: premium typography, chip, pills, CTAs ─────────────────── */

/* Staggered entrance: each content row fades in slightly after the previous
   one. The container animation must be neutralised or hero-backgrounds.css
   would fade the whole block a second time. */
.public-app .home-page-hero.hero-main .hero-content {
    animation: none;
}

.public-app .home-page-hero.hero-main .hero-content > * {
    animation: fadeInUp 0.6s ease-out both;
}

.public-app .home-page-hero.hero-main .hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.public-app .home-page-hero.hero-main .hero-content > *:nth-child(2) { animation-delay: 0.14s; }
.public-app .home-page-hero.hero-main .hero-content > *:nth-child(3) { animation-delay: 0.23s; }
.public-app .home-page-hero.hero-main .hero-content > *:nth-child(4) { animation-delay: 0.32s; }
.public-app .home-page-hero.hero-main .hero-content > *:nth-child(5) { animation-delay: 0.41s; }
.public-app .home-page-hero.hero-main .hero-content > *:nth-child(6) { animation-delay: 0.5s; }

.public-app .home-page-hero.hero-main .public-hero-chip {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06)) !important;
    border: 1px solid rgba(186, 230, 253, 0.42) !important;
    color: #f0f9ff !important;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.72rem !important;
    animation: heroChipGlow 3.5s ease-in-out infinite alternate;
}

.public-app .home-page-hero.hero-main .public-hero-title {
    font-size: clamp(2.4rem, 5vw, 4.15rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.035em;
    line-height: 1.07;
    text-wrap: balance;
}

.public-app .home-page-hero.hero-main .hero-brand-highlight {
    display: block;
    margin-top: 0.1em;
    background: linear-gradient(100deg, #7dd3fc 0%, #a5b4fc 32%, #c4b5fd 55%, #5eead4 85%, #7dd3fc 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: heroGradientPan 9s linear infinite;
    /* text-shadow leaks through transparent gradient text — use drop-shadow instead. */
    text-shadow: none;
    filter: drop-shadow(0 4px 22px rgba(56, 189, 248, 0.28));
}

/* Gradient underline that draws itself in after the headline lands. The
   pseudo-element carries its own background, so it isn't clipped to text. */
.public-app .home-page-hero.hero-main .hero-brand-highlight::after {
    content: "";
    display: block;
    width: clamp(110px, 30%, 240px);
    height: 4px;
    margin-block-start: 0.3em;
    border-radius: 999px;
    background: linear-gradient(90deg, #38bdf8, #8b5cf6 55%, #2dd4bf);
    transform-origin: left center;
    animation: heroUnderline 0.7s ease-out 0.85s both;
}

[dir="rtl"] .public-app .home-page-hero.hero-main .hero-brand-highlight::after,
.public-app.rtl .home-page-hero.hero-main .hero-brand-highlight::after {
    transform-origin: right center;
    background: linear-gradient(270deg, #38bdf8, #8b5cf6 55%, #2dd4bf);
}

.public-app .home-page-hero.hero-main .public-hero-lead {
    color: rgba(226, 232, 240, 0.92) !important;
    font-size: 1.18rem !important;
    line-height: 1.75;
    text-wrap: pretty;
}

/* One unified glass stat bar instead of three loose pills: reads as a single
   credibility statement, with hairline dividers between the segments. */
.public-app .home-page-hero.hero-main .hero-stat-bar {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    width: fit-content;
    padding: 0.3rem 0.35rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.25);
}

.public-app .home-page-hero.hero-main .hero-stat-bar .home-social-proof-pill {
    background: none;
    border: none;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0.5rem 1.1rem;
    font-weight: 600;
    transition: none;
}

.public-app .home-page-hero.hero-main .hero-stat-bar .home-social-proof-pill:not(:last-child) {
    border-inline-end: 1px solid rgba(255, 255, 255, 0.14);
}

/* Give each stat segment its own accent so the bar doesn't read as one blob. */
.public-app .home-page-hero.hero-main .home-social-proof-pill:nth-child(1) .mud-icon-root {
    color: #7dd3fc !important;
}

.public-app .home-page-hero.hero-main .home-social-proof-pill:nth-child(2) .mud-icon-root {
    color: #5eead4 !important;
}

.public-app .home-page-hero.hero-main .home-social-proof-pill:nth-child(3) .mud-icon-root {
    color: #4ade80 !important;
}

/* Primary CTA — vivid brand gradient with glow (replaces the flat white pill). */
.public-app .home-page-hero.hero-main .public-hero-cta-primary.mud-button-root {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #38bdf8 0%, #6366f1 60%, #8b5cf6 100%) !important;
    background-size: 160% auto !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 14px !important;
    padding-block: 0.7rem !important;
    padding-inline: 1.9rem !important;
    font-size: 1rem !important;
    box-shadow:
        0 12px 34px rgba(79, 70, 229, 0.45),
        0 2px 8px rgba(2, 6, 23, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.25) inset;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-position 0.35s ease;
}

/* Shine sweep across the primary CTA on hover. */
.public-app .home-page-hero.hero-main .public-hero-cta-primary.mud-button-root::after {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: -60%;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.38), transparent);
    transform: skewX(-18deg);
    pointer-events: none;
}

.public-app .home-page-hero.hero-main .public-hero-cta-primary.mud-button-root:hover::after {
    inset-inline-start: 120%;
    transition: inset-inline-start 0.55s ease;
}

.public-app .home-page-hero.hero-main .public-hero-cta-primary.mud-button-root:hover {
    transform: translateY(-2px);
    background-position: 100% 0 !important;
    box-shadow:
        0 18px 44px rgba(79, 70, 229, 0.55),
        0 2px 8px rgba(2, 6, 23, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.public-app .home-page-hero.hero-main .public-hero-cta-primary .mud-button-label,
.public-app .home-page-hero.hero-main .public-hero-cta-primary .mud-icon-root,
.public-app .home-page-hero.hero-main .public-hero-cta-primary svg {
    color: #fff !important;
    fill: currentColor !important;
}

/* Secondary CTA — frosted glass instead of a bare outline. */
.public-app .home-page-hero.hero-main .public-hero-cta-secondary.mud-button-root {
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.30) !important;
    border-radius: 14px !important;
    padding-block: 0.7rem !important;
    padding-inline: 1.5rem !important;
    font-size: 1rem !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

/* Play icon nudges forward on hover (mirrored under RTL). */
.public-app .home-page-hero.hero-main .public-hero-cta-secondary .mud-button-start-icon {
    transition: transform 0.22s ease;
}

.public-app .home-page-hero.hero-main .public-hero-cta-secondary:hover .mud-button-start-icon {
    transform: translateX(3px);
}

[dir="rtl"] .public-app .home-page-hero.hero-main .public-hero-cta-secondary:hover .mud-button-start-icon,
.public-app.rtl .home-page-hero.hero-main .public-hero-cta-secondary:hover .mud-button-start-icon {
    transform: translateX(-3px);
}

.public-app .home-page-hero.hero-main .public-hero-cta-secondary.mud-button-root:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
}

.public-app .home-page-hero.hero-main .public-hero-cta-tertiary.mud-button-root {
    font-weight: 600 !important;
    border-radius: 14px !important;
}

/* Trust badges — stripped down to a quiet text footnote with dot separators,
   so the row stops competing with the proof pills and CTAs above it. */
.public-app .home-page-hero.hero-main .public-hero-trust {
    gap: 1.1rem;
    align-items: center;
}

.public-app .home-page-hero.hero-main .home-trial-pill {
    background: transparent;
    border: none;
    padding: 0;
    color: rgba(203, 213, 225, 0.8);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    box-shadow: none;
}

.public-app .home-page-hero.hero-main .home-trial-pill:not(:last-child)::after {
    content: "";
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.55);
    margin-inline-start: 1.1rem;
    flex: none;
}

.public-app .home-page-hero.hero-main .home-trial-pill .mud-icon-root {
    color: #4ade80 !important;
}

/* ── Hero visual: 3D tilt + floating stat badges ─────────────────────────── */

/* Slight perspective tilt toward the copy; levels out on hover. */
.public-app .home-page-hero.hero-main .public-hero-visual-panel {
    transform: perspective(1400px) rotateY(-5deg) rotateX(1.5deg);
}

.public-app .home-page-hero.hero-main .public-hero-visual-panel:hover {
    transform: perspective(1400px) rotateY(0deg) rotateX(0deg) translateY(-4px);
    box-shadow:
        0 40px 110px rgba(2, 6, 23, 0.65),
        0 0 44px rgba(56, 189, 248, 0.12),
        0 1px 0 rgba(255, 255, 255, 0.16) inset !important;
}

/* Mirror the tilt when the panel sits on the other side in RTL. */
[dir="rtl"] .public-app .home-page-hero.hero-main .public-hero-visual-panel,
.public-app.rtl .home-page-hero.hero-main .public-hero-visual-panel {
    transform: perspective(1400px) rotateY(5deg) rotateX(1.5deg);
}

[dir="rtl"] .public-app .home-page-hero.hero-main .public-hero-visual-panel:hover,
.public-app.rtl .home-page-hero.hero-main .public-hero-visual-panel:hover {
    transform: perspective(1400px) rotateY(0deg) rotateX(0deg) translateY(-4px);
}

/* Floating glass badges anchored to the panel corners. */
.public-app .home-page-hero.hero-main .hero-float-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding-block: 0.45rem;
    padding-inline: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #f1f5f9;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.45);
}

/* Hover just off the panel's corners — close enough to read as attached, but
   fully clear of the panel so they never cover its chrome bar or data rows. */
.public-app .home-page-hero.hero-main .hero-float-badge--security {
    inset-block-start: -3.2rem;
    inset-inline-end: 2%;
    animation:
        fadeInUp 0.6s ease-out 0.9s both,
        heroFloat 7s ease-in-out 2s infinite alternate;
}

.public-app .home-page-hero.hero-main .hero-float-badge--ai {
    inset-block-end: -3.2rem;
    inset-inline-start: 2%;
    animation:
        fadeInUp 0.6s ease-out 1.1s both,
        heroFloat 8s ease-in-out 2.6s infinite alternate-reverse;
}

.public-app .home-page-hero.hero-main .hero-float-badge__icon {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    flex: none;
}

.public-app .home-page-hero.hero-main .hero-float-badge__icon--green {
    background: rgba(74, 222, 128, 0.18);
}

.public-app .home-page-hero.hero-main .hero-float-badge__icon--green .mud-icon-root {
    color: #4ade80 !important;
    font-size: 1rem;
}

.public-app .home-page-hero.hero-main .hero-float-badge__icon--violet {
    background: rgba(167, 139, 250, 0.2);
}

.public-app .home-page-hero.hero-main .hero-float-badge__icon--violet .mud-icon-root {
    color: #c4b5fd !important;
    font-size: 1rem;
}

/* ── Scroll cue at the hero's bottom edge ────────────────────────────────── */

.public-app .home-page-hero.hero-main .hero-scroll-cue {
    position: absolute;
    inset-inline: 0;
    inset-block-end: 1.15rem;
    display: flex;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
    animation: fadeInUp 0.7s ease-out 1.6s both;
}

.public-app .home-page-hero.hero-main .hero-scroll-cue__mouse {
    display: flex;
    justify-content: center;
    width: 22px;
    height: 34px;
    padding-block-start: 5px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
}

.public-app .home-page-hero.hero-main .hero-scroll-cue__wheel {
    width: 3px;
    height: 7px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.75);
    animation: heroScrollWheel 1.9s ease-in-out infinite;
}

@media (width <= 1200px) {
    .hero-shell {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .dp-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* When the stat bar wraps, hairline dividers point at nothing — swap
       them for plain gaps. */
    .public-app .home-page-hero.hero-main .hero-stat-bar {
        gap: 0.25rem 0.75rem;
        padding: 0.45rem 0.9rem;
    }

    .public-app .home-page-hero.hero-main .hero-stat-bar .home-social-proof-pill {
        padding: 0.35rem 0.4rem;
    }

    .public-app .home-page-hero.hero-main .hero-stat-bar .home-social-proof-pill:not(:last-child) {
        border-inline-end: none;
    }
}

@media (width <= 960px) {
    .home-page-hero.hero-main {
        min-height: auto;
    }

    /* The floating badges, scroll cue, particles and 3D tilt add clutter on
       small screens. */
    .public-app .home-page-hero.hero-main .hero-float-badge,
    .public-app .home-page-hero.hero-main .hero-scroll-cue,
    .public-app .home-page-hero.hero-main .hero-particles {
        display: none;
    }

    .public-app .home-page-hero.hero-main .public-hero-visual-panel,
    [dir="rtl"] .public-app .home-page-hero.hero-main .public-hero-visual-panel,
    .public-app.rtl .home-page-hero.hero-main .public-hero-visual-panel {
        transform: none;
    }

    .hero-shell {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-shell__content .hero-content {
        max-width: none;
        text-align: center;
    }

    .hero-shell__content .public-hero-actions,
    .hero-shell__content .public-hero-trust,
    .hero-shell__content .home-social-proof-strip {
        justify-content: center;
    }

    /* Centered layout: the headline's gradient underline must center too. */
    .public-app .home-page-hero.hero-main .hero-brand-highlight::after {
        margin-inline: auto;
    }

    .dp-chart-row {
        grid-template-columns: 1fr;
    }
}

@media (width <= 600px) {
    .dp-body {
        padding: 0.85rem;
    }

    .dp-kpi-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .dp-kpi {
        padding: 0.75rem 0.75rem 0.7rem;
    }

    .dp-kpi__value {
        font-size: 1.4rem;
    }

    .dp-kpi__sub {
        white-space: normal;
    }

    .dp-address {
        font-size: 0.62rem;
    }

    .dashboard-preview:hover {
        transform: none;
    }
}

/* Interactive takeover of a prerendered hero (HomeHero sets .hero-settled). Blazor replaces the
   prerendered markup when the page becomes interactive, so every one-shot entrance would play a
   second time and the hero would visibly fade out and back in. Each element already sits in its
   final state without the animation; only the idle loops are kept. */
.public-app .home-page-hero.hero-main.hero-settled .hero-content > *,
.public-app .home-page-hero.hero-main.hero-settled .hero-brand-highlight::after,
.public-app .home-page-hero.hero-main.hero-settled .hero-scroll-cue,
.home-page-hero.hero-settled .dp-kpi,
.home-page-hero.hero-settled .dp-area__svg,
.home-page-hero.hero-settled .dp-area__dot {
    animation: none;
}

.home-page-hero.hero-settled .hero-visual {
    animation: heroFloat 9s ease-in-out infinite alternate;
}

.public-app .home-page-hero.hero-main.hero-settled .hero-float-badge--security {
    animation: heroFloat 7s ease-in-out infinite alternate;
}

.public-app .home-page-hero.hero-main.hero-settled .hero-float-badge--ai {
    animation: heroFloat 8s ease-in-out infinite alternate-reverse;
}

@media (prefers-reduced-motion: reduce) {
    .hero-visual,
    .hero-visual::before,
    .home-page-hero.hero-main::before,
    .public-app .home-page-hero.hero-main .hero-content,
    .public-app .home-page-hero.hero-main .hero-content > *,
    .public-app .home-page-hero.hero-main .public-hero-chip,
    .public-app .home-page-hero.hero-main .hero-brand-highlight,
    .public-app .home-page-hero.hero-main .hero-brand-highlight::after,
    .public-app .home-page-hero.hero-main .hero-float-badge,
    .public-app .home-page-hero.hero-main .hero-scroll-cue,
    .public-app .home-page-hero.hero-main .hero-scroll-cue__wheel,
    .public-app .home-page-hero.hero-main .hero-spotlight,
    .public-app .home-page-hero.hero-main .hero-particles span,
    .public-app .home-page-hero.hero-main .public-hero-cta-primary.mud-button-root::after,
    .dp-kpi,
    .dp-area__svg,
    .dp-area__dot,
    .dp-skeleton,
    .dp-ring__fill,
    .dp-live-badge.is-live .dp-pulse-ring::after,
    .dashboard-preview {
        animation: none !important;
        transition: none !important;
    }
}

@keyframes dpPulse {
    0% {
        transform: scale(0.85);
        opacity: 0.85;
    }

    70% {
        transform: scale(1.35);
        opacity: 0;
    }

    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

@keyframes dpReveal {
    from {
        clip-path: inset(-20% 100% -20% 0);
    }

    to {
        clip-path: inset(-20% -5% -20% 0);
    }
}

@keyframes dpFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes dpShimmer {
    from {
        background-position: 200% 0, 0 0;
    }

    to {
        background-position: -200% 0, 0 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroAurora {
    from {
        transform: translate3d(-2%, -1%, 0) scale(1);
    }

    to {
        transform: translate3d(3%, 2.5%, 0) scale(1.08);
    }
}

@keyframes heroFloat {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-10px);
    }
}

@keyframes heroGlowPulse {
    from {
        opacity: 0.65;
    }

    to {
        opacity: 1;
    }
}

@keyframes heroGradientPan {
    from {
        background-position: 0% center;
    }

    to {
        background-position: 220% center;
    }
}

@keyframes heroChipGlow {
    from {
        box-shadow: 0 0 14px rgba(56, 189, 248, 0.14);
    }

    to {
        box-shadow: 0 0 26px rgba(56, 189, 248, 0.38);
    }
}

@keyframes heroUnderline {
    from {
        transform: scaleX(0);
        opacity: 0;
    }

    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

@keyframes heroDrift {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(14px, -20px, 0);
    }
}

@keyframes heroScrollWheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    70% {
        transform: translateY(9px);
        opacity: 0;
    }

    100% {
        transform: translateY(9px);
        opacity: 0;
    }
}

