/* ============================================
   CSS Variables / Design Tokens
   ============================================ */
:root {
    /* Colors */
    --color-primary: #6e60eb;
    --color-primary-dark: #6c64ec;
    --color-dark-purple: #3e417c;
    --color-green: #06a763;
    --color-green-light: #04cc69;
    --color-blue: #098efa;
    --color-blue-medium: #475fed;
    --color-orange: #ff9920;

    --color-text-dark: #111111;
    --color-text-gray: #636363;
    --color-text-gray-light: #6d758f;
    --color-white: #ffffff;
    --color-bg: #ffffff;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-padding: 136px;
    --section-padding: 80px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 20px;
    --radius-lg: 25px;
    --radius-full: 9999px;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* Offset for sticky header when jumping to anchors */
section[id] {
    scroll-margin-top: 100px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-dark);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* ============================================
   Utility Classes
   ============================================ */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.text-purple {
    color: var(--color-primary-dark);
}

.text-center {
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 30px;
}

/* ============================================
   Button Styles
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: var(--radius-lg);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.15px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(110, 96, 235, 0.3);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ============================================
   Header / Navigation
   ============================================ */
.header {
    position: sticky;
    top: 0;
    padding: 20px 0;
    z-index: 100;
    background: url('resources/hero-bg.png') no-repeat top center;
    background-size: 100vw auto;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    width: 54px;
    height: 54px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--color-text-dark);
    letter-spacing: -0.15px;
    transition: color 0.2s;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--color-primary);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    padding: 0;
    overflow: hidden;
    height: 600px;
    scroll-margin-top: 0;
}

.hero-bg {
    position: absolute;
    top: -94px;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('resources/hero-bg.png') no-repeat top center;
    background-size: 100% auto;
    z-index: 0;
}

.hero-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    height: 100%;
    z-index: 1;
}

.hero-text {
    max-width: 547px;
    flex-shrink: 0;
    z-index: 2;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 76px;
    font-weight: 600;
    line-height: 79px;
    letter-spacing: -0.58px;
    margin-bottom: 18px;
}

.hero-text h1 span {
    font-weight: 700;
}

.hero-text p {
    font-size: 16px;
    line-height: 24px;
    color: var(--color-text-dark);
    margin-bottom: 18px;
}

.hero-phones {
    position: relative;
    flex-shrink: 0;
    align-self: flex-end;
}

.hero-phones img {
    width: 650px;
    max-width: none;
    display: block;
}

/* ============================================
   About Section
   ============================================ */
.about {
    padding: var(--section-padding) 0;
}

.about-text {
    color: var(--color-text-gray);
    font-size: 21px;
    line-height: 1.6;
    margin-bottom: 90px;
}

.about-text p {
    margin-bottom: 1em;
}

.features {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.feature {
    max-width: 319px;
}

.feature-number {
    width: 46px;
    height: 45px;
    border-radius: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 20px;
}

.feature h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text-gray);
    line-height: 27px;
    margin-bottom: 10px;
}

.feature p {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--color-text-gray);
    line-height: 1.5;
}

/* ============================================
   Benefits Section
   ============================================ */
.benefits {
    padding-bottom: 49px;
}

.benefits .section-title {
    font-size: 48px;
    margin-bottom: 32px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 412px 1fr 1fr;
    grid-template-rows: 233px 498px;
    gap: 24px;
}

/* Grid areas for benefit cards */
.benefit-purple {
    grid-column: 1;
    grid-row: 1 / 3;
}

.benefit-green {
    grid-column: 2 / 4;
    grid-row: 1;
}

.benefit-blue {
    grid-column: 2;
    grid-row: 2;
}

.benefit-dark {
    grid-column: 3;
    grid-row: 2;
}

.benefit-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    padding: 35px 50px;
}

/* Card 1: Purple - Share moments */
.benefit-purple {
    background-color: var(--color-primary-dark);
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

.benefit-purple .benefit-content {
    color: var(--color-white);
    margin-bottom: 32px;
}

.benefit-purple h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 20px;
}

