* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

:root {
    /* Colors */
    --bg-dark: #0a0a0a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #d4d4d8;
    /* Brighter muted text for better contrast */
    --brand: #8b5cf6;
    --brand-hover: #7c3aed;
    --brand-navy: #252554;
    --brand-navy-hover: #1a1a3d;
    --brand-purple: #8b5cf6;
    --accent: #10b981;
    --border: rgba(255, 255, 255, 0.1);

    /* Spacing */
    --section-padding: 80px 20px;
    --border-radius: 16px;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
}

body {
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 70px;
    /* Space for sticky CTA on mobile */
}

/* Typography Utilities */
h1,
h2,
h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    max-width: 850px;
    margin: 0 auto 1.5rem;
    line-height: 1.1;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand-purple);
}

p {
    color: var(--text-muted);
}

/* Layout Utilities */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: var(--section-padding);
}

.grid {
    display: grid;
    gap: 20px;
}

.flex-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Glassmorphism Card */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 24px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 99px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1rem;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--brand);
    color: white;
    box-shadow: 0 10px 20px -10px var(--brand);
}

.btn-primary:hover {
    background: var(--brand-hover);
    transform: scale(1.02);
}

.btn-large {
    width: 100%;
    max-width: 400px;
    min-height: 54px;
    /* Better touch target */
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn:active {
    transform: scale(0.98);
}

.microcopy {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 12px;
    line-height: 1.4;
}

/* Badges & Chips */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(139, 92, 246, 0.1);
    color: var(--brand-purple);
    margin-bottom: 1rem;
}

.info-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
}

.chip {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Benefits */
.hero-bullets {
    list-style: none;
    text-align: left;
    max-width: 400px;
    margin: 0 auto 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-bullets li {
    font-size: 0.9rem;
    color: #ffffff;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

/* Hero Benefits icon fix: removal of CSS-added icon to avoid duplication with HTML emojis */
.hero-bullets li::before {
    display: none;
}

/* Hero Media Refinement */
.hero-media {
    width: 500px;
    max-width: 92vw;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    background: transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-media img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-visual {
    max-width: 800px;
    margin: 0 auto 2rem;
    position: relative;
    overflow: hidden;
}

.hero-visual-carousel {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 10px;
}

.hero-visual-carousel::-webkit-scrollbar {
    display: none;
}

.hero-visual-carousel .preview-card {
    flex: 0 0 70%;
    scroll-snap-align: center;
    aspect-ratio: 16/9;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

@media (min-width: 769px) {
    .hero-visual-carousel {
        justify-content: center;
        overflow: visible;
    }

    .hero-visual-carousel .preview-card {
        flex: 0 0 30%;
    }
}

/* Sticky Footer Premium Refinement */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    visibility: hidden;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s 0.3s;
    z-index: 2000;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
    box-sizing: border-box;
}

.sticky-cta.is-visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s;
}

.sticky-cta .container-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.sticky-cta-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.sticky-cta-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
}

.sticky-cta-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.sticky-cta .btn {
    padding: 12px 24px;
    font-size: 0.85rem;
    text-transform: none;
    margin: 0;
    width: auto;
    border-radius: 50px;
    background: var(--brand);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    text-align: center;
    line-height: 1.2;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-large {
        padding: 16px 24px;
        font-size: 1rem;
    }

    .hero-visual-new {
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-visual-new img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    section {
        padding: 40px 15px;
        /* Tighter padding for mobile */
    }

    .container {
        padding: 0 15px;
    }

    .grid {
        gap: 15px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
        letter-spacing: -0.5px;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .btn-large {
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .trust-strip {
        font-size: 0.75rem;
    }
}

/* FAQ Styles */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    width: 100%;
}

.faq-question {
    background: var(--bg-card);
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 16px;
    color: var(--text-main);
    /* Full contrast for answers */
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Placeholders */
.placeholder-img {
    background: linear-gradient(135deg, #1a1a1a 0%, #1a1a3d 100%);
    border: 1px solid rgba(37, 37, 84, 0.3);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-weight: 600;
    margin: 1rem 0;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.placeholder-img::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 0%, rgba(37, 37, 84, 0.1) 50%, transparent 100%);
    animation: shine 4s infinite linear;
}

@keyframes shine {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(100%);
    }
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-8px);
    border-color: var(--brand-purple);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.feature-number {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    z-index: 0;
    line-height: 1;
}

.feature-card h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 0.75rem;
    color: #ffffff !important;
}

.feature-card p {
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8) !important;
}

@media (max-width: 768px) {
    .feature-card {
        padding: 25px 15px;
    }

    .feature-number {
        font-size: 3rem;
    }
}

.stack-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stack-item:hover {
    border-color: var(--brand-purple);
    background: rgba(139, 92, 246, 0.05);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.stack-item picture,
.stack-item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.stack-item:hover img {
    transform: scale(1.02);
}

.offer-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr !important;
    }
}

.stack-content h4 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.3px;
}

.stack-content p {
    font-size: 0.9rem;
    margin-bottom: 6px;
    line-height: 1.5;
    color: var(--text-muted);
}

.stack-content strong {
    color: #ffffff;
    font-weight: 600;
}

@media (max-width: 768px) {
    .anchor-nav {
        display: none !important;
    }
}

.anchor-nav {
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 999;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: center;
}

.anchor-nav .container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar IE/Edge */
    padding-bottom: 2px;
}

.anchor-nav .container::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.anchor-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 99px;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.anchor-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--brand-purple);
}

/* --- High Conversion Mobile Optimizations --- */

/* Accordion Styles */
.accordion-header {
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #ffffff !important;
}

.accordion-header .icon {
    font-size: 1.5rem;
    color: var(--brand-purple);
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.accordion-item.active .accordion-content {
    max-height: 2000px;
    /* Large enough to hold content */
}

.accordion-item.active .accordion-header .icon {
    transform: rotate(45deg);
}

/* Mobile Carousel/Swipe */
@media (max-width: 768px) {
    .mobile-carousel {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding: 10px 0 20px;
        scrollbar-width: none;
    }

    .mobile-carousel::-webkit-scrollbar {
        display: none;
    }

    .mobile-carousel .card {
        flex: 0 0 85%;
        scroll-snap-align: center;
    }
}

/* Modal Zoom Styles */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.modal.is-open {
    display: flex;
    opacity: 1;
}

.modal img {
    max-width: 92vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.is-open img {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 32px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2001;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Hide based on device */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

/* Rendering Optimization */
section:not(#hero) {
    content-visibility: auto;
    contain-intrinsic-size: 1px 1000px;
}