/* ===================================================================
   Homepage — Premium Landing Design
   =================================================================== */

.home-page {
    overflow-x: hidden;
}




/* ── Hero ── */
.home-hero {
    position: relative;
    min-height: calc(100vh - var(--header-height) - 4rem);
    min-height: calc(100dvh - var(--header-height) - 4rem);
    display: flex;
    align-items: center;
    padding: 2rem 0 3rem;
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(13, 148, 136, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 80%, rgba(2, 132, 199, 0.06) 0%, transparent 50%),
        var(--gradient-hero);
}

.home-hero__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

@media (min-width: 640px) {
    .home-hero__inner { padding: 0 1.5rem; }
}

.home-hero__grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .home-hero__grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.home-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem 0.5rem 0.625rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--home-text-soft);
    box-shadow: var(--shadow-xs);
    margin-bottom: 1.25rem;
}

.home-hero__eyebrow-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
}

.home-hero__title {
    font-size: clamp(2.25rem, 6vw, 3.75rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.035em;
    color: var(--home-text);
    margin-bottom: 1.25rem;
}

.home-hero__title-accent {
    display: block;
    background: var(--gradient-brand-rich);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.home-hero__desc {
    font-size: clamp(1.0625rem, 2.4vw, 1.3125rem);
    line-height: 1.9;
    color: var(--home-text-body);
    max-width: 34rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.home-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.home-hero__cta .btn-brand {
    padding: 1rem 1.875rem;
    font-size: 1.0625rem;
    border-radius: 0.875rem;
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.25);
}

.home-hero__cta .btn-outline {
    padding: 1rem 1.875rem;
    font-size: 1.0625rem;
    border-radius: 0.875rem;
    color: var(--home-text) !important;
    font-weight: 700;
}

.home-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.home-hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1rem;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--home-text-soft);
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.home-hero__chip:hover {
    border-color: var(--home-primary-bright);
    color: var(--home-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Hero visual mockup */
.home-hero__visual {
    position: relative;
    display: none;
    justify-content: center;
    padding: 1rem 0;
}

@media (min-width: 1024px) {
    .home-hero__visual { display: flex; }
}

.home-hero__mockup {
    position: relative;
    width: 100%;
    max-width: 22rem;
}

.home-hero__mockup-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 1.25rem;
    padding: 1.25rem;
    box-shadow: var(--shadow-lg);
}

.home-hero__mockup-card--back {
    position: absolute;
    top: -1rem;
    left: -1rem;
    right: 1rem;
    opacity: 0.5;
    transform: rotate(-3deg);
    z-index: 0;
}

.home-hero__mockup-card--front {
    position: relative;
    z-index: 1;
}

.home-hero__mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--color-border-light);
}

.home-hero__mockup-status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-success);
    background: var(--color-success-bg);
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
}

.home-hero__mockup-status-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background: var(--color-success);
    animation: pulse-dot 2s ease infinite;
}

.home-hero__mockup-file {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--color-surface-muted);
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
}

.home-hero__mockup-file-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
    background: var(--color-primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.home-hero__mockup-file-name {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-text);
}

.home-hero__mockup-file-meta {
    font-size: 0.6875rem;
    color: var(--color-text-muted);
}

.home-hero__mockup-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.375rem;
}

.home-hero__mockup-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.875rem;
    margin-top: 0.875rem;
    border-top: 1px dashed var(--color-border);
    font-weight: 800;
    color: var(--color-text);
}

.home-hero__mockup-total span:last-child {
    color: var(--color-primary);
    font-size: 1.125rem;
}

.home-hero__float-badge {
    position: absolute;
    z-index: 2;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 0.875rem;
    padding: 0.625rem 0.875rem;
    box-shadow: var(--shadow-md);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text);
    animation: float-y 3s ease-in-out infinite;
}

.home-hero__float-badge--top {
    top: 0.5rem;
    left: -2rem;
}

