/* ============================================================
   Homepage – Premium Landing Page Styles
   ============================================================ */

/* ==================== HERO SECTION ==================== */
.hp-hero {
    padding: 4rem 0 2rem;
    text-align: center;
    position: relative;
}

.hp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--background-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0.4rem 1rem 0.4rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent-blue);
    margin-bottom: 1.75rem;
    animation: fadeInDown 0.6s var(--ease-out-expo);
}

.hp-hero-badge svg {
    width: 16px;
    height: 16px;
}

.hp-hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--primary);
    margin-bottom: 1.25rem;
    animation: fadeInUp 0.7s var(--ease-out-expo) 0.1s backwards;
}

.hp-gradient-text {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 50%, var(--accent-blue) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

.hp-hero-sub {
    font-size: clamp(1rem, 2vw, 1.1875rem);
    color: var(--gray);
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    animation: fadeInUp 0.7s var(--ease-out-expo) 0.2s backwards;
}

.hp-hero-cta {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    animation: fadeInUp 0.7s var(--ease-out-expo) 0.3s backwards;
    box-shadow: 0 4px 20px rgba(0, 113, 227, 0.25);
}

.hp-hero-cta:hover {
    box-shadow: 0 8px 30px rgba(0, 113, 227, 0.35);
    transform: translateY(-2px) scale(1.02);
}

.hp-hero-cta svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s var(--ease-smooth);
}

.hp-hero-cta:hover svg {
    transform: translateX(3px);
}

/* ==================== HERO VISUAL MOCKUP ==================== */
.hp-hero-visual {
    position: relative;
    max-width: 480px;
    height: 260px;
    margin: 3rem auto 0;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.4s backwards;
}

.hp-hero-doc {
    position: absolute;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}

.hp-hero-doc-back {
    width: 200px;
    left: 0;
    top: 30px;
    transform: rotate(-6deg);
    opacity: 0.6;
    z-index: 1;
}

.hp-hero-doc-mid {
    width: 210px;
    right: 0;
    top: 20px;
    transform: rotate(4deg);
    opacity: 0.7;
    z-index: 2;
}

.hp-hero-doc-front {
    width: 240px;
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    z-index: 3;
    box-shadow: var(--shadow-lg);
}

.hp-hero-visual:hover .hp-hero-doc-back {
    transform: rotate(-8deg) translateY(-4px);
}

.hp-hero-visual:hover .hp-hero-doc-mid {
    transform: rotate(6deg) translateY(-4px);
}

.hp-hero-visual:hover .hp-hero-doc-front {
    transform: translateX(-50%) translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.hp-hero-doc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(52, 199, 89, 0.1);
    color: var(--accent-green);
    border-radius: var(--radius-full);
    padding: 0.2rem 0.6rem;
    font-size: 0.625rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

[data-theme="dark"] .hp-hero-doc-badge {
    background: rgba(48, 209, 88, 0.12);
}

.hp-hero-doc-badge svg {
    width: 10px;
    height: 10px;
}

.hp-hero-doc-bar {
    height: 8px;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
    opacity: 0.7;
}

.hp-hero-doc-line {
    height: 6px;
    background: var(--primary);
    opacity: 0.08;
    border-radius: var(--radius-full);
    margin-bottom: 0.5rem;
}

/* ==================== SECTION HEADERS ==================== */
.hp-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.hp-section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

.hp-section-sub {
    font-size: clamp(0.875rem, 2vw, 1.0625rem);
    color: var(--gray);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ==================== PROBLEM STATEMENT ==================== */
.hp-problem {
    padding: 1rem 0 2rem;
}

.hp-problem-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem 2.5rem;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    /* scroll-reveal */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.hp-problem-card.hp-visible {
    opacity: 1;
    transform: translateY(0);
}

.hp-problem-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--accent-blue), var(--accent-purple));
    border-radius: 4px 0 0 4px;
}

.hp-problem-card p {
    font-size: clamp(0.9375rem, 2vw, 1.0625rem);
    color: var(--gray);
    line-height: 1.7;
}

.hp-problem-card strong {
    color: var(--primary);
    font-weight: 600;
}

/* ==================== PROCESS FLOW ==================== */
.hp-process {
    padding: 3rem 0;
}

.hp-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 960px;
    margin: 0 auto;
}

