/* Homepage polish - scoped refinements without breaking layout or JS hooks */

.home-page {
    --home-accent: #0066cc;
    --home-text: #1d1d1f;
    --home-muted: #6e6e73;
    --home-border: rgba(0, 0, 0, 0.06);
    --home-surface: #ffffff;
}

/* Buttons */
.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 980px;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-btn svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.home-btn-primary {
    height: 48px;
    padding: 0 24px;
    background: var(--home-accent);
    color: #fff;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.home-btn-primary:hover {
    background: #005bb5;
}

.home-btn-primary:hover svg {
    transform: translateX(-3px);
}

.home-btn-secondary {
    height: 48px;
    padding: 0 24px;
    background: var(--home-surface);
    color: var(--home-text);
    font-size: 16px;
    border: 1px solid #d2d2d7;
}

.home-btn-secondary:hover {
    background: #f5f5f7;
    border-color: #c7c7cc;
}

.home-btn-lg {
    height: 52px;
    padding: 0 28px;
    font-size: 17px;
}

.home-accent-text {
    color: var(--home-accent);
}

/* Hero */
.home-page #hero {
    padding-top: calc(58px + 4rem);
}

.home-page #hero .home-hero-bg {
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    transform: scale(1.03);
    transform-origin: center center;
    filter: saturate(1.08) contrast(1.03);
}

.home-page #hero .home-hero-overlay {
    background:
        radial-gradient(ellipse 90% 70% at 50% 42%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.08) 55%, transparent 100%),
        linear-gradient(180deg, rgba(248, 250, 252, 0.88) 0%, rgba(255, 255, 255, 0.76) 48%, rgba(248, 250, 252, 0.84) 100%);
}

.home-page #hero .home-hero-overlay-accent {
    background:
        linear-gradient(90deg, rgba(0, 102, 204, 0.05) 0%, transparent 45%, rgba(0, 102, 204, 0.04) 100%),
        linear-gradient(180deg, transparent 60%, rgba(0, 102, 204, 0.03) 100%);
}

.home-page #hero .home-hero-badge {
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: 980px;
    padding: 8px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    font-size: 14px;
    color: var(--home-muted);
}

.home-page #hero .home-hero-pills > span.inline-flex {
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: 980px;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    font-size: 14px;
}

.home-page #hero .home-hero-pills > span.text-gray-300 {
    display: none;
}

.home-page #hero h1 {
    font-weight: 700;
    letter-spacing: -0.03em;
}

.home-page #hero .absolute.left-8.bottom-8 > div {
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.home-page #hero #hero-sites,
.home-page #hero #hero-usages {
    font-variant-numeric: tabular-nums;
    color: #1d1d1f;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

@keyframes live-stat-glow {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    35% {
        opacity: 0.82;
        transform: translateY(-1px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.live-stat-pulse {
    animation: live-stat-glow 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
    .home-page #hero #hero-sites,
    .home-page #hero #hero-usages,
    .live-stat-pulse {
        animation: none !important;
        transition: none !important;
    }
}

/* Why us */
.home-page #why-us {
    background: #f8fafc;
}

.home-page #why-us h2 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.home-page .home-card {
    background: var(--home-surface) !important;
    border: 1px solid var(--home-border) !important;
    border-radius: 18px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    backdrop-filter: none !important;
    transform: none !important;
}

.home-page .home-card:hover {
    border-color: rgba(0, 102, 204, 0.15) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
    transform: none !important;
}

.home-page .home-card .w-14.h-14 {
    background: #f0f7ff !important;
    border-radius: 12px !important;
}

.home-page .home-card .w-14.h-14 i {
    color: var(--home-accent) !important;
}

.home-page #why-us .inline-flex.items-center.space-x-2 {
    border: 1px solid var(--home-border);
    border-radius: 980px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Solution */
.home-page #solution h2 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.home-page #solution .space-y-8 .w-12.h-12 {
    background: #f0f7ff !important;
    border-radius: 12px !important;
}

.home-page #solution .space-y-8 .w-12.h-12 svg {
    color: var(--home-accent) !important;
}

/* תצוגת תוסף הנגישות בדמו yoursite.com — כחול מקורי, אייקון לבן */
.home-page #solution .negishot-ax-icon button {
    background: #0066cc !important;
    color: #fff !important;
    border-radius: 9999px !important;
}

.home-page #solution .negishot-ax-icon .material-symbols-outlined {
    color: #fff !important;
}

.home-page #solution .bg-gray-100.rounded-2xl {
    background: #f8fafc !important;
    border: 1px solid var(--home-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06) !important;
    border-radius: 18px !important;
    padding: 20px !important;
}