.home-hero__float-badge--bottom {
    bottom: 1rem;
    right: -1.5rem;
    animation-delay: 1s;
}

@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Mobile hero visual - compact stats */
.home-hero__mobile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
    margin-top: 0.5rem;
}

@media (min-width: 1024px) {
    .home-hero__mobile-stats { display: none; }
}

.home-hero__mobile-stat {
    text-align: center;
    padding: 0.875rem 0.5rem;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 0.875rem;
    box-shadow: var(--shadow-xs);
}

.home-hero__mobile-stat-value {
    font-size: 1.3125rem;
    font-weight: 800;
    color: var(--home-text);
}

.home-hero__mobile-stat-label {
    font-size: 0.8125rem;
    color: var(--home-text-muted);
    margin-top: 0.2rem;
    font-weight: 600;
}

/* ── Stats band ── */
.home-stats {
    background: var(--color-text);
    padding: 1.25rem 0;
}

.home-stats__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .home-stats__inner {
        grid-template-columns: repeat(4, 1fr);
        padding: 0 1.5rem;
    }
}

.home-stats__item {
    text-align: center;
    padding: 0.5rem;
}

.home-stats__value {
    font-size: clamp(1.375rem, 3.5vw, 2rem);
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
}

.home-stats__label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.82);
    margin-top: 0.25rem;
    font-weight: 500;
}

/* ── Section common ── */
.home-section {
    padding: 4rem 0;
}

.home-section--muted {
    background: var(--color-surface-muted);
}

.home-section__header {
    text-align: center;
    max-width: 38rem;
    margin: 0 auto 2.5rem;
}

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

.home-section__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--home-text);
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.home-section__desc {
    font-size: 1.125rem;
    color: var(--home-text-body);
    line-height: 1.85;
    font-weight: 500;
}

/* ── Service cards (homepage) ── */
.home-services {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .home-services { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .home-services { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

.home-services__all-btn {
    margin-top: 3.5rem;
}

.home-service {
    position: relative;
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 1.25rem;
    padding: 1.375rem;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    min-height: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.home-service__main {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    width: 100%;
    text-decoration: none !important;
    color: inherit;
}

.home-service::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--service-accent, var(--color-primary));
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.home-service:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
    border-color: transparent;
}

.home-service:hover::before { opacity: 1; }

.home-service__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.home-service__details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.28rem 0.7rem;
    border-radius: 9999px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--home-text-muted);
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.home-service__details-btn:hover,
.home-service__details-btn:focus {
    color: var(--home-primary);
    border-color: var(--service-accent, var(--color-primary));
    background: var(--service-bg, var(--color-primary-soft));
}

.home-service__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.home-service__icon-wrap {
    width: 7.125rem;
    height: 7.125rem;
    border-radius: 1.15rem;
    background: var(--service-bg, var(--color-primary-soft));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    padding: 0.55rem;
    margin-bottom: 1rem;
}

.home-service__icon-wrap .service-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.home-service__badge {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.3rem 0.625rem;
    border-radius: 9999px;
    background: var(--color-surface-muted);
    color: var(--home-text-muted);
}

.home-service__badge--online {
    background: var(--color-info-bg);
    color: var(--color-info-dark);
}

.home-service__title {
    font-size: 1.1875rem;
    font-weight: 800;
    color: var(--home-text);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.home-service__desc {
    font-size: 1rem;
    color: var(--home-text-body);
    line-height: 1.75;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.home-service__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border-light);
    margin-top: auto;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.home-service__price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--home-primary);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-service__link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--home-text-soft);
    transition: color 0.2s ease, gap 0.2s ease;
}

.home-service:hover .home-service__link {
    color: var(--home-primary);
    gap: 0.5rem;
}

/* ── Process timeline ── */
.home-process {
    display: grid;
    gap: 0;
    position: relative;
}

