/**
 * Taxxavy homepage — landing layout & visuals
 */

:root {
    --home-primary: #00D084;
    --home-primary-dark: #00A86B;
    --home-primary-glow: rgba(0, 208, 132, 0.45);
    --home-navy: #0B1220;
    --home-navy-mid: #151D2E;
    --home-slate: #64748B;
    --home-border: rgba(15, 23, 42, 0.08);
    --home-radius: 20px;
    --home-radius-lg: 28px;
    --home-shadow-card: 0 4px 24px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
    --home-shadow-hover: 0 24px 48px rgba(15, 23, 42, 0.12), 0 8px 16px rgba(0, 208, 132, 0.08);
    --home-gradient-text: linear-gradient(135deg, #00D084 0%, #34D399 50%, #6EE7B7 100%);
    --home-gradient-hero: linear-gradient(145deg, #0B1220 0%, #121A2E 40%, #0F1F1A 100%);
}

body.home-page {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    color: #0F172A;
    overflow-x: hidden;
    padding-top: 80px;
    padding-bottom: 0;
    margin: 0;
    background: #FAFBFC;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.home-page::before,
body.home-page::after {
    display: none;
}

/* Override global theme center-align on homepage */
body.home-page .home-hero__lead,
body.home-page .home-product-card p,
body.home-page .home-step p,
body.home-page .footer p {
    text-align: left;
}

body.home-page .home-section__subtitle,
body.home-page .home-cta__text,
body.home-page .home-why-item p {
    text-align: center;
}

/* —— Hero —— */
.home-hero {
    position: relative;
    min-height: min(92vh, 880px);
    display: flex;
    align-items: center;
    padding: 5rem 0 4rem;
    overflow: hidden;
    background: var(--home-gradient-hero);
}

.home-hero__mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.home-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    animation: homeOrbFloat 18s ease-in-out infinite;
}

.home-hero__orb--1 {
    width: 480px;
    height: 480px;
    background: var(--home-primary-glow);
    top: -20%;
    right: -10%;
}

.home-hero__orb--2 {
    width: 360px;
    height: 360px;
    background: rgba(99, 102, 241, 0.35);
    bottom: -15%;
    left: -8%;
    animation-delay: -6s;
}

.home-hero__orb--3 {
    width: 200px;
    height: 200px;
    background: rgba(52, 211, 153, 0.25);
    top: 40%;
    left: 35%;
    animation-delay: -12s;
}

.home-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 75%);
}

@keyframes homeOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(24px, -20px) scale(1.05); }
}

.home-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.home-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem 0.45rem 0.65rem;
    background: rgba(0, 208, 132, 0.12);
    border: 1px solid rgba(0, 208, 132, 0.35);
    border-radius: 100px;
    color: #6EE7B7;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.home-hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--home-primary);
    box-shadow: 0 0 12px var(--home-primary);
    animation: homePulse 2s ease-in-out infinite;
}

@keyframes homePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.9); }
}

.home-hero__title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 1.25rem;
}

.home-hero__title-accent {
    background: var(--home-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-hero__lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: rgba(226, 232, 240, 0.85);
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 560px;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-home-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 1.75rem;
    background: var(--home-primary);
    color: #0B1220 !important;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 4px 24px rgba(0, 208, 132, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-home-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 208, 132, 0.5);
    background: #00E893;
    color: #0B1220 !important;
}

.btn-home-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 1.75rem;
    background: rgba(255, 255, 255, 0.06);
    color: #fff !important;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn-home-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    color: #fff !important;
}

.home-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 2.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.home-hero__stat strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.home-hero__stat span {
    font-size: 0.875rem;
    color: rgba(148, 163, 184, 0.95);
}

.home-hero__visual {
    position: relative;
    z-index: 2;
}

.home-hero__card-preview {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--home-radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.35);
}

.home-hero__card-preview-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.home-hero__card-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.home-hero__card-dot:nth-child(1) { background: #EF4444; }
.home-hero__card-dot:nth-child(2) { background: #F59E0B; }
.home-hero__card-dot:nth-child(3) { background: var(--home-primary); }

.home-hero__metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(226, 232, 240, 0.9);
    font-size: 0.9rem;
}

.home-hero__metric:last-child {
    border-bottom: none;
}

.home-hero__metric-value {
    font-weight: 700;
    color: var(--home-primary);
}

/* —— Trust strip —— */
.home-trust {
    background: #fff;
    border-bottom: 1px solid var(--home-border);
    padding: 1.75rem 0;
}

.home-trust__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    color: var(--home-slate);
    font-size: 0.9375rem;
    font-weight: 500;
}

.home-trust__item i {
    font-size: 1.35rem;
    color: var(--home-primary);
}

/* —— Section shared —— */
.home-section {
    padding: 5.5rem 0;
    position: relative;
}

.home-section--light {
    background: linear-gradient(180deg, #FAFBFC 0%, #F1F5F9 100%);
}

.home-section--dark {
    background: var(--home-gradient-hero);
    color: #fff;
}

.home-section__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--home-primary);
    margin-bottom: 0.75rem;
}

.home-section--dark .home-section__eyebrow {
    color: #6EE7B7;
}

