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

:root {
    --primary: #1DB954;
    --primary-dark: #1DB954;
    --secondary: #3b82f6;
    --accent: #1DB954;
    --success: #10b981;
    --danger: #ef4444;
    --dark: #1f2937;
    --gray: #6b7280;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
    --shadow-lg: 0 20px 60px rgba(139, 92, 246, 0.25);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: linear-gradient(135deg, #000 0%, #1DB954 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.note {
    position: absolute;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.1);
    animation: float 15s infinite ease-in-out;
}

.note-1 { top: 10%; left: 10%; animation-delay: 0s; }
.note-2 { top: 20%; right: 15%; animation-delay: 2s; }
.note-3 { bottom: 20%; left: 20%; animation-delay: 4s; }
.note-4 { bottom: 30%; right: 10%; animation-delay: 6s; }
.note-5 { top: 50%; left: 50%; animation-delay: 8s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

/* Header */
.header {
    position: relative;
    z-index: 10;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-size: 2rem;
    font-weight: bold;
}

.logo-icon {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Hero Section */
.hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 0;
    color: var(--white);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent), var(--white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    background: var(--accent);
    padding: 5px 15px;
    border-radius: 10px;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 50px;
    opacity: 0.95;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.feature {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.feature p {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* CTA Button */
.cta-button {
    background: linear-gradient(135deg, var(--dark), var(--accent));
    color: var(--white);
    border: none;
    padding: 20px 50px;
    font-size: 1.25rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: var(--accent);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: pulse 2s infinite;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 70px rgba(245, 158, 11, 0.4);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 20px 60px rgba(190, 245, 11, 0.3); }
    50% { box-shadow: 0 25px 70px rgba(245, 241, 11, 0.5); }
}

/* Form Section */
.form-section {
    position: relative;
    z-index: 1;
    padding: 60px 0 100px;
}

.form-section.form-hidden {
    display: none;
}

.form-card {
    background: var(--white);
    border-radius: 30px;
    padding: 50px;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.form-header p {
    color: var(--gray);
}

/* Steps Indicator */
.steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--light-gray);
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s;
}

.step.active .step-number {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.2);
}

.step-label {
    font-size: 0.875rem;
    color: var(--gray);
    font-weight: 500;
}

.step.active .step-label {
    color: var(--primary);
    font-weight: bold;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.label-icon {
    font-size: 1.25rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.875rem;
    color: var(--gray);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Buttons */
.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: space-between;
}

.form-buttons.single {
    justify-content: center;
}

.form-buttons.single .btn-next {
    width: 100%;
}

.btn-next,
.btn-submit,
.btn-back {
    flex: 1;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

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

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

.btn-back {
    background: var(--light-gray);
    color: var(--dark);
}

.btn-back:hover {
    background: #e5e7eb;
}

/* Legal pages */
.legal-page {
    background: var(--light-gray);
    color: var(--dark);
}

.legal-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    padding: 20px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.legal-back {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.legal-back:hover {
    text-decoration: underline;
}

.legal-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px 30px 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.legal-container h1,
.legal-container h2,
.legal-container h3 {
    color: var(--primary);
    margin-bottom: 20px;
}

.legal-container p {
    margin-bottom: 16px;
    line-height: 1.7;
}

.legal-container ul {
    margin: 10px 0 20px 25px;
    list-style: disc;
}

.legal-container li {
    margin-bottom: 8px;
}

.legal-container hr {
    margin: 30px 0;
    border: none;
    border-top: 1px solid var(--light-gray);
}

.legal-footer {
    text-align: center;
    padding: 30px 20px 60px;
    color: var(--gray);
}


/* Demo section */
.demos {
    position: relative;
    z-index: 1;
    margin: 80px 0;
}

.demos .container {
    max-width: 900px;
}

.demos-header {
    text-align: center;
    margin-bottom: 40px;
    color: var(--white);
}

.demos-header h2 {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    margin-bottom: 10px;
}

.demos-header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
}

.demo-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.demo-item {
    display: grid;
    grid-template-columns: 80px 1fr 44px;
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.demo-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.demo-cover {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #4ade80, #22d3ee);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
}

.demo-cover span {
    opacity: 0.85;
}

.demo-wave {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    height: 24px;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.demo-wave span {
    width: 4px;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    transform-origin: bottom;
    animation: demo-wave 1s ease-in-out infinite;
    animation-play-state: paused;
}

.demo-wave span:nth-child(2) {
    animation-delay: 0.15s;
}

.demo-wave span:nth-child(3) {
    animation-delay: 0.3s;
}

.demo-wave span:nth-child(4) {
    animation-delay: 0.45s;
}

@keyframes demo-wave {
    0%, 100% {
        transform: scaleY(0.4);
    }
    50% {
        transform: scaleY(1);
    }
}

.demo-info {
    display: flex;
    flex-direction: column;
    color: var(--white);
    gap: 8px;
}

.demo-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.demo-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.demo-meta .badge {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.demo-meta-note {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

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

.demo-progress {
    position: relative;
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    touch-action: none;
    transition: background 0.2s ease;
}

.demo-progress:hover {
    background: rgba(255, 255, 255, 0.28);
}

.demo-progress:active {
    background: rgba(255, 255, 255, 0.34);
}

.demo-progress-bar {
    width: var(--progress, 0%);
    height: 100%;
    background: linear-gradient(90deg, #22d3ee, #4ade80);
    border-radius: inherit;
    transition: width 0.1s linear;
    pointer-events: none;
}

.demo-progress-bar[data-animate="true"] {
    animation: demo-progress-glow 1.4s ease-in-out infinite;
}

@keyframes demo-progress-glow {
    0%, 100% {
        filter: drop-shadow(0 0 0 rgba(34, 211, 238, 0));
    }
    50% {
        filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.6));
    }
}

.demo-back {
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    padding: 0;
}

.demo-back-icon {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.demo-back-icon path {
    fill: currentColor;
}

.demo-back:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.05);
}

.demo-back:active {
    transform: scale(0.96);
}

.demo-back:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.4);
}

.demo-play {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 1.1rem;
    line-height: 1;
}

.demo-play:hover {
    transform: scale(1.06);
    box-shadow: 0px 10px 20px rgba(29, 185, 84, 0.35);
}

.demo-play.is-playing {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0px 10px 20px rgba(29, 185, 84, 0.35);
}

.demo-item.is-playing {
    background: rgba(34, 211, 238, 0.18);
    box-shadow: 0px 12px 30px rgba(34, 211, 238, 0.25);
}

.demo-item.is-playing .demo-cover {
    background: linear-gradient(135deg, #22d3ee, #4ade80);
}

.demo-item.is-playing .demo-cover span {
    opacity: 0.5;
}

.demo-item.is-playing .demo-wave {
    opacity: 1;
}

.demo-item.is-playing .demo-wave span {
    animation-play-state: running;
}

.demo-item.is-playing .demo-back {
    background: rgba(255, 255, 255, 0.25);
    color: var(--primary);
}

.demo-item.is-playing .demo-progress {
    background: rgba(255, 255, 255, 0.3);
}

.demo-play:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.35);
}

.demo-play img {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.demo-empty {
    padding: 40px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    font-weight: 500;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .demo-item {
        grid-template-columns: 70px 1fr 44px;
        gap: 16px;
    }

    .demo-cover {
        width: 70px;
        height: 70px;
    }

    .demo-title {
        font-size: 1rem;
    }

    .demo-controls {
        gap: 10px;
    }

    .demo-back {
        width: 32px;
        height: 32px;
    }
}

/* Verification Info */
.verification-info {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 15px;
}

.verification-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.verification-info h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.resend-code {
    text-align: center;
    margin-top: 15px;
    font-size: 0.875rem;
    color: var(--gray);
}

.resend-code a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.resend-code a:hover {
    text-decoration: underline;
}

/* Loading Overlay */
.loading-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    z-index: 100;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.125rem;
    color: var(--primary);
    font-weight: 600;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 30px;
    padding: 50px;
    max-width: 600px;
    text-align: center;
    animation: modalSlideIn 0.5s;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.modal-content h2 {
    color: var(--primary);
    margin-bottom: 15px;
}

.modal-content p {
    color: var(--gray);
    margin-bottom: 30px;
}

.success-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.success-step {
    padding: 20px;
    background: var(--light-gray);
    border-radius: 15px;
}

.step-emoji {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.success-step p {
    font-size: 0.875rem;
    margin: 0;
}

.whatsapp-reminder {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    color: var(--dark);
}

.btn-close {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 15px 50px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-close:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    background: rgba(31, 41, 55, 0.9);
    backdrop-filter: blur(10px);
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
}

.footer a {
    color: var(--white);
    text-decoration: none;
}

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

.footer-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .form-card {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .success-steps {
        grid-template-columns: 1fr;
    }

    .steps {
        font-size: 0.75rem;
    }

    .step-number {
        width: 35px;
        height: 35px;
    }

    .modal-content {
        padding: 30px 20px;
    }
}

