/* Home page: new hero, product family, starting/scaling switch and closing call to action */

.home-new {
    --home-ink: #1a2833;
    --home-teal: #234857;
    --home-orange: #e89848;
    --home-rust: #c37036;
    --home-gold: #edc242;
    --home-muted: #607387;
    --home-cream: #faf8f4;
    font-family: Lato, Arial, sans-serif;
}

.home-new h1,
.home-new h2,
.home-new h3 {
    margin: 0;
    font-family: Lato, Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-transform: none;
}

.home-container {
    position: relative;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--home-orange);
}

.home-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border: 2px solid var(--home-orange);
    border-radius: 50%;
    animation: home-ping 2.4s ease-out infinite;
}

@keyframes home-ping {
    from { transform: scale(0.7); opacity: 0.9; }
    to { transform: scale(2.2); opacity: 0; }
}

.home-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    background: var(--home-orange);
    color: var(--home-ink) !important;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 10px 28px rgb(232 152 72 / 35%);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.home-button:hover {
    background: var(--home-gold);
    transform: translateY(-2px);
}

.home-button-ghost {
    background: transparent;
    border: 1.5px solid rgb(255 255 255 / 55%);
    color: white !important;
    box-shadow: none;
}

.home-button-ghost:hover {
    background: rgb(255 255 255 / 10%);
    border-color: var(--home-gold);
}

/* Partner section: the dashboard graphic under the photo hero */

.home-hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 96px;
    background: linear-gradient(120deg, #1a3340 0%, var(--home-teal) 55%, #2a5464 100%);
    color: #d3dee3;
}

.home-hero::before,
.home-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: screen;
    pointer-events: none;
}

.home-hero::before {
    top: -140px;
    right: 8%;
    width: 420px;
    height: 420px;
    background: rgb(237 194 66 / 6%);
    animation: home-drift-a 16s ease-in-out infinite;
}

.home-hero::after {
    bottom: -180px;
    left: 30%;
    width: 380px;
    height: 380px;
    background: rgb(232 152 72 / 6%);
    animation: home-drift-b 18s ease-in-out infinite;
}

@keyframes home-drift-a {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-160px, 70px); }
}

@keyframes home-drift-b {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(170px, -60px); }
}

.home-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 64px;
}

.home-hero .home-eyebrow {
    color: #f1bd76;
}

.home-new.home-hero h2 {
    color: white;
    font-size: clamp(36px, 4.4vw, 56px);
    line-height: 1.06;
}

.home-shimmer {
    background: linear-gradient(100deg, var(--home-orange), var(--home-gold) 40%, #fff3d6 50%, var(--home-orange) 62%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: home-shimmer 6s linear infinite;
}

@keyframes home-shimmer {
    from { background-position: 100% 0; }
    to { background-position: -150% 0; }
}

.home-lede {
    max-width: 540px;
    margin: 24px 0 0;
    font-size: 19px;
    line-height: 1.65;
}

.home-lede strong,
.home-lede em {
    color: white;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.home-note {
    margin: 22px 0 0;
    color: #a9bcc2;
    font-size: 14px;
}

/* Photo hero: the person on the right, the message over a teal fade on the left */
.home-hero-photo {
    display: flex;
    align-items: center;
    min-height: min(78vh, 720px);
    background:
        linear-gradient(90deg, rgb(20 38 48 / 94%) 0%, rgb(26 51 64 / 84%) 36%, rgb(26 51 64 / 25%) 66%, rgb(26 51 64 / 0%) 82%),
        url("../images/Alioup-for-Businesses2.webp") center right / cover no-repeat;
}

.home-hero-photo::before,
.home-hero-photo::after {
    display: none;
}

.home-hero-photo .home-hero-grid {
    grid-template-columns: minmax(0, 620px);
    width: min(1180px, calc(100% - 48px));
}

.home-new.home-hero-photo h1 {
    color: white;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.04;
}

.home-hero-photo .home-eyebrow {
    color: var(--home-gold);
    font-size: 14px;
}

/* Platform section: the dashboard graphic */
.home-platform {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #1a3340 0%, var(--home-teal) 55%, #2a5464 100%);
    color: #d3dee3;
}

.home-platform-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 64px;
}

.home-platform .home-eyebrow {
    color: #f1bd76;
}

.home-new.home-platform h2 {
    color: white;
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.08;
}

/* Hero visual: a slice of the platform with moments popping in */

.home-visual {
    position: relative;
    min-height: 460px;
}

.home-window {
    position: absolute;
    inset: 30px 30px 40px 40px;
    display: grid;
    grid-template-columns: 54px 1fr;
    overflow: hidden;
    border-radius: 18px;
    background: #f6f7f8;
    box-shadow: 0 40px 90px rgb(5 15 22 / 45%);
    transform: perspective(1400px) rotateY(-8deg) rotateX(4deg);
}

.home-window-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 0;
    align-items: center;
    background: var(--home-ink);
}

