/* Homepage styles ported from index-standalone.html */

.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--hero-gradient);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.025) 34%, rgba(255, 255, 255, 0) 72%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.045) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero-diagonal {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4rem;
    background: var(--color-bg-alt);
    clip-path: polygon(100% 16%, 0% 100%, 100% 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    padding-top: 4.15rem;
    padding-bottom: 4.7rem;
}

.hero-copy {
    max-width: 48rem;
    padding-right: 1rem;
}

.hero-subtitle {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 0.85rem;
}

.hero-title {
    font-size: clamp(2.65rem, 5vw, 5rem);
    font-weight: 800;
    color: white;
    line-height: 1.02;
    margin-bottom: 1rem;
    text-wrap: balance;
    text-shadow: 0 6px 22px rgba(15, 23, 42, 0.12);
}

.hero-title span {
    color: rgba(255, 255, 255, 0.94);
}

.hero-description {
    color: rgba(255, 255, 255, 0.88);
    max-width: 40rem;
    margin-bottom: 1.8rem;
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.95rem;
}

.btn-hero-white {
    background-color: #fff;
    color: var(--color-primary);
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
}

.btn-hero-white:hover {
    color: var(--color-primary);
    opacity: 0.9;
}

.btn-hero-outline {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    backdrop-filter: blur(4px);
}

.btn-hero-outline:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    opacity: 1;
}

.btn-cta-primary {
    background: var(--gradient-cta-primary);
    color: #ffffff !important;
    font-size: 1.1rem;
    font-weight: 900;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    border: none !important;
    box-shadow: var(--shadow-cta-primary);
    letter-spacing: 0.03em;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    animation: cta-pulse 2.8s ease-in-out infinite;
}

.btn-cta-primary svg {
    transition: transform 0.25s ease;
}

.btn-cta-primary:hover {
    opacity: 1;
    transform: translateY(-3px) scale(1.05);
    background: var(--gradient-cta-primary-hover);
    box-shadow: var(--shadow-cta-primary-hover);
    animation: none;
}

.btn-cta-primary:hover svg {
    transform: translateX(4px);
}

.btn-cta-primary:active {
    transform: translateY(0) scale(0.98);
}

@keyframes cta-pulse {

    0%,
    100% {
        box-shadow: var(--shadow-cta-primary);
    }

    50% {
        box-shadow:
            0 0 0 6px rgba(249, 115, 22, 0.2),
            0 12px 32px rgba(239, 68, 68, 0.6),
            0 2px 6px rgba(0, 0, 0, 0.2);
    }
}

.steps-section {
    position: relative;
    overflow: hidden;
    padding: 3rem 0 4.4rem;
    background:
        radial-gradient(circle at 18% 22%, rgba(38, 142, 92, 0.07) 0%, rgba(38, 142, 92, 0) 30%),
        radial-gradient(circle at 84% 70%, rgba(53, 171, 148, 0.06) 0%, rgba(53, 171, 148, 0) 28%),
        linear-gradient(180deg, hsl(214 28% 97.5%) 0%, hsl(210 30% 98.8%) 100%);
}

.steps-section .container {
    position: relative;
    max-width: 1200px;
}

.steps-section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.steps-section-title h2 {
    font-size: clamp(1.7rem, 2vw, 2.15rem);
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 0.85rem;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.steps-section-title .divider {
    width: 3.4rem;
    height: 0.25rem;
    background-color: #2EAE8E;
    margin: 0 auto;
    border-radius: 9999px;
    box-shadow: 0 8px 18px rgba(46, 174, 142, 0.2);
}

.steps-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.55rem;
    align-items: stretch;
}

.step-card {
    --step-accent: #15836f;
    --step-accent-soft: rgba(21, 131, 111, 0.14);
    --step-accent-ring: rgba(21, 131, 111, 0.26);
    --step-accent-glow: rgba(21, 131, 111, 0.18);
    --step-icon-stroke: #116b60;
    --step-icon-secondary: #67bdad;
    --step-icon-emphasis: #f4bb67;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-radius: 1.2rem;
    border: 1px solid rgba(180, 192, 208, 0.58);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 252, 0.98) 100%);
    box-shadow:
        0 18px 38px rgba(15, 23, 42, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    padding: 2.3rem 1.65rem 1.95rem;
    text-align: center;
    transition: none;
    isolation: isolate;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 0.35rem;
    background: linear-gradient(90deg, var(--step-accent) 0%, rgba(255, 255, 255, 0.56) 100%);
}

.step-card::after {
    content: attr(data-step-number);
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.35rem;
    height: 2.35rem;
    padding: 0 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--step-accent-ring);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
    color: var(--step-accent);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.step-card--entry {
    --step-accent: #0f8a76;
    --step-accent-soft: rgba(15, 138, 118, 0.14);
    --step-accent-ring: rgba(15, 138, 118, 0.28);
    --step-accent-glow: rgba(15, 138, 118, 0.18);
    --step-icon-stroke: #0f766e;
    --step-icon-secondary: #61bdaa;
    --step-icon-emphasis: #f3b562;
}

.step-card--status {
    --step-accent: #167c8a;
    --step-accent-soft: rgba(22, 124, 138, 0.14);
    --step-accent-ring: rgba(22, 124, 138, 0.28);
    --step-accent-glow: rgba(22, 124, 138, 0.17);
    --step-icon-stroke: #0f6b7a;
    --step-icon-secondary: #73c3cd;
    --step-icon-emphasis: #f2c986;
}