.benefit-purple p {
    font-size: 16px;
    line-height: 24px;
}

.benefit-purple .benefit-image {
    flex: 1;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.benefit-purple .benefit-image img {
    width: 100%;
    max-width: 400px;
    object-fit: contain;
    object-position: top;
}

/* Card 2: Green - Invitations */
.benefit-green {
    background-color: var(--color-green);
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 20px 23px;
    position: relative;
    min-height: 233px;
}

.benefit-green .benefit-content {
    color: var(--color-white);
    max-width: 380px;
    padding: 10px 0;
    z-index: 1;
}

.benefit-green h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 20px;
}

.benefit-green p {
    font-size: 16px;
    line-height: 24px;
}

.benefit-avatars {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 200px;
}

.benefit-avatars .avatar {
    position: absolute;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-1 { width: 129px; height: 129px; left: 5px; top: 10px; }
.avatar-2 { width: 129px; height: 129px; left: 189px; top: 0; }
.avatar-3 { width: 68px; height: 68px; left: 313px; top: 119px; }
.avatar-4 { width: 68px; height: 68px; left: 134px; top: 124px; }
.avatar-5 { width: 68px; height: 68px; left: 227px; top: 158px; }
.avatar-6 { width: 129px; height: 129px; left: 6px; top: 158px; }

/* Card 3: Blue - Save memories */
.benefit-blue {
    background-color: var(--color-blue-medium);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.chat-card {
    background-color: #7dbcef;
    border-radius: 10px;
    padding: 13px 18px;
    width: 283px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
}

.chat-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.chat-username {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 12px;
    color: var(--color-white);
    flex: 1;
}

.chat-menu {
    color: var(--color-white);
    font-size: 18px;
}

.chat-photos {
    display: flex;
    gap: 8px;
    margin-bottom: 5px;
}

.chat-photos img {
    width: 78px;
    height: 74px;
    object-fit: cover;
}

.chat-photos img:nth-child(2) {
    width: 62px;
}

.chat-photo-more {
    position: relative;
    width: 67px;
    height: 74px;
}

.chat-photo-more img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-photo-more::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.chat-photo-more span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 27px;
    z-index: 1;
}

.chat-message {
    font-family: var(--font-heading);
    font-size: 12px;
    color: var(--color-white);
    line-height: 22px;
}

.chat-time {
    font-family: var(--font-heading);
    font-size: 10px;
    color: var(--color-white);
}

.chat-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 5px;
}

.chat-likes, .chat-comments {
    font-family: var(--font-heading);
    font-size: 12px;
    color: var(--color-white);
}

.benefit-blue .benefit-content {
    color: var(--color-white);
    text-align: left;
    width: 100%;
}

.benefit-blue h3 {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 24px;
    line-height: 36px;
    margin-bottom: 16px;
}

.benefit-blue p {
    font-size: 16px;
    line-height: 24px;
}

/* Card 4: Dark - Attendee list */
.benefit-dark {
    background-color: var(--color-dark-purple);
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: flex-start;
    padding: 30px;
}

.benefit-dark .benefit-content {
    color: var(--color-white);
}

.benefit-dark h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--color-white);
}

.benefit-dark p {
    font-size: 14px;
    line-height: 22px;
    color: var(--color-white);
}

.attendee-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
}

.attendee-card {
    background: var(--color-white);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex: 0 0 auto;
}

.attendee-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.attendee-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.attendee-name {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 14px;
    color: #101828;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 12px;
}

.badge-purple {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.status {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 12px;
}

.status-accepted {
    color: var(--color-green-light);
}

.status-waiting {
    color: var(--color-orange);
}

/* ============================================
   How To Section
   ============================================ */
.how-to {
    padding: 31px 0;
}

.how-to .section-title {
    font-size: 48px;
    margin-bottom: 31px;
}

.step {
    display: grid;
    grid-template-columns: 312px 1fr;
    align-items: center;
    gap: 164px;
    margin-bottom: 60px;
}

.step-right {
    grid-template-columns: 1fr 312px;
}

.step-right .step-phone {
    order: 2;
}

.step-right .step-content {
    order: 1;
}

.step-phone {
    /* no flex-shrink needed with grid */
}

.step-phone img {
    width: 312px;
    border-radius: 50px;
}

.step-content {
    max-width: 599px;
}

.step-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 26px;
}