.home-section__title {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: #0F172A;
}

.home-section--dark .home-section__title {
    color: #fff;
}

.home-section__subtitle {
    font-size: 1.125rem;
    color: var(--home-slate);
    max-width: 540px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.home-section--dark .home-section__subtitle {
    color: rgba(203, 213, 225, 0.9);
}

/* —— Product cards —— */
.home-product-card {
    height: 100%;
    background: #fff;
    border-radius: var(--home-radius-lg);
    padding: 2rem;
    border: 1px solid var(--home-border);
    box-shadow: var(--home-shadow-card);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.home-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--home-primary), #34D399);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.home-product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--home-shadow-hover);
    border-color: rgba(0, 208, 132, 0.25);
}

.home-product-card:hover::before {
    transform: scaleX(1);
}

.home-product-card--featured {
    border: 2px solid var(--home-primary);
    box-shadow: 0 8px 40px rgba(0, 208, 132, 0.15);
}

.home-product-card--featured::before {
    transform: scaleX(1);
}

.home-product-card__badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--home-primary);
    color: #0B1220;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
}

.home-product-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 208, 132, 0.15) 0%, rgba(0, 208, 132, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    color: var(--home-primary-dark);
}

.home-product-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
    color: #0F172A;
}

.home-product-card__tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--home-primary-dark);
    background: rgba(0, 208, 132, 0.1);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.home-product-card p {
    color: var(--home-slate);
    font-size: 0.9375rem;
    line-height: 1.65;
    flex-grow: 1;
    margin-bottom: 1.5rem;
    text-align: left;
}

.home-product-card__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.btn-home-outline {
    display: block;
    text-align: center;
    padding: 0.7rem 1.25rem;
    border: 2px solid #0F172A;
    border-radius: 12px;
    color: #0F172A !important;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.btn-home-outline:hover {
    background: #0F172A;
    color: #fff !important;
    transform: translateY(-1px);
}

.btn-home-solid {
    display: block;
    text-align: center;
    padding: 0.7rem 1.25rem;
    background: var(--home-primary);
    border: 2px solid var(--home-primary);
    border-radius: 12px;
    color: #0B1220 !important;
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.btn-home-solid:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 208, 132, 0.35);
    color: #0B1220 !important;
}

/* —— Why section —— */
.home-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.home-why-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: var(--home-radius);
    border: 1px solid var(--home-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-why-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--home-shadow-card);
}

.home-why-item__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    border-radius: 14px;
    background: rgba(0, 208, 132, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--home-primary-dark);
}

.home-why-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #0F172A;
}

.home-why-item p {
    font-size: 0.9rem;
    color: var(--home-slate);
    margin: 0;
    line-height: 1.55;
    text-align: center;
}

/* —— How it works —— */
.home-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.home-step {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--home-radius);
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.home-step:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 208, 132, 0.35);
    transform: translateY(-4px);
}

.home-step__num {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--home-primary);
    color: #0B1220;
    font-weight: 800;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 208, 132, 0.35);
}

.home-step h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.home-step p {
    font-size: 0.8125rem;
    color: rgba(203, 213, 225, 0.85);
    margin: 0;
    line-height: 1.55;
    text-align: center;
}

/* —— CTA —— */
.home-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, #00D084 0%, #00B875 45%, #059669 100%);
    position: relative;
    overflow: hidden;
}

.home-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.home-cta__inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.home-cta__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #0B1220;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.home-cta__text {
    color: rgba(11, 18, 32, 0.75);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.home-cta__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.btn-home-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.85rem 1.5rem;
    background: #0B1220;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 100px;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-home-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(11, 18, 32, 0.35);
    color: #fff !important;
}

/* —— Footer (homepage tweaks) —— */
body.home-page .footer {
    background: var(--home-gradient-hero);
    color: rgba(255, 255, 255, 0.75);
    padding: 4rem 0 2rem;
    margin-top: auto;
    margin-bottom: 0;
    flex-shrink: 0;
}

body.home-page > footer.footer {
    margin-bottom: 0 !important;
}

body.home-page .footer h5 {
    color: #fff;
    font-weight: 700;
}

body.home-page .footer a {
    color: rgba(255, 255, 255, 0.65);
}

body.home-page .footer a:hover {
    color: var(--home-primary);
}

body.home-page .footer .footer-contact-icons .bi {
    color: var(--home-primary);
}

/* —— Scroll animations —— */
.home-animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.home-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* —— Responsive —— */
@media (max-width: 991.98px) {
    .home-hero__visual {
        display: none;
    }

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

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

@media (max-width: 767.98px) {
    body.home-page {
        padding-top: 0;
        background: var(--home-navy);
    }

    .home-hero {
        min-height: auto;
        padding: calc(var(--navbar-height, 58px) + 2.5rem) 0 3rem;
    }

    .home-hero__stats {
        gap: 1.5rem;
    }

    .home-section {
        padding: 3.5rem 0;
    }

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

    .home-trust__item {
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .home-hero__actions {
        flex-direction: column;
    }

    .btn-home-primary,
    .btn-home-ghost {
        width: 100%;
        justify-content: center;
    }

    .home-cta__buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-home-cta {
        justify-content: center;
    }
}
