/*!
 * Developer Documentation Hub — v3.0
 * UX4G Design System
 *
 * Scoped page styles. Consumes the design system's own tokens
 * (colors, radii, type) from ux4g-v2.0.css / scss/themes/_variables.scss
 * so the page stays native to the system. A few local tokens below
 * are page-specific compositions of those primitives.
 */

.ddh {
    --ddh-ink: #1b1830;
    --ddh-ink-soft: #4a4667;
    --ddh-ink-muted: #6c6a86;
    --ddh-line: #e7e4f2;
    --ddh-surface: #ffffff;
    --ddh-surface-soft: #f7f6fd;
    --ddh-brand: var(--bs-primary, #613af5);
    --ddh-brand-strong: #4a2997;
    --ddh-brand-deep: #1e1465;
    --ddh-brand-tint: #efebfb;
    --ddh-radius: 18px;
    --ddh-radius-sm: 12px;
    --ddh-ease: cubic-bezier(0.22, 1, 0.36, 1);

    color: var(--ddh-ink);
    background: var(--ddh-surface);
}

.ddh a {
    text-decoration: none;
}

.ddh-container {
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 24px;
}

/* ---------------------------------------------------------------- */
/* Hero — committed color: purple carries the surface.              */
/* Full-bleed band that sits flush under the fixed site header.     */
/* ---------------------------------------------------------------- */

.ddh-hero {
    position: relative;
    overflow: hidden;
    /* Contain inner z-index so hero content never paints over the fixed site header. */
    isolation: isolate;
    padding: 84px 0 88px;
    color: #fff;
    background:
        radial-gradient(120% 120% at 82% -10%, rgba(151, 122, 255, 0.55) 0%, rgba(151, 122, 255, 0) 55%),
        radial-gradient(90% 90% at 0% 110%, rgba(30, 20, 101, 0.6) 0%, rgba(30, 20, 101, 0) 60%),
        linear-gradient(135deg, #1e1465 0%, #4a2997 48%, #613af5 100%);
}

/* faint dot texture, non-decorative-as-content */
.ddh-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1.4px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 70%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.ddh-hero .ddh-container {
    position: relative;
    z-index: 1;
}

.ddh-hero__inner {
    max-width: 720px;
}

.ddh-hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 22px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ddh-hero__tag::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6ff0c0;
    box-shadow: 0 0 0 4px rgba(111, 240, 192, 0.25);
}

.ddh-hero__title {
    margin: 0 0 18px;
    font-size: clamp(2.1rem, 4.6vw, 3.2rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: #fff;
}

.ddh-hero__lead {
    margin: 0 0 30px;
    max-width: 52ch;
    font-size: clamp(0.95rem, 1vw, 1.05rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
}

.ddh-hero__sub {
    margin: 0 0 32px;
    max-width: 60ch;
    font-size: 0.98rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.ddh-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Buttons */
.ddh-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 24px;
    border-radius: 100px;
    font-size: 0.98rem;
    font-weight: 600;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform 0.25s var(--ddh-ease), background 0.25s var(--ddh-ease), color 0.25s var(--ddh-ease), border-color 0.25s var(--ddh-ease);
}

.ddh-btn svg {
    width: 17px;
    height: 17px;
}

.ddh-btn--primary {
    background: #fff;
    color: var(--ddh-brand-strong);
}

.ddh-btn--primary:hover {
    background: #fff;
    color: var(--ddh-brand-deep);
    transform: translateY(-2px);
}

.ddh-btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.42);
    color: #fff;
}

.ddh-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.ddh-btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

/* ---------------------------------------------------------------- */
/* Section scaffolding                                              */
/* ---------------------------------------------------------------- */

.ddh-section {
    padding: 60px 0;
}

.ddh-section__head {
    max-width: 620px;
    margin: 0 0 34px;
}

.ddh-eyebrow {
    display: block;
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ddh-brand);
}

.ddh-section__title {
    margin: 0 0 10px;
    font-size: clamp(1.5rem, 2.6vw, 1.95rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ddh-ink);
}

