/**
 * File: assets/css/frontend/home/home.css
 * Purpose: Styles the premium marketplace hero, trust facts and four original interface cards shown in the approved reference.
 * Scope: Front-page presentation only; catalogue cards, prices and commerce components are excluded.
 * Related PHP: front-page.php, src/Frontend/Home/HomeRenderer.php
 * Related CSS: assets/css/frontend/home/responsive.css
 * Related JS: None
 * Package: HyperDAF Pro
 */

.hdf-home,
.hdf-home * { box-sizing: border-box; }
.hdf-home {
    --hdf-marketplace-shell-max: 97.5rem;
    background: var(--hdf-color-surface);
}
.hdf-home__container { width: min(calc(100% - 4rem), var(--hdf-marketplace-shell-max)); margin-inline: auto; }

.hdf-home-hero {
    position: relative;
    overflow: hidden;
    min-height: calc(27.5rem - 50px);
    padding: .625rem 0 1.3rem;
    border-bottom: 1px solid var(--hdf-color-border);
    background:
        radial-gradient(circle at 79% 42%, color-mix(in srgb, var(--hdf-color-primary) 8%, transparent) 0, transparent 32%),
        linear-gradient(105deg, var(--hdf-color-surface) 0%, color-mix(in srgb, var(--hdf-color-primary) 3%, var(--hdf-color-surface)) 100%);
}
.hdf-home-hero::before {
    position: absolute;
    inset: 0 0 0 48%;
    background-image: radial-gradient(color-mix(in srgb, var(--hdf-color-primary-strong) 15%, transparent) .65px, transparent .65px);
    background-size: .9rem .9rem;
    content: "";
    opacity: .3;
    pointer-events: none;
    mask-image: linear-gradient(90deg, transparent, var(--hdf-color-text-primary) 38%, transparent 100%);
}

