/* ==========================================================================
   KINETTO - MAXIMUM ELEGANCE SAAS STYLES (RICH LIGHT MODE)
   ========================================================================== */

:root {
    /* Cores Premium */
    --primary-color: #050505;
    --primary-dark: #363636;
    --primary-glow: rgba(87, 87, 87, 0.4);
    
    --text-main: #0f172a;
    --text-muted: #475569;
    
    /* Superfícies de Vidro (Glassmorphism) */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

body.premium-layout {
    /* Fundo com Mesh Gradient (Luzes volumétricas) */
    background-color: #f8fafc;
    background-image: 
        radial-gradient(at 0% 0%, rgba(13, 110, 253, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(13, 110, 253, 0.08) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(16, 185, 129, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

/* --- FUNDO TECNOLÓGICO (Grid Refinado) --- */
.bg-grid {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, black 10%, transparent 90%);
    -webkit-mask-image: linear-gradient(to bottom, black 10%, transparent 90%);
}

/* --- LOGO --- */
.logo-mark {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
    color: white;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1.2rem;
    box-shadow: 0 4px 15px var(--primary-glow), inset 0 2px 4px rgba(255,255,255,0.4);
}
.logo-text {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

/* --- TIPOGRAFIA HERÓI (Títulos Impactantes) --- */
.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.1);
}
.pulse-dot {
    width: 8px; height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.premium-headline {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1.1;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.premium-subheadline {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 750px;
    font-weight: 500;
}

/* --- CRONÔMETRO (Elegância Extrema) --- */
.timer-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2.5px;
}
.timer-wrapper {
    margin-top: 15px;
}
.timer-box {
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    border: 1px solid #ffffff;
    border-radius: 20px;
    padding: 15px 20px;
    min-width: 90px;
    box-shadow: 
        10px 10px 20px rgba(0, 0, 0, 0.05),
        -10px -10px 20px rgba(255, 255, 255, 0.8),
        inset 0 2px 5px rgba(255,255,255,1);
    display: flex; flex-direction: column;
    position: relative;
    overflow: hidden;
}
/* Brilho interno do cronômetro */
.timer-box::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 6s infinite;
}
@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.timer-box span {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    color: var(--text-main);
}
.timer-box small {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 5px;
}
.timer-divider {
    font-size: 1.8rem;
    font-weight: 800;
    color: #94a3b8;
    margin-top: 10px;
}

/* --- FORMULÁRIO DE CAPTURA (Estilo Mac OS Premium) --- */
.capture-area {
    max-width: 550px;
    width: 100%;
}

.premium-input-group {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    padding: 8px 8px 8px 28px;
    display: flex;
    align-items: center;
    box-shadow: 
        0 20px 40px -10px rgba(15, 23, 42, 0.1),
        0 0 0 1px rgba(255,255,255,0.5) inset;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.premium-input-group:focus-within {
    border-color: #050505;
    box-shadow: 
        0 25px 50px -12px #050505, 
        0 0 0 4px #050505,
        inset 0 2px 4px rgba(255, 255, 255, 0.8);
    transform: translateY(-3px) scale(1.01);
}

.input-icon {
    font-size: 1.3rem;
    color: #94a3b8;
    transition: color 0.3s;
}
.premium-input-group:focus-within .input-icon {
    color: var(--primary-color);
}

.premium-input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 14px 16px;
    font-size: 1.05rem;
    font-weight: 500;
    outline: none;
    color: var(--text-main);
}
.premium-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.premium-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, #050505 100%);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 16px 32px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    box-shadow: 0 8px 20px var(--primary-glow), inset 0 2px 4px rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.premium-button:hover {
    background: linear-gradient(135deg, #050505 0%, #050505 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(13, 110, 253, 0.5), inset 0 2px 4px rgba(255,255,255,0.3);
}

.security-text {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

/* --- BENTO CARDS (Glassmorphism e Neumorphism misturados) --- */
.bento-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 28px;
    padding: 35px;
    text-align: left;
    position: relative;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Borda superior iluminada */
.bento-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(13, 110, 253, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bento-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 25px 50px -12px rgba(15, 23, 42, 0.15),
        0 0 0 1px rgba(255, 255, 255, 1) inset;
    border-color: rgba(255, 255, 255, 1);
}

.bento-card:hover::after {
    opacity: 1;
}

.bento-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: var(--primary-color);
    margin-bottom: 24px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.04);
    transition: transform 0.4s ease;
}

.bento-card:hover .bento-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--primary-dark);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px var(--primary-glow);
}

.bento-card h4 {
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-main);
}
.bento-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
}

/* Caixa de Sucesso */
.success-message {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid #10b981;
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
}
.success-message i {
    color: #10b981;
    font-size: 3rem;
    text-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}
.success-message h5 { font-weight: 900; color: var(--text-main); margin-top: 15px; font-size: 1.4rem; }
.success-message p { color: var(--text-muted); font-size: 1.05rem; }


/* --- FOOTER --- */
footer {
    border-top: 1px solid rgba(0,0,0,0.05);
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
}
.footer-text {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- MOBILE AJUSTES --- */
@media (max-width: 576px) {
    .premium-headline { font-size: 2.2rem; }
    
    .timer-box { min-width: 70px; padding: 12px; border-radius: 16px; }
    .timer-box span { font-size: 1.8rem; }
    
    .premium-input-group {
        flex-direction: column;
        border-radius: 24px;
        padding: 12px;
        background: transparent;
        box-shadow: none;
        border: none;
    }
    .premium-input-group:focus-within {
        box-shadow: none;
        transform: none;
    }
    .input-icon { display: none; }
    
    .premium-input {
        background: rgba(255,255,255,0.9);
        border: 1px solid #e2e8f0;
        border-radius: 18px;
        padding: 18px 20px;
        margin-bottom: 12px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.04);
        text-align: center;
    }
    .premium-input:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 4px var(--primary-glow);
    }
    
    .premium-button {
        width: 100%;
        border-radius: 18px;
        padding: 18px;
        height: 60px;
    }
}