.ddh-section__desc {
    margin: 0;
    max-width: 62ch;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ddh-ink-soft);
}

/* ---------------------------------------------------------------- */
/* Featured platform (Web) — asymmetric, not a plain card           */
/* ---------------------------------------------------------------- */

.ddh-featured {
    display: grid;
    grid-template-columns: 1.05fr 1.35fr;
    gap: 0;
    border: 1px solid var(--ddh-line);
    border-radius: var(--ddh-radius);
    overflow: hidden;
    background: var(--ddh-surface);
    box-shadow: 0 1px 2px rgba(27, 24, 48, 0.04), 0 18px 40px -24px rgba(27, 24, 48, 0.28);
}

.ddh-featured__main {
    padding: 40px;
    background:
        radial-gradient(90% 70% at 0% 0%, rgba(97, 58, 245, 0.06) 0%, rgba(97, 58, 245, 0) 60%),
        var(--ddh-surface);
    border-right: 1px solid var(--ddh-line);
    display: flex;
    flex-direction: column;
}

.ddh-featured__icon {
    display: inline-flex;
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.ddh-featured__icon svg {
    width: 100%;
    height: 100%;
}

.ddh-featured__title {
    margin: 0 0 12px;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ddh-ink);
}

.ddh-featured__desc {
    margin: 0 0 26px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ddh-ink-soft);
}

.ddh-featured__cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    align-self: flex-start;
    margin-top: auto;
    color: var(--ddh-brand);
    font-weight: 700;
    font-size: 0.98rem;
}

.ddh-featured__cta svg {
    width: 15px;
    height: 15px;
    transition: transform 0.25s var(--ddh-ease);
}

.ddh-featured__cta:hover svg {
    transform: translate(2px, -2px);
}

.ddh-featured__cta:focus-visible {
    outline: 3px solid var(--ddh-brand);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Aside: framework variant tiles */
.ddh-featured__aside {
    padding: 28px;
    background: var(--ddh-surface-soft);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ddh-featured__asidehead {
    margin: 4px 4px 4px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ddh-ink-muted);
}

.ddh-variant {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: var(--ddh-surface);
    border: 1px solid var(--ddh-line);
    border-radius: var(--ddh-radius-sm);
    color: var(--ddh-ink);
    transition: transform 0.25s var(--ddh-ease), border-color 0.25s var(--ddh-ease), box-shadow 0.25s var(--ddh-ease);
}

.ddh-variant__logo {
    display: inline-flex;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--ddh-surface-soft);
}

.ddh-variant__logo svg {
    width: 24px;
    height: 24px;
}

.ddh-variant__body {
    flex: 1;
    min-width: 0;
}

.ddh-variant__name {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.ddh-variant__meta {
    display: block;
    font-size: 0.83rem;
    color: var(--ddh-ink-muted);
}

.ddh-variant__arrow {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--ddh-ink-muted);
    transition: transform 0.25s var(--ddh-ease), color 0.25s var(--ddh-ease);
}

a.ddh-variant:hover {
    transform: translateX(4px);
    border-color: var(--ddh-brand);
    box-shadow: 0 10px 24px -14px rgba(97, 58, 245, 0.5);
}

a.ddh-variant:hover .ddh-variant__arrow {
    color: var(--ddh-brand);
    transform: translateX(3px);
}

a.ddh-variant:focus-visible {
    outline: 3px solid var(--ddh-brand);
    outline-offset: 2px;
}

/* ---------------------------------------------------------------- */
/* Platform grid (mobile group)                                     */
/* ---------------------------------------------------------------- */

.ddh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.ddh-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    background: var(--ddh-surface);
    border: 1px solid var(--ddh-line);
    border-radius: var(--ddh-radius);
    color: inherit;
    transition: transform 0.25s var(--ddh-ease), border-color 0.25s var(--ddh-ease), box-shadow 0.25s var(--ddh-ease);
}

