
/* DLE-integrated homepage rebuild */
.ap-home-main {
    overflow: hidden;
}
.ap-home-hero,
.ap-home-section {
    padding: clamp(76px, 8vw, 128px) 0;
}
.ap-home-hero {
    padding-top: clamp(110px, 12vw, 170px);
}
.ap-home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: clamp(36px, 6vw, 92px);
    align-items: center;
}
.ap-home-hero-copy h1,
.ap-home-section-head h2,
.ap-home-large-card h2,
.ap-home-cta-card h2 {
    color: #fff;
    letter-spacing: -.065em;
    line-height: .96;
    margin: 0;
}
.ap-home-hero-copy h1 {
    font-size: clamp(48px, 7vw, 62px);
}
.ap-home-hero-copy p,
.ap-home-section-head p,
.ap-home-large-card p,
.ap-home-cta-card p {
    color: var(--hg-muted);
    font-size: 17px;
    line-height: 1.68;
}
.ap-home-hero-copy > p {
    max-width: 720px;
    margin: 24px 0 0;
    font-size: clamp(17px, 1.4vw, 20px);
}
.ap-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}
.ap-home-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 28px;
}
.ap-home-hero-chips span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    color: #cfd6ff;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    font-size: 13px;
    font-weight: 800;
}
.ap-home-hero-visual {
    position: relative;
    min-height: 520px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 34px;
    background:
        radial-gradient(circle at 18% 16%, rgba(21,143,130,.28), transparent 32%),
        radial-gradient(circle at 82% 86%, rgba(35,224,184,.18), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
    box-shadow: 0 32px 100px rgba(0,0,0,.32);
    overflow: hidden;
}
.ap-home-visual-card {
    position: absolute;
    left: 38px;
    right: 38px;
    padding: 22px;
    border-radius: 22px;
    background: rgba(8,10,24,.68);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(18px);
}
.ap-home-visual-card-a { top: 44px; }
.ap-home-visual-card-b { bottom: 44px; }
.ap-home-visual-card span {
    display: block;
    color: var(--hg-accent-2);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.ap-home-visual-card strong {
    color: #fff;
    font-size: 22px;
}
.ap-home-visual-flow {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
}
.ap-home-visual-flow i:nth-child(odd) {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(35,224,184,.86), rgba(21,143,130,.84));
}
.ap-home-visual-orbit {
    position: absolute;
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    color: #fff;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
}
.ap-home-visual-orbit-a { top: 160px; left: 54px; }
.ap-home-visual-orbit-b { top: 160px; right: 54px; }
.ap-home-visual-orbit-c {display: none}

.ap-home-section-head {
    max-width: 820px;
    margin-bottom: 36px;
}
.ap-home-section-head h2 {
    font-size: clamp(38px, 5vw, 68px);
    margin-top: 12px;
}
.ap-home-section-head p {
    margin: 18px 0 0;
}
.ap-home-section-head-row {
    max-width: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
}
.ap-home-section-head-row > div {
    max-width: 820px;
}
.ap-home-muted {
    background: linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.006));
}
.ap-home-platform-grid,
.ap-home-dle-grid,
.ap-home-split-grid {
    display: grid;
    gap: 18px;
}
.ap-home-platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ap-home-dle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ap-home-products-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.ap-home-pricing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.ap-home-platform-grid article,
.ap-home-dle-card,
.ap-home-price-card,
.ap-home-large-card,
.ap-home-resource-item,
.ap-home-cta-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    border-radius: 26px;
    border: 1px solid rgba(255,255,255,.12);
    background:
        radial-gradient(circle at 12% 10%, rgba(21,143,130,.16), transparent 32%),
        radial-gradient(circle at 90% 90%, rgba(35,224,184,.12), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
}
.ap-home-platform-grid article,
.ap-home-dle-card,
.ap-home-price-card,
.ap-home-large-card {
    padding: 24px;
}
.ap-home-card-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, rgba(35,224,184,.86), rgba(21,143,130,.84));
    margin-bottom: 20px;
}
.ap-home-platform-grid span,
.ap-home-dle-card > span,
.ap-home-price-card > span {
    display: inline-flex;
    align-items: center;
    padding: 6px 9px;
    border-radius: 999px;
    color: #cfd6ff;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.09);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}
.ap-home-platform-grid h3,
.ap-home-dle-card h3,
.ap-home-price-card h3 {
    color: #fff;
    font-size: 24px;
    line-height: 1.08;
    letter-spacing: -.035em;
    margin: 18px 0 12px;
}
.ap-home-platform-grid p,
.ap-home-dle-card p,
.ap-home-card-desc,
.ap-home-price-card p {
    color: var(--hg-muted);
    font-size: 14px;
    line-height: 1.58;
}
.ap-home-dle-card p,
.ap-home-card-desc,
.ap-home-price-card p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ap-home-text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--hg-accent-2) !important;
    text-decoration: none;
    font-weight: 900;
    margin-top: 16px;
}
.ap-home-price-card strong {
    display: block;
    color: #fff;
    font-size: 42px;
    letter-spacing: -.055em;
    line-height: 1;
    margin-top: 18px;
}
.ap-home-pricing-band {
    border-radius: 34px;
    border: 1px solid rgba(255,255,255,.12);
    background:
        radial-gradient(circle at 12% 10%, rgba(35,224,184,.18), transparent 30%),
        radial-gradient(circle at 90% 90%, rgba(21,143,130,.22), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
    padding: clamp(28px, 4vw, 54px);
}
.ap-home-pricing-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}
.ap-home-split-grid {
    grid-template-columns: 1.1fr .9fr;
}
.ap-home-large-card {
    padding: clamp(28px, 4vw, 46px);
}
.ap-home-large-card h2,
.ap-home-cta-card h2 {
    font-size: clamp(34px, 4vw, 58px);
    margin-top: 12px;
}
.ap-home-mini-list {
    display: grid;
    gap: 10px;
    margin: 24px 0;
}
.ap-home-mini-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #dfe4ff;
    text-decoration: none;
    font-weight: 800;
}
.ap-home-mini-link i {
    color: var(--hg-accent-2);
}
.ap-home-resource-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}
.ap-home-resource-item {
    display: grid;
    gap: 12px;
    padding: 20px;
    text-decoration: none;
}
.ap-home-resource-item span {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(35,224,184,.86), rgba(21,143,130,.84));
    color: #fff;
}
.ap-home-resource-item strong {
    color: #fff;
    font-size: 18px;
    line-height: 1.2;
}
.ap-home-resource-item em {
    color: var(--hg-muted);
    font-style: normal;
    font-size: 13px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ap-home-cta-card {
    text-align: center;
    padding: clamp(38px, 5vw, 76px);
}
.ap-home-cta-card p {
    max-width: 680px;
    margin: 18px auto 0;
}
.ap-home-cta-card .ap-home-actions {
    justify-content: center;
}
@media (max-width: 1200px) {
    .ap-home-products-grid,
    .ap-home-resource-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .ap-home-pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 900px) {
    .ap-home-hero-grid,
    .ap-home-platform-grid,
    .ap-home-split-grid {
        grid-template-columns: 1fr;
    }
    .ap-home-hero-visual {
        min-height: 390px;
    }
    .ap-home-section-head-row {
        display: grid;
        align-items: start;
    }
}
@media (max-width: 680px) {
    .ap-home-dle-grid,
    .ap-home-products-grid,
    .ap-home-pricing-grid,
    .ap-home-resource-list {
        grid-template-columns: 1fr;
    }
    .ap-home-hero,
    .ap-home-section {
        padding: 72px 0;
    }
    .ap-home-hero-copy h1 {
        font-size: 44px;
    }
    .ap-home-visual-flow {
        display: none;
    }
    .ap-home-visual-orbit-a,
    .ap-home-visual-orbit-b{
        display: none;
    }
    .ap-home-visual-card {
        left: 18px;
        right: 18px;
    }
}
