/* =========================================================
   EARO — Premium Compact Homepage
   ========================================================= */

.earo-home {
    --earo-radius: 22px;
    --earo-border: rgba(148, 163, 184, 0.16);
    --earo-shadow: 0 16px 50px rgba(15, 23, 42, 0.07);
    --earo-shadow-hover: 0 24px 65px rgba(15, 23, 42, 0.12);
}

/* =========================================================
   BASE
   ========================================================= */

.earo-home section {
    position: relative;
}

.earo-home .earo-container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

@media (min-width: 640px) {
    .earo-home .earo-container {
        width: min(1180px, calc(100% - 48px));
    }
}

@media (min-width: 1024px) {
    .earo-home .earo-container {
        width: min(1180px, calc(100% - 64px));
    }
}

.earo-home .earo-section {
    padding: 64px 0;
}

@media (max-width: 767px) {
    .earo-home .earo-section {
        padding: 48px 0;
    }
}

/* =========================================================
   SUBTLE GRID BACKGROUND
   ========================================================= */

.earo-home .earo-grid-bg {
    background-image:
        linear-gradient(
            rgba(148, 163, 184, 0.055) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(148, 163, 184, 0.055) 1px,
            transparent 1px
        );
    background-size: 42px 42px;
}

.dark .earo-home .earo-grid-bg {
    background-image:
        linear-gradient(
            rgba(148, 163, 184, 0.04) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(148, 163, 184, 0.04) 1px,
            transparent 1px
        );
}

/* =========================================================
   HERO
   ========================================================= */

.earo-home .earo-hero {
    overflow: hidden;
    min-height: 590px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(
            circle at 85% 25%,
            rgba(99, 102, 241, 0.075),
            transparent 32%
        ),
        radial-gradient(
            circle at 10% 85%,
            rgba(14, 165, 233, 0.05),
            transparent 28%
        ),
        #fff;
}

.dark .earo-home .earo-hero {
    background:
        radial-gradient(
            circle at 85% 25%,
            rgba(99, 102, 241, 0.1),
            transparent 32%
        ),
        #030712;
}

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

.earo-home .earo-hero-title {
    max-width: 650px;
    letter-spacing: -0.045em;
    line-height: 1.04;
}

.earo-home .earo-hero-description {
    max-width: 610px;
    line-height: 1.75;
}

.earo-home .earo-hero-visual {
    position: relative;
    z-index: 2;
}

.earo-home .earo-hero-image-frame {
    position: relative;
    padding: 8px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.17);
    box-shadow:
        0 25px 70px rgba(15, 23, 42, 0.13),
        0 5px 20px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform: perspective(1100px) rotateY(-2deg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.earo-home .earo-hero-image-frame:hover {
    transform: perspective(1100px) rotateY(0) translateY(-4px);
    box-shadow:
        0 30px 85px rgba(15, 23, 42, 0.17),
        0 8px 25px rgba(15, 23, 42, 0.07);
}

.dark .earo-home .earo-hero-image-frame {
    background: rgba(15, 23, 42, 0.78);
    border-color: rgba(148, 163, 184, 0.12);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.38);
}

.earo-home .earo-hero-image {
    display: block;
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    border-radius: 19px;
}

.earo-home .earo-floating-dot {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    opacity: 0.3;
}

.earo-home .earo-floating-dot.one {
    top: 15%;
    right: -12px;
}

.earo-home .earo-floating-dot.two {
    bottom: 18%;
    left: -10px;
}

/* =========================================================
   BUTTON
   ========================================================= */

.earo-home .earo-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 13px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.earo-home .earo-primary-button:hover {
    transform: translateY(-2px);
}

/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.earo-home .earo-section-heading {
    max-width: 700px;
    margin-inline: auto;
    text-align: center;
}

.earo-home .earo-section-title {
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.earo-home .earo-section-description {
    line-height: 1.7;
}

/* =========================================================
   IMAGE FEATURES
   ========================================================= */

.earo-home .earo-feature-row {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 54px;
}

@media (max-width: 1023px) {
    .earo-home .earo-feature-row {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

.earo-home .earo-feature-media {
    position: relative;
    min-height: 330px;
    height: 390px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    overflow: hidden;
    border-radius: var(--earo-radius);
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(99, 102, 241, 0.07),
            transparent 35%
        ),
        #f8fafc;
    border: 1px solid var(--earo-border);
    box-shadow: var(--earo-shadow);
}

.dark .earo-home .earo-feature-media {
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(99, 102, 241, 0.08),
            transparent 35%
        ),
        #111827;
}

.earo-home .earo-feature-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
    transition: transform 0.35s ease;
}

.earo-home .earo-feature-media:hover .earo-feature-image {
    transform: scale(1.02);
}

.earo-home .earo-feature-copy {
    max-width: 560px;
}

.earo-home .earo-feature-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 15px;
    border-radius: 11px;
    background: rgba(99, 102, 241, 0.08);
    font-size: 12px;
    font-weight: 700;
}

.earo-home .earo-feature-title {
    letter-spacing: -0.03em;
    line-height: 1.16;
}

.earo-home .earo-feature-description {
    line-height: 1.75;
}