.home-page #solution .bg-white.rounded-xl.shadow-lg {
    border-radius: 14px !important;
    border: 1px solid var(--home-border);
    box-shadow: none !important;
}

/* Origin */
.home-page .home-origin {
    padding: 4.5rem 0;
    background: #fff;
    border-top: 1px solid var(--home-border);
}

.home-page .home-origin-inner {
    max-width: 52rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.home-page .home-origin-layout {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .home-page .home-origin-layout {
        grid-template-columns: 8.5rem minmax(0, 1fr);
        gap: 3rem;
        align-items: start;
    }
}

.home-page .home-origin-aside {
    text-align: center;
}

@media (min-width: 768px) {
    .home-page .home-origin-aside {
        text-align: right;
        position: sticky;
        top: 5.5rem;
    }
}

.home-page .home-origin-avatar-btn {
    display: block;
    margin: 0 auto 1rem;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
    font: inherit;
    color: inherit;
}

@media (min-width: 768px) {
    .home-page .home-origin-avatar-btn {
        margin: 0 0 1rem;
    }
}

.home-page .home-origin-avatar {
    position: relative;
    display: block;
    width: 112px;
    height: 145px;
}

.home-page .home-origin-avatar-btn:hover .home-origin-avatar-frame {
    box-shadow: 0 14px 32px -10px rgba(0, 0, 0, 0.32);
}

.home-page .home-origin-avatar-btn:hover .home-origin-avatar-glow {
    opacity: 1;
}

.home-page .home-origin-avatar-glow {
    position: absolute;
    inset: -14px;
    background: radial-gradient(ellipse, rgba(0, 102, 204, 0.22) 0%, transparent 72%);
    border-radius: 22px;
    filter: blur(16px);
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.home-page .home-origin-avatar-frame {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid #fff;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    box-shadow: 0 10px 28px -10px rgba(0, 0, 0, 0.28);
    transition: box-shadow 0.2s ease;
}

.home-page .home-origin-avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.home-page .home-origin-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
}

@media (min-width: 768px) {
    .home-page .home-origin-identity {
        align-items: flex-start;
    }
}

.home-page .home-origin-byline {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--home-text);
    letter-spacing: -0.01em;
}

.home-page .home-origin-role {
    margin: 0;
    font-size: 13px;
    color: var(--home-muted);
    line-height: 1.35;
}

.home-page .home-origin-site {
    font-size: 13px;
    color: var(--home-accent);
    text-decoration: none;
    font-weight: 500;
    line-height: 1.35;
}

.home-page .home-origin-site:hover {
    text-decoration: underline;
}

.home-page .home-origin-title {
    margin: 0 0 1.25rem;
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--home-text);
    line-height: 1.2;
}

.home-page .home-origin-heart {
    font-size: 0.78em;
    opacity: 0.88;
    vertical-align: 0.05em;
}

.home-page .home-origin-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.home-page .home-origin-text p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #424245;
}

.home-page .home-origin-text strong {
    font-weight: 600;
    color: var(--home-text);
    font-variant-numeric: tabular-nums;
}

.home-page .home-origin-website-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 42px;
    margin-top: 1.5rem;
    padding: 0 1.125rem;
    border: 1px solid #d2d2d7;
    border-radius: 980px;
    background: #fff;
    color: var(--home-text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.home-page .home-origin-website-btn:hover {
    background: #f5f5f7;
    border-color: #c7c7cc;
    color: var(--home-accent);
}

@media (max-width: 767px) {
    .home-page .home-origin-main,
    .home-page .home-origin-title,
    .home-page .home-origin-text {
        text-align: center;
    }
}

.home-origin-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.home-origin-modal.hidden {
    display: none;
}

.home-origin-modal-backdrop {
    position: absolute;
    inset: 0;
    border: none;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.92);
    cursor: pointer;
}

.home-origin-modal-content {
    position: relative;
    z-index: 1;
    max-width: min(420px, 92vw);
    width: 100%;
    animation: home-origin-zoom-in 0.22s ease;
}

@keyframes home-origin-zoom-in {
    from {
        opacity: 0;
        transform: scale(0.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.home-origin-modal-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.home-origin-modal-close {
    position: absolute;
    top: -2.75rem;
    left: 0;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.home-origin-modal-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

@media (prefers-reduced-motion: reduce) {
    .home-origin-modal-content {
        animation: none;
    }
}

/* FAQ */
.home-page #faq {
    background: #f8fafc;
}

.home-page #faq h2 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.home-page #faq .bg-white.rounded-xl {
    border-radius: 14px !important;
    border-color: var(--home-border) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.home-page #faq .faq-btn {
    text-align: right;
}

.home-page #faq .faq-btn:hover {
    background: #fafafa;
}

/* Contact */
.home-page #contact h2 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.home-page #contact .w-14.h-14 {
    width: 44px !important;
    height: 44px !important;
    background: #f0f7ff !important;
    border-radius: 11px !important;
}

