/*
============================================================
/assets/css/index.css
CSS เฉพาะหน้า index.php
============================================================
*/

/* ---------------------------------------------------------
   Hero Section
--------------------------------------------------------- */
.hero-section {
    padding: 86px 20px 70px 20px;
    background:
        radial-gradient(circle at top left, rgba(255, 90, 95, 0.12), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #fff8f8 100%);
    overflow: hidden;
}

.hero-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 54px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 14px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-color);

    font-weight: 800;
    font-size: 14px;
    margin-bottom: 18px;
}

.hero-content h1 {
    color: var(--black);
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.065em;
    margin-bottom: 22px;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 19px;
    max-width: 640px;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 34px;
}

.hero-btn {
    min-height: 52px;
    padding: 0 24px;
    font-size: 15px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 34px;
    flex-wrap: wrap;
}

.hero-stats div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-stats strong {
    color: var(--black);
    font-size: 25px;
    line-height: 1;
}

.hero-stats span {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

/* ---------------------------------------------------------
   Hero Visual
--------------------------------------------------------- */
.hero-visual {
    position: relative;
    min-height: 460px;
}

.hero-card-main {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    padding: 18px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 90, 95, 0.14);
    box-shadow: 0 30px 80px rgba(17, 24, 39, 0.12);
    backdrop-filter: blur(20px);
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 4px 16px 4px;
}

.hero-card-header span {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: #e5e7eb;
}

.hero-card-header span:first-child {
    background: #ff5a5f;
}

.hero-card-header span:nth-child(2) {
    background: #f59e0b;
}

.hero-card-header span:nth-child(3) {
    background: #10b981;
}

.hero-upload-box {
    min-height: 350px;
    border-radius: 28px;
    border: 2px dashed rgba(255, 90, 95, 0.28);
    background: linear-gradient(180deg, #fff8f8, #ffffff);

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    text-align: center;
    padding: 30px;
}

.hero-upload-icon {
    width: 86px;
    height: 86px;
    border-radius: 28px;
    background: var(--primary-color);
    color: var(--white);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 40px;
    box-shadow: 0 18px 34px rgba(255, 90, 95, 0.28);
    margin-bottom: 18px;
}

.hero-upload-box h3 {
    font-size: 25px;
    color: var(--black);
    letter-spacing: -0.04em;
    margin-bottom: 6px;
}

.hero-upload-box p {
    color: var(--text-muted);
    margin-bottom: 18px;
}

.hero-upload-box button {
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: none;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 800;
}

.floating-tool {
    position: absolute;
    z-index: 3;
    padding: 13px 16px;
    border-radius: 20px;
    background: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);

    display: flex;
    align-items: center;
    gap: 9px;
}

.floating-tool span {
    font-size: 23px;
}

.floating-tool strong {
    color: var(--black);
    font-size: 14px;
}

.floating-tool-one {
    top: 38px;
    left: 15px;
}

.floating-tool-two {
    bottom: 75px;
    left: 0;
}

.floating-tool-three {
    right: 0;
    bottom: 22px;
}

/* ---------------------------------------------------------
   Popular Tools
--------------------------------------------------------- */
.popular-tools-section {
    background: #ffffff;
}

.section-action {
    text-align: center;
    margin-top: 38px;
}

/* ---------------------------------------------------------
   Why Choose Us
--------------------------------------------------------- */
.why-section {
    background: #fafafa;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.why-card {
    padding: 24px;
    text-align: left;
}

.why-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: var(--primary-soft);
    color: var(--primary-color);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 25px;
    margin-bottom: 16px;
}

.why-card h3 {
    color: var(--black);
    font-size: 18px;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.why-card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ---------------------------------------------------------
   Pricing Preview
--------------------------------------------------------- */
.pricing-preview-section {
    background: #ffffff;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
}

.pricing-card {
    padding: 30px;
    position: relative;
}

.pricing-card-featured {
    border-color: rgba(255, 90, 95, 0.38);
    box-shadow: 0 24px 60px rgba(255, 90, 95, 0.16);
    transform: translateY(-8px);
}

.plan-badge {
    position: absolute;
    right: 22px;
    top: 22px;

    background: var(--primary-color);
    color: var(--white);
    border-radius: 999px;
    padding: 6px 10px;

    font-size: 12px;
    font-weight: 800;
}

.plan-name {
    color: var(--black);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
}

.plan-price {
    color: var(--primary-color);
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -0.05em;
    margin-bottom: 10px;
}

.pricing-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 24px;
}

.pricing-card li {
    color: var(--text-main);
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
}

.pricing-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: 900;
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: auto;
    }

    .hero-card-main {
        margin: 0 auto;
    }

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

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card-featured {
        transform: none;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding: 58px 16px 48px 16px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-stats {
        gap: 18px;
    }

    .hero-card-main {
        border-radius: 26px;
    }

    .hero-upload-box {
        min-height: 280px;
        border-radius: 22px;
    }

    .floating-tool {
        display: none;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }
}
/*
---------------------------------------------------------
   Scroll Animation
--------------------------------------------------------- */
.hide-card {
    opacity: 0;
    transform: translateY(18px);
    transition: 0.45s ease;
}

.show-card {
    opacity: 1;
    transform: translateY(0);
}