a.ddh-card:hover {
    transform: translateY(-5px);
    border-color: var(--ddh-brand);
    box-shadow: 0 22px 44px -24px rgba(27, 24, 48, 0.4);
}

a.ddh-card:focus-visible {
    outline: 3px solid var(--ddh-brand);
    outline-offset: 3px;
}

.ddh-card__icon {
    display: inline-flex;
    width: 50px;
    height: 50px;
}

.ddh-card__icon svg {
    width: 100%;
    height: 100%;
}

.ddh-card__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ddh-ink);
}

.ddh-card__desc {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--ddh-ink-soft);
}

.ddh-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ddh-tag {
    padding: 4px 12px;
    background: var(--ddh-brand-tint);
    color: var(--ddh-brand-strong);
    border-radius: 100px;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ddh-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: auto;
    padding: 11px 20px;
    background: var(--ddh-brand);
    color: #fff;
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: 100px;
    transition: background 0.25s var(--ddh-ease);
}

a.ddh-card:hover .ddh-card__cta {
    background: var(--ddh-brand-deep);
}

.ddh-card__cta svg {
    width: 14px;
    height: 14px;
}

/* disabled / coming soon */
.ddh-card--soon {
    background: var(--ddh-surface-soft);
    border-style: dashed;
}

.ddh-card--soon .ddh-card__icon {
    opacity: 0.85;
}

.ddh-chip-soon {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-top: auto;
    padding: 6px 14px;
    background: #edecf3;
    border-radius: 100px;
    color: #565471;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ddh-card__pill {
    margin-left: auto;
    padding: 3px 10px;
    border-radius: 100px;
    background: #edecf3;
    color: #565471;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ---------------------------------------------------------------- */
/* Resources / need help                                            */
/* ---------------------------------------------------------------- */

.ddh-resources {
    padding: 46px;
    border-radius: var(--ddh-radius);
    background:
        radial-gradient(80% 120% at 100% 0%, rgba(97, 58, 245, 0.08) 0%, rgba(97, 58, 245, 0) 55%),
        var(--ddh-surface-soft);
    border: 1px solid var(--ddh-line);
}

.ddh-resources__title {
    margin: 0 0 10px;
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    font-weight: 700;
    color: var(--ddh-ink);
}

.ddh-resources__desc {
    margin: 0 0 26px;
    max-width: 60ch;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ddh-ink-soft);
}

.ddh-resources__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ddh-reslink {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 20px;
    border: 1px solid var(--ddh-line);
    border-radius: 100px;
    background: var(--ddh-surface);
    color: var(--ddh-ink);
    font-weight: 600;
    font-size: 0.92rem;
    transition: border-color 0.25s var(--ddh-ease), color 0.25s var(--ddh-ease), transform 0.25s var(--ddh-ease);
}

.ddh-reslink svg {
    width: 15px;
    height: 15px;
    color: var(--ddh-ink-muted);
    transition: color 0.25s var(--ddh-ease);
}

a.ddh-reslink:hover {
    border-color: var(--ddh-brand);
    color: var(--ddh-brand);
    transform: translateY(-2px);
}

a.ddh-reslink:hover svg {
    color: var(--ddh-brand);
}

a.ddh-reslink:focus-visible {
    outline: 3px solid var(--ddh-brand);
    outline-offset: 2px;
}

.ddh-reslink--soon {
    color: var(--ddh-ink-muted);
    cursor: default;
}

.ddh-reslink__soon {
    padding: 2px 9px;
    border-radius: 100px;
    background: #edecf3;
    color: #565471;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ================================================================ */
/* Header branding: MeitY emblem + UX4G wordmark (hub-scoped)       */
/* ================================================================ */

.ddh-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
    line-height: 1;
}

.ddh-brand__meity {
    height: 40px;
    width: auto;
    flex-shrink: 0;
}

.ddh-brand__ux4g {
    height: 23px;
    width: auto;
    flex-shrink: 0;
}

.ddh-brand__divider {
    width: 1px;
    height: 34px;
    background: #d9d5ea;
    flex-shrink: 0;
}

