:root {
    --space-grotesk: "Space Grotesk", sans-serif;
    --primary: #511da5;
    --primary-light: #6c47ff1a;
    --primary-border: #6c47ff33;
    --foreground: #1d1825;
    --muted: #6b7280;
    --muted-bg: #f3f4f6;
    --card: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}


html {
    font-size: 16px;
}

body {
    margin: 0;
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
    margin-top: 0;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}


.container {
    max-width: 72rem;
    margin-inline: auto;
    padding-inline: 24px;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-block: 80px;
    gap: 32px;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-block: 0 16px;
    font-family: var(--space-grotesk);
}

.hero-text h1 span {
    font-family: var(--space-grotesk);
    background-image: linear-gradient(135deg, hsl(263 70% 38%), hsl(263 80% 50%));
    background-clip: text;
    color: transparent;
}

.hero-text p {
    margin: 0;
    font-size: 16px;
    color: #7b738c;
    max-width: 670px;
    margin-inline: auto;
    text-align: center;
}

.hero-features {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f9f8fb;
    border: 1px solid #e9e7ef;
    border-radius: 999px;
    padding: 6px 12px;
    border: 1px solid #eee;
    box-shadow: 0 1px 3px hsl(263 40% 20% / .06);
}

.feature span {
    color: #1d1825;
    font-weight: 500;
    line-height: 16px;
    font-size: 12px;
}

.feature .icon {
    max-height: 12px;
    color: var(--primary);
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.primary-btn {
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.primary-btn:hover {
    opacity: 0.9;
}

.primary-btn span {
    font-size: 14px;
    line-height: 20px;
}

.secondary-btn {
    display: flex;
    align-items: center;
    padding-inline: 32px;
    border-radius: 8px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    line-height: 20px;
    font-size: 14px;
    transition: color 0.2s ease-in-out, background 0.2s ease-in-out;

}

.btn {
    padding: 11px 32px;
    border-radius: 999px;
    display: flex;
    align-items: center;
}

.secondary-btn:hover {
    background: #eee7f9;
    color: #401782;
}

.hero-image img {
    width: 100%;
    max-width: 672px;
}

/* SECTION */

.products-section {
    padding-inline: 24px;
    background: #ffffff;
    padding-block: 40px;
}

/* Products */

/* Sticky category bar */
.category-bar {
    position: sticky;
    top: 57px;
    z-index: 30;
    background: white;
    border-bottom: 1px solid #e9e7ef;
}

/* Container */
.category-container {
    max-width: 72rem;
    margin: 0 auto;
    padding-block: 0.75rem;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    justify-content: start;
}

/* Hide scrollbar */
.category-container::-webkit-scrollbar {
    display: none;
}

.category-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Buttons */
.category-btn {
    position: relative;
    flex-shrink: 0;
    padding: 0.375rem 1rem;
    /* py-1.5 px-4 */
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: color 0.2s ease;
}

/* Text */
.category-btn span {
    position: relative;
    z-index: 10;
    color: var(--muted-foreground);
    font-size: 14px;
    line-height: 20px;
    color: #7b738c;
    font-weight: 400;
}

.category-btn:hover span {
    color: var(--foreground);
}

/* Active button background */
.category-btn.active::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--primary);
    border-radius: 9999px;
    background-color: var(--primary);
}

/* Active text */
.category-btn.active span {
    color: white;
}

/* HEADER */

.products-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 20px;
    flex-wrap: wrap;
}

.products-header * {
    font-family: var(--space-grotesk);
    margin-bottom: 0;
}

.products-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 4px;
    line-height: 20px;
}

.products-header h2 {
    font-size: 26px;
    font-weight: 700;
}

.products-subtitle {
    flex: 1;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
}

.products-hint {
    font-size: 14px;
    color: #777;
}

/* GRID */

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

.product-card {
    animation: fadeSlideUp 0.4s ease forwards;
    opacity: 0;
    background-color: #f9f8fb;
    border-radius: 16px;
    border: 1px solid #eee;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* PRODUCT CARD */

.product-card {}

.product-card:hover {
    /* transform: translateY(-4px); */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* IMAGE */

.product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f6f6f6;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* BADGE */

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
    background: var(--primary);
    color: #fff;
    text-transform: uppercase;
}

/* PRODUCT INFO */

.product-info {
    padding: 16px;
    background-color: #f9f8fb;
}


.product-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin-bottom: 4px;
    margin-top: 0;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    font-family: var(--space-grotesk);
}