.home-window-side span {
    width: 22px;
    height: 6px;
    border-radius: 3px;
    background: rgb(255 255 255 / 25%);
}

.home-window-side span:nth-child(3) {
    background: var(--home-orange);
}

.home-window-main {
    padding: 22px 24px;
}

.home-window-hello {
    color: var(--home-ink);
    font-size: 20px;
    font-weight: 700;
}

.home-window-sub {
    margin-bottom: 16px;
    color: var(--home-muted);
    font-size: 12px;
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.home-stat {
    padding: 12px;
    border: 1px solid #e3e7ea;
    border-radius: 12px;
    background: white;
}

.home-stat strong {
    display: block;
    color: var(--home-ink);
    font-size: 20px;
}

.home-stat span {
    color: var(--home-muted);
    font-size: 11px;
}

.home-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 90px;
    margin-top: 16px;
    padding: 12px;
    border: 1px solid #e3e7ea;
    border-radius: 12px;
    background: white;
}

.home-bars span {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, var(--home-orange), var(--home-gold));
    transform-origin: bottom;
    animation: home-bar 6s ease-in-out infinite;
}

.home-bars span:nth-child(1) { height: 35%; }
.home-bars span:nth-child(2) { height: 55%; animation-delay: 0.2s; }
.home-bars span:nth-child(3) { height: 45%; animation-delay: 0.4s; }
.home-bars span:nth-child(4) { height: 70%; animation-delay: 0.6s; }
.home-bars span:nth-child(5) { height: 62%; animation-delay: 0.8s; }
.home-bars span:nth-child(6) { height: 88%; animation-delay: 1s; }

@keyframes home-bar {
    0%, 100% { transform: scaleY(0.6); }
    50% { transform: scaleY(1); }
}

.home-pop {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 270px;
    padding: 12px 16px;
    border-radius: 16px;
    background: white;
    color: var(--home-ink);
    box-shadow: 0 18px 40px rgb(5 15 22 / 35%);
    font-size: 13px;
    line-height: 1.4;
    opacity: 0;
    animation: home-pop 12s ease-in-out infinite;
}

.home-pop strong {
    display: block;
    font-size: 13px;
}

.home-pop small {
    color: var(--home-muted);
    font-size: 12px;
}

.home-pop-icon {
    display: grid;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: #fdf0e3;
    color: var(--home-rust);
}

.home-pop-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.home-pop-ali .home-pop-icon {
    flex-direction: column;
    gap: 3px;
    background: #fdf3e8;
}

.home-pop-ali .home-pop-icon i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--home-gold);
}

.home-pop-ali .home-pop-icon i + i {
    background: var(--home-orange);
}

.home-pop-1 { top: 0; left: 0; }
.home-pop-2 { top: 34%; right: -10px; animation-delay: 3s; }
.home-pop-3 { bottom: 4px; left: 6%; animation-delay: 6s; }
.home-pop-4 { bottom: 18%; right: 4%; animation-delay: 9s; }

@keyframes home-pop {
    0% { opacity: 0; transform: translateY(14px) scale(0.96); }
    5%, 30% { opacity: 1; transform: none; }
    36%, 100% { opacity: 0; transform: translateY(-10px) scale(0.98); }
}

/* Product family */

.home-section {
    padding: 104px 0;
}

.home-heading {
    max-width: 720px;
    margin: 0 auto 52px;
    text-align: center;
}

.home-heading .home-eyebrow {
    color: var(--home-rust);
}

.home-new .home-heading h2 {
    color: var(--home-ink);
    font-size: clamp(34px, 4.2vw, 50px);
    line-height: 1.08;
}

.home-heading p {
    margin: 16px 0 0;
    color: var(--home-muted);
    font-size: 18px;
}

.home-family {
    background: var(--home-cream);
}

