/* HOME PAGE STYLES */
.home-page {
    position: relative;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 18% 12%, rgba(54, 126, 255, 0.18), transparent 32%),
        radial-gradient(circle at 82% 8%, rgba(168, 76, 255, 0.18), transparent 30%),
        linear-gradient(180deg, #030711 0%, #060b18 48%, #070d1c 100%);
}

.home-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 18% 30%, rgba(180, 116, 255, 0.14), transparent 34%),
        radial-gradient(ellipse at 78% 22%, rgba(90, 190, 255, 0.10), transparent 30%),
        radial-gradient(ellipse at 58% 88%, rgba(116, 82, 255, 0.10), transparent 36%);
    filter: blur(12px);
    opacity: 0.55;
}

.home-page .page {
    width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.home-page .container {
    width: min(1180px, calc(100% - 40px));
}

.home-page > * {
    position: relative;
    z-index: 1;
}

.hero {
    position: relative;
    width: 100vw;
    min-height: 620px;
    display: flex;
    align-items: center;
    margin: 0 0 44px 50%;
    padding: 76px max(20px, calc((100vw - 1180px) / 2)) 64px;
    overflow: hidden;
    transform: translateX(-50%);
    border-radius: 0;
    background: transparent;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -18px;
    pointer-events: none;
    background-image: url("../images/profile-preview.webp");
    background-position: center right;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(1.6px);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* Use a vertical gradient only (no side darkening) */
    background: linear-gradient(180deg,
        rgba(6,11,24,0.65) 0%,
        rgba(6,11,24,0.0) 45%,
        rgba(6,11,24,0.65) 100%
    );
}

.hero-left {
    position: relative;
    z-index: 2;
    width: min(100%, 560px);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    padding: 8px 13px;
    border-radius: 10px;
    border: 1px solid rgba(86, 152, 255, 0.36);
    background: rgba(7, 14, 32, 0.72);
    color: #f2f6ff;
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    box-shadow: 0 0 18px rgba(82, 118, 255, 0.20);
}

.hero-badge::after {
    content: "";
    order: -1;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #33d6ff;
    box-shadow: 0 0 12px rgba(51, 214, 255, 0.9);
}

.hero-title {
    max-width: 500px;
    margin: 0 0 18px;
    color: #f7f9ff;
    font-size: 54px;
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: 0;
    text-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.hero-title span {
    display: block;
    color: #4aa3ff;
    background: linear-gradient(90deg, #2fb2ff 0%, #7d63ff 46%, #c33cff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    max-width: 520px;
    margin: 0 0 28px;
    color: #c5cce0;
    font-size: 18px;
    line-height: 1.58;
}

.hero-search-boxed {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 174px;
    align-items: stretch;
    width: min(100%, 560px);
    min-height: 58px;
    gap: 10px;
}

.hero-search-boxed input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    min-height: 56px;
    padding: 0 18px;
    border-radius: 10px;
    background: rgba(7, 12, 28, 0.78);
    border: 1px solid rgba(115, 145, 255, 0.22);
    color: #f4f7ff;
    font-size: 15px;
    font-weight: 650;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(10px);
}

.hero-search-boxed input::placeholder {
    color: #7f8bad;
}

.hero-search-boxed button {
    border: 0;
    outline: 0;
    cursor: pointer;
    min-height: 56px;
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, #2d9dff 0%, #794dff 52%, #bb35ff 100%);
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow:
        0 0 22px rgba(111, 83, 255, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
    transition: filter 0.18s ease, transform 0.18s ease;
}

.hero-search-boxed button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.hero-example {
    width: min(100%, 560px);
    margin: 12px 0 28px;
    color: #8f9abb;
    font-size: 13px;
    line-height: 1.4;
}

.account-overview,
.home-intro-panel,
.home-seo-sections {
    position: relative;
    z-index: 2;
}

.account-overview {
    margin: 0 0 42px;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.overview-card,
.home-seo-card,
.home-intro-panel {
    border: 1px solid rgba(126, 170, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(12, 18, 40, 0.82), rgba(7, 12, 28, 0.88));
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
}

.overview-card {
    min-height: 210px;
    padding: 26px 24px;
    border-radius: 16px;
}

.overview-card-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    border-radius: 14px;
    color: #8be9ff;
    background: rgba(45, 157, 255, 0.12);
    border: 1px solid rgba(45, 157, 255, 0.32);
    box-shadow: 0 0 22px rgba(45, 157, 255, 0.22);
    font-size: 18px;
    font-weight: 950;
}

.overview-card-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.overview-card:nth-child(2) .overview-card-icon,
.overview-card:nth-child(3) .overview-card-icon {
    color: #d46bff;
    background: rgba(187, 53, 255, 0.13);
    border-color: rgba(187, 53, 255, 0.30);
    box-shadow: 0 0 22px rgba(187, 53, 255, 0.20);
}

.overview-card h3 {
    margin: 0 0 10px;
    color: #f6f8ff;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 900;
}

.overview-card p {
    margin: 0;
    color: #aeb8d6;
    font-size: 14px;
    line-height: 1.55;
}

.overview-card::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 20px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2fb2ff, #bc35ff);
    box-shadow: 0 0 14px rgba(93, 162, 255, 0.35);
}

.home-intro-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    align-items: center;
    gap: 28px;
    margin: 20px 0 28px;
    min-height: 240px;
    padding: 36px 42px;
    overflow: hidden;
    border-radius: 18px;
    background:
        radial-gradient(circle at 85% 42%, rgba(124, 74, 255, 0.28), transparent 36%),
        linear-gradient(135deg, rgba(11, 18, 42, 0.92), rgba(7, 12, 28, 0.92));
}

.home-intro-copy h2 {
    margin: 0 0 14px;
    color: #f6f8ff;
    font-size: 28px;
    line-height: 1.12;
    font-weight: 950;
}

.home-intro-copy p {
    margin: 0;
    max-width: 690px;
    color: #c1cae4;
    font-size: 15px;
    line-height: 1.75;
}

.home-intro-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 22px;
}