/* RATING */

.product-rating {
    font-size: 12px;
    color: #6b46ff;
    margin-bottom: 8px;
}

.product-rating span {
    color: #777;
    margin-left: 4px;
}

/* PRICE */

.product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.price {
    font-weight: 700;
    font-family: var(--space-grotesk);
}

.price-old {
    margin-left: 6px;
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    font-family: var(--space-grotesk);
}

/* ADD CART */

.add-cart {
    border: none;
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 20px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.add-cart svg {
    width: 16px;
    height: 16px;
}

.add-cart:hover {
    background: rgba(107, 70, 255, 0.1);
    color: #6b46ff;
}

.ask-ai {
    width: 100%;
    margin-top: 12px;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid rgba(107, 70, 255, 0.2);
    font-size: 12px;
    font-weight: 600;
    background: transparent;
    color: #6b46ff;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.ask-ai p {
    margin-bottom: 0;
}

.ask-ai:hover {
    background: #6b46ff;
    color: white;
}

/* COMPARE PRODUCTS */
.compare-section {
    background-color: #f4f3f74d;
}

.compare-section .container {
    padding-block: 56px;
}

/* ── Header ── */
.compare-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 12px;
}

.compare-header *:not(.ai-badge) {
    font-family: var(--space-grotesk);
}

.compare-header * {
    margin-bottom: 0;
}

.compare-header-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.compare-now-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 500;
    gap: 0.5rem;
    height: 2.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    background-color: var(--primary);
    color: var(--primary-foreground);
    transition: background-color 0.2s;
    outline-offset: 2px;
    color: white;
}

.compare-now-btn:hover {
    background-color: color-mix(in srgb, var(--primary) 90%, transparent);
}

.compare-now-btn:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

.compare-now-btn:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.compare-now-btn svg {
    pointer-events: none;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    border-radius: 999px;
    padding: 4px 10px;
    width: fit-content;
}

.ai-badge-img {
    width: 14px;
    height: 14px;
}

.ai-badge span {
    font-size: 10px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.02em;
    font-family: var(--space-grotesk);
}

.compare-title {
    font-family: var(--space-grotesk);
    font-size: clamp(18px, 3vw, 22px);
    font-weight: 700;
    color: var(--foreground);
}

.compare-subtitle {
    font-family: var(--space-grotesk);
    font-size: clamp(15px, 2.5vw, 24px);
    font-weight: 600;
    color: var(--foreground);
    flex: 1;
    text-align: center;
    padding: 0 16px;
}

.compare-count {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap;
}

/* ── Grid ── */
.compare-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 640px) {
    .compare-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

/* ── Card ── */
.compare-card {
    background: var(--card);
    border-radius: 18px;
    border: 2px solid var(--border);
    overflow: hidden;
    /* cursor: pointer; */
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    box-shadow: var(--shadow);
    animation: fadeUp 0.5s ease both;
}

.compare-card:nth-child(1) {
    animation-delay: 0s;
}

.compare-card:nth-child(2) {
    animation-delay: 0.08s;
}

.compare-card:nth-child(3) {
    animation-delay: 0.16s;
}

.compare-card:nth-child(4) {
    animation-delay: 0.24s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#selected-count-mobile {
    display: none;
}

.compare-card:hover {
    border-color: rgba(108, 71, 255, 0.4);
    transform: translateY(-3px);
}

.compare-card.selected {
    border-color: var(--primary);
}

/* ── Image ── */
.card-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--muted-bg);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.compare-card:hover .card-image img {
    transform: scale(1.04);
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-family: var(--space-grotesk);
}

.card-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.2s, transform 0.2s;
}

.card-check svg {
    width: 12px;
    height: 12px;
    color: #fff;
}

.compare-card.selected .card-check {
    opacity: 1;
    transform: scale(1);
}

/* ── Info ── */
.card-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: #f9f8fb;
}

.card-info * {
    margin-bottom: 0;
}