.ddh-brand:hover .ddh-brand__ux4g {
    opacity: 0.85;
}

.ddh-brand:focus-visible {
    outline: 3px solid #613af5;
    outline-offset: 3px;
    border-radius: 6px;
}

/* Right-side nav actions: Search · GitHub · Version */
.ddh-navactions {
    gap: 6px;
    margin-left: 16px;
}

.ddh-navicon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    color: #1b2430;
    background: transparent;
    transition: background 0.2s var(--ddh-ease), color 0.2s var(--ddh-ease);
}

.ddh-navicon:hover {
    background: #f0edfb;
    color: #613af5;
}

.ddh-navicon svg {
    width: 20px;
    height: 20px;
}

.ddh-navicon .fa {
    font-size: 17px;
}

.ddh-navactions .btn.dropdown-toggle {
    margin-left: 4px;
    border-radius: 10px;
}

@media (max-width: 575px) {
    .ddh-brand {
        gap: 9px;
    }

    .ddh-brand__meity {
        height: 30px;
    }

    .ddh-brand__ux4g {
        height: 18px;
    }

    .ddh-brand__divider {
        height: 26px;
    }
}

/* ================================================================ */
/* Hero: two-column grid + compliance + component illustration      */
/* ================================================================ */

.ddh-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 48px;
}

.ddh-hero__grid .ddh-hero__inner {
    max-width: none;
}

.ddh-hero__compliance {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.ddh-hero__compliance li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 100px;
}

.ddh-hero__compliance li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6ff0c0;
}

/* Illustration */
.ddh-hero__art {
    position: relative;
    min-height: 400px;
}

.ddh-art {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.ddh-art__card {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 13px 15px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 14px;
    box-shadow: 0 20px 44px -20px rgba(12, 8, 38, 0.6);
    animation: ddh-float 6.5s var(--ddh-ease) infinite;
    animation-delay: calc(var(--i) * -1.05s);
    will-change: transform;
}

@keyframes ddh-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-11px);
    }
}

.ddh-art__cap {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9690a2;
}

.ddh-art__card--api {
    top: 6px;
    left: 2px;
    width: 182px;
    z-index: 4;
}

.ddh-art__card--doc {
    top: 52px;
    right: 0;
    width: 292px;
    z-index: 6;
    padding: 0;
    gap: 0;
    overflow: hidden;
}

.ddh-art__card--token {
    bottom: 12px;
    left: 26px;
    width: 236px;
    z-index: 5;
}

.ddh-art__btn {
    padding: 7px 14px;
    border-radius: 100px;
    background: #613af5;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.ddh-art__btn.ghost {
    background: #efebfb;
    color: #4a2997;
}

.ddh-art__swatches {
    display: flex;
    gap: 5px;
}

.ddh-art__swatches i {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.ddh-art__token {
    font-size: 11px;
    color: #4a2997;
    background: #f3f0fd;
    padding: 5px 8px;
    border-radius: 6px;
    font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
}

/* Component API card */
.ddh-doc__prop {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 11px;
}

.ddh-doc__prop code {
    font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
    font-size: 10.5px;
    color: #4a2997;
    background: #f3f0fd;
    padding: 2px 6px;
    border-radius: 5px;
}

.ddh-doc__prop em {
    font-style: normal;
    font-size: 10px;
    color: #8a86a0;
}

/* Docs panel: framework tabs · preview · code */
.ddh-doc__bar {
    display: flex;
    gap: 4px;
    padding: 10px 12px;
    background: #f6f4fd;
    border-bottom: 1px solid #ece8f8;
}

.ddh-doc__tab {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 6px;
    color: #9690a2;
}

.ddh-doc__tab.is-active {
    background: #fff;
    color: #4a2997;
    box-shadow: 0 1px 3px rgba(27, 24, 48, 0.1);
}

.ddh-doc__canvas {
    display: flex;
    gap: 8px;
    padding: 16px 14px;
    background: radial-gradient(circle at 18% 0%, rgba(97, 58, 245, 0.06), transparent 60%), #fff;
    border-bottom: 1px solid #ece8f8;
}

.ddh-doc__code {
    display: block;
    padding: 12px 14px;
    background: #1f1640;
    font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
    font-size: 11px;
    line-height: 1.55;
}

.ddh-doc__line {
    display: block;
    white-space: pre;
    color: #cfc7ee;
}

.ddh-doc__line .tag {
    color: #b794ff;
}

.ddh-doc__line .attr {
    color: #7fd1ff;
}

.ddh-doc__line .str {
    color: #8ee6a8;
}

/* ================================================================ */
/* Statistics strip                                                 */
/* ================================================================ */

.ddh-stats {
    background: var(--ddh-surface-soft);
    border-top: 1px solid var(--ddh-line);
    border-bottom: 1px solid var(--ddh-line);
}

.ddh-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--ddh-line);
}