@media (min-width: 768px) {
    .home-process {
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
    }

    .home-process::before {
        content: '';
        position: absolute;
        top: 2rem;
        right: 16.66%;
        left: 16.66%;
        height: 2px;
        background: linear-gradient(90deg, var(--color-primary-muted), var(--color-primary), var(--color-primary-muted));
        z-index: 0;
    }
}

.home-process__step {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 1rem 1.5rem;
}

@media (min-width: 768px) {
    .home-process__step { padding: 0 1.5rem; }
}

.home-process__num {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--color-primary-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.home-process__step:hover .home-process__num {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.home-process__icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.home-process__title {
    font-size: 1.1875rem;
    font-weight: 800;
    color: var(--home-text);
    margin-bottom: 0.625rem;
}

.home-process__desc {
    font-size: 1rem;
    color: var(--home-text-body);
    line-height: 1.8;
    max-width: 18rem;
    margin: 0 auto;
    font-weight: 500;
}

/* ── Benefits bento ── */
.home-benefits {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .home-benefits {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .home-benefits { grid-template-columns: repeat(4, 1fr); }
}

.home-benefit {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 1.125rem;
    padding: 1.5rem;
    transition: box-shadow 0.25s ease;
}

.home-section--muted .home-benefit {
    background: white;
}

.home-benefit:hover {
    box-shadow: var(--shadow-md);
}

.home-benefit__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.home-benefit__icon--speed { background: var(--color-warning-soft); color: var(--color-warning); }
.home-benefit__icon--price { background: var(--color-info-bg); color: var(--color-info); }
.home-benefit__icon--quality { background: var(--color-success-soft); color: var(--color-success); }
.home-benefit__icon--pay { background: var(--color-purple-bg); color: var(--color-purple); }
.home-benefit__icon--security { background: var(--color-primary-muted); color: var(--color-primary); }
.home-benefit__icon--mission { background: var(--color-success-soft); color: var(--color-success); }
.home-benefit__icon--vision { background: var(--color-warning-soft); color: var(--color-warning); }

.home-benefit__title {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--home-text);
    margin-bottom: 0.5rem;
}

.home-benefit__desc {
    font-size: 0.9375rem;
    color: var(--home-text-body);
    line-height: 1.75;
    font-weight: 500;
}

/* ── Trust row ── */
.home-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2.5rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    margin-top: 2rem;
}

.home-trust__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--home-text-body);
}

.home-trust__item svg {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--color-primary);
    flex-shrink: 0;
}

/* ── Final CTA ── */
.home-cta {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    padding: 3rem 1.5rem;
    text-align: center;
    background: var(--gradient-cta);
    color: var(--color-text-inverse);
}

@media (min-width: 768px) {
    .home-cta { padding: 4rem 3rem; }
}

.home-cta__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: radial-gradient(circle at 2px 2px, white 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}

.home-cta__content {
    position: relative;
    z-index: 1;
    max-width: 32rem;
    margin: 0 auto;
}

.home-cta__title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 900;
    margin-bottom: 0.875rem;
    letter-spacing: -0.02em;
    color: var(--color-text-inverse);
}

.home-cta__desc {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.85;
    margin-bottom: 1.75rem;
    font-weight: 500;
}

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

.home-cta__actions .btn-brand {
    background: white;
    color: var(--color-primary-dark) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.home-cta__actions .btn-brand:hover {
    background: var(--color-primary-soft);
}

.home-cta__actions .btn-outline {
    border-color: rgba(255, 255, 255, 0.4);
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
}

.home-cta__actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

/* Notice on homepage */
.home-notice {
    max-width: var(--container-max);
    margin: -1.5rem auto 0;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

@media (min-width: 640px) {
    .home-notice { padding: 0 1.5rem; }
}

.home-notice .notice-banner {
    box-shadow: var(--shadow-md);
    border-radius: 1rem;
}

.home-notice .notice-banner__title {
    font-size: 1rem;
}

.home-notice .notice-banner__text {
    font-size: 0.9375rem;
    color: var(--color-text-amber-deep);
    line-height: 1.85;
    font-weight: 500;
}