.home-intro-points span {
    color: #cdd6ee;
    font-size: 13px;
    font-weight: 800;
}

.home-intro-points span::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: #4aa3ff;
    box-shadow: 0 0 12px rgba(74, 163, 255, 0.7);
}

.home-intro-visual {
    position: relative;
    min-height: 190px;
}

.intro-chart {
    position: absolute;
    border-radius: 16px;
    border: 1px solid rgba(126, 170, 255, 0.22);
    background: rgba(8, 13, 31, 0.82);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.30);
}

.intro-chart-pie {
    left: 0;
    bottom: 8px;
    width: 178px;
    height: 132px;
}

.intro-chart-pie::before {
    content: "";
    position: absolute;
    left: 34px;
    top: 30px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: conic-gradient(#33d6ff 0 36%, #8f4dff 36% 74%, #d84cff 74% 100%);
}

.intro-chart-bars {
    right: 0;
    top: 0;
    width: 190px;
    height: 154px;
}

.intro-chart-bars::before {
    content: "";
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 26px;
    height: 88px;
    background:
        linear-gradient(to top, #30d8ff 0 38%, transparent 38%) 0 100% / 14px 100% no-repeat,
        linear-gradient(to top, #4a9cff 0 54%, transparent 54%) 28px 100% / 14px 100% no-repeat,
        linear-gradient(to top, #8f4dff 0 72%, transparent 72%) 56px 100% / 14px 100% no-repeat,
        linear-gradient(to top, #d84cff 0 92%, transparent 92%) 84px 100% / 14px 100% no-repeat;
}

.home-seo-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 28px 0 34px;
}

.home-seo-card {
    padding: 24px;
    border-radius: 16px;
}

.home-seo-card h2 {
    margin: 0 0 12px;
    color: #f4f7ff;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 950;
}

.home-seo-card h3 {
    margin: 0 0 8px;
    color: #eef3ff;
    font-size: 17px;
    line-height: 1.2;
}

.home-seo-card p,
.home-seo-card li {
    color: #b9c4df;
    font-size: 15px;
    line-height: 1.68;
}

.home-seo-card ul,
.home-seo-card ol {
    margin: 8px 0 0 20px;
}

.home-faq-item {
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(126, 170, 255, 0.14);
    background: rgba(8, 14, 31, 0.48);
    transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.home-faq-item + .home-faq-item {
    margin-top: 10px;
}

.home-faq-item.is-open {
    border-color: rgba(93, 162, 255, 0.34);
    background: rgba(12, 22, 46, 0.64);
    box-shadow: 0 0 20px rgba(93, 162, 255, 0.10);
}

.home-faq-item h3 {
    margin: 0;
}

.home-faq-question {
    position: relative;
    width: 100%;
    padding: 15px 46px 15px 16px;
    border: 0;
    background: transparent;
    color: #f5f7ff;
    text-align: left;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    cursor: pointer;
}

.home-faq-question::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 14px;
    width: 26px;
    height: 26px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(126, 170, 255, 0.22);
    background: rgba(93, 162, 255, 0.13);
    color: #dce7ff;
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.home-faq-question[aria-expanded="true"]::after {
    content: "-";
    transform: translateY(-50%) rotate(180deg);
    border-color: rgba(168, 108, 255, 0.34);
    background: rgba(168, 108, 255, 0.16);
}

.home-faq-item > p {
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0 16px;
    opacity: 0;
    transition: max-height 0.32s ease, opacity 0.22s ease, padding-bottom 0.32s ease;
}

.home-faq-item.is-open > p {
    padding-bottom: 16px;
    opacity: 1;
}

#home-faq {
    grid-column: 1 / -1;
}

@media (max-width: 1100px) {
    .overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 900px) {
    .home-page .container {
        width: min(100%, calc(100% - 20px));
    }

    .hero {
        min-height: 0;
        width: 100vw;
        margin-left: 50%;
        padding: 44px max(16px, calc((100vw - 100%) / 2 + 10px));
        transform: translateX(-50%);
    }

    .hero::before,
    .hero::after {
        inset: 0;
    }

    .hero::before {
        background-size: 120% auto;
        background-position: top center;
    }

    .hero::after {
        /* vertical-only overlay: no side darkening */
        background: linear-gradient(180deg, rgba(3,7,17,0.16) 0%, rgba(3,7,17,0.0) 40%, #060b18 100%);
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-search-boxed {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .hero-search-boxed input {
        min-height: 48px;
    }

    .hero-search-boxed button {
        min-height: 46px;
    }

    .overview-grid,
    .home-seo-sections,
    .home-intro-panel {
        grid-template-columns: 1fr;
    }

    .home-intro-panel {
        padding: 28px 20px;
    }

    .home-intro-visual {
        min-height: 180px;
    }
}

@media (max-width: 560px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        margin-bottom: 28px;
    }

    /* Make the hero decorative image on narrow screens match desktop appearance */
    .hero::before {
        inset: -18px;
        background-image: url("../images/profile-preview.webp");
        background-size: cover;
        background-position: center right;
        background-repeat: no-repeat;
        filter: blur(1.6px);
    }

    /* vertical-only overlay on very small screens */
    .hero::after {
        background: linear-gradient(180deg, rgba(6,11,24,0.65) 0%, rgba(6,11,24,0.0) 45%, rgba(6,11,24,0.65) 100%);
    }

    .hero-title {
        font-size: 32px;
    }

    .home-intro-visual {
        display: none;
    }
}