.card-category {
    font-size: 10px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.card-name {
    font-family: var(--space-grotesk);
    font-size: 13px;
    font-weight: 600;
    color: var(--foreground);
    line-height: 1.35;
    margin-bottom: 0;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stars {
    display: flex;
    gap: 1px;
}

.star {
    width: 11px;
    height: 11px;
    fill: var(--primary);
    color: var(--primary);
}

.star.empty {
    fill: none;
    color: var(--border);
}

.card-rating span {
    font-size: 10px;
    color: var(--muted);
}

.card-price {
    display: flex;
    align-items: center;
    gap: 7px;
}

.price-current {
    font-family: var(--space-grotesk);
    font-size: 15px;
    font-weight: 700;
    color: var(--foreground);
}

.price-old {
    font-size: 12px;
    color: var(--muted);
    text-decoration: line-through;
}

/* See what amenexia can do */

.scenarios-section {
    padding: 48px 0;
}

.scenarios-container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 24px;
}

.scenarios-header {
    text-align: center;
    margin-bottom: 32px;
}

.scenarios-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 4px;
}

.scenarios-title {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 700;
    color: var(--foreground);
    font-family: var(--space-grotesk);
}

.scenarios-subtitle {
    font-size: 0.875rem;
    color: var(--muted);
    margin-top: 8px;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.scenarios-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

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

@media (min-width: 1024px) {
    .scenarios-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.scenario-card {
    text-align: left;
    border-radius: 16px;
    border: 1px solid #e9e7ef;
    background: #f9f8fb;
    padding: 20px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transform: translateY(0);
    transition: box-shadow 0.3s, border-color 0.3s, transform 0.5s 0.4s;
}

.scenario-card:hover {
    box-shadow: 0 1px 3px #2e1f470f;
    border-color: #511da54d;
    transform: translateY(-4px);
}

.scenario-card:hover .scenario-icon {
    background-color: var(--primary);
    color: #fff;
}

.scenario-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: background-color 0.3s, color 0.3s;
}

.scenario-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 4px;
    font-family: var(--space-grotesk);
}

.scenario-card-desc {
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.5;
}

.cta-section {
    padding: 48px 0;
}

.cta-container {
    margin: 0 auto;
    padding: 0 24px;
}

.cta-card {
    border-radius: 16px;
    background: var(--hero-gradient, linear-gradient(135deg, var(--primary-light) 0%, var(--card) 100%));
    border: 1px solid var(--border);
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    text-align: center;
}

@media (min-width: 768px) {
    .cta-card {
        flex-direction: row;
        padding: 48px;
        text-align: left;
    }
}

.cta-title {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 8px;
    font-family: var(--space-grotesk);
}

.cta-desc {
    font-size: 0.875rem;
    color: var(--muted);
    max-width: 28rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    height: 44px;
    padding: 0 32px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 400;
    background-color: var(--primary);
    color: white;
    transition: background-color 0.2s;
}

.cta-btn:hover {
    background-color: color-mix(in srgb, var(--primary) 90%, transparent);
}

.cta-btn:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

.cta-btn:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.cta-btn svg {
    pointer-events: none;
    flex-shrink: 0;
}

.perks-section {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #f9f8fb;
    padding: 32px 0;
}

.perks-container {
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (min-width: 768px) {
    .perks-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.perk {
    display: flex;
    align-items: center;
    gap: 12px;
}

.perk-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.perk-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0;
}

.perk-desc {
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 0;
}

.site-footer {
    background: #f9f8fb;
    border-top: 1px solid var(--border);
    padding-top: 48px;
    padding-bottom: 32px;
}

.footer-container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-col-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 16px;
    font-family: var(--space-grotesk);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 0;
}

.footer-links li {
    font-size: 0.875rem;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s;
}

.footer-links li:hover {
    color: var(--foreground);
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.payment-badge {
    font-size: 0.75rem;
    color: var(--muted);
    padding: 4px 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: white;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--muted);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-brand-link {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}

.footer-brand-link:hover {
    text-decoration: underline;
}

/* RESPONSIVE */

@media (max-width: 1024px) {

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

@media (max-width: 768px) {
    .hero-container {
        padding-block: 40px;
    }

    .products-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .products-subtitle {
        text-align: left;
    }

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

    .hero-features {
        justify-content: center;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .btn {
        padding-inline: 30px;
    }

    #selected-count {
        display: none;
    }

    #selected-count-mobile {
        display: block;
        width: 100%;
        margin-inline: auto;
        text-align: center;
        margin-top: 20px;
    }

    .compare-header {
        flex-direction: column;
    }

    .compare-header-left {
        align-self: flex-start;
    }

    .category-container {
        padding-inline: 24px;
    }

    .ask-ai p span {
        display: none;
    }
}