/* Home hero v2 — fresh composition (login + landing content unchanged) */

.hp.hp--zoho {
    --hh-ink: #0f172a;
    --hh-muted: #64748b;
    --hh-blue: #2563eb;
    --hh-blue-deep: #1d4ed8;
    --hh-teal: #0f766e;
    --hh-surface: rgba(255, 255, 255, 0.78);
    --hh-line: rgba(148, 163, 184, 0.35);
}

/* Background is controlled by home_zoho_suite.css + Appearance → Background */

.hp.hp--zoho .hp-header {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hh-line) !important;
    box-shadow: none !important;
}

.hp.hp--zoho .hp-header-branding { display: none !important; }

.hp.hp--zoho .hp-main {
    padding: 0 !important;
    min-height: auto !important;
    display: block !important;
}

/* ── New hero shell ── */
.hh {
    position: relative;
    isolation: isolate;
    padding: 1.75rem 0 2.75rem;
    overflow: hidden;
}

.hh-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.55;
    animation: hhDrift 14s ease-in-out infinite;
}
.hh-blob-1 {
    width: 340px; height: 340px;
    left: -80px; top: -40px;
    background: #93c5fd;
}
.hh-blob-2 {
    width: 280px; height: 280px;
    right: -60px; top: 120px;
    background: #99f6e4;
    animation-delay: -4s;
}
.hh-blob-3 {
    width: 220px; height: 220px;
    left: 40%; bottom: -80px;
    background: #c4b5fd;
    animation-delay: -7s;
}
.hh-grid {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.18) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}

@keyframes hhDrift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(12px, -18px, 0) scale(1.05); }
}

.hh-wrap {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 2.5rem));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 400px);
    gap: 2.5rem;
    align-items: center;
}

.hh-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.85rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hh-blue-deep);
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.hh-title {
    margin: 0 0 0.85rem;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 800;
    color: var(--hh-ink);
}
.hh-title span {
    background: linear-gradient(105deg, #2563eb 0%, #0f766e 70%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hh-lead {
    margin: 0 0 1.15rem;
    max-width: 34rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--hh-muted);
}

.hh-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.35rem;
}
.hh-pills span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--hh-line);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* Simulation card — light product UI */
.hh-sim {
    position: relative;
    padding: 1.1rem 1.15rem 1.15rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 20px 50px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(14px);
    max-width: 520px;
    animation: hhRise 0.7s ease both;
}

@keyframes hhRise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.hh-sim-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}
.hh-sim-top strong {
    display: block;
    font-size: 0.95rem;
    color: var(--hh-ink);
}
.hh-sim-top p {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    color: var(--hh-muted);
    min-height: 1.2em;
}

.hh-ring {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}
.hh-ring svg { width: 72px; height: 72px; transform: rotate(-90deg); }
.hh-ring-track {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 7;
}
.hh-ring-val {
    fill: none;
    stroke: url(#none);
    stroke: #2563eb;
    stroke-width: 7;
    stroke-linecap: round;
    stroke-dasharray: 188.4;
    stroke-dashoffset: 15;
    transition: stroke-dashoffset 0.7s ease;
}
.hh-ring em {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-style: normal;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--hh-ink);
}

