﻿/* Happy2Office premium homepage expansion */
.trust-strip {
    color: rgba(255,255,255,.82);
    border-color: rgba(255,255,255,.12);
}

.trust-strip .stars { color: var(--primary); }

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(0,192,127,.10);
    color: var(--primary);
    border: 1px solid rgba(0,192,127,.18);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-heading {
    font-size: clamp(36px, 4.5vw, 58px);
    letter-spacing: -.045em;
    margin-bottom: 18px;
}

.section-lead {
    max-width: 760px;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.75;
    margin: 0 auto 46px;
}

.premium-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.premium-dark {
    background:
        radial-gradient(circle at 8% 10%, rgba(0,192,127,.24), transparent 28%),
        radial-gradient(circle at 90% 20%, rgba(255,107,53,.16), transparent 24%),
        linear-gradient(135deg, #081320 0%, #0A1628 58%, #06382F 100%);
    color: var(--white);
}

.premium-dark .section-lead { color: #AFC0D4; }

.platform-map {
    display: grid;
    grid-template-columns: 1fr 72px 1fr 72px 1fr;
    align-items: stretch;
    gap: 10px;
}

.map-card {
    min-height: 260px;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(16px);
    box-shadow: 0 30px 80px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.12);
    transition: var(--transition);
}

.map-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0,192,127,.42);
    background: rgba(255,255,255,.10);
}

.map-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    color: #fff;
    font-size: 26px;
    box-shadow: var(--shadow-glow);
}

