/* CSS Variables */
:root {
    --primary: #5B5BFF;
    --primary-hover: #4848e0;
    --primary-light: #e0e7ff;
    --secondary: #FF4DA6;
    --secondary-hover: #e03b8e;
    --accent: #FFD166;
    --background: #F8F9FF;
    --surface: #FFFFFF;
    --text: #1F2937;
    --text-light: #6B7280;
    --border: #E5E7EB;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(91, 91, 255, 0.3);

    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--text);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: var(--secondary-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary-light);
}

/* Header */
.header {
    padding: 1.5rem 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
}

.logo-icon {
    font-size: 1.75rem;
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    opacity: 0.6;
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

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

.headline {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.subheadline {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    margin-bottom: 2.5rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.badge {
    background: var(--surface);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Phone Mockup */
.hero-mockup-wrapper {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.phone-frame {
    width: 300px;
    height: 600px;
    background: #111;
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-xl), 0 0 0 4px #222, 0 30px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.phone-frame:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #111;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

.phone-screen {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.invitation-preview {
    padding: 4rem 1.5rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image:
        radial-gradient(circle at top right, rgba(255, 77, 166, 0.1) 0%, transparent 50%),
        radial-gradient(circle at bottom left, rgba(91, 91, 255, 0.1) 0%, transparent 50%);
}

.music-icon {
    position: absolute;
    top: 2rem;
    right: 1.5rem;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 5;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 77, 166, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 77, 166, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 77, 166, 0);
    }
}

.invitation-header {
    margin-bottom: 2rem;
}

.invitation-tag {
    background: var(--accent);
    color: #8b6508;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.invitation-title {
    font-size: 1.75rem;
    text-align: center;
    color: var(--primary);
    margin-bottom: 2rem;
    line-height: 1.1;
}

.event-details {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    width: 100%;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item .icon {
    font-size: 1.25rem;
}

.detail-item p {
    font-weight: 500;
    color: var(--text);
    font-size: 0.9rem;
}

.invitation-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 1.5rem;
    margin-top: auto;
}

.btn-confirm {
    background: #10B981;
    color: white;
    border: none;
    padding: 0.875rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

.btn-decline {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-whatsapp-mockup {
    background: #25D366;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.3);
}

/* Sections General */
section {
    padding: 5rem 0;
}

/* Cards */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Benefits Section */
.benefits {
    background: white;
    position: relative;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Examples Section */
.examples-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.example-card {
    padding: 0;
    overflow: hidden;
    cursor: pointer;
}

.example-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    transition: transform 0.5s ease;
}

.example-card:hover .example-image {
    transform: scale(1.05);
}

.theme-kids {
    background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%);
}

.theme-wedding {
    background: linear-gradient(135deg, #E0C3FC 0%, #8EC5FC 100%);
}

.theme-baby {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
}

.theme-modern {
    background: linear-gradient(135deg, #D4FC79 0%, #96E6A1 100%);
}

.example-info {
    padding: 1.5rem;
    text-align: center;
    background: var(--surface);
    position: relative;
    z-index: 2;
}

.example-info h3 {
    font-size: 1.125rem;
}

/* How It Works Section */
.how-it-works {
    background: white;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
}

.step-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.step-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.step-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--text-light);
}

.step-connector {
    display: none;
    height: 2px;
    background: var(--primary-light);
    position: absolute;
    top: 5rem;
    left: 0;
    width: 100%;
    z-index: 1;
}

/* Final CTA Section */
.final-cta {
    padding: 6rem 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
}

.cta-action {
    position: relative;
    z-index: 2;
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid var(--border);
    padding-top: 4rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}

.footer-desc {
    color: var(--text-light);
    margin-top: 1rem;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.footer-links h4 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-light);
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    color: var(--text-light);
    font-size: 0.875rem;
}

.footer-bottom-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-author p {
    margin-bottom: 0.25rem;
}

.footer-author a {
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

.footer-author a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-xl);
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text);
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.modal-desc {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--background);
    color: var(--text);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.w-100 {
    width: 100%;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
/* Tablet */
@media (min-width: 768px) {
    .headline {
        font-size: 3.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

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

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

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }

    .footer-desc {
        margin-left: 0;
    }
}

/* Desktop */
@media (min-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }

    .hero-content {
        text-align: left;
    }

    .subheadline {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-badges {
        justify-content: flex-start;
    }

    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .examples-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .step-connector {
        display: block;
    }

    .step-card {
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .cta-box {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding: 5rem 4rem;
    }

    .cta-content p {
        margin-left: 0;
    }
}

/* Large Screens */
@media (min-width: 1200px) {
    .headline {
        font-size: 4rem;
    }
}