.hdf-home-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: calc(23rem - 50px);
    grid-template-columns: minmax(0, 1.02fr) minmax(29rem, .88fr);
    align-items: center;
    gap: clamp(1.4rem, 2.6vw, 2.8rem);
    transform: translateY(0);
}
.hdf-home-hero__content { max-width: 49rem; }
.hdf-home-hero__eyebrow {
    margin: 0 0 1rem;
    color: var(--hdf-color-primary-strong);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.hdf-home-hero__title {
    max-width: none;
    margin: 0;
    color: var(--hdf-color-text-primary);
    font-size: clamp(2.225rem, 2.95vw, 3.175rem);
    font-weight: 650;
    letter-spacing: -.036em;
    line-height: 1.035;
}
.hdf-home-hero__title-line {
    display: block;
    white-space: nowrap;
}
.hdf-home-hero__title-line--primary { font-weight: 650; }
.hdf-home-hero__title-accent {
    color: var(--hdf-color-primary-strong);
    font-weight: 640;
}
.hdf-home-hero__description {
    max-width: 37rem;
    margin: .95rem 0 0;
    color: var(--hdf-color-text-secondary);
    font-size: clamp(.98rem, 1.02vw, 1.08rem);
    line-height: 1.68;
}
.hdf-home-hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.45rem; }
.hdf-home-hero__actions .hdf-button {
    min-height: 3.35rem;
    gap: .65rem;
    padding-inline: 1.35rem;
    border-radius: .55rem;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.hdf-home-hero__actions .hdf-button:hover { transform: translateY(-1px); }
.hdf-home-hero__actions .hdf-button--primary { box-shadow: 0 8px 20px color-mix(in srgb, var(--hdf-color-primary-strong) 18%, transparent); }
.hdf-home-hero__actions .hdf-button--secondary { background: var(--hdf-color-surface); border-color: var(--hdf-color-border); color: var(--hdf-color-text-primary); }
.hdf-home-hero__actions .hdf-button--secondary:hover { background: var(--hdf-color-surface-hover); color: var(--hdf-color-primary-strong); }
.hdf-home-hero__action-icon,
.hdf-home-hero__secondary-icon { width: 1.08rem; height: 1.08rem; }

.hdf-home-hero__trust {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 1.75rem;
}
.hdf-home-hero__trust-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .7rem;
    min-width: 0;
    padding-inline: .95rem;
    border-inline-start: 1px solid var(--hdf-color-border);
    color: var(--hdf-color-text-secondary);
}
.hdf-home-hero__trust-item:first-child { padding-inline-start: 0; border-inline-start: 0; }
.hdf-home-hero__trust-item .hdf-icon { width: 1.65rem; height: 1.65rem; color: var(--hdf-color-primary-strong); }
.hdf-home-hero__trust-item > span { display: grid; min-width: 0; gap: .12rem; }
.hdf-home-hero__trust-item strong {
    overflow: hidden;
    color: var(--hdf-color-text-primary);
    font-size: .79rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hdf-home-hero__trust-item small {
    overflow: hidden;
    color: var(--hdf-color-text-muted);
    font-size: .67rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hdf-home-hero__visual {
    position: relative;
    min-height: 20.75rem;
    perspective: 75rem;
    isolation: isolate;
}
.hdf-home-hero__visual::before {
    position: absolute;
    z-index: -2;
    inset: 8% 0 2% 7%;
    border-radius: 48% 52% 45% 55%;
    background: color-mix(in srgb, var(--hdf-color-primary) 9%, transparent);
    content: "";
    transform: rotate(-6deg);
}
.hdf-home-hero__visual-shape { position: absolute; z-index: -1; border: 1px dashed color-mix(in srgb, var(--hdf-color-primary-strong) 18%, transparent); border-radius: 50%; pointer-events: none; }
.hdf-home-hero__visual-shape--one { width: 25rem; height: 25rem; right: 2%; bottom: -8%; }
.hdf-home-hero__visual-shape--two { width: 15rem; height: 15rem; left: 2%; top: 14%; }

.hdf-home-suite-card {
    position: absolute;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--hdf-color-border) 88%, transparent);
    border-radius: 1rem;
    background: var(--hdf-color-surface);
    box-shadow: var(--hdf-shadow-lg);
    transform: rotate(var(--hdf-suite-rotate, 0deg));
    transform-origin: center;
}
.hdf-home-suite-card--theme { --hdf-suite-rotate: -.7deg; z-index: 3; top: 0; left: 8%; width: 39%; min-height: 11.9rem; }
.hdf-home-suite-card--plugin { --hdf-suite-rotate: 1.7deg; z-index: 4; top: .25rem; right: 1%; width: 42%; min-height: 11.5rem; }
.hdf-home-suite-card--template { --hdf-suite-rotate: -.35deg; z-index: 2; bottom: 0; left: 1%; width: 45%; min-height: 11rem; }
.hdf-home-suite-card--saas { --hdf-suite-rotate: .8deg; z-index: 5; right: -1%; bottom: .2rem; width: 48%; min-height: 11.2rem; }

.hdf-home-suite-card > header {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: space-between;
    padding: 0 .85rem;
    border-bottom: 1px solid var(--hdf-color-border);
    background: color-mix(in srgb, var(--hdf-color-surface) 96%, var(--hdf-color-primary) 4%);
    color: var(--hdf-color-text-primary);
    font-size: .76rem;
    font-weight: 600;
}
.hdf-home-suite-card > header span { display: inline-flex; align-items: center; gap: .5rem; }
.hdf-home-suite-card > header .hdf-icon { width: 1rem; height: 1rem; color: var(--hdf-color-primary-strong); }
.hdf-home-suite-card > header > i { width: .24rem; height: .24rem; border-radius: 50%; background: var(--hdf-color-text-muted); box-shadow: 0 .38rem 0 var(--hdf-color-text-muted), 0 -.38rem 0 var(--hdf-color-text-muted); }

