:root {
    --xd-bg: #07110f;
    --xd-panel: #0d1916;
    --xd-panel-2: #12231f;
    --xd-border: rgba(220, 232, 222, 0.14);
    --xd-text: #f7fbf8;
    --xd-muted: #b4c3b9;
    --xd-soft: #75877c;
    --xd-mint: #8fd6b1;
    --xd-lime: #d8f06d;
    --xd-rose: #f3a4b6;
    --xd-ink: #07110f;
    --xd-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
    --xd-radius: 18px;
}

html { scroll-behavior: smooth; }
html, body { background: var(--xd-bg) !important; }
header.bg-neutral-50 { background: var(--xd-bg) !important; }
.xd-page, .xd-page * { font-family: "Inter", sans-serif; }
.xd-page {
    background:
        linear-gradient(180deg, rgba(143, 214, 177, 0.08), transparent 540px),
        var(--xd-bg);
    color: var(--xd-text);
    overflow: hidden;
}

.xd-hero {
    min-height: 100vh;
    padding: 150px 0 70px;
    position: relative;
    display: flex;
    align-items: center;
}
.xd-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.78), transparent 88%);
    pointer-events: none;
}
.xd-hero-inner { position: relative; z-index: 2; }
.xd-mark {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--xd-mint), var(--xd-lime));
    color: var(--xd-ink);
    font-weight: 900;
    font-size: 1.25rem;
    box-shadow: 0 18px 50px rgba(143, 214, 177, 0.25);
    margin-bottom: 24px;
}
.xd-eyebrow,
.xd-section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--xd-mint);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.xd-eyebrow::before,
.xd-section-label::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: var(--xd-lime);
    box-shadow: 0 0 18px rgba(216, 240, 109, 0.65);
}
.xd-title {
    font-size: clamp(2.8rem, 6vw, 5.8rem);
    line-height: 0.96;
    font-weight: 900;
    letter-spacing: 0;
    margin: 18px 0 22px;
}
.xd-title span {
    color: transparent;
    -webkit-text-stroke: 1px rgba(247, 251, 248, 0.78);
}
.xd-lead {
    color: var(--xd-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 640px;
}
.xd-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 0; }
.xd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 26px;
    border-radius: 999px;
    border: 1px solid var(--xd-border);
    color: var(--xd-text);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.86rem;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.xd-btn-primary {
    color: var(--xd-ink);
    background: linear-gradient(135deg, var(--xd-mint), var(--xd-lime));
    border-color: transparent;
}
.xd-btn:hover { transform: translateY(-3px); color: var(--xd-text); border-color: rgba(143, 214, 177, 0.55); }
.xd-btn-primary:hover { color: var(--xd-ink); }
.xd-hero-shot {
    position: relative;
    border: 1px solid var(--xd-border);
    border-radius: 22px;
    background: var(--xd-panel);
    box-shadow: var(--xd-shadow);
    padding: 12px;
    transform: rotate(1.5deg);
}
.xd-hero-shot img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    object-position: top center;
    border-radius: 14px;
    display: block;
}
.xd-float-card {
    position: absolute;
    left: -30px;
    bottom: 34px;
    max-width: 250px;
    border: 1px solid rgba(247,251,248,0.2);
    background: rgba(13,25,22,0.88);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--xd-shadow);
    animation: xdFloat 4.5s ease-in-out infinite;
}
.xd-float-card strong { display: block; color: var(--xd-text); font-size: 1.5rem; line-height: 1; }
.xd-float-card span { color: var(--xd-muted); font-size: 0.82rem; }

.xd-section { padding: 105px 0; position: relative; }
.xd-section-alt { background: var(--xd-panel); }
.xd-section-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: 0;
    margin: 12px 0 0;
}
.xd-section-copy { color: var(--xd-muted); line-height: 1.8; font-size: 0.98rem; }
.xd-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 40px;
}
.xd-stat,
.xd-card,
.xd-module,
.xd-screen-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
    border: 1px solid var(--xd-border);
    border-radius: var(--xd-radius);
    transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}
.xd-stat { padding: 24px; }
.xd-stat strong { display: block; font-size: 2rem; color: var(--xd-lime); line-height: 1; }
.xd-stat span { color: var(--xd-muted); font-size: 0.82rem; }
.xd-card { padding: 30px; height: 100%; }
.xd-card:hover,
.xd-module:hover,
.xd-screen-card:hover {
    transform: translateY(-6px);
    border-color: rgba(143, 214, 177, 0.48);
    background: linear-gradient(180deg, rgba(143,214,177,0.1), rgba(255,255,255,0.02));
}
.xd-card-num { color: var(--xd-rose); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.18em; }
.xd-card-title { color: var(--xd-text); font-size: 1.15rem; font-weight: 850; margin: 16px 0 10px; }
.xd-card-text { color: var(--xd-muted); line-height: 1.72; font-size: 0.9rem; margin: 0; }

.xd-module { padding: 12px; height: 100%; }
.xd-module img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
    border-radius: 12px;
    display: block;
}
.xd-module-body { padding: 22px 12px 14px; }
.xd-chip {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 99px;
    background: rgba(143,214,177,0.1);
    color: var(--xd-mint);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.xd-module-title { color: var(--xd-text); font-weight: 850; font-size: 1.15rem; margin: 14px 0 8px; }
.xd-module-text { color: var(--xd-muted); line-height: 1.68; font-size: 0.88rem; margin: 0; }

.xd-rail-wrap {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    padding: 12px 0;
}
.xd-rail {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: xdMarquee 42s linear infinite;
}
.xd-rail-wrap:hover .xd-rail { animation-play-state: paused; }
.xd-screen-card {
    width: min(520px, 82vw);
    padding: 12px;
    flex: 0 0 auto;
}
.xd-screen-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
    border-radius: 12px;
}
.xd-screen-card span {
    display: block;
    padding: 14px 8px 4px;
    color: var(--xd-text);
    font-weight: 800;
}

.xd-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.xd-final {
    padding: 110px 0;
    background:
        linear-gradient(135deg, rgba(143,214,177,0.13), rgba(243,164,182,0.08)),
        var(--xd-bg);
    text-align: center;
}
.xd-final p { max-width: 680px; margin: 18px auto 34px; }

.xd-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
.xd-reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes xdMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@keyframes xdFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@media (max-width: 991px) {
    .xd-hero { padding-top: 120px; }
    .xd-hero-shot { transform: none; }
    .xd-float-card { position: static; margin-top: 14px; max-width: none; }
    .xd-stat-grid, .xd-dashboard-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .xd-title { font-size: 2.75rem; }
    .xd-actions .xd-btn { width: 100%; }
    .xd-stat-grid, .xd-dashboard-grid { grid-template-columns: 1fr; }
    .xd-section { padding: 70px 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .xd-rail, .xd-float-card { animation: none; }
    .xd-reveal { opacity: 1; transform: none; }
}