.map-icon.office { background: linear-gradient(135deg, #00C07F, #3B82F6); }
.map-icon.crm { background: linear-gradient(135deg, #00C07F, #00E0AB); }
.map-icon.plus { background: linear-gradient(135deg, #3B82F6, #A855F7); }
.map-icon.invoice { background: linear-gradient(135deg, #FF6B35, #FFB800); }

.map-card h3 { font-size: 24px; margin-bottom: 8px; }
.map-card p { color: #B8C7D8; font-size: 15px; line-height: 1.65; margin-bottom: 18px; }
.map-card ul { display: grid; gap: 8px; color: #E7F4EF; font-size: 14px; }
.map-card li { display: flex; gap: 8px; align-items: flex-start; }
.map-card li::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    margin-top: 8px;
    flex: 0 0 auto;
}

.map-arrow {
    display: grid;
    place-items: center;
    color: var(--primary);
    font-size: 28px;
    opacity: .88;
}

.why-grid,
.resource-grid,
.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.premium-card {
    position: relative;
    background: rgba(255,255,255,.82);
    border: 1px solid #E3EDF5;
    border-radius: 28px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 0%, rgba(0,192,127,.09), transparent 34%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.premium-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0,192,127,.26);
}

.premium-card:hover::before { opacity: 1; }
.premium-card i { position: relative; font-size: 30px; color: var(--primary); margin-bottom: 16px; display: inline-block; }
.premium-card h3 { position: relative; font-size: 22px; margin-bottom: 10px; }
.premium-card p { position: relative; color: var(--text-muted); line-height: 1.7; }

.journey-timeline {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-top: 52px;
    counter-reset: journey;
}

.journey-step {
    counter-increment: journey;
    position: relative;
    padding: 24px 18px;
    background: #FFFFFF;
    border: 1px solid #E3EDF5;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.journey-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.journey-step::before {
    content: counter(journey);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--secondary);
    color: #fff;
    font-weight: 800;
    margin-bottom: 18px;
}

.journey-step h3 { font-size: 17px; margin-bottom: 8px; }
.journey-step p { color: var(--text-muted); font-size: 13px; line-height: 1.55; }

.architecture-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: stretch;
    margin-top: 40px;
}

.architecture-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 32px;
    padding: 34px;
    backdrop-filter: blur(16px);
}

.architecture-list { display: grid; gap: 16px; }
.architecture-list li { display: flex; gap: 14px; align-items: flex-start; color: #D8E6F3; line-height: 1.65; }
.architecture-list i { color: var(--primary); font-size: 22px; margin-top: 2px; }

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 44px;
}

.roadmap-card {
    padding: 24px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #E3EDF5;
    box-shadow: var(--shadow-sm);
}

.roadmap-status {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 14px;
    background: rgba(0,192,127,.10);
    color: var(--primary);
}

.roadmap-status.soon { background: rgba(255,107,53,.10); color: var(--accent); }
.roadmap-card h3 { font-size: 19px; margin-bottom: 8px; }
.roadmap-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

.faq-item {
    background: #fff;
    border: 1px solid #E3EDF5;
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.faq-item h3 { font-size: 18px; margin-bottom: 10px; }
.faq-item p { color: var(--text-muted); line-height: 1.7; }

.honest-tags {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 48px;
}

.honest-tag {
    padding: 24px;
    border-radius: 26px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.07);
    color: #D8E6F3;
    backdrop-filter: blur(14px);
}

.honest-tag strong {
    display: block;
    color: #fff;
    font-family: var(--font-head);
    font-size: 20px;
    margin-bottom: 8px;
}

footer .footer-grid { grid-template-columns: 1.6fr repeat(5, 1fr); }

@media (max-width: 1100px) {
    .platform-map,
    .journey-timeline,
    .roadmap-grid,
    .honest-tags { grid-template-columns: 1fr 1fr; }
    .map-arrow { display: none; }
    .why-grid,
    .resource-grid,
    .faq-grid { grid-template-columns: 1fr 1fr; }
    .architecture-panel { grid-template-columns: 1fr; }
    footer .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .platform-map,
    .why-grid,
    .resource-grid,
    .faq-grid,
    .journey-timeline,
    .roadmap-grid,
    .honest-tags { grid-template-columns: 1fr; }
    .premium-section { padding: 84px 0; }
    .section-lead { font-size: 16px; }
    .map-card { min-height: auto; }
}

/* Hero polish: preserve slogan while preventing laptop overflow */
.hero-content {
    max-width: 1120px;
}

.hero h1 {
    width: 100%;
    max-width: 980px;
    font-size: clamp(52px, 6.4vw, 80px);
    overflow-wrap: normal;
}

.hero h1 .text-gradient {
    display: inline-block;
    max-width: 100%;
}

.hero p.subhead {
    max-width: 720px;
}

.trust-strip {
    justify-content: center;
    flex-wrap: wrap;
    max-width: 780px;
    text-align: center;
}

@media (max-width: 900px) {
    .hero h1 { font-size: clamp(42px, 11vw, 60px); }
}
/* Premium animated hero dashboard */
.dashboard-mockup-wrapper {
    width: min(1120px, 100%);
    margin: 42px auto 0;
    animation: dashboardCameraPan 14s ease-in-out infinite alternate;
    will-change: transform;
}

.dashboard-mockup.live-dashboard {
    position: relative;
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 0;
    min-height: 560px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-radius: 30px;
    background:
        radial-gradient(circle at 18% 12%, rgba(16, 185, 129, 0.22), transparent 32%),
        radial-gradient(circle at 86% 16%, rgba(59, 130, 246, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(10, 18, 32, 0.96), rgba(15, 28, 52, 0.96));
    box-shadow: 0 34px 90px rgba(2, 6, 23, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

.live-dashboard__glow {
    position: absolute;
    inset: -35%;
    pointer-events: none;
    background: conic-gradient(from 120deg, transparent, rgba(16, 185, 129, 0.16), transparent, rgba(255, 111, 50, 0.12), transparent);
    filter: blur(18px);
    opacity: 0.8;
    animation: dashboardGlow 14s linear infinite;
}

.live-sidebar,
.live-main,
.live-notification {
    position: relative;
    z-index: 1;
}

.live-sidebar {
    padding: 26px 18px;
    border-right: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.38);
}

.live-brand-dot {
    width: 44px;
    height: 44px;
    margin-bottom: 34px;
    border-radius: 15px;
    background: linear-gradient(135deg, #06d6a0, #2f6bff 52%, #ff6b35);
    box-shadow: 0 14px 36px rgba(16, 185, 129, 0.28);
}

.live-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    padding: 12px 11px;
    color: rgba(226, 232, 240, 0.68);
    border-radius: 15px;
    font-size: 13px;
    font-weight: 800;
}

.live-nav i {
    color: #33e6b5;
    font-size: 18px;
}

.live-nav.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.live-main { padding: 26px; }

.live-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.live-eyebrow {
    color: #33e6b5;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.live-topbar h3 {
    margin: 4px 0 0;
    color: #fff;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -0.04em;
}

.live-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 999px;
    color: rgba(240, 253, 250, 0.92);
    background: rgba(16, 185, 129, 0.12);
    font-size: 12px;
    font-weight: 800;
}

.live-status span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #12d89f;
    box-shadow: 0 0 0 0 rgba(18, 216, 159, 0.6);
    animation: livePulse 1.8s ease-out infinite;
}

.live-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.live-kpi {
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.105);
    backdrop-filter: blur(10px);
}

.live-kpi span,
.live-kpi small {
    display: block;
    color: rgba(203, 213, 225, 0.78);
    font-size: 12px;
}

.live-kpi strong {
    display: block;
    margin: 6px 0;
    color: #fff;
    font-size: 25px;
    letter-spacing: -0.04em;
    animation: kpiLift 2.8s ease-in-out infinite;
}

.live-kpi .delay-a { animation-delay: 0.4s; }
.live-kpi .delay-b { animation-delay: 0.8s; }

.live-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 14px;
}

.live-panel {
    min-height: 136px;
    padding: 15px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 19px;
    background: rgba(15, 23, 42, 0.76);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.panel-head h4 {
    margin: 0;
    color: #f8fafc;
    font-size: 14px;
}

.panel-head span {
    color: #33e6b5;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pipeline-panel { min-height: 214px; }

.pipeline-lanes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.lane {
    min-height: 148px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.36);
}

.lane b {
    display: block;
    margin-bottom: 10px;
    color: rgba(226, 232, 240, 0.62);
    font-size: 11px;
}

.deal {
    display: block;
    margin: 8px 0;
    padding: 9px 10px;
    border-radius: 12px;
    color: #eafff8;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.32), rgba(47, 107, 255, 0.24));
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.16);
}

.deal-a { animation: dealFloat 4.6s ease-in-out infinite; }
.deal-b { animation: dealFloat 5.2s ease-in-out infinite 0.5s; }
.deal-c { animation: dealFloat 4.9s ease-in-out infinite 0.9s; }
.deal-d { animation: dealFloat 5.6s ease-in-out infinite 1.2s; }

.bar-chart {
    display: flex;
    align-items: end;
    gap: 11px;
    height: 130px;
    padding: 16px 10px 4px;
}

.bar-chart i {
    flex: 1;
    height: var(--h);
    min-height: 20px;
    border-radius: 999px 999px 7px 7px;
    background: linear-gradient(180deg, #34d399, #2f6bff);
    box-shadow: 0 0 24px rgba(52, 211, 153, 0.28);
    animation: barGrow 2.8s cubic-bezier(.2,.8,.2,1) infinite alternate;
}

.bar-chart i:nth-child(2n) {
    background: linear-gradient(180deg, #ffb020, #ff6b35);
    animation-delay: 0.25s;
}

.invoice-row,
.customer-row,
.task-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    border-radius: 13px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.07);
}

.invoice-row { animation: feedSlide 6s ease-in-out infinite; }
.invoice-row.row-b { animation-delay: 0.6s; }
.invoice-row.row-c { animation-delay: 1.2s; }
.invoice-row i { color: #ff8a3d; }
.invoice-row b {
    margin-left: auto;
    color: #33e6b5;
    font-size: 11px;
}

.customer-row { animation: customerUpdate 5.5s ease-in-out infinite; }
.customer-row span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #08111f;
    background: #a7f3d0;
    font-size: 12px;
    font-weight: 950;
}
.customer-row p {
    margin: 0;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}
.customer-row small {
    display: block;
    margin-top: 2px;
    color: rgba(203, 213, 225, 0.68);
    font-size: 10px;
}

.task-panel { grid-column: 1 / -1; }
.task-line {
    justify-content: space-between;
    color: rgba(226, 232, 240, 0.86);
    font-size: 12px;
    font-weight: 800;
}
.task-line em {
    width: 72%;
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
}
.task-line em i {
    display: block;
    width: var(--w);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #06d6a0, #2f6bff);
    animation: progressFill 3.8s cubic-bezier(.2,.8,.2,1) infinite alternate;
}

.live-notification {
    position: absolute;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    color: #fff;
    background: rgba(15, 23, 42, 0.82);
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.35);
    backdrop-filter: blur(16px);
    font-size: 12px;
    font-weight: 900;
    animation: notificationSlide 7s ease-in-out infinite;
}
.live-notification i {
    color: #33e6b5;
    font-size: 18px;
}
.live-notification.note-a { top: 118px; }
.live-notification.note-b { top: 174px; animation-delay: 2.4s; }

@keyframes dashboardCameraPan {
    from { transform: translate3d(-6px, 0, 0); }
    to { transform: translate3d(6px, -2px, 0); }
}
@keyframes dashboardGlow { to { transform: rotate(360deg); } }
@keyframes livePulse {
    70% { box-shadow: 0 0 0 10px rgba(18, 216, 159, 0); }
    100% { box-shadow: 0 0 0 0 rgba(18, 216, 159, 0); }
}
@keyframes kpiLift { 50% { transform: translateY(-2px); color: #a7f3d0; } }
@keyframes dealFloat {
    0%, 100% { transform: translateY(0) translateX(0); }
    45% { transform: translateY(-5px) translateX(8px); }
}
@keyframes barGrow {
    from { height: 24%; opacity: 0.72; }
    to { height: var(--h); opacity: 1; }
}
@keyframes feedSlide {
    0%, 100% { transform: translateX(0); opacity: 0.78; }
    14%, 72% { transform: translateX(0); opacity: 1; }
    42% { transform: translateX(-5px); }
}
@keyframes customerUpdate { 50% { background: rgba(16, 185, 129, 0.12); transform: translateX(3px); } }
@keyframes progressFill {
    from { width: 18%; }
    to { width: var(--w); }
}
@keyframes notificationSlide {
    0%, 100% { transform: translateX(24px); opacity: 0; }
    14%, 72% { transform: translateX(0); opacity: 1; }
}

@media (max-width: 900px) {
    .dashboard-mockup-wrapper { animation: none; }
    .dashboard-mockup.live-dashboard {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .live-sidebar { display: none; }
    .live-main { padding: 18px; }
    .live-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
    .live-kpis,
    .live-grid { grid-template-columns: 1fr; }
    .task-panel { grid-column: auto; }
    .live-notification { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-mockup-wrapper,
    .live-dashboard__glow,
    .live-status span,
    .live-kpi strong,
    .deal,
    .bar-chart i,
    .invoice-row,
    .customer-row,
    .task-line em i,
    .live-notification { animation: none !important; }
}


