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

:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-gradient-start: #8b5cf6;
    --bg-gradient-end: #6366f1;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --accent: #8b5cf6;
    --accent-dark: #6366f1;
    --shadow: rgba(0, 0, 0, 0.1);
    --particle-color: rgba(139, 92, 246, 0.15);
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border-color: #334155;
    --shadow: rgba(0, 0, 0, 0.3);
    --particle-color: rgba(139, 92, 246, 0.1);
}

[data-theme="dark"] body,
body[data-theme="dark"] {
    background: linear-gradient(-45deg, #1e1b4b, #312e81, #3730a3, #4c1d95);
    background-size: 400% 400%;
}

[data-theme="dark"] body::before,
body[data-theme="dark"]::before {
    background:
        radial-gradient(circle at 20% 80%, rgba(79, 70, 229, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(99, 102, 241, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(139, 92, 246, 0.2) 0%, transparent 40%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(-45deg, #8b5cf6, #6366f1, #a855f7, #7c3aed);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    height: 100vh;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    transition: background 0.3s ease;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(99, 102, 241, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(139, 92, 246, 0.25) 0%, transparent 40%);
    z-index: 0;
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulseGlow {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

/* Partículas de fundo */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.particle:nth-child(odd) {
    background: rgba(255, 255, 255, 0.1);
    animation-duration: 25s;
}

.particle:nth-child(3n) {
    background: rgba(168, 85, 247, 0.2);
    animation-duration: 18s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-80px) translateX(50px) rotate(90deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-150px) translateX(-50px) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-80px) translateX(50px) rotate(270deg);
        opacity: 1;
    }
}

/* Formas geométricas flutuantes */
.particles::before,
.particles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    animation: floatShapes 20s infinite ease-in-out;
}

.particles::before {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation-delay: -5s;
}

.particles::after {
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: -150px;
    animation-delay: -10s;
}

@keyframes floatShapes {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Container principal */
.container {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: clamp(0.5rem, 2vh, 2rem);
    max-width: 650px;
    width: 90%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Toggle de tema */
.theme-toggle {
    position: fixed;
    top: max(1rem, env(safe-area-inset-top, 1rem));
    right: max(1rem, env(safe-area-inset-right, 1rem));
    z-index: 100;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 0.6rem 1rem;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow);
}

.theme-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-icon {
    transform: rotate(20deg);
}

/* Logo */
.logo-container {
    margin-bottom: clamp(0.5rem, 2vh, 2.5rem);
    animation: fadeInDown 1s ease-out;
    flex-shrink: 0;
}

.logo {
    width: clamp(120px, 25vh, 320px);
    height: clamp(120px, 25vh, 320px);
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: clamp(16px, 3vw, 32px);
    padding: clamp(15px, 3vh, 40px);
    box-shadow:
        0 25px 80px var(--shadow),
        0 0 40px rgba(139, 92, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 35px 90px var(--shadow),
        0 0 60px rgba(139, 92, 246, 0.3);
}

.logo svg {
    width: 100%;
    height: 100%;
}

/* Conteúdo */
.content {
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-radius: clamp(12px, 2vw, 20px);
    padding: clamp(0.8rem, 2vh, 3rem) clamp(1rem, 3vw, 2rem);
    box-shadow: 0 20px 60px var(--shadow);
    animation: fadeInUp 1s ease-out 0.3s both;
    transition: all 0.3s ease;
    flex-shrink: 1;
    overflow: hidden;
}

h1 {
    font-size: clamp(1.2rem, 4vw, 2.5rem);
    color: var(--text-primary);
    margin-bottom: clamp(0.2rem, 0.5vh, 0.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: clamp(0.75rem, 2vw, 1.1rem);
    color: var(--text-secondary);
    margin-bottom: clamp(0.5rem, 1.5vh, 2rem);
    letter-spacing: 0.5px;
}

.tagline {
    font-size: clamp(0.7rem, 1.8vw, 1rem);
    color: var(--text-secondary);
    margin-bottom: clamp(0.5rem, 1.5vh, 2rem);
    line-height: 1.5;
}

/* Barra de progresso */
.progress-container {
    margin: clamp(0.5rem, 1.5vh, 2rem) 0;
}

.progress-label {
    font-size: clamp(0.7rem, 1.8vw, 0.9rem);
    color: var(--text-secondary);
    margin-bottom: clamp(0.4rem, 1vh, 0.8rem);
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: clamp(5px, 1vh, 8px);
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    border-radius: 10px;
    animation: progress 2s ease-out 0.5s both;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes progress {
    from { width: 0%; }
    to { width: 75%; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Formulário de contato */
.notify-form {
    margin-top: clamp(0.5rem, 1.5vh, 2rem);
}

.input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

input[type="email"] {
    flex: 1;
    padding: clamp(0.5rem, 1vh, 0.9rem) clamp(0.8rem, 2vw, 1.2rem);
    min-height: 40px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px; /* Evita zoom automático no iOS */
    transition: all 0.3s ease;
    outline: none;
    background: var(--bg-primary);
    color: var(--text-primary);
}

input[type="email"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

button {
    padding: clamp(0.5rem, 1vh, 0.9rem) clamp(1rem, 3vw, 2rem);
    min-height: 40px;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: clamp(0.85rem, 2vw, 1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

button:active {
    transform: translateY(0);
}

.privacy-note {
    font-size: clamp(0.65rem, 1.5vw, 0.8rem);
    color: var(--text-muted);
    margin-top: clamp(0.3rem, 0.8vh, 0.8rem);
}

/* Informações de contato */
.contact-info {
    margin-top: clamp(0.5rem, 1.5vh, 2rem);
    padding-top: clamp(0.5rem, 1.5vh, 2rem);
    border-top: 1px solid var(--border-color);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: clamp(0.75rem, 1.8vw, 0.95rem);
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--accent);
}

.contact-icon {
    width: clamp(14px, 2.5vw, 20px);
    height: clamp(14px, 2.5vw, 20px);
    flex-shrink: 0;
}

/* Animações */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsividade */
@media (max-width: 768px) {
    .container {
        max-width: 550px;
    }
}

@media (max-width: 640px) {
    .input-group {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    .contact-links {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
}


/* Landscape para dispositivos móveis */
@media (max-height: 500px) and (orientation: landscape) {
    .logo-container {
        margin-bottom: 0.5rem;
    }

    .logo {
        width: 90px;
        height: 90px;
        padding: 10px;
    }

    .content {
        padding: 0.6rem 1rem;
    }

    h1 {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }

    .subtitle {
        margin-bottom: 0.4rem;
        font-size: 0.7rem;
    }

    .tagline {
        display: none;
    }

    .progress-container {
        margin: 0.4rem 0;
    }

    .progress-label {
        font-size: 0.7rem;
    }

    .progress-bar {
        height: 5px;
    }

    .notify-form {
        margin-top: 0.4rem;
    }

    .input-group {
        gap: 0.3rem;
    }

    input[type="email"],
    button {
        padding: 0.4rem 0.8rem;
        min-height: 32px;
        font-size: 0.8rem;
    }

    .privacy-note {
        display: none;
    }

    .contact-info {
        margin-top: 0.4rem;
        padding-top: 0.4rem;
    }

    .contact-link {
        font-size: 0.7rem;
    }

    .contact-icon {
        width: 14px;
        height: 14px;
    }
}

/* Tablets em modo paisagem */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        max-width: 700px;
    }
}

/* Telas grandes */
@media (min-width: 1440px) {
    .container {
        max-width: 750px;
    }
}

/* Preferência de movimento reduzido para acessibilidade */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    body {
        background-size: 100% 100%;
        animation: none;
    }

    body::before {
        animation: none;
        opacity: 0.7;
    }

    .particle {
        animation: none;
    }

    .particles::before,
    .particles::after {
        animation: none;
    }

    .progress-fill {
        animation: none;
        width: 75%;
    }

    .progress-fill::after {
        animation: none;
    }
}

/* Suporte para hover apenas em dispositivos que suportam */
@media (hover: none) {
    .logo:hover,
    .theme-toggle:hover,
    button:hover {
        transform: none;
    }
}

/* Touch devices - área de toque maior */
@media (pointer: coarse) {
    .contact-link {
        padding: 0.5rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .theme-toggle {
        padding: 0.8rem 1.2rem;
    }
}

