/* ============================================
   SPACE TODAY TOUR 2027 — Landing Page
   Identidade: Azul Marinho + Vermelho/Coral + Branco
   ============================================ */

:root {
    --azul-escuro: #1B3A6B;
    --azul-profundo: #0F2447;
    --azul-medio: #2A5298;
    --vermelho: #D94F3B;
    --vermelho-hover: #C0392B;
    --vermelho-claro: #E8634F;
    --branco: #FFFFFF;
    --branco-off: #F4F6FA;
    --cinza-claro: #E8ECF2;
    --cinza-medio: #8B9BB5;
    --cinza-texto: #4A5568;
    --preto-suave: #1A1A2E;
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Space Grotesk', sans-serif;
    --shadow-md: 0 4px 20px rgba(15, 36, 71, 0.12);
    --shadow-lg: 0 8px 40px rgba(15, 36, 71, 0.18);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--cinza-texto);
    background: var(--azul-profundo);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- BOTOES --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 1rem;
    padding: 16px 40px;
    border-radius: var(--radius-xl);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.03em;
}

.btn-primary {
    background: var(--vermelho);
    color: var(--branco);
    box-shadow: 0 4px 24px rgba(217, 79, 59, 0.4);
}

.btn-primary:hover {
    background: var(--vermelho-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(217, 79, 59, 0.55);
}

.btn-large {
    font-size: 1.1rem;
    padding: 18px 48px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    position: relative;
    background: linear-gradient(160deg, var(--azul-profundo) 0%, var(--azul-escuro) 40%, #162D54 70%, var(--azul-profundo) 100%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Estrelas */
.stars-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    width: 2px; height: 2px;
    background: var(--branco);
    border-radius: 50%;
    animation: twinkle var(--duration) ease-in-out infinite;
    opacity: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; }
    50% { opacity: var(--max-opacity, 0.8); }
}

/* Logos topo */
.hero-top {
    position: relative;
    z-index: 2;
    padding: 28px 32px;
    display: flex;
    justify-content: center;
}

.top-logo {
    height: 150px;
    width: 150px;
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(42, 82, 152, 0.5);
}

/* Grid Hero */
.hero-grid {
    position: relative;
    z-index: 2;
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px 60px;
    gap: 40px;
}

/* Texto Hero */
.hero-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-badge {
    display: inline-block;
    align-self: flex-start;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--vermelho-claro);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 8px 24px;
    border: 1px solid rgba(232, 99, 79, 0.3);
    border-radius: var(--radius-xl);
    background: rgba(217, 79, 59, 0.08);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.8vw, 3rem);
    font-weight: 900;
    color: var(--branco);
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--vermelho-claro), var(--vermelho));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: var(--font-accent);
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

/* Caixa de exclusividade */
.exclusivity-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 28px;
    background: rgba(217, 79, 59, 0.1);
    border: 1px solid rgba(217, 79, 59, 0.25);
    border-radius: var(--radius-md);
    animation: pulse-border 3s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% { border-color: rgba(217, 79, 59, 0.25); }
    50% { border-color: rgba(217, 79, 59, 0.6); }
}

.exclusivity-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: var(--vermelho);
    line-height: 1;
    flex-shrink: 0;
}

.exclusivity-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.exclusivity-text strong {
    font-family: var(--font-accent);
    font-size: 1.1rem;
    color: var(--branco);
    letter-spacing: 0.02em;
}

.exclusivity-text span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Imagem Sacani */
.hero-image {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.sacani-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(42, 82, 152, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.sacani-photo {
    position: relative;
    z-index: 1;
    max-height: 520px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.5));
    animation: float 6s ease-in-out infinite;
}

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

/* Scroll */
.hero-scroll {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-arrow {
    width: 18px; height: 18px;
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(6px); }
}

/* ============================================
   BANNER KSC
   ============================================ */
.ksc-banner {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.ksc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}

.ksc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 36, 71, 0.3) 0%, rgba(15, 36, 71, 0.85) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 0 24px 40px;
}

.ksc-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 900;
    color: var(--branco);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.ksc-sub {
    font-family: var(--font-accent);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
    letter-spacing: 0.1em;
}

@media (max-width: 600px) {
    .ksc-banner { height: 220px; }
    .ksc-overlay { padding-bottom: 28px; }
}