.ddh-stat {
    background: var(--ddh-surface-soft);
    padding: 30px 16px;
    text-align: center;
}

.ddh-stat__value {
    display: block;
    font-size: clamp(1.35rem, 2.1vw, 1.7rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.15;
    color: var(--ddh-brand-strong);
}

.ddh-stat__label {
    display: block;
    margin-top: 7px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ddh-ink-muted);
}

/* ================================================================ */
/* Web variant cards — refined hover / hierarchy                    */
/* ================================================================ */

.ddh-variant {
    transition: transform 0.32s var(--ddh-ease), border-color 0.32s var(--ddh-ease), box-shadow 0.32s var(--ddh-ease), background 0.32s var(--ddh-ease);
}

.ddh-variant__logo {
    transition: background 0.32s var(--ddh-ease), transform 0.32s var(--ddh-ease);
}

.ddh-variant__name {
    transition: color 0.32s var(--ddh-ease);
}

a.ddh-variant:hover {
    transform: translateX(6px);
    box-shadow: 0 16px 32px -18px rgba(97, 58, 245, 0.55);
}

a.ddh-variant:hover .ddh-variant__logo {
    background: #efebfb;
    transform: scale(1.07);
}

a.ddh-variant:hover .ddh-variant__name {
    color: var(--ddh-brand-strong);
}

/* Featured icon: slightly stronger presence */
.ddh-featured__icon {
    filter: drop-shadow(0 10px 18px rgba(97, 58, 245, 0.18));
}

/* ================================================================ */
/* Mobile platform cards — standardised rhythm                      */
/* ================================================================ */

.ddh-card {
    gap: 13px;
    padding: 26px;
}

.ddh-card__icon {
    margin-bottom: 2px;
}

.ddh-card__desc {
    flex: 0 0 auto;
}

.ddh-tags {
    margin-bottom: 4px;
}

/* ================================================================ */
/* Figma promo banner                                               */
/* ================================================================ */