.hh-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}
.hh-step {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    border-radius: 999px;
    padding: 0.45rem 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.hh-step:hover { border-color: #93c5fd; color: #1d4ed8; }
.hh-step.is-active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.hh-people { display: grid; gap: 0.45rem; }
.hh-person {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    border: 1px solid #eef2f7;
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}
.hh-person.is-focus {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
    transform: translateX(4px);
}
.hh-av {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    background: var(--c);
}
.hh-person b { display: block; font-size: 0.86rem; color: var(--hh-ink); }
.hh-person small { display: block; font-size: 0.74rem; color: var(--hh-muted); }
.hh-person > i { color: #94a3b8; font-size: 0.9rem; }

.hh-toast {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 0.78rem;
    font-weight: 600;
}
.hh-toast.is-pop { animation: hhPop 0.4s ease; }
.hh-toast i { color: #059669; font-size: 1rem; }
@keyframes hhPop {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Auth column */
.hh-auth { animation: hhRise 0.75s ease 0.08s both; }
.hh-auth-card {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
    border-radius: 20px !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 24px 60px rgba(15, 23, 42, 0.12) !important;
    backdrop-filter: blur(16px);
    padding: 1.85rem 1.6rem 1.45rem !important;
}
.hh-auth-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 30px 70px rgba(15, 23, 42, 0.14) !important;
}

.hp.hp--zoho .hp-auth-title {
    display: block !important;
    margin: 0.5rem 0 0.2rem !important;
    font-size: 1.4rem !important;
    font-weight: 750 !important;
    color: var(--hh-ink) !important;
}
.hp.hp--zoho .hp-submit {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    border: 0 !important;
    border-radius: 12px !important;
    min-height: 46px;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28) !important;
}
.hp.hp--zoho .hp-submit:hover {
    filter: brightness(1.05);
    transform: translateY(-2px) !important;
}
.hp.hp--zoho .hp-input-wrap {
    border-radius: 12px !important;
    background: #f8fafc !important;
}

@media (max-width: 980px) {
    .hh-wrap {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
    .hh-auth { order: -1; }
    .hh-sim { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hh-blob, .hh-sim, .hh-auth, .hh-toast.is-pop {
        animation: none !important;
    }
}

/* ── Layout styles (Landing Content → layout_style) ── */
.hp--layout-classic .hh-wrap {
    max-width: 1080px;
}
.hp--layout-classic .hh-title {
    letter-spacing: -0.02em;
}
.hp--layout-classic .hh-sim,
.hp--layout-classic .hh-auth-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    border-radius: 16px;
}
.hp--layout-classic .hp-section {
    padding-block: 4.5rem;
}
.hp--layout-classic .hp-cards-grid,
.hp--layout-classic .hp-industry-grid {
    gap: 1.25rem;
}
.hp--layout-classic .hp-card,
.hp--layout-classic .hp-industry-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: none;
}

.hp--layout-compact .hh-wrap {
    gap: 1.5rem;
    padding-block: 1.25rem;
}
.hp--layout-compact .hh-lead {
    max-width: 36rem;
    font-size: 0.98rem;
}
.hp--layout-compact .hh-pills {
    gap: 0.45rem;
}
.hp--layout-compact .hh-sim {
    margin-top: 1rem;
    padding: 0.9rem;
}
.hp--layout-compact .hp-section {
    padding-block: 2.75rem;
}
.hp--layout-compact .hp-section-head {
    margin-bottom: 1.5rem;
}
.hp--layout-compact .hp-cards-grid,
.hp--layout-compact .hp-industry-grid {
    gap: 0.85rem;
}
.hp--layout-compact .hp-card,
.hp--layout-compact .hp-industry-card {
    padding: 1.1rem 1.15rem;
    border-radius: 12px;
}
.hp--layout-compact .hp-footer-grid {
    gap: 1.25rem;
}

.hp-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    justify-content: center;
    margin-top: 1.25rem;
}
.hp-trust-row--solo {
    margin-top: 0;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid #e2e8f0;
}
.hp-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
}
.hp-trust-row i {
    color: #2563eb;
}

.hh-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.9rem;
    margin: 0.85rem 0 0.35rem;
}
.hh-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 650;
    color: #334155;
}
.hh-trust i { color: #2563eb; }

.hh-media {
    margin-top: 1.15rem;
    max-width: 520px;
}
.hh-media .hp-home-media-frame {
    min-height: min(280px, 38vh);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}
.hp--layout-compact .hh-media .hp-home-media-frame {
    min-height: min(220px, 32vh);
    border-radius: 14px;
}
.hp--layout-classic .hh-media .hp-home-media-frame {
    border: 1px solid rgba(15, 23, 42, 0.08);
}