/* ============================================
   CADASTRO
   ============================================ */
.section-cadastro {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, var(--azul-profundo) 0%, #0D1B33 100%);
}

.form-wrapper {
    max-width: 680px;
    margin: 0 auto;
}

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

.section-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--vermelho);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 14px;
    padding: 6px 18px;
    background: rgba(217, 79, 59, 0.1);
    border: 1px solid rgba(217, 79, 59, 0.2);
    border-radius: var(--radius-xl);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 900;
    color: var(--branco);
    line-height: 1.25;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.section-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto;
}

/* Form */
.cadastro-form {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    backdrop-filter: blur(10px);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-family: var(--font-accent);
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    color: var(--branco);
    transition: var(--transition);
    outline: none;
    width: 100%;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B9BB5' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group select option {
    background: var(--azul-profundo);
    color: var(--branco);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--azul-medio);
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input[readonly] {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-group input[readonly]:not([value=""]).filled {
    opacity: 1;
    border-color: rgba(39, 174, 96, 0.4);
    background: rgba(39, 174, 96, 0.08);
}

.cep-info {
    font-size: 0.75rem;
    margin-top: 4px;
    min-height: 16px;
    font-family: var(--font-accent);
}

.cep-info.loading { color: var(--cinza-medio); }
.cep-info.success { color: #27ae60; }
.cep-info.error { color: var(--vermelho-claro); }

/* Checkbox */
.form-consent {
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] { display: none; }

.checkmark {
    flex-shrink: 0;
    width: 20px; height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    transition: var(--transition);
    position: relative;
    margin-top: 1px;
}

.checkbox-label input:checked + .checkmark {
    background: var(--vermelho);
    border-color: var(--vermelho);
}

.checkbox-label input:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px; top: 2px;
    width: 5px; height: 10px;
    border: solid var(--branco);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Submit */
.form-submit {
    text-align: center;
}

.form-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 12px;
    font-family: var(--font-accent);
}

.form-message {
    text-align: center;
    margin-top: 20px;
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-accent);
    font-size: 0.95rem;
    font-weight: 500;
}

.form-message.success {
    background: rgba(39, 174, 96, 0.12);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.25);
}

.form-message.error {
    background: rgba(217, 79, 59, 0.12);
    color: var(--vermelho-claro);
    border: 1px solid rgba(217, 79, 59, 0.25);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #080E1A;
    padding: 48px 0 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.partner-label {
    font-family: var(--font-accent);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.partner-logos {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 8px;
}

.partner-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: var(--transition);
}

.partner-logo:hover {
    opacity: 1;
}

.logo-tour {
    border-radius: 50%;
    height: 52px;
}

.logo-spacetoday {
    height: 36px;
    border-radius: 4px;
}

.logo-365 {
    height: 56px;
    border-radius: 50%;
}

.footer-copy {
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.25);
    line-height: 1.8;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 24px 40px;
        gap: 32px;
    }

    .hero-text {
        align-items: center;
        order: 2;
    }

    .hero-badge {
        align-self: center;
    }

    .hero-image {
        order: 1;
    }

    .sacani-photo {
        max-height: 340px;
    }

    .sacani-glow {
        width: 280px;
        height: 280px;
    }

    .exclusivity-box {
        justify-content: center;
    }

    .btn-large {
        width: 100%;
        max-width: 360px;
    }
}

@media (max-width: 600px) {
    .hero {
        min-height: auto;
        padding-bottom: 48px;
    }

    .hero-top {
        padding: 20px 20px;
    }

    .top-logo {
        height: 48px;
        width: 48px;
    }

    .hero-grid {
        padding: 0 20px 20px;
    }

    .sacani-photo {
        max-height: 260px;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .exclusivity-box {
        padding: 16px 20px;
        gap: 14px;
    }

    .exclusivity-number {
        font-size: 2.4rem;
    }

    .exclusivity-text strong {
        font-size: 0.95rem;
    }

    .section-cadastro {
        padding: 48px 0 40px;
    }

    .cadastro-form {
        padding: 28px 20px;
    }

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

    .partner-logos {
        gap: 20px;
    }

    .partner-logo {
        height: 36px;
    }

    .logo-tour {
        height: 40px;
    }

    .logo-365 {
        height: 44px;
    }

    .hero-scroll {
        display: none;
    }
}

/* Animacao de entrada */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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