.ddh-figma {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    align-items: center;
    gap: 32px;
    padding: 46px 48px;
    border-radius: var(--ddh-radius);
    color: #fff;
    background:
        radial-gradient(90% 150% at 100% 0%, rgba(162, 89, 255, 0.45) 0%, rgba(162, 89, 255, 0) 60%),
        linear-gradient(120deg, #241760 0%, #4a2997 55%, #613af5 100%);
}

.ddh-figma__eyebrow {
    display: block;
    margin-bottom: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.ddh-figma__title {
    margin: 0 0 12px;
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
}

.ddh-figma__desc {
    margin: 0 0 26px;
    max-width: 58ch;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.86);
}

.ddh-figma__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ddh-figbtn {
    font-size: 0.95rem;
}

.ddh-figbtn svg:first-child {
    width: auto;
    height: 17px;
}

.ddh-figbtn svg:last-child {
    width: 13px;
    height: 13px;
    opacity: 0.75;
}

.ddh-figbtn--solid {
    background: #fff;
    color: #4a2997;
}

.ddh-figbtn--solid:hover {
    transform: translateY(-2px);
    color: #2f1a63;
}

.ddh-figbtn--outline {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.ddh-figbtn--outline:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.ddh-figma__art {
    position: relative;
    height: 176px;
}

.ddh-figma__frame {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 210px;
    height: 176px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ddh-figma__dot {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.6);
}

.ddh-figma__dot:nth-of-type(1) {
    top: 22px;
    left: 24px;
}

.ddh-figma__dot:nth-of-type(2) {
    top: 22px;
    left: 54px;
    border-radius: 50% 50% 50% 6px;
}

.ddh-figma__dot:nth-of-type(3) {
    top: 52px;
    left: 24px;
}

.ddh-figma__dot:nth-of-type(4) {
    top: 52px;
    left: 54px;
}

.ddh-figma__chip {
    position: absolute;
    padding: 7px 13px;
    border-radius: 9px;
    background: #fff;
    color: #2f1a63;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.6);
    animation: ddh-float 6.5s var(--ddh-ease) infinite;
}

.ddh-figma__chip {
    top: 30px;
    right: -6px;
}

.ddh-figma__chip--2 {
    top: 82px;
    right: 24px;
    animation-delay: -2.1s;
}

.ddh-figma__chip--3 {
    bottom: 8px;
    left: -8px;
    top: auto;
    right: auto;
    animation-delay: -4.2s;
}

/* ================================================================ */
/* Help section — polish                                            */
/* ================================================================ */

.ddh-resources {
    padding: 52px;
}

.ddh-resources__eyebrow {
    display: block;
    margin-bottom: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ddh-brand);
}

.ddh-reslink {
    padding: 12px 22px;
}

/* ---------------------------------------------------------------- */
/* Responsive                                                       */
/* ---------------------------------------------------------------- */

@media (max-width: 992px) {
    .ddh-hero__grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .ddh-hero__art {
        display: none;
    }

    .ddh-figma {
        grid-template-columns: 1fr;
        padding: 40px 34px;
    }

    .ddh-figma__art {
        display: none;
    }
}

@media (max-width: 900px) {
    .ddh-featured {
        grid-template-columns: 1fr;
    }

    .ddh-featured__main {
        border-right: 0;
        border-bottom: 1px solid var(--ddh-line);
    }
}

@media (max-width: 700px) {
    .ddh-stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ddh-stat {
        padding: 24px 12px;
    }
}

@media (max-width: 768px) {
    .ddh-container {
        padding-inline: 18px;
    }

    .ddh-hero {
        padding: 56px 0 62px;
    }

    .ddh-figma {
        padding: 32px 24px;
    }

    .ddh-section {
        padding: 46px 0;
    }

    .ddh-featured__main,
    .ddh-resources {
        padding: 30px 24px;
    }
}

@media (max-width: 560px) {
    .ddh-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ddh-btn {
        justify-content: center;
    }

    .ddh-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------------- */
/* Header: single menu toggle, aligned to the right on collapsed    */
/* (mobile / tablet) nav. Scoped to the hub via this stylesheet.    */
/* ---------------------------------------------------------------- */

@media (max-width: 991px) {
    .nav_custom .navbar-toggler {
        order: 5;
        margin-left: auto;
    }
}

/* ---------------------------------------------------------------- */
/* In-page anchor offset (fixed site header) + smooth scroll        */
/* ---------------------------------------------------------------- */

.ddh [id] {
    scroll-margin-top: 124px;
}

@media (prefers-reduced-motion: no-preference) {
    html:has(.ddh) {
        scroll-behavior: smooth;
    }
}

/* ---------------------------------------------------------------- */
/* Reduced motion                                                   */
/* ---------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .ddh *,
    .ddh-art__card,
    .ddh-art__caret,
    .ddh-figma__chip {
        transition: none !important;
        animation: none !important;
    }

    a.ddh-card:hover,
    a.ddh-variant:hover,
    .ddh-btn:hover {
        transform: none;
    }
}

@media (max-width:768px) {
    .ddh-navactions {
        margin-right: 16px;
    }
}