.hp-flow-step {
    flex: 1;
    text-align: center;
    padding: 0 0.75rem;
    /* scroll-reveal */
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}

.hp-flow-step.hp-visible {
    opacity: 1;
    transform: translateY(0);
}

.hp-flow-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: var(--step-color, var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}

.hp-flow-step:hover .hp-flow-icon {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hp-flow-icon svg {
    width: 26px;
    height: 26px;
    color: white;
}

.hp-flow-num {
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    background: var(--background-secondary);
    border: 1.5px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--gray);
    margin: 0 auto 0.625rem;
}

.hp-flow-step h3 {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    letter-spacing: -0.02em;
}

.hp-flow-step p {
    color: var(--gray);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.hp-flow-connector {
    display: flex;
    align-items: center;
    padding-top: 1.5rem;
    color: var(--border-strong);
    flex-shrink: 0;
}

.hp-flow-connector svg {
    width: 20px;
    height: 20px;
    opacity: 0.5;
}

/* ==================== AUDIENCE SECTION ==================== */
.hp-audience {
    padding: 3rem 0;
}

.hp-audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.hp-audience-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    transition: all var(--duration-base) var(--ease-smooth);
    /* scroll-reveal */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo),
        box-shadow var(--duration-base) var(--ease-smooth),
        border-color var(--duration-base) var(--ease-smooth);
}

.hp-audience-card.hp-visible {
    opacity: 1;
    transform: translateY(0);
}

.hp-audience-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
}

.hp-audience-card.hp-visible:hover {
    transform: translateY(-4px);
}

.hp-audience-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--icon-color, var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.875rem;
    color: white;
    flex-shrink: 0;
}

.hp-audience-icon svg {
    width: 22px;
    height: 22px;
}

.hp-audience-card h3 {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.hp-audience-card p {
    color: var(--gray);
    font-size: 0.8125rem;
    line-height: 1.55;
}

/* ==================== COMPARISON TABLE ==================== */
.hp-compare {
    padding: 3rem 0;
}

.hp-compare-table-wrap {
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--card-bg);
    /* scroll-reveal */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.hp-compare-table-wrap.hp-visible {
    opacity: 1;
    transform: translateY(0);
}

.hp-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.hp-compare-table thead {
    background: var(--background-secondary);
}

.hp-compare-table th {
    padding: 1rem 1.25rem;
    font-family: var(--font-display);
    font-weight: 600;
    text-align: left;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--gray);
    border-bottom: 1px solid var(--border);
}

.hp-compare-table th.hp-compare-us {
    color: var(--accent-blue);
}

.hp-compare-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.hp-compare-table tbody tr:last-child td {
    border-bottom: none;
}

.hp-compare-table tbody tr {
    transition: background 0.2s ease;
}

.hp-compare-table tbody tr:hover {
    background: var(--background-secondary);
}

.hp-compare-table td:first-child {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.875rem;
}

.hp-compare-table td.hp-compare-others {
    color: var(--gray);
    font-size: 0.8125rem;
}

.hp-compare-table td.hp-compare-us {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hp-compare-table td.hp-compare-us svg {
    width: 16px;
    height: 16px;
    color: var(--accent-green);
    flex-shrink: 0;
}


/* ==================== BEFORE & AFTER ==================== */
.hp-before-after {
    padding: 3rem 0;
}

.hp-ba-grid {
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: 860px;
    margin: 0 auto;
}

.hp-ba-panel {
    flex: 1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--card-bg);
    /* scroll-reveal */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.hp-ba-panel.hp-visible {
    opacity: 1;
    transform: translateY(0);
}

.hp-ba-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: -0.01em;
}

.hp-ba-label svg {
    width: 16px;
    height: 16px;
}

.hp-ba-before .hp-ba-label {
    background: rgba(255, 59, 48, 0.06);
    color: var(--accent-red);
    border-bottom: 1px solid rgba(255, 59, 48, 0.1);
}

.hp-ba-after .hp-ba-label {
    background: rgba(52, 199, 89, 0.06);
    color: var(--accent-green);
    border-bottom: 1px solid rgba(52, 199, 89, 0.1);
}

[data-theme="dark"] .hp-ba-before .hp-ba-label {
    background: rgba(255, 69, 58, 0.08);
    border-color: rgba(255, 69, 58, 0.12);
}