.hdf-suite-window { padding: .55rem; }
.hdf-suite-window__browser { display: flex; gap: .2rem; padding: 0 0 .35rem .15rem; }
.hdf-suite-window__browser span { width: .28rem; height: .28rem; border-radius: 50%; background: var(--hdf-color-border-strong); }
.hdf-suite-window__hero {
    position: relative;
    display: grid;
    min-height: 6rem;
    align-content: center;
    overflow: hidden;
    padding: 1rem;
    border-radius: .55rem;
    background: linear-gradient(145deg, color-mix(in srgb, var(--hdf-color-primary) 7%, var(--hdf-color-surface)), color-mix(in srgb, var(--hdf-color-primary) 22%, var(--hdf-color-surface)));
}
.hdf-suite-window__hero::before,
.hdf-suite-window__hero::after {
    position: absolute;
    right: -1rem;
    bottom: -.8rem;
    width: 7rem;
    height: 4.6rem;
    border-radius: 50% 50% 15% 15%;
    background: color-mix(in srgb, var(--hdf-color-primary-strong) 22%, transparent);
    content: "";
    transform: rotate(-13deg);
}
.hdf-suite-window__hero::after { right: 2.8rem; bottom: -1.5rem; width: 6rem; height: 4rem; opacity: .55; transform: rotate(18deg); }
.hdf-suite-window__hero strong { position: relative; z-index: 1; max-width: 8ch; font-size: 1.1rem; line-height: 1.05; }
.hdf-suite-window__hero i,
.hdf-suite-window__hero b { position: relative; z-index: 1; display: block; height: .22rem; margin-top: .45rem; border-radius: 999px; background: color-mix(in srgb, var(--hdf-color-primary-strong) 25%, transparent); }
.hdf-suite-window__hero i { width: 42%; }
.hdf-suite-window__hero b { width: 28%; }
.hdf-suite-window__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-top: .45rem; }
.hdf-suite-window__tiles > span { display: grid; min-height: 2.55rem; place-content: center; gap: .35rem; border: 1px solid var(--hdf-color-border); border-radius: .4rem; background: var(--hdf-color-surface); }
.hdf-suite-window__tiles i { width: .85rem; height: .85rem; justify-self: center; border: 2px solid color-mix(in srgb, var(--hdf-color-primary-strong) 55%, transparent); border-radius: .2rem; }
.hdf-suite-window__tiles b { width: 2.1rem; height: .18rem; border-radius: 999px; background: var(--hdf-color-border); }

