/* Ace homepage sections v2 — premium, eye-catching styling. Red/dark palette. */
.ace-section { padding: 84px 0; position: relative; }
.ace-section h2 { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -.03em; line-height: 1.1; margin: 10px 0 16px; font-weight: 800; }
.ace-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.ace-eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: #9f1722; }

/* ---------- HPE Partner ---------- */
.ace-hpe { background: linear-gradient(180deg, #f7f8f9 0%, #ffffff 100%); border-block: 1px solid #eef0f1; overflow: hidden; }
.ace-hpe::before {
    content: ""; position: absolute; top: -120px; right: -120px; width: 420px; height: 420px;
    border-radius: 50%; background: radial-gradient(circle, rgba(159,23,34,.07) 0%, transparent 70%);
    pointer-events: none;
}
.ace-hpe-inner { max-width: 1120px; position: relative; }
.ace-hpe-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 20px 8px 8px; border-radius: 999px;
    background: #16181d; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .03em;
    box-shadow: 0 8px 24px rgba(22,24,29,.18);
}
.ace-hpe-check {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, #9f1722, #c22432); color: #fff;
    font-size: 16px; font-weight: 800;
}
.ace-hpe-lead { max-width: 780px; font-size: 18px; color: #4a4f56; line-height: 1.7; }
.ace-hpe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 38px 0; }
.ace-hpe-card {
    position: relative; padding: 30px 28px;
    border: 1px solid #e6e9ec; border-radius: 18px; background: #fff;
    box-shadow: 0 4px 20px rgba(17,19,21,.04);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    overflow: hidden;
}
.ace-hpe-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #9f1722, #d43a48);
    opacity: 0; transition: opacity .25s;
}
.ace-hpe-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(159,23,34,.10); border-color: #f0d5d8; }
.ace-hpe-card:hover::before { opacity: 1; }
.ace-hpe-card h3 { margin: 0 0 10px; font-size: 19px; color: #16181d; }
.ace-hpe-card p { margin: 0; color: #6a7078; font-size: 15px; line-height: 1.65; }
.ace-hpe-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.ace-hpe-cta .ace-button { padding: 15px 32px; font-size: 15px; border-radius: 12px; }

/* ---------- AI Servers ---------- */
.ace-ai {
    position: relative; overflow: hidden; color: #fff;
    background: radial-gradient(1000px 500px at 85% 0%, #5a1219 0%, #17181c 55%, #0c0d0f 100%);
}
.ace-ai::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
    background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 28px 28px;
}
.ace-ai::after {
    content: ""; position: absolute; bottom: -180px; left: -120px; width: 480px; height: 480px;
    border-radius: 50%; background: radial-gradient(circle, rgba(159,23,34,.28) 0%, transparent 70%);
    pointer-events: none;
}
.ace-ai .ace-container { position: relative; z-index: 1; }
.ace-ai .ace-eyebrow { color: #ff8a94; }
.ace-ai .ace-eyebrow::before { background: #ff8a94; }
.ace-ai h2 { color: #fff; }
.ace-ai-head { max-width: 780px; margin-bottom: 40px; }
.ace-ai-lead { color: #c3c8cc; font-size: 17px; line-height: 1.7; }
.ace-ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 44px; }
.ace-ai-card {
    position: relative; padding: 30px 28px; border-radius: 18px;
    background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.13);
    backdrop-filter: blur(8px);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.ace-ai-card:hover { transform: translateY(-6px); border-color: rgba(255,138,148,.5); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.ace-ai-card h3 { margin: 16px 0 10px; color: #fff; font-size: 20px; }
.ace-ai-card p { margin: 0; color: #b9bec3; font-size: 14.5px; line-height: 1.65; }
.ace-ai-soon {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 999px;
    background: linear-gradient(135deg, #9f1722, #d43a48); color: #fff;
    font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    box-shadow: 0 4px 16px rgba(159,23,34,.4);
}
.ace-ai-booking {
    max-width: 780px; padding: 34px; border-radius: 18px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(8px);
}
.ace-ai-booking h3 { margin: 0 0 20px; color: #fff; font-size: 23px; }
.ace-ai-form .ace-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.ace-ai-form label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 700; color: #e8eaeb; }
.ace-ai-form input, .ace-ai-form select {
    width: 100%; min-height: 48px; padding: 10px 16px;
    border: 1px solid rgba(255,255,255,.16); border-radius: 10px;
    background: rgba(0,0,0,.3); color: #fff; font-size: 15px; box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}
.ace-ai-form input:focus, .ace-ai-form select:focus {
    outline: none; border-color: #ff8a94; box-shadow: 0 0 0 3px rgba(255,138,148,.2);
}
.ace-ai-form .ace-button {
    width: 100%; min-height: 54px; margin-top: 6px; cursor: pointer; font-size: 15px; border-radius: 12px;
    background: linear-gradient(135deg, #9f1722, #c22432); border: 0;
    box-shadow: 0 8px 28px rgba(159,23,34,.45);
}
.ace-ai-form .ace-button:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(159,23,34,.55); }
.ace-ai-success { padding: 16px 20px; border-radius: 10px; background: rgba(28,122,52,.18); border: 1px solid rgba(28,122,52,.5); color: #d6f0db; }

/* ---------- Services ---------- */
.ace-services { background: #fff; }
.ace-services-head { max-width: 740px; margin-bottom: 42px; }
.ace-services-lead { color: #6a7078; font-size: 17px; line-height: 1.7; }
.ace-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ace-service-card {
    position: relative; padding: 32px 28px;
    border: 1px solid #e6e9ec; border-radius: 18px; background: #fbfbfc;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
    overflow: hidden;
}
.ace-service-card::after {
    content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #9f1722, #d43a48);
    transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.ace-service-card:hover { transform: translateY(-6px); background: #fff; box-shadow: 0 20px 48px rgba(17,19,21,.10); border-color: #e6e9ec; }
.ace-service-card:hover::after { transform: scaleX(1); }
.ace-service-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 16px; margin-bottom: 18px;
    background: linear-gradient(135deg, #9f1722, #c22432); color: #fff;
    box-shadow: 0 8px 20px rgba(159,23,34,.25);
}
.ace-service-card h3 { margin: 0 0 10px; font-size: 19px; color: #16181d; }
.ace-service-card p { margin: 0; color: #6a7078; font-size: 14.5px; line-height: 1.65; }
.ace-services-cta { margin-top: 36px; text-align: center; }
.ace-services-cta .ace-button { padding: 15px 38px; font-size: 15px; border-radius: 12px; }

/* ---------- Server builder section ---------- */
.ace-builder-section { background: linear-gradient(180deg, #f7f8f9, #fff); border-top: 1px solid #eef0f1; }
.ace-builder-head { max-width: 740px; margin-bottom: 36px; }
.ace-builder-lead { color: #6a7078; font-size: 17px; line-height: 1.7; }

@media (max-width: 900px) {
    .ace-hpe-grid, .ace-ai-grid, .ace-services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .ace-section { padding: 56px 0; }
    .ace-hpe-grid, .ace-ai-grid, .ace-services-grid { grid-template-columns: 1fr; }
    .ace-ai-form .ace-form-row { grid-template-columns: 1fr; }
}

/* ---------- Round 2 polish: animations & refinement ---------- */
.ace-section { overflow: hidden; }
.ace-hpe-card, .ace-ai-card, .ace-service-card {
    animation: ace-fade-up .7s ease both;
}
.ace-hpe-grid > *:nth-child(2), .ace-ai-grid > *:nth-child(2), .ace-services-grid > *:nth-child(2) { animation-delay: .12s; }
.ace-hpe-grid > *:nth-child(3), .ace-ai-grid > *:nth-child(3), .ace-services-grid > *:nth-child(3) { animation-delay: .24s; }
@keyframes ace-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .ace-hpe-card, .ace-ai-card, .ace-service-card { animation: none; }
}
/* Refined buttons */
.ace-hpe-cta .ace-button, .ace-services-cta .ace-button {
    position: relative; overflow: hidden;
}
.ace-hpe-cta .ace-button::after, .ace-services-cta .ace-button::after {
    content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
    transform: skewX(-20deg); transition: left .5s ease;
}
.ace-hpe-cta .ace-button:hover::after, .ace-services-cta .ace-button:hover::after { left: 130%; }
/* Tighter section rhythm */
.ace-section + .ace-section { border-top: 1px solid #f0f2f4; }

/* ------------------------------------------------------------------ */
/* AI Servers — Trending Now banner (Nexus-style, Ace red/dark)        */
/* ------------------------------------------------------------------ */
.ace-ai-trending {
    background: radial-gradient(1200px 500px at 85% 10%, rgba(159,23,34,.22), transparent 60%),
                linear-gradient(180deg, #14161b 0%, #0e1013 100%);
    color: #eef0f3;
    padding: 72px 0;
    overflow: hidden;
}
.ace-ai-trending-inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: center;
}
.ace-ai-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffb3b8;
    background: rgba(159,23,34,.18);
    border: 1px solid rgba(159,23,34,.55);
    padding: 7px 14px;
    border-radius: 999px;
    margin: 0 0 18px;
}
.ace-ai-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #ff5b63;
    box-shadow: 0 0 10px #ff5b63;
    animation: ace-pulse 2s infinite;
}
@keyframes ace-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}
.ace-ai-trending h2 {
    color: #fff;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.05;
    margin: 0 0 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.ace-ai-red { color: #ff5b63; }
.ace-ai-trending-lead {
    color: #b9bfc7;
    font-size: 16px;
    line-height: 1.65;
    margin: 0 0 26px;
    max-width: 480px;
}
.ace-ai-trending-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.ace-button-ghost {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 13px 22px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,.25);
    color: #fff; text-decoration: none; font-weight: 700; font-size: 14px;
    background: transparent; transition: border-color .2s, background .2s;
}
.ace-button-ghost:hover { border-color: #ff5b63; background: rgba(159,23,34,.15); color: #fff; }
.ace-ai-trending-stats {
    display: flex; gap: 36px; margin: 0; padding: 0; list-style: none;
}
.ace-ai-trending-stats li { display: flex; flex-direction: column; gap: 2px; }
.ace-ai-trending-stats strong { color: #fff; font-size: 26px; font-weight: 800; }
.ace-ai-trending-stats strong::after { content: ""; }
.ace-ai-trending-stats span { color: #8a919b; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }

.ace-ai-trending-right { display: flex; flex-direction: column; gap: 14px; }
.ace-trend-card {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 18px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 14px;
    padding: 16px;
    align-items: center;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.ace-trend-card:hover {
    transform: translateY(-2px);
    border-color: rgba(159,23,34,.6);
    box-shadow: 0 14px 34px rgba(0,0,0,.4);
}
.ace-trend-img {
    width: 132px; height: 96px;
    border-radius: 10px; overflow: hidden;
    background: #1c1f25;
}
.ace-trend-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ace-trend-body h3 { color: #fff; font-size: 17px; margin: 8px 0 6px; font-weight: 700; }
.ace-trend-body p { color: #9aa1ab; font-size: 13px; line-height: 1.55; margin: 0 0 10px; }
.ace-trend-badge {
    display: inline-block;
    font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
    color: #ff8f95; background: rgba(159,23,34,.22);
    border: 1px solid rgba(159,23,34,.5);
    padding: 3px 10px; border-radius: 999px;
}
.ace-trend-links { display: flex; align-items: center; gap: 14px; }
.ace-trend-book {
    background: none; border: 0; padding: 0; cursor: pointer;
    color: #ff6b72; font-size: 13.5px; font-weight: 700;
}
.ace-trend-book:hover { color: #ff9aa0; text-decoration: underline; }
.ace-trend-view { color: #8a919b; font-size: 13px; text-decoration: none; }
.ace-trend-view:hover { color: #fff; }

/* Booking modal */
.ace-booking-modal { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px; }
.ace-booking-modal[hidden] { display: none; }
.ace-booking-backdrop { position: absolute; inset: 0; background: rgba(8,9,11,.72); backdrop-filter: blur(3px); }
.ace-booking-box {
    position: relative;
    width: min(620px, 100%);
    max-height: 92vh; overflow-y: auto;
    background: #17191e;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    padding: 34px 34px 30px;
    color: #eef0f3;
    box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
.ace-booking-close {
    position: absolute; top: 14px; right: 16px;
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.18);
    background: transparent; color: #b9bfc7;
    font-size: 22px; line-height: 1; cursor: pointer;
}
.ace-booking-close:hover { color: #fff; border-color: #ff5b63; }
.ace-ai-pill-sm { font-size: 11px; margin-bottom: 12px; }
.ace-booking-box h3 { color: #fff; font-size: 26px; margin: 0 0 8px; }
.ace-booking-note { color: #9aa1ab; font-size: 13.5px; margin: 0 0 22px; line-height: 1.6; }
.ace-booking-form .ace-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.ace-booking-form .ace-form-row-full { grid-template-columns: 1fr; }
.ace-booking-form label { display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: #b9bfc7; }
.ace-booking-form input,
.ace-booking-form textarea {
    background: #101216;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 9px;
    padding: 12px 14px;
    color: #fff; font-size: 14px;
    font-weight: 400; text-transform: none; letter-spacing: 0;
}
.ace-booking-form input:focus,
.ace-booking-form textarea:focus { outline: none; border-color: #9f1722; box-shadow: 0 0 0 3px rgba(159,23,34,.25); }
.ace-booking-submit { width: 100%; padding: 15px; font-size: 15px; margin-top: 6px; }
.ace-booking-note-sm { text-align: center; color: #8a919b; font-size: 12.5px; margin: 12px 0 0; }

@media (max-width: 900px) {
    .ace-ai-trending-inner { grid-template-columns: 1fr; gap: 36px; }
    .ace-ai-trending { padding: 52px 0; }
}
@media (max-width: 560px) {
    .ace-trend-card { grid-template-columns: 96px 1fr; gap: 12px; padding: 12px; }
    .ace-trend-img { width: 96px; height: 76px; }
    .ace-booking-form .ace-form-row { grid-template-columns: 1fr; }
    .ace-booking-box { padding: 26px 20px; }
    .ace-ai-trending-stats { gap: 24px; }
}
