/* Design System */
:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --secondary: #06b6d4;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header */
header {
    padding: 20px 0;
    position: absolute;
    width: 100%;
    z-index: 100;
}

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

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

.main-logo {
    max-height: 180px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -1px;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.05), transparent),
                radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.05), transparent);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--dark);
    letter-spacing: -2px;
}

.hero-content h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 20px;
    color: var(--gray);
    margin-bottom: 40px;
    max-width: 500px;
}

.cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.3);
}

.store-buttons {
    display: flex;
    gap: 20px; /* Aumentado de 12px */
    margin-top: 40px;
}

.store-btn {
    height: 60px; /* Aumentado de 48px */
    transition: transform 0.2s;
}

.store-btn:hover {
    transform: scale(1.05);
}

/* App Mockup Area */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 40px; /* Afasta o celular para baixo no desktop */
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 45px;
    border: 10px solid #1e293b;
    position: relative;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.25);
    overflow: hidden;
}

.phone-notch {
    position: absolute;
    top: 10px; /* Subi um pouco */
    left: 50%;
    transform: translateX(-50%);
    width: 70px; /* Mais estreito */
    height: 18px; /* Mais fino */
    background: #000;
    border-radius: 12px;
    z-index: 50;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--light);
    position: relative;
    border-radius: 35px;
    overflow: hidden;
}

.phone-screen .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* Alinha pelo topo */
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.phone-screen .slide.active {
    opacity: 1;
}

/* Features */
.features {
    padding: 100px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 40px;
    border-radius: 24px;
    background: var(--light);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    background: var(--white);
    border-color: #e2e8f0;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

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

.feature-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 0;
}

.feature-card p {
    color: var(--gray);
}

/* Footer */
footer {
    padding: 60px 0;
    text-align: center;
    background: var(--dark);
    color: var(--white);
}

.footer-logo img {
    filter: brightness(0) invert(1) !important;
    max-height: 120px !important;
}

/* Mobile Responsiveness */
@media (max-width: 968px) {
    header {
        position: relative;
        padding: 15px 0;
    }
    .nav-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }
    .main-logo {
        max-height: 80px;
        margin-bottom: 0;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero {
        padding: 40px 0 60px;
    }
    .features {
        padding: 60px 0;
    }
    .section-title {
        margin-bottom: 30px;
    }
    .section-title h2 {
        font-size: 32px;
    }
    .feature-card {
        padding: 30px;
        margin-bottom: 0;
    }
    .hero-content h1 {
        font-size: 38px;
    }
    .hero-content p {
        margin: 0 auto 30px;
    }
    .cta-group, .store-buttons {
        justify-content: center;
    }
    .phone-mockup {
        width: 280px;
        height: 560px;
        margin-top: 20px;
    }
    .store-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        margin-top: 30px;
    }
    .store-btn {
        height: 50px !important;
    }
}

/* ===========================
   Navigation Menu
   =========================== */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 15px;
    padding: 10px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
}

.nav-links .btn-nav-primary {
    background: var(--gradient);
    color: white;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.nav-links .btn-nav-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
    background: var(--gradient);
    color: white;
}

.nav-links .btn-nav-secondary {
    background: var(--gradient);
    color: white !important;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
    transition: all 0.3s ease;
}

.nav-links .btn-nav-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
    background: var(--gradient);
    color: white !important;
}

.nav-links .btn-nav-accent {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white !important;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    transition: all 0.3s ease;
}

.nav-links .btn-nav-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
    z-index: 1001;
    background: none;
    border: none;
}

.hamburger:hover {
    background: rgba(79, 70, 229, 0.08);
}

.hamburger span {
    width: 24px;
    height: 2.5px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
}

@media (max-width: 968px) {
    .hamburger {
        display: flex;
    }

    .nav-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100%;
        background: white;
        flex-direction: column;
        padding: 80px 24px 32px;
        gap: 4px;
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        font-size: 16px;
        border-radius: 12px;
    }

    .nav-overlay.active {
        display: block;
        opacity: 1;
    }

    .main-logo {
        max-height: 80px;
        margin-bottom: 0;
    }
}

/* ===========================
   Cadastro Page (cadastro.php)
   =========================== */
.cadastro-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #EEF2FF 0%, #F8FAFC 100%);
    padding: 0;
}

.cadastro-header {
    background: white;
    padding: 16px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.cadastro-header .header-logo {
    height: 100px;
}

.cadastro-header .btn-voltar {
    text-decoration: none;
    color: var(--gray);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.cadastro-header .btn-voltar:hover {
    background: rgba(79, 70, 229, 0.06);
    color: var(--primary);
}

.cadastro-wrapper {
    max-width: 560px;
    margin: 40px auto;
    padding: 0 20px 60px;
}

.cadastro-title {
    text-align: center;
    margin-bottom: 32px;
}

.cadastro-title h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.cadastro-title h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cadastro-title p {
    color: var(--gray);
    font-size: 16px;
}

.cadastro-card {
    background: white;
    border-radius: 24px;
    padding: 36px 28px;
    box-shadow: 0 10px 40px rgba(79, 70, 229, 0.06);
    border: 1px solid #E2E8F0;
}

.cadastro-section-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cadastro-section-label i {
    font-size: 16px;
}

.cadastro-divider {
    border: none;
    border-top: 1px solid #E2E8F0;
    margin: 28px 0;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 13px 16px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    background: #F8FAFC;
    color: var(--dark);
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
}

.form-group input::placeholder {
    color: #94A3B8;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.termos-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0 24px;
}

.termos-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.termos-row label {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

.termos-row a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.btn-cadastrar {
    width: 100%;
    padding: 16px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.2);
}

.btn-cadastrar:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.3);
}

.btn-cadastrar:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.alert-error {
    background: #FEF2F2;
    color: #DC2626;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid #FECACA;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error i {
    font-size: 18px;
    flex-shrink: 0;
}

.success-container {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    font-size: 72px;
    color: #10B981;
    margin-bottom: 20px;
}

.success-container h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.success-container p {
    color: var(--gray);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.success-steps {
    background: #F0FDF4;
    border-radius: 16px;
    padding: 24px;
    margin: 28px 0;
    text-align: left;
    border: 1px solid #BBF7D0;
}

.success-steps .step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.success-steps .step:last-child {
    margin-bottom: 0;
}

.success-steps .step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #10B981;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.success-steps .step-text {
    font-size: 15px;
    color: #1E293B;
    line-height: 1.5;
    padding-top: 3px;
}

.success-store-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
}

.success-store-buttons img {
    height: 48px;
    transition: transform 0.2s;
}

.success-store-buttons img:hover {
    transform: scale(1.05);
}

@media (max-width: 968px) {
    .cadastro-wrapper {
        margin: 20px auto;
        padding: 0 12px 40px;
    }

    .cadastro-title h1 {
        font-size: 26px;
    }

    .cadastro-card {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .cadastro-header .header-logo {
        height: 40px;
    }
}

