/* 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;
}

/* The telemetry panel is DARK GLASS on purpose: a flat white card floating on
   the navy hero read as a screenshot pasted on top of the scene. A translucent
   deep-slate surface lets the hero's aurora glow through and makes the panel
   feel like part of the product world (the accent glows carry the premium). */
/* 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 {
    position: relative;
    z-index: 1;
    border-radius: 24px;
    overflow: hidden;
    background:
        radial-gradient(120% 90% at 85% -10%, rgba(56, 189, 248, 0.14), transparent 55%),
        radial-gradient(110% 80% at 0% 110%, rgba(139, 92, 246, 0.12), transparent 55%),
        linear-gradient(165deg, rgba(26, 36, 61, 0.94), rgba(10, 16, 32, 0.96)) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    box-shadow:
        0 32px 100px rgba(2, 6, 23, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 1px 0 rgba(255, 255, 255, 0.14) inset !important;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.public-app .dashboard-preview.public-hero-visual-panel:hover,
.dashboard-preview:hover {
    transform: translateY(-6px);
    border-color: rgba(125, 211, 252, 0.3) !important;
    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;
}

.public-app .dashboard-preview .public-dashboard-chrome,
.dashboard-preview .public-dashboard-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.dp-chrome-title {
    flex: 1;
    margin-left: 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #8ea0bd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dp-live-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #94a3b8;
    flex-shrink: 0;
}

.dp-live-dot.is-live {
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
    animation: dpDotPulse 2s ease infinite;
}

.dp-live-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8ea0bd;
}

.dp-body {
    padding: 1rem 1rem 1.1rem;
    color: #e2e8f0;
}

.dp-panel-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.dp-panel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(139, 92, 246, 0.18));
    border: 1px solid rgba(125, 211, 252, 0.3);
    color: #7dd3fc;
    flex-shrink: 0;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.18);
}

.dp-panel-meta {
    flex: 1;
    min-width: 0;
}

.dp-panel-title {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #f8fafc;
    line-height: 1.3;
}

.dp-panel-sub {
    margin-top: 0.15rem;
    font-size: 0.72rem;
    color: #8ea0bd;
    line-height: 1.45;
}

.dp-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.28);
    color: #4ade80;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    flex-shrink: 0;
    box-shadow: 0 0 14px rgba(74, 222, 128, 0.15);
}

.dp-pulse-ring {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #22c55e;
    position: relative;
}

.dp-pulse-ring::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    border: 1px solid rgba(34, 197, 94, 0.55);
    animation: dpPulse 1.8s ease-out infinite;
}

.dp-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.dp-kpi {
    position: relative;
    overflow: hidden;
    padding: 0.75rem 0.7rem;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
    border: 1px solid rgba(148, 163, 184, 0.16);
    animation: fadeInUp 0.55s ease both;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

/* Per-accent halo in the tile's top corner ties the tile to its accent color
   without painting the whole surface. --kpi-glow is set by the accent
   modifiers below. */
.dp-kpi::before {
    content: "";
    position: absolute;
    inset-block-start: -40%;
    inset-inline-end: -25%;
    width: 75%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, var(--kpi-glow, rgba(56, 189, 248, 0.2)), transparent 70%);
    pointer-events: none;
}

.dp-kpi:hover {
    transform: translateY(-2px);
    border-color: rgba(148, 163, 184, 0.32);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
}

.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__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.45rem;
}

.dp-kpi__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9px;
    background: rgba(56, 189, 248, 0.16);
    color: #7dd3fc;
}

.dp-kpi__icon--primary {
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: #7dd3fc;
}

.dp-kpi__icon--info {
    background: rgba(14, 165, 233, 0.16);
    border: 1px solid rgba(14, 165, 233, 0.28);
    color: #38bdf8;
}

.dp-kpi__icon--success {
    background: rgba(45, 212, 191, 0.14);
    border: 1px solid rgba(45, 212, 191, 0.26);
    color: #5eead4;
}

.dp-kpi__icon--secondary {
    background: rgba(167, 139, 250, 0.16);
    border: 1px solid rgba(167, 139, 250, 0.28);
    color: #c4b5fd;
}

/* Trend indicator as a small tinted pill instead of a bare arrow character. */
.dp-kpi__trend {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    height: 1.15rem;
    padding-inline: 0.25rem;
    border-radius: 999px;
    background: rgba(74, 222, 128, 0.14);
    border: 1px solid rgba(74, 222, 128, 0.25);
    font-size: 0.62rem;
    font-weight: 700;
    color: #4ade80;
}

.dp-kpi__value {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: #f8fafc;
    line-height: 1.15;
    text-shadow: 0 0 24px rgba(125, 211, 252, 0.25);
}

.dp-kpi__label {
    margin-top: 0.15rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #cbd5e1;
}