.home-page #contact .w-14.h-14 i {
    color: var(--home-accent) !important;
    font-size: 18px !important;
}

.home-page #contact .bg-white.rounded-3xl.shadow-2xl {
    border-radius: 18px !important;
    border: 1px solid var(--home-border) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06) !important;
}

.home-page #contact input,
.home-page #contact select,
.home-page #contact textarea {
    border-radius: 10px !important;
    border-color: #d2d2d7 !important;
    font-size: 15px;
}

.home-page #contact input:focus,
.home-page #contact select:focus,
.home-page #contact textarea:focus {
    border-color: var(--home-accent) !important;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.12) !important;
    outline: none;
}

.home-page #contact .mt-12.p-6.bg-gradient-to-r {
    background: #f8fafc !important;
    border: 1px solid var(--home-border) !important;
    border-radius: 14px !important;
}

.home-page .home-card .px-3.py-1 {
    background: #f0f7ff !important;
    color: var(--home-accent) !important;
    border-radius: 980px;
    font-size: 12px;
    font-weight: 600;
}

.home-page #contact .home-btn-primary.w-full {
    width: 100%;
    height: 52px;
}

.home-page #contact .mt-12.p-6 i {
    color: var(--home-accent) !important;
}

/* Guides */
.home-page .home-guides {
    padding: 4.5rem 0;
    background: #f8fafc;
    border-top: 1px solid var(--home-border);
}

.home-page .home-guides-inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.home-page .home-guides-header {
    max-width: 40rem;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.home-page .home-guides-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--home-text);
    line-height: 1.2;
}

.home-page .home-guides-lead {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--home-muted);
}

.home-page .home-guides-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .home-page .home-guides-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .home-page .home-guides-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.125rem;
    }
}

.home-page .home-guide-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.375rem 1.25rem;
    background: #fff;
    border: 1px solid var(--home-border);
    border-radius: 18px;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-page .home-guide-card:hover {
    border-color: rgba(0, 102, 204, 0.22);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.home-page .home-guide-label {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 0.875rem;
    padding: 0.3rem 0.7rem;
    border-radius: 980px;
    background: #f0f7ff;
    color: var(--home-accent);
    font-size: 12px;
    font-weight: 600;
}

.home-page .home-guide-name {
    margin: 0 0 0.625rem;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--home-text);
    line-height: 1.35;
}

.home-page .home-guide-text {
    margin: 0 0 1.25rem;
    flex: 1;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--home-muted);
}

.home-page .home-guide-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--home-accent);
}

.home-page .home-guide-card:hover .home-guide-more {
    gap: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
    .home-page .home-guide-card,
    .home-page .home-guide-card:hover {
        transform: none;
        transition: none;
    }
}

/* Bottom CTA */
.home-page #register-cta {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
    color: var(--home-text) !important;
}

.home-page #register-cta h2 {
    color: var(--home-text);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.home-page #register-cta > div > p {
    color: var(--home-muted) !important;
}

.home-page #register-cta .bg-white.bg-opacity-10 {
    background: var(--home-surface) !important;
    border: 1px solid var(--home-border);
    border-radius: 16px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    opacity: 1 !important;
    backdrop-filter: none !important;
}

.home-page #register-cta .bg-white.bg-opacity-10 .text-2xl {
    color: var(--home-accent);
    font-weight: 700;
}

.home-page #register-cta .bg-white.bg-opacity-10 .text-sm {
    color: var(--home-muted) !important;
}

.home-page #register-cta .home-btn-primary {
    background: var(--home-accent);
    color: #fff;
}

.home-page #register-cta a.bg-white.text-primary {
    background: var(--home-accent) !important;
    color: #fff !important;
    border-radius: 980px !important;
    transform: none !important;
    box-shadow: none !important;
}

.home-page #register-cta a.bg-white.text-primary:hover {
    background: #005bb5 !important;
}

@media (max-width: 640px) {
    .home-page #hero {
        padding-top: calc(58px + 3rem);
    }

    .home-page .home-btn {
        width: 100%;
        max-width: 280px;
    }

    .home-page #hero .flex.flex-row.gap-3 {
        flex-direction: column;
        align-items: center;
    }
}