.hdf-suite-plugins { display: grid; min-height: 11.2rem; grid-template-columns: 2.7rem 1fr; }
.hdf-suite-plugins aside { display: grid; align-content: start; gap: .7rem; padding: .85rem .5rem; background: color-mix(in srgb, var(--hdf-color-text-primary) 87%, var(--hdf-color-primary) 13%); }
.hdf-suite-plugins aside i { width: .85rem; height: .85rem; justify-self: center; border: 1px solid color-mix(in srgb, var(--hdf-color-surface) 65%, transparent); border-radius: .2rem; }
.hdf-suite-plugins__modules { display: grid; align-content: center; gap: .35rem; padding: .55rem; }
.hdf-suite-plugins__modules span { display: grid; grid-template-columns: 1.35rem minmax(0, 1fr) 1.75rem; align-items: center; gap: .45rem; min-height: 2rem; padding: .3rem .4rem; border-radius: .35rem; background: var(--hdf-color-surface-subtle); }
.hdf-suite-plugins__modules b { display: inline-flex; width: 1.2rem; height: 1.2rem; align-items: center; justify-content: center; border-radius: .28rem; background: color-mix(in srgb, var(--hdf-color-primary) 16%, var(--hdf-color-surface)); color: var(--hdf-color-primary-strong); font-size: .52rem; font-style: normal; }
.hdf-suite-plugins__modules em { overflow: hidden; color: var(--hdf-color-text-secondary); font-size: .57rem; font-style: normal; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.hdf-suite-plugins__modules i { position: relative; width: 1.65rem; height: .72rem; border-radius: 999px; background: var(--hdf-color-primary-strong); }
.hdf-suite-plugins__modules i::after { position: absolute; top: .12rem; right: .12rem; width: .48rem; height: .48rem; border-radius: 50%; background: var(--hdf-color-surface); content: ""; }

.hdf-suite-templates { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; padding: .7rem; }
.hdf-suite-templates > span { display: grid; min-height: 4.3rem; grid-template-rows: 1fr auto auto; gap: .25rem; padding: .3rem; border: 1px solid var(--hdf-color-border); border-radius: .42rem; background: var(--hdf-color-surface); }
.hdf-suite-templates i { min-height: 2.1rem; border-radius: .3rem; background: linear-gradient(150deg, color-mix(in srgb, var(--hdf-color-primary) 11%, var(--hdf-color-surface)), color-mix(in srgb, var(--hdf-color-primary) 23%, var(--hdf-color-surface))); }
.hdf-suite-templates b,
.hdf-suite-templates em { display: block; height: .18rem; border-radius: 999px; background: var(--hdf-color-border); }
.hdf-suite-templates b { width: 78%; }
.hdf-suite-templates em { width: 52%; }

.hdf-suite-analytics { display: grid; min-height: 11rem; grid-template-columns: 2.4rem minmax(0, 1fr); }
.hdf-suite-analytics > aside { display: grid; align-content: start; gap: .65rem; padding: .75rem .45rem; background: color-mix(in srgb, var(--hdf-color-text-primary) 87%, var(--hdf-color-primary) 13%); }
.hdf-suite-analytics > aside i { width: .75rem; height: .75rem; justify-self: center; border: 1px solid color-mix(in srgb, var(--hdf-color-surface) 65%, transparent); border-radius: .18rem; }
.hdf-suite-analytics__main { padding: .55rem; }
.hdf-suite-analytics__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; }
.hdf-suite-analytics__stats span { display: grid; gap: .08rem; padding: .42rem; border-radius: .35rem; background: var(--hdf-color-surface-subtle); }
.hdf-suite-analytics__stats small { color: var(--hdf-color-text-muted); font-size: .48rem; }
.hdf-suite-analytics__stats strong { color: var(--hdf-color-text-primary); font-size: .73rem; line-height: 1.1; }
.hdf-suite-analytics__stats i { color: var(--hdf-color-primary-strong); font-size: .43rem; font-style: normal; }
.hdf-suite-analytics__lower { display: grid; grid-template-columns: minmax(0, 1fr) 4.1rem; gap: .45rem; margin-top: .45rem; }
.hdf-suite-analytics__chart { position: relative; min-height: 5.1rem; overflow: hidden; border-radius: .38rem; background: linear-gradient(to top, color-mix(in srgb, var(--hdf-color-primary) 10%, transparent), transparent); }
.hdf-suite-analytics__chart::before { position: absolute; inset: 16% 7% 10%; background: linear-gradient(to right, transparent 24%, color-mix(in srgb, var(--hdf-color-border) 55%, transparent) 25%, transparent 26%, transparent 49%, color-mix(in srgb, var(--hdf-color-border) 55%, transparent) 50%, transparent 51%, transparent 74%, color-mix(in srgb, var(--hdf-color-border) 55%, transparent) 75%, transparent 76%); content: ""; }
.hdf-suite-analytics__chart span { position: absolute; right: 8%; bottom: 18%; left: 8%; height: 55%; border-top: 2px solid var(--hdf-color-primary-strong); border-radius: 55% 35% 30% 65%; transform: skewY(-10deg); }
.hdf-suite-analytics__chart i { position: absolute; right: 18%; bottom: 22%; left: 23%; height: 38%; border-top: 1px solid color-mix(in srgb, var(--hdf-color-primary-strong) 42%, transparent); transform: skewY(12deg); }
.hdf-suite-analytics__chart b { position: absolute; right: 10%; bottom: 34%; width: .35rem; height: .35rem; border-radius: 50%; background: var(--hdf-color-primary-strong); }
.hdf-suite-analytics__ring { display: grid; place-items: center; min-height: 5.1rem; border-radius: .38rem; background: var(--hdf-color-surface-subtle); }
.hdf-suite-analytics__ring span { width: 3rem; height: 3rem; border: .55rem solid color-mix(in srgb, var(--hdf-color-primary) 16%, var(--hdf-color-border)); border-top-color: var(--hdf-color-primary-strong); border-right-color: color-mix(in srgb, var(--hdf-color-primary-strong) 55%, var(--hdf-color-border)); border-radius: 50%; }

.hdf-home-content { padding-block: var(--hdf-spacing-9); }
.hdf-home-content__inner { max-width: var(--hdf-layout-wide); }
.hdf-home-content__entry > :first-child { margin-top: 0; }
.hdf-home-content__entry > :last-child { margin-bottom: 0; }