.dp-kpi__sub {
    margin-top: 0.1rem;
    font-size: 0.62rem;
    color: #8ea0bd;
    line-height: 1.35;
}

.dp-kpi--primary {
    --kpi-glow: rgba(56, 189, 248, 0.22);
    border-color: rgba(56, 189, 248, 0.2);
}

.dp-kpi--info {
    --kpi-glow: rgba(14, 165, 233, 0.22);
    border-color: rgba(14, 165, 233, 0.2);
}

.dp-kpi--success {
    --kpi-glow: rgba(45, 212, 191, 0.2);
    border-color: rgba(45, 212, 191, 0.2);
}

.dp-kpi--secondary {
    --kpi-glow: rgba(167, 139, 250, 0.22);
    border-color: rgba(167, 139, 250, 0.2);
}

.dp-chart-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 0.65rem;
}

.dp-chart-card {
    padding: 0.75rem;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.dp-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.dp-chart-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #e2e8f0;
}

.dp-trend-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.dp-trend-badge--up {
    background: rgba(74, 222, 128, 0.14);
    border: 1px solid rgba(74, 222, 128, 0.22);
    color: #4ade80;
}

.dp-trend-badge--info {
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.22);
    color: #7dd3fc;
}

.dp-sparkbar {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 3.25rem;
}

.dp-sparkbar__bar {
    flex: 1;
    max-width: 10px;
    height: var(--bar-h, 40%);
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, #38bdf8, rgba(139, 92, 246, 0.25));
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
    transform-origin: bottom;
    animation: dpBarGrow 0.9s ease both;
    transition: filter 0.2s ease;
}

.dp-sparkbar:hover .dp-sparkbar__bar {
    filter: brightness(1.2);
}

.dp-sparkbar__bar:nth-child(1) { animation-delay: 0.05s; }
.dp-sparkbar__bar:nth-child(2) { animation-delay: 0.08s; }
.dp-sparkbar__bar:nth-child(3) { animation-delay: 0.11s; }
.dp-sparkbar__bar:nth-child(4) { animation-delay: 0.14s; }
.dp-sparkbar__bar:nth-child(5) { animation-delay: 0.17s; }
.dp-sparkbar__bar:nth-child(6) { animation-delay: 0.2s; }
.dp-sparkbar__bar:nth-child(7) { animation-delay: 0.23s; }
.dp-sparkbar__bar:nth-child(8) { animation-delay: 0.26s; }
.dp-sparkbar__bar:nth-child(9) { animation-delay: 0.29s; }
.dp-sparkbar__bar:nth-child(10) { animation-delay: 0.32s; }
.dp-sparkbar__bar:nth-child(11) { animation-delay: 0.35s; }
.dp-sparkbar__bar:nth-child(12) { animation-delay: 0.38s; }

.dp-donut-wrap {
    position: relative;
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto;
}

.dp-donut {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.dp-donut__track {
    stroke: rgba(148, 163, 184, 0.2);
}

.dp-donut__fill {
    /* References the <linearGradient> defined inside the donut SVG itself. */
    stroke: url(#dpDonutGrad);
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.45));
    transition: stroke-dasharray 0.6s ease;
}

.dp-donut__label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.dp-donut__unit {
    font-size: 0.62rem;
    font-weight: 700;
    margin-left: 1px;
    color: #8ea0bd;
}

.dp-activity {
    padding: 0.75rem;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.dp-activity__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.dp-activity__title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #e2e8f0;
}

.dp-activity__all {
    font-size: 0.62rem;
    font-weight: 600;
    color: #7dd3fc;
    cursor: default;
}

.dp-activity__list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.dp-activity__item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.45rem;
}

.dp-activity__dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    flex-shrink: 0;
}

.dp-activity__dot--primary {
    background: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

.dp-activity__dot--info {
    background: #818cf8;
    box-shadow: 0 0 8px rgba(129, 140, 248, 0.6);
}

.dp-activity__dot--success {
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

.dp-activity__text {
    font-size: 0.68rem;
    color: #cbd5e1;
    line-height: 1.35;
    min-width: 0;
}

.dp-activity__time {
    font-size: 0.62rem;
    font-weight: 600;
    color: #8ea0bd;
    white-space: nowrap;
}

.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__value {
        font-size: 1rem;
    }

    .dashboard-preview:hover {
        transform: none;
    }
}

@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-sparkbar__bar,
    .dp-live-dot.is-live,
    .dp-pulse-ring::after,
    .dashboard-preview {
        animation: none !important;
        transition: none !important;
    }
}

@keyframes dpDotPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

@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 dpBarGrow {
    from {
        transform: scaleY(0.15);
        opacity: 0.35;
    }

    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

@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;
    }
}