[data-theme="dark"] .hp-ba-after .hp-ba-label {
    background: rgba(48, 209, 88, 0.08);
    border-color: rgba(48, 209, 88, 0.12);
}

.hp-ba-content {
    padding: 1.5rem;
}

.hp-ba-img {
    width: 100%;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    display: block;
}


.hp-ba1-img {
    margin-top: 60px;
    width: 100%;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    display: block;
}

.hp-ba-caption {
    color: var(--gray);
    font-size: 0.75rem;
    text-align: center;
    line-height: 1.5;
}

.hp-ba-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    flex-shrink: 0;
}

.hp-ba-divider-line {
    width: 1px;
    flex: 1;
    background: var(--border);
}

.hp-ba-divider-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.75rem 0;
    flex-shrink: 0;
}

.hp-ba-divider-icon svg {
    width: 18px;
    height: 18px;
    color: white;
}

/* ==================== FINAL CTA BADGE ==================== */
.hp-final-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    padding: 0.4rem 1.1rem 0.4rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
}

.hp-final-cta-badge svg {
    width: 16px;
    height: 16px;
}

.hp-final-cta-inner strong {
    color: white;
    font-weight: 700;
}

/* ==================== FINAL CTA ==================== */
.hp-final-cta {
    padding: 3rem 0 1rem;
}

.hp-final-cta-inner {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #5856d6 100%);
    border-radius: var(--radius-2xl);
    padding: clamp(2.5rem, 6vw, 4rem) clamp(2rem, 4vw, 3rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hp-final-cta-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hp-final-cta-inner h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: white;
    margin-bottom: 0.875rem;
    letter-spacing: -0.03em;
    position: relative;
}

.hp-final-cta-inner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(0.875rem, 2vw, 1.0625rem);
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto 2rem;
    position: relative;
}

.hp-final-cta-btn {
    background: white;
    color: var(--accent-blue) !important;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
}

.hp-final-cta-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.hp-final-cta-btn svg {
    width: 18px;
    height: 18px;
    color: var(--accent-blue);
    transition: transform 0.3s var(--ease-smooth);
}

.hp-final-cta-btn:hover svg {
    transform: translateX(3px);
}

/* ==================== RESPONSIVE – TABLET ==================== */
@media (max-width: 768px) {
    .hp-hero {
        padding: 2.5rem 0 1.5rem;
    }

    .hp-hero-visual {
        max-width: 340px;
        height: 200px;
        margin-top: 2rem;
    }

    .hp-hero-doc-back {
        width: 150px;
    }

    .hp-hero-doc-mid {
        width: 160px;
    }

    .hp-hero-doc-front {
        width: 180px;
    }

    .hp-flow {
        flex-direction: column;
        gap: 0.25rem;
        align-items: center;
    }

    .hp-flow-step {
        padding: 0.75rem 0;
        max-width: 260px;
    }

    .hp-flow-connector {
        padding-top: 0;
        transform: rotate(90deg);
    }

    .hp-audience-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .hp-ba-grid {
        flex-direction: column;
        gap: 0;
    }

    .hp-ba-divider {
        flex-direction: row;
        padding: 0.75rem 0;
    }

    .hp-ba-divider-line {
        width: auto;
        height: 1px;
        flex: 1;
    }

    .hp-compare-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .hp-compare-table {
        min-width: 520px;
    }

    .hp-problem-card {
        padding: 1.5rem 1.75rem;
    }

    .hp-demo-card {
        padding: 2rem 1.5rem;
    }

    .hp-final-cta-inner {
        border-radius: var(--radius-xl);
    }
}

/* ==================== RESPONSIVE – SMALL MOBILE ==================== */
@media (max-width: 480px) {
    .hp-hero {
        padding: 2rem 0 1rem;
    }

    .hp-hero-headline {
        font-size: 2rem;
    }

    .hp-hero-visual {
        max-width: 280px;
        height: 180px;
    }

    .hp-hero-doc-back {
        width: 130px;
    }

    .hp-hero-doc-mid {
        width: 140px;
    }

    .hp-hero-doc-front {
        width: 160px;
    }

    .hp-audience-card {
        padding: 1.25rem;
    }

    .hp-hero-cta {
        width: 100%;
        justify-content: center;
    }
}