.step-card--download {
    --step-accent: #1d8f7c;
    --step-accent-soft: rgba(29, 143, 124, 0.14);
    --step-accent-ring: rgba(29, 143, 124, 0.28);
    --step-accent-glow: rgba(29, 143, 124, 0.18);
    --step-icon-stroke: #14786a;
    --step-icon-secondary: #69c2b1;
    --step-icon-emphasis: #efb154;
}

.step-card--result {
    --step-accent: #0d766e;
    --step-accent-soft: rgba(13, 118, 110, 0.14);
    --step-accent-ring: rgba(13, 118, 110, 0.28);
    --step-accent-glow: rgba(13, 118, 110, 0.18);
    --step-icon-stroke: #0f615d;
    --step-icon-secondary: #65bcb1;
    --step-icon-emphasis: #f3be6a;
}


.step-icon {
    position: relative;
    margin: 0 auto 1rem;
    display: flex;
    width: 5.15rem;
    height: 5.15rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.78);
    background:
        radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.99) 0%, rgba(246, 250, 249, 0.97) 42%, rgba(231, 244, 240, 0.98) 100%);
    box-shadow:
        0 14px 28px var(--step-accent-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    color: var(--step-icon-stroke);
    transition: none;
}

.step-icon::before {
    content: '';
    position: absolute;
    inset: -0.42rem;
    border-radius: inherit;
    background: radial-gradient(circle, var(--step-accent-soft) 0%, rgba(255, 255, 255, 0) 72%);
    z-index: -1;
}

.step-icon > svg {
    width: 2.3rem;
    height: 2.3rem;
}

.step-icon--document > svg {
    width: 2.3rem;
    height: 2.8rem;
    overflow: visible;
}

.step-icon--user > svg {
    width: 2.65rem;
    height: 2.65rem;
}

.step-icon--file-download > svg {
    width: 2.35rem;
    height: 2.85rem;
    overflow: visible;
}

.step-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.step-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.72rem;
    border-radius: 999px;
    border: 1px solid var(--step-accent-ring);
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--step-accent);
    letter-spacing: 0.18em;
    margin: 0;
    text-transform: uppercase;
}

.step-stage {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.34rem 0.9rem;
    border-radius: 999px;
    background: var(--step-accent-soft);
    color: var(--step-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1;
}

.step-title {
    font-size: 1.16rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 0.8rem;
    line-height: 1.42;
    text-wrap: balance;
}

.step-description {
    max-width: none;
    margin: 0;
    font-size: 0.975rem;
    font-weight: 500;
    color: hsl(220 11% 35%);
    line-height: 1.74;
    text-align: left;
    text-wrap: pretty;
}

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

@media (min-width: 768px) {
    .hero .container {
        padding-top: 5.2rem;
        padding-bottom: 5.35rem;
    }

    .steps-section {
        padding: 3.65rem 0 5rem;
    }
}

@media (min-width: 1024px) {
    .hero .container {
        padding-top: 5.7rem;
        padding-bottom: 5.15rem;
    }

    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.7rem;
    }

    .steps-grid::before {
        content: '';
        position: absolute;
        left: 8%;
        right: 8%;
        top: 4.9rem;
        height: 2px;
        background: linear-gradient(90deg, rgba(15, 138, 118, 0.18) 0%, rgba(22, 124, 138, 0.2) 33%, rgba(29, 143, 124, 0.2) 66%, rgba(13, 118, 110, 0.18) 100%);
        z-index: 0;
    }

    .step-card {
        padding: 2.35rem 1.7rem 2.05rem;
    }

    .step-title {
        min-height: 2.8em;
    }
}

@media (max-width: 640px) {
    .hero .container {
        padding-top: 3.35rem;
        padding-bottom: 3.95rem;
    }

    .hero-copy {
        padding-right: 0;
    }

    .hero-title {
        font-size: 1.95rem !important;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-description {
        font-size: 0.92rem;
        margin-bottom: 1.45rem;
    }

    .steps-section {
        padding: 2.45rem 0 3.4rem;
    }

    .steps-section-title {
        margin-bottom: 2rem;
    }

    .step-card {
        padding: 1.75rem 1.25rem 1.5rem;
    }

    .step-card::after {
        top: 0.95rem;
        right: 0.95rem;
        min-width: 2.05rem;
        height: 2.05rem;
        font-size: 0.72rem;
    }

    .step-icon {
        width: 4.55rem;
        height: 4.55rem;
        margin-bottom: 0.95rem;
    }

    .step-icon > svg {
        width: 2.05rem;
        height: 2.05rem;
    }

    .step-icon--document > svg {
        width: 2rem;
        height: 2.45rem;
    }

    .step-icon--user > svg {
        width: 2.3rem;
        height: 2.3rem;
    }

    .step-icon--file-download > svg {
        width: 2.05rem;
        height: 2.5rem;
    }

    .step-heading {
        gap: 0.42rem;
        margin-bottom: 0.9rem;
    }

    .step-label {
        font-size: 0.6875rem;
        letter-spacing: 0.14em;
    }

    .step-stage {
        font-size: 0.72rem;
        padding: 0.32rem 0.78rem;
    }

    .step-title {
        font-size: 1.05rem;
    }

    .step-description {
        font-size: 0.925rem;
        line-height: 1.72;
    }
}