.home-family-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.home-product {
    position: relative;
    display: flex;
    flex-direction: column;
    grid-column: span 2;
    padding: 28px;
    border: 1px solid #ece6dc;
    border-radius: 20px;
    background: white;
    color: var(--home-ink) !important;
    text-decoration: none !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-product:hover {
    border-color: rgb(232 152 72 / 55%);
    box-shadow: 0 18px 40px rgb(26 40 51 / 10%);
    transform: translateY(-5px);
}

.home-product:nth-child(4),
.home-product:nth-child(5) {
    grid-column: span 3;
}

.home-product-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    place-items: center;
    border-radius: 16px;
    background: #fdf0e3;
    color: var(--home-rust);
    transition: transform 0.3s ease;
}

.home-product:hover .home-product-icon {
    transform: rotate(-8deg) scale(1.08);
}

.home-product-icon svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.home-new .home-product h3 {
    color: var(--home-ink);
    font-size: 24px;
}

.home-product p {
    margin: 8px 0 22px;
    color: var(--home-muted);
    font-size: 16px;
    line-height: 1.55;
}

.home-product-link {
    margin-top: auto;
    color: var(--home-rust);
    font-size: 15px;
    font-weight: 700;
}

.home-product-link span {
    display: inline-block;
    transition: transform 0.2s ease;
}

.home-product:hover .home-product-link span {
    transform: translateX(4px);
}

.home-product-featured {
    background: linear-gradient(135deg, var(--home-ink), var(--home-teal));
    border-color: transparent;
    color: white !important;
}

.home-new .home-product-featured h3 {
    color: white;
}

.home-product-featured p {
    color: #c6d3d9;
}

.home-product-featured .home-product-icon {
    background: rgb(237 194 66 / 16%);
    color: var(--home-gold);
}

.home-product-featured .home-product-link {
    color: var(--home-gold);
}

.home-badge {
    position: absolute;
    top: 22px;
    right: 22px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--home-gold);
    color: var(--home-ink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Starting / scaling switch */

.home-paths {
    background: white;
}

.home-switch {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.home-switch-inner {
    display: inline-flex;
    padding: 6px;
    border-radius: 999px;
    background: #f1ece4;
}

.home-switch button {
    min-height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--home-ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.home-switch button[aria-selected="true"] {
    background: var(--home-teal);
    color: white;
}

.home-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 48px;
    align-items: center;
    animation: home-fade 0.4s ease both;
}

.home-panel[hidden] {
    display: none;
}

@keyframes home-fade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

.home-new .home-panel h3 {
    color: var(--home-teal);
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.15;
}

.home-pains {
    display: grid;
    gap: 14px;
    margin: 26px 0;
    padding: 0;
    list-style: none;
}

.home-pains li {
    display: flex;
    gap: 14px;
    color: var(--home-ink);
    font-size: 17px;
    line-height: 1.55;
}

.home-pains li::before {
    content: "";
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    margin-top: 8px;
    border-radius: 50%;
    background: var(--home-orange);
    box-shadow: 0 0 0 4px rgb(232 152 72 / 18%);
}

.home-answer {
    margin: 0;
    padding: 18px 22px;
    border-left: 3px solid var(--home-orange);
    border-radius: 0 12px 12px 0;
    background: #fdf6ee;
    color: var(--home-ink);
    font-size: 17px;
    font-weight: 700;
}

.home-plan {
    padding: 32px;
    border-radius: 22px;
    background: var(--home-teal);
    color: #d3dee3;
    box-shadow: 0 24px 50px rgb(26 40 51 / 18%);
}

.home-plan-label {
    color: #f1bd76;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-new .home-plan h3 {
    margin-top: 6px;
    color: white;
}

.home-plan-price {
    margin: 4px 0 14px;
    color: var(--home-gold);
    font-size: 30px;
    font-weight: 700;
}

.home-plan-price small {
    color: #a9bcc2;
    font-size: 15px;
    font-weight: 400;
}

.home-plan p {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.6;
}

.home-plan .home-actions {
    margin-top: 0;
    gap: 10px;
}

.home-plan .home-button {
    min-height: 46px;
    padding: 0 20px;
    font-size: 15px;
}

/* Closing call to action */

.home-final {
    padding: 104px 0;
    background: white;
}

.home-final-card {
    position: relative;
    overflow: hidden;
    padding: 72px 48px;
    border-radius: 30px;
    background: linear-gradient(130deg, var(--home-teal), #16303d 60%, #3a3424);
    color: #d3dee3;
    text-align: center;
}

.home-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.9;
    animation: home-circle-float 9s ease-in-out infinite;
    pointer-events: none;
}

/* Alioup's signature yellow and orange circles, overlapping off the edges */
.home-circle-1 { top: -90px; right: -70px; width: 260px; height: 260px; background: var(--home-gold); }
.home-circle-2 { top: 90px; right: 90px; width: 130px; height: 130px; background: var(--home-orange); animation-delay: -3s; }
.home-circle-3 { bottom: -110px; left: -60px; width: 230px; height: 230px; background: var(--home-orange); animation-delay: -5s; }
.home-circle-4 { bottom: 40px; left: 110px; width: 80px; height: 80px; background: var(--home-gold); animation-delay: -7s; }

@keyframes home-circle-float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(8px, -10px); }
}