.step-icon-purple {
    background-color: rgba(110, 96, 235, 0.36);
}

.step-icon-green {
    background-color: rgba(6, 167, 99, 0.36);
}

.step-icon svg {
    width: 24px;
    height: 24px;
}

.step-content h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 36px;
    line-height: 40px;
    color: var(--color-primary);
    margin-bottom: 19px;
}

.step-content p {
    font-size: 16px;
    line-height: 24px;
    color: var(--color-text-gray-light);
    margin-bottom: 26px;
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials {
    padding: 60px 0;
}

.testimonials-card {
    background-color: var(--color-primary);
    border-radius: var(--radius-md);
    padding: 50px;
}

.testimonials-subtitle {
    text-align: center;
    color: var(--color-white);
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 8px;
}

.testimonials-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 36px;
    line-height: 40px;
    color: var(--color-white);
    text-align: center;
    margin-bottom: 20px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.testimonial {
    background: rgba(209, 205, 252, 0.38);
    border: 1px solid rgba(241, 243, 247, 0.08);
    border-radius: var(--radius-sm);
    padding: 24px;
    box-shadow: 0 1px 4px rgba(25, 33, 61, 0.08);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f1f3f7;
    object-fit: cover;
}

.testimonial-name {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    color: var(--color-white);
}

.testimonial p {
    font-size: 14px;
    line-height: 22px;
    color: var(--color-white);
}

/* ============================================
   FAQ Section
   ============================================ */
.faq {
    padding: 24px 0 60px;
}

.faq .section-title {
    font-size: 36px;
    margin-bottom: 24px;
}

.faq-list {
    max-width: 1164px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e1e4ed;
    cursor: pointer;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 10px;
    cursor: pointer;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-number {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 18px;
    color: var(--color-text-gray-light);
    min-width: 30px;
}

.faq-text {
    flex: 1;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    color: var(--color-text-gray-light);
}

.faq-item.active .faq-text {
    font-family: var(--font-heading);
    color: var(--color-primary);
}

.faq-icon {
    font-size: 20px;
    color: var(--color-text-gray-light);
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 10px 20px 50px;
}

.faq-answer p {
    font-size: 14px;
    line-height: 22px;
    color: var(--color-text-gray-light);
    max-width: 978px;
}

/* ============================================
   Download CTA Section
   ============================================ */
.download-cta {
    padding: 0 0 60px;
}

.cta-card {
    background: url('resources/cta-bg.png') no-repeat center;
    background-size: cover;
    border-radius: var(--radius-md);
    height: 319px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.cta-phones {
    position: absolute;
    left: 89px;
    top: 34px;
    width: 480px;
    height: 100%;
}

.cta-phone-1, .cta-phone-2 {
    position: absolute;
    width: 312px;
    border-radius: 50px;
}

.cta-phone-1 {
    left: 0;
    top: 0;
}

.cta-phone-2 {
    left: 167px;
    top: 52px;
}

.cta-content {
    margin-left: 661px;
    max-width: 413px;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 36px;
    line-height: 40px;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.cta-content p {
    font-family: var(--font-heading);
    font-size: 20px;
    color: #252528;
    margin-bottom: 16px;
}

.cta-buttons {
    display: flex;
    gap: 10px;
}

.cta-buttons img {
    height: 50px;
    width: auto;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--color-dark-purple);
    padding: 72px 0 0;
    border-top: 1px solid #e1e4ed;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 41px;
}

.footer-logo {
    width: 334px;
    height: auto;
}

.footer-tagline {
    font-size: 16px;
    line-height: 24px;
    color: var(--color-white);
    text-align: center;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon img {
    width: 24px;
    height: 24px;
}

.footer-bottom {
    border-top: 1px solid #e1e4ed;
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 16px;
    line-height: 22px;
    color: var(--color-white);
}

.footer-bottom a {
    text-decoration: underline;
}

.footer-bottom a:hover {
    color: var(--color-primary);
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 1200px) {
    :root {
        --container-padding: 60px;
    }

    .hero-text h1 {
        font-size: 56px;
        line-height: 60px;
    }

    .hero-phones {
        width: 450px;
        height: 450px;
    }

    .hero-phones .phone-1,
    .hero-phones .phone-2 {
        width: 280px;
    }

    .step {
        gap: 80px;
    }

    .benefits-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
    }

    .benefit-purple {
        grid-column: 1;
        grid-row: 1 / 3;
    }

    .benefit-green {
        grid-column: 2;
        grid-row: 1;
    }

    .benefit-blue {
        grid-column: 2;
        grid-row: 2;
    }

    .benefit-dark {
        grid-column: 1 / 3;
        grid-row: 3;
    }

    .cta-content {
        margin-left: auto;
        margin-right: 60px;
    }
}

@media (max-width: 992px) {
    :root {
        --container-padding: 40px;
    }

    .nav {
        gap: 12px;
    }

    .nav-link {
        font-size: 14px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 48px;
        line-height: 52px;
    }

    .hero-phones {
        width: 100%;
        max-width: 500px;
        height: 400px;
        margin: 0 auto;
    }

    .features {
        flex-direction: column;
        gap: 40px;
    }

    .feature {
        max-width: 100%;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .benefit-purple,
    .benefit-green,
    .benefit-blue,
    .benefit-dark {
        grid-column: 1;
        grid-row: auto;
    }

    .benefit-avatars {
        display: none;
    }

    .step {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }

    .step-phone {
        order: -1 !important;
    }

    .step-right .step-phone,
    .step-right .step-content {
        order: unset !important;
    }

    .step-right .step-phone {
        order: -1 !important;
    }

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

    .cta-card {
        flex-direction: column;
        height: auto;
        padding: 40px;
    }

    .cta-phones {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        max-width: 400px;
        height: 300px;
        margin: 0 auto 30px;
    }

    .cta-content {
        margin: 0;
        text-align: center;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 20px;
    }

    /* Header: hide nav links, only show logo and Contacto, not sticky */
    .header {
        position: relative;
        background: transparent;
    }

    .header-content {
        justify-content: space-between;
    }

    .nav-link {
        display: none;
    }

    .nav .btn-primary {
        display: inline-flex;
    }

    /* Hero mobile: gradient covers header + text + phones */
    .hero {
        height: auto;
        overflow: visible;
        margin-bottom: 20px;
    }

    .hero-bg {
        top: -100px;
        bottom: 0;
        height: calc(100% + 100px);
        background-size: 100% 100%;
    }

    .hero-content {
        position: relative;
        flex-direction: column;
        text-align: center;
        padding-top: 20px;
        padding-bottom: 0;
        align-items: center;
        min-height: 600px;
    }

    .hero-text {
        max-width: 100%;
        position: relative;
        z-index: 3;
    }

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

    .hero-phones {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -30%);
        width: 100%;
        z-index: 1;
    }

    .hero-phones img {
        width: 100%;
        max-width: 100%;
    }

    /* About section: closer to hero */
    .about {
        padding-top: 30px;
    }

    .section-title {
        font-size: 28px;
    }

    .benefits .section-title,
    .how-to .section-title {
        font-size: 36px;
    }

    /* Steps: hide phone images except first */
    .step:not(:first-child) .step-phone {
        display: none;
    }

    .step:not(:first-child) {
        grid-template-columns: 1fr !important;
    }

    .step-content h3 {
        font-size: 28px;
        line-height: 34px;
    }

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

    .testimonials-card {
        padding: 30px 20px;
    }

    /* CTA: hide phone images */
    .cta-phones {
        display: none;
    }

    .cta-card {
        justify-content: center;
    }

    .cta-content {
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}
