.ce-hero {
    --ce-bg: #0a0a12;
    --ce-fg: #ededf4;
    --ce-muted: #a0a0b8;
    --ce-dim: #6c6c84;
    --ce-brand: #9545c0;
    --ce-brand-400: #b56ce6;
    --ce-accent: #e50073;
    --ce-border: rgba(255, 255, 255, .08);
    --ce-border-strong: rgba(255, 255, 255, .14);
    --ce-grad: linear-gradient(100deg, #b56ce6 0%, #e50073 100%);

    position: relative;
    overflow: hidden;
    background: var(--ce-bg);
    color: var(--ce-fg);
    padding: 150px 0 90px;
}

.ce-hero__glow {
    position: absolute;
    top: -220px;
    right: -140px;
    width: 640px;
    height: 640px;
    border-radius: 50%;
    background: var(--ce-brand);
    opacity: .22;
    filter: blur(110px);
    pointer-events: none;
}

.ce-hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
}

.ce-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border: 1px solid var(--ce-border-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, .03);
    color: var(--ce-muted);
    font-size: 13px;
    text-decoration: none;
    transition: border-color .2s, color .2s;
}

.ce-pill:hover {
    color: var(--ce-fg);
    border-color: rgba(255, 255, 255, .25);
}

.ce-pill span {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(149, 69, 192, .2);
    color: #d6a8f5;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* The theme forces h1 { font-size: 42px !important }. */
.ce-hero .ce-hero__title {
    margin: 24px 0;
    color: var(--ce-fg);
    font-size: clamp(44px, 6.2vw, 84px) !important;
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -.035em;
}

.ce-hero__title span {
    display: block;
}

.ce-grad {
    background: var(--ce-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ce-hero__lead {
    max-width: 540px;
    margin: 0;
    color: var(--ce-muted);
    font-size: 19px;
    line-height: 1.55;
}

.ce-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.ce-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 50px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, background .2s;
}

.ce-btn svg {
    width: 16px;
    height: 16px;
}

.ce-btn--primary {
    background: var(--ce-grad);
    color: #fff;
    box-shadow: 0 8px 30px -10px rgba(229, 0, 115, .6), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.ce-btn--primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 40px -10px rgba(229, 0, 115, .75);
}

.ce-btn--ghost {
    border: 1px solid var(--ce-border-strong);
    background: rgba(255, 255, 255, .04);
    color: var(--ce-fg);
}

.ce-btn--ghost:hover {
    background: rgba(255, 255, 255, .09);
    color: var(--ce-fg);
}

.ce-hero__note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 22px 0 0;
    color: var(--ce-dim);
    font-size: 13px;
}

.ce-hero__note i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ce-accent);
}

/* Photo with floating data cards */
.ce-visual {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 660px;
    margin-left: auto;
}

.ce-visual__glow {
    position: absolute;
    top: 90px;
    right: 0;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(229, 0, 115, .32), rgba(149, 69, 192, .22) 45%, transparent 70%);
    filter: blur(50px);
}

.ce-visual__photo {
    position: absolute;
    top: -10px;
    right: -60px;
    width: 600px;
    height: 680px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 12%, #000 76%, transparent 96%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 12%, #000 76%, transparent 96%);
    mask-composite: intersect;
}

.ce-visual__photo img {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    max-width: none;
    height: auto;
    filter: hue-rotate(22deg) saturate(1.15) contrast(1.08) brightness(.9);
}

.ce-visual__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(70% 60% at 15% 30%, rgba(149, 69, 192, .3), transparent 70%);
}

.ce-glass {
    position: absolute;
    padding: 16px;
    border: 1px solid var(--ce-border-strong);
    border-radius: 16px;
    background: rgba(17, 17, 27, .72);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
    color: var(--ce-fg);
}

.ce-glass small {
    display: block;
    color: var(--ce-dim);
    font: 500 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ce-glass p {
    margin: 6px 0 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.ce-glass--chart {
    top: 40px;
    left: -30px;
    width: 250px;
    animation: ce-float 7s ease-in-out infinite;
}

.ce-glass--chart header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    color: var(--ce-muted);
    font-size: 12.5px;
}

.ce-glass--chart header span:last-child {
    color: var(--ce-dim);
    font: 500 10.5px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.ce-glass--chart svg {
    display: block;
    width: 100%;
    height: 96px;
}

.ce-legend {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    color: var(--ce-dim);
    font-size: 10.5px;
}

.ce-legend i {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 5px;
    border-radius: 2px;
    vertical-align: middle;
}

.ce-glass--bars header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--ce-muted);
    font-size: 12.5px;
}

.ce-glass--bars header span:last-child {
    color: var(--ce-dim);
    font: 500 10.5px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.ce-glass--bars svg {
    display: block;
    width: 100%;
    height: 72px;
    overflow: visible;
}

.ce-glass--bars {
    top: 400px;
    right: -50px;
    width: 250px;
    animation: ce-float 7s ease-in-out infinite .8s;
}

.ce-legend span {
    white-space: nowrap;
}

.ce-bar {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: ce-bar-grow .9s cubic-bezier(.2, .8, .2, 1) both;
}

.ce-bar-dot {
    filter: drop-shadow(0 0 6px rgba(229, 0, 115, .9));
    animation: ce-fade-in .4s ease-out 1.1s both;
}

.ce-bar-line {
    animation: ce-fade-in .6s ease-out .8s both;
}

@keyframes ce-bar-grow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

@keyframes ce-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ce-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
    .ce-glass,
    .ce-bar,
    .ce-bar-line,
    .ce-bar-dot { animation: none !important; }
}

@media (max-width: 991.98px) {
    .ce-hero {
        padding: 120px 0 60px;
    }

    .ce-hero__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ce-visual {
        margin: 0 auto;
    }
}

@media (max-width: 575.98px) {
    .ce-hero .ce-hero__title {
        font-size: 46px !important;
    }

    .ce-hero__lead {
        font-size: 17px;
    }

    .ce-visual {
        height: 420px;
    }

    .ce-visual__glow {
        top: 60px;
        right: 0;
        width: 300px;
        height: 300px;
    }

    .ce-visual__photo {
        right: -40px;
        width: 340px;
        height: 400px;
    }

    .ce-visual__photo img {
        top: -58px;
    }

    .ce-glass {
        padding: 12px;
    }

    .ce-glass p {
        font-size: 15px;
    }

    .ce-glass--chart {
        top: 20px;
        left: -4px;
        width: 190px;
    }

    .ce-glass--chart svg {
        height: 56px;
    }

    .ce-glass--bars header {
        margin-bottom: 8px;
        font-size: 11px;
    }

    .ce-glass--bars {
        top: 270px;
        right: -6px;
        width: 210px;
    }

    .ce-glass--bars svg {
        height: 52px;
    }
}