.home-new .home-final-card h2 {
    position: relative;
    color: white;
    font-size: clamp(32px, 4vw, 48px);
}

.home-final-card p {
    position: relative;
    max-width: 560px;
    margin: 16px auto 0;
    font-size: 18px;
}

.home-final-card .home-actions {
    position: relative;
    justify-content: center;
}

/* Signature circles on both sides of the quiz */
.home-quiz-circles {
    position: relative;
    overflow: hidden;
}

.home-quiz-circles > :not(.home-circle) {
    position: relative;
    z-index: 1;
}

.home-quiz-circles .home-circle {
    z-index: 0;
    opacity: 1;
}

.home-side-1 { top: 8%; left: -110px; width: 280px; height: 280px; background: #edc242; }
.home-side-2 { top: 34%; left: 90px; width: 120px; height: 120px; background: #e89848; animation-delay: -3s; }
.home-side-3 { bottom: 6%; right: -120px; width: 300px; height: 300px; background: #e89848; animation-delay: -5s; }
.home-side-4 { bottom: 34%; right: 100px; width: 110px; height: 110px; background: #edc242; animation-delay: -7s; }
.home-side-5 { top: 6%; right: 40px; width: 70px; height: 70px; background: #edc242; animation-delay: -2s; }

@media (max-width: 960px) {
    .home-side-2,
    .home-side-4,
    .home-side-5 {
        display: none;
    }

    .home-side-1 { width: 180px; height: 180px; left: -110px; }
    .home-side-3 { width: 190px; height: 190px; right: -120px; }
}

/* Responsive */

@media (max-width: 960px) {
    .home-hero-photo {
        min-height: 0;
        background:
            linear-gradient(180deg, rgb(20 38 48 / 70%) 0%, rgb(20 38 48 / 92%) 55%),
            url("../images/Alioup-for-Businesses2.webp") 70% center / cover no-repeat;
    }

    .home-platform-grid,
    .home-hero-grid,
    .home-panel {
        grid-template-columns: 1fr;
    }

    .home-visual {
        min-height: 420px;
    }

    .home-family-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-product,
    .home-product:nth-child(4),
    .home-product:nth-child(5) {
        grid-column: span 1;
    }

    .home-product:first-child {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .home-eyebrow {
        font-size: 11px;
        letter-spacing: 0.1em;
    }

    .home-hero {
        padding: 64px 0 72px;
    }

    .home-section {
        padding: 76px 0;
    }

    .home-window {
        inset: 40px 0 50px 0;
        transform: none;
    }

    .home-pop {
        max-width: 230px;
    }

    .home-pop-2,
    .home-pop-4 {
        right: 0;
    }

    .home-stats {
        gap: 6px;
    }

    .home-family-grid {
        grid-template-columns: 1fr;
    }

    .home-product:first-child {
        grid-column: span 1;
    }

    .home-switch button {
        padding: 0 14px;
        font-size: 14px;
    }

    .home-final {
        padding: 72px 0;
    }

    .home-final-card {
        padding: 52px 24px;
    }

    .home-circle-1 { width: 160px; height: 160px; top: -70px; right: -60px; }
    .home-circle-2 { width: 70px; height: 70px; top: 50px; right: 30px; }
    .home-circle-3 { width: 150px; height: 150px; bottom: -80px; left: -60px; }
    .home-circle-4 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .home-new *,
    .home-new *::before,
    .home-new *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }

    .home-pop {
        opacity: 1;
    }

    .home-pop-3,
    .home-pop-4 {
        display: none;
    }
}