/* =========================================================
   ICON FEATURES
   ========================================================= */

.earo-home .earo-icon-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 1023px) {
    .earo-home .earo-icon-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .earo-home .earo-icon-grid {
        grid-template-columns: 1fr;
    }
}

.earo-home .earo-icon-card {
    position: relative;
    min-height: 190px;
    padding: 23px;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--earo-border);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.045);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.earo-home .earo-icon-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--earo-shadow);
    border-color: rgba(99, 102, 241, 0.18);
}

.dark .earo-home .earo-icon-card {
    background: rgba(17, 24, 39, 0.75);
}

.earo-home .earo-icon-wrapper {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border-radius: 13px;
    background: rgba(99, 102, 241, 0.08);
}

.earo-home .earo-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.earo-home .earo-icon-title {
    position: relative;
    z-index: 1;
}

.earo-home .earo-icon-description {
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */

.earo-home .earo-review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}

@media (max-width: 1023px) {
    .earo-home .earo-review-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .earo-home .earo-review-grid {
        grid-template-columns: 1fr;
    }
}

.earo-home .earo-review-card {
    position: relative;
    min-height: 190px;
    padding: 25px;
    overflow: hidden;
    border-radius: 19px;
    background: white;
    border: 1px solid var(--earo-border);
    box-shadow: 0 9px 30px rgba(15, 23, 42, 0.045);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.dark .earo-home .earo-review-card {
    background: rgba(17, 24, 39, 0.78);
}

.earo-home .earo-review-mark {
    position: absolute;
    top: 8px;
    right: 18px;
    font-family: Georgia, serif;
    font-size: 65px;
    line-height: 1;
    opacity: 0.07;
}

.earo-home .earo-review-text {
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

.earo-home .earo-review-author {
    margin-top: 19px;
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

/* =========================================================
   PRICING
   ========================================================= */

.earo-home .earo-pricing-section {
    overflow: hidden;
}

.earo-home .earo-pricing-section::before {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.04);
    filter: blur(18px);
    pointer-events: none;
}

/* =========================================================
   FAQ
   ========================================================= */

.earo-home .earo-faq-list {
    max-width: 900px;
    margin-inline: auto;
    border-top: 1px solid var(--earo-border);
}

.earo-home .earo-faq-item {
    border-bottom: 1px solid var(--earo-border);
}

.earo-home .earo-faq-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 2px;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
}

.earo-home .earo-faq-summary::-webkit-details-marker {
    display: none;
}

.earo-home .earo-faq-summary::after {
    content: "+";
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.08);
    font-size: 21px;
    font-weight: 400;
    transition: transform 0.2s ease;
}

.earo-home .earo-faq-item[open] .earo-faq-summary::after {
    transform: rotate(45deg);
}

.earo-home .earo-faq-answer {
    max-width: 820px;
    padding: 0 48px 20px 2px;
    line-height: 1.7;
}

/* =========================================================
   CONTACT
   ========================================================= */

.earo-home .earo-contact-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    overflow: hidden;
    border-radius: 25px;
    background: white;
    border: 1px solid var(--earo-border);
    box-shadow: var(--earo-shadow);
}

.dark .earo-home .earo-contact-card {
    background: rgba(17, 24, 39, 0.82);
}

.earo-home .earo-contact-image {
    width: 100%;
    height: 100%;
    min-height: 310px;
    object-fit: cover;
}

.earo-home .earo-contact-content {
    padding: 34px;
}

.earo-home .earo-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.earo-home .earo-contact-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(99, 102, 241, 0.08);
}

.earo-home .earo-contact-icon svg {
    width: 20px;
    height: 20px;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 1023px) {
    .earo-home .earo-hero {
        min-height: auto;
        padding: 64px 0;
    }

    .earo-home .earo-feature-row {
        gap: 25px;
    }

    .earo-home .earo-feature-media {
        height: 340px;
    }

    .earo-home .earo-contact-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 639px) {
    .earo-home .earo-hero {
        padding: 50px 0;
    }

    .earo-home .earo-hero-title {
        letter-spacing: -0.035em;
    }

    .earo-home .earo-hero-image-frame {
        padding: 6px;
        border-radius: 20px;
        transform: none;
    }

    .earo-home .earo-hero-image {
        border-radius: 15px;
    }

    .earo-home .earo-feature-media {
        min-height: 250px;
        height: 280px;
        border-radius: 19px;
    }

    .earo-home .earo-feature-number {
        width: 34px;
        height: 34px;
        margin-bottom: 12px;
    }

    .earo-home .earo-icon-card {
        min-height: auto;
        padding: 21px;
    }

    .earo-home .earo-review-card {
        min-height: auto;
        padding: 23px;
    }

    .earo-home .earo-faq-summary {
        padding: 18px 0;
    }

    .earo-home .earo-faq-answer {
        padding: 0 35px 19px 0;
    }

    .earo-home .earo-contact-content {
        padding: 27px 22px;
    }

    .earo-home .earo-contact-image {
        min-height: 230px;
    }
}

/* =========================================================
   ACCESSIBILITY / MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .earo-home *,
    .earo-home *::before,
    .earo-home *::after {
        animation: none !important;
        transition: none !important;
